@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
59 lines • 1.88 kB
JavaScript
;
// *** 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.getInfrastructureOutput = exports.getInfrastructure = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for retrieving a Harness Infrastructure.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getInfrastructure({
* envId: "env_id",
* identifier: "identifier",
* name: "name",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
function getInfrastructure(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:platform/getInfrastructure:getInfrastructure", {
"envId": args.envId,
"identifier": args.identifier,
"name": args.name,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getInfrastructure = getInfrastructure;
/**
* Data source for retrieving a Harness Infrastructure.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getInfrastructure({
* envId: "env_id",
* identifier: "identifier",
* name: "name",
* orgId: "org_id",
* projectId: "project_id",
* });
* ```
*/
function getInfrastructureOutput(args, opts) {
return pulumi.output(args).apply((a) => getInfrastructure(a, opts));
}
exports.getInfrastructureOutput = getInfrastructureOutput;
//# sourceMappingURL=getInfrastructure.js.map