UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

60 lines 1.93 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getGitopsClusterOutput = exports.getGitopsCluster = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getGitopsCluster(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:platform/getGitopsCluster:getGitopsCluster", { "accountId": args.accountId, "agentId": args.agentId, "identifier": args.identifier, "orgId": args.orgId, "projectId": args.projectId, "queries": args.queries, }, opts); } exports.getGitopsCluster = getGitopsCluster; /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getGitopsClusterOutput(args, opts) { return pulumi.output(args).apply((a) => getGitopsCluster(a, opts)); } exports.getGitopsClusterOutput = getGitopsClusterOutput; //# sourceMappingURL=getGitopsCluster.js.map