@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
82 lines • 2.79 kB
JavaScript
;
// *** 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.getSecurityGovernanceRuleOutput = exports.getSecurityGovernanceRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for retrieving a Harness Chaos Security Governance Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* // Data sources to verify the rules
* const example = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* const exampleLinux = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* const exampleWindows = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* ```
*/
function getSecurityGovernanceRule(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:chaos/getSecurityGovernanceRule:getSecurityGovernanceRule", {
"id": args.id,
"name": args.name,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getSecurityGovernanceRule = getSecurityGovernanceRule;
/**
* Data source for retrieving a Harness Chaos Security Governance Rule.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* // Data sources to verify the rules
* const example = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* const exampleLinux = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* const exampleWindows = harness.chaos.getSecurityGovernanceRule({
* id: "<rule_id>",
* orgId: "<org_id>",
* projectId: "<project_id>",
* });
* ```
*/
function getSecurityGovernanceRuleOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("harness:chaos/getSecurityGovernanceRule:getSecurityGovernanceRule", {
"id": args.id,
"name": args.name,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getSecurityGovernanceRuleOutput = getSecurityGovernanceRuleOutput;
//# sourceMappingURL=getSecurityGovernanceRule.js.map