UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

68 lines 2.21 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** 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({ * identifier: "identifier", * name: "name", * orgId: "org_id", * projectId: "project_id", * envId: "env_id", * }); * ``` */ function getInfrastructure(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:platform/getInfrastructure:getInfrastructure", { "envId": args.envId, "gitDetails": args.gitDetails, "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({ * identifier: "identifier", * name: "name", * orgId: "org_id", * projectId: "project_id", * envId: "env_id", * }); * ``` */ function getInfrastructureOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("harness:platform/getInfrastructure:getInfrastructure", { "envId": args.envId, "gitDetails": args.gitDetails, "identifier": args.identifier, "name": args.name, "orgId": args.orgId, "projectId": args.projectId, }, opts); } exports.getInfrastructureOutput = getInfrastructureOutput; //# sourceMappingURL=getInfrastructure.js.map