UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

106 lines (105 loc) 3.13 kB
import * as pulumi from "@pulumi/pulumi"; /** * Resource for creating, updating, and managing rule. * * ## Import * * The `pulumi import` command can be used, for example: * * Import governance enforcement * * ```sh * $ pulumi import harness:governance/rule:Rule example <rule_id> * ``` */ export declare class Rule extends pulumi.CustomResource { /** * Get an existing Rule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuleState, opts?: pulumi.CustomResourceOptions): Rule; /** * Returns true if the given object is an instance of Rule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Rule; /** * The cloud provider for the rule. It should be either AWS, AZURE or GCP. */ readonly cloudProvider: pulumi.Output<string>; /** * Description for rule. */ readonly description: pulumi.Output<string | undefined>; /** * Name of the rule. */ readonly name: pulumi.Output<string>; /** * Id of the rule. */ readonly ruleId: pulumi.Output<string>; /** * The policy YAML of the rule */ readonly rulesYaml: pulumi.Output<string>; /** * Create a Rule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rule resources. */ export interface RuleState { /** * The cloud provider for the rule. It should be either AWS, AZURE or GCP. */ cloudProvider?: pulumi.Input<string>; /** * Description for rule. */ description?: pulumi.Input<string>; /** * Name of the rule. */ name?: pulumi.Input<string>; /** * Id of the rule. */ ruleId?: pulumi.Input<string>; /** * The policy YAML of the rule */ rulesYaml?: pulumi.Input<string>; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * The cloud provider for the rule. It should be either AWS, AZURE or GCP. */ cloudProvider: pulumi.Input<string>; /** * Description for rule. */ description?: pulumi.Input<string>; /** * Name of the rule. */ name?: pulumi.Input<string>; /** * The policy YAML of the rule */ rulesYaml: pulumi.Input<string>; }