import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog Workload Protection (CSM Threats) policy API resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const myPolicy = new datadog.CsmThreatsPolicy("my_policy", { * name: "my_policy", * description: "My policy", * enabled: true, * hostTagsLists: [ * [ * "env:prod", * "team:backend", * ], * [ * "env:prod", * "team:frontend", * ], * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * CSM Policies can be imported using IDs. For example: * * ```sh * $ pulumi import datadog:index/csmThreatsPolicy:CsmThreatsPolicy my_policy jm4-lwh-8cs * ``` */ export declare class CsmThreatsPolicy extends pulumi.CustomResource { /** * Get an existing CsmThreatsPolicy 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?: CsmThreatsPolicyState, opts?: pulumi.CustomResourceOptions): CsmThreatsPolicy; /** * Returns true if the given object is an instance of CsmThreatsPolicy. 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 CsmThreatsPolicy; /** * A description for the policy. */ readonly description: pulumi.Output; /** * Indicates whether the policy is enabled. Defaults to `false`. */ readonly enabled: pulumi.Output; /** * Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed. */ readonly hostTagsLists: pulumi.Output; /** * The name of the policy. */ readonly name: pulumi.Output; /** * Host tags that define where the policy is deployed. Deprecated, use host*tags*lists instead. */ readonly tags: pulumi.Output; /** * Create a CsmThreatsPolicy 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: CsmThreatsPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CsmThreatsPolicy resources. */ export interface CsmThreatsPolicyState { /** * A description for the policy. */ description?: pulumi.Input; /** * Indicates whether the policy is enabled. Defaults to `false`. */ enabled?: pulumi.Input; /** * Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed. */ hostTagsLists?: pulumi.Input[]>[]>; /** * The name of the policy. */ name?: pulumi.Input; /** * Host tags that define where the policy is deployed. Deprecated, use host*tags*lists instead. */ tags?: pulumi.Input[]>; } /** * The set of arguments for constructing a CsmThreatsPolicy resource. */ export interface CsmThreatsPolicyArgs { /** * A description for the policy. */ description?: pulumi.Input; /** * Indicates whether the policy is enabled. Defaults to `false`. */ enabled?: pulumi.Input; /** * Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed. */ hostTagsLists?: pulumi.Input[]>[]>; /** * The name of the policy. */ name: pulumi.Input; /** * Host tags that define where the policy is deployed. Deprecated, use host*tags*lists instead. */ tags?: pulumi.Input[]>; }