@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
70 lines • 2.2 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.getPolicySetOutput = exports.getPolicySet = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for retrieving a Harness policyset.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const test = harness.platform.getPolicySet({
* action: "onrun",
* enabled: true,
* identifier: "harness_platform_policyset.test.identifier",
* name: "harness_platform_policyset.test.name",
* policies: [{
* identifier: "always_run",
* severity: "warning",
* }],
* type: "pipeline",
* });
* ```
*/
function getPolicySet(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:platform/getPolicySet:getPolicySet", {
"action": args.action,
"enabled": args.enabled,
"identifier": args.identifier,
"name": args.name,
"orgId": args.orgId,
"policies": args.policies,
"projectId": args.projectId,
"type": args.type,
}, opts);
}
exports.getPolicySet = getPolicySet;
/**
* Data source for retrieving a Harness policyset.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const test = harness.platform.getPolicySet({
* action: "onrun",
* enabled: true,
* identifier: "harness_platform_policyset.test.identifier",
* name: "harness_platform_policyset.test.name",
* policies: [{
* identifier: "always_run",
* severity: "warning",
* }],
* type: "pipeline",
* });
* ```
*/
function getPolicySetOutput(args, opts) {
return pulumi.output(args).apply((a) => getPolicySet(a, opts));
}
exports.getPolicySetOutput = getPolicySetOutput;
//# sourceMappingURL=getPolicySet.js.map