import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing a Harness Chaos Security Governance Rule * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // K8s Rule * const example = new harness.chaos.SecurityGovernanceRule("example", { * orgId: "", * projectId: "", * name: "", * description: "", * isEnabled: true, * conditionIds: [""], * userGroupIds: ["_project_all_users"], * tags: [ * "", * "", * ], * timeWindows: [{ * timeZone: "UTC", * startTime: 1711238400000, * duration: "24h", * recurrence: { * type: "Daily", * until: -1, * }, * }], * }); * // Linux Rule * const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", { * orgId: "", * projectId: "", * name: "", * description: "", * isEnabled: true, * conditionIds: [""], * userGroupIds: ["_project_all_users"], * tags: [ * "", * "", * ], * timeWindows: [{ * timeZone: "UTC", * startTime: 1711238400000, * duration: "24h", * recurrence: { * type: "Daily", * until: -1, * }, * }], * }); * // Windows Rule * const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", { * orgId: "", * projectId: "", * name: "", * description: "", * isEnabled: true, * conditionIds: [""], * userGroupIds: ["_project_all_users"], * tags: [ * "", * "", * ], * timeWindows: [{ * timeZone: "UTC", * startTime: 1711238400000, * duration: "24h", * recurrence: { * type: "Daily", * until: -1, * }, * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import Project level Chaos Security Governance Rule * * ```sh * $ pulumi import harness:chaos/securityGovernanceRule:SecurityGovernanceRule example org_id/project_id/rule_id * ``` */ export declare class SecurityGovernanceRule extends pulumi.CustomResource { /** * Get an existing SecurityGovernanceRule 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, state?: SecurityGovernanceRuleState, opts?: pulumi.CustomResourceOptions): SecurityGovernanceRule; /** * Returns true if the given object is an instance of SecurityGovernanceRule. 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 SecurityGovernanceRule; /** * List of condition IDs associated with this rule */ readonly conditionIds: pulumi.Output; /** * Description of the security governance rule */ readonly description: pulumi.Output; /** * Whether the rule is enabled */ readonly isEnabled: pulumi.Output; /** * Name of the security governance rule */ readonly name: pulumi.Output; /** * The organization ID of the security governance rule */ readonly orgId: pulumi.Output; /** * The project ID of the security governance rule */ readonly projectId: pulumi.Output; /** * Tags for the security governance rule */ readonly tags: pulumi.Output; readonly timeWindows: pulumi.Output; /** * List of user group IDs associated with this rule */ readonly userGroupIds: pulumi.Output; /** * Create a SecurityGovernanceRule 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: SecurityGovernanceRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityGovernanceRule resources. */ export interface SecurityGovernanceRuleState { /** * List of condition IDs associated with this rule */ conditionIds?: pulumi.Input[] | undefined>; /** * Description of the security governance rule */ description?: pulumi.Input; /** * Whether the rule is enabled */ isEnabled?: pulumi.Input; /** * Name of the security governance rule */ name?: pulumi.Input; /** * The organization ID of the security governance rule */ orgId?: pulumi.Input; /** * The project ID of the security governance rule */ projectId?: pulumi.Input; /** * Tags for the security governance rule */ tags?: pulumi.Input[] | undefined>; timeWindows?: pulumi.Input[] | undefined>; /** * List of user group IDs associated with this rule */ userGroupIds?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a SecurityGovernanceRule resource. */ export interface SecurityGovernanceRuleArgs { /** * List of condition IDs associated with this rule */ conditionIds: pulumi.Input[]>; /** * Description of the security governance rule */ description?: pulumi.Input; /** * Whether the rule is enabled */ isEnabled?: pulumi.Input; /** * Name of the security governance rule */ name?: pulumi.Input; /** * The organization ID of the security governance rule */ orgId: pulumi.Input; /** * The project ID of the security governance rule */ projectId: pulumi.Input; /** * Tags for the security governance rule */ tags?: pulumi.Input[] | undefined>; timeWindows: pulumi.Input[]>; /** * List of user group IDs associated with this rule */ userGroupIds?: pulumi.Input[] | undefined>; } //# sourceMappingURL=securityGovernanceRule.d.ts.map