UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

79 lines (78 loc) 1.71 kB
import * as pulumi from "@pulumi/pulumi"; /** * Datasource for looking up a rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.governance.getRule({ * ruleId: "rule_id", * }); * ``` */ export declare function getRule(args: GetRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleResult>; /** * A collection of arguments for invoking getRule. */ export interface GetRuleArgs { /** * Id of rule. */ ruleId: string; } /** * A collection of values returned by getRule. */ export interface GetRuleResult { /** * The cloud provider for the rule. */ readonly cloudProvider: string; /** * Description for rule. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Name of the rule. */ readonly name: string; /** * Id of rule. */ readonly ruleId: string; /** * Policy YAML of the rule. */ readonly rulesYaml: string; } /** * Datasource for looking up a rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.governance.getRule({ * ruleId: "rule_id", * }); * ``` */ export declare function getRuleOutput(args: GetRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleResult>; /** * A collection of arguments for invoking getRule. */ export interface GetRuleOutputArgs { /** * Id of rule. */ ruleId: pulumi.Input<string>; }