UNPKG

@crowdstrike/pulumi

Version:

A Pulumi package for creating and managing CrowdStrike resources. Based on terraform-provider-crowdstrike: version v0.0.4

102 lines (101 loc) 4.7 kB
import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you set the precedence of Prevention Policies based on the order of IDs. * * ## API Scopes * * The following API scopes are required: * * - Prevention policies | Read & Write * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as crowdstrike from "@crowdstrike/pulumi"; * * const example = new crowdstrike.PreventionPolicyPrecedence("example", { * ids: [ * "a1j09y3yq0wnrpb5o6jlij9e4f40k6lq", * "2asia54xti93bg0jbr5hfpqqbhxbyeoa", * "xuzq8hs1uyc2s7zdar3fli0shiyl22vc", * ], * platformName: "linux", * enforcement: "dynamic", * }); * export const preventionPolicyPrecedence = example; * ``` */ export declare class PreventionPolicyPrecedence extends pulumi.CustomResource { /** * Get an existing PreventionPolicyPrecedence 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?: PreventionPolicyPrecedenceState, opts?: pulumi.CustomResourceOptions): PreventionPolicyPrecedence; /** * Returns true if the given object is an instance of PreventionPolicyPrecedence. 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 PreventionPolicyPrecedence; /** * The enforcement type for this resource. `strict` requires all non-default prevention policy ids for platform to be provided. `dynamic` will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in `ids` will retain their current ordering after the managed ids. */ readonly enforcement: pulumi.Output<string>; /** * The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest. */ readonly ids: pulumi.Output<string[]>; readonly lastUpdated: pulumi.Output<string>; /** * That platform of the prevention policies. (Windows, Mac, Linux) */ readonly platformName: pulumi.Output<string>; /** * Create a PreventionPolicyPrecedence 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: PreventionPolicyPrecedenceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PreventionPolicyPrecedence resources. */ export interface PreventionPolicyPrecedenceState { /** * The enforcement type for this resource. `strict` requires all non-default prevention policy ids for platform to be provided. `dynamic` will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in `ids` will retain their current ordering after the managed ids. */ enforcement?: pulumi.Input<string>; /** * The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest. */ ids?: pulumi.Input<pulumi.Input<string>[]>; lastUpdated?: pulumi.Input<string>; /** * That platform of the prevention policies. (Windows, Mac, Linux) */ platformName?: pulumi.Input<string>; } /** * The set of arguments for constructing a PreventionPolicyPrecedence resource. */ export interface PreventionPolicyPrecedenceArgs { /** * The enforcement type for this resource. `strict` requires all non-default prevention policy ids for platform to be provided. `dynamic` will ensure the provided policies have precedence over others. When using dynamic, policy ids not included in `ids` will retain their current ordering after the managed ids. */ enforcement: pulumi.Input<string>; /** * The policy ids in order. The first ID specified will have the highest precedence and the last ID specified will have the lowest. */ ids: pulumi.Input<pulumi.Input<string>[]>; /** * That platform of the prevention policies. (Windows, Mac, Linux) */ platformName: pulumi.Input<string>; }