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