datadog.CsmThreatsPolicy
Explore with Pulumi AI
Provides a Datadog CSM Threats policy API resource.
Create CsmThreatsPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CsmThreatsPolicy(name: string, args: CsmThreatsPolicyArgs, opts?: CustomResourceOptions);
@overload
def CsmThreatsPolicy(resource_name: str,
args: CsmThreatsPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CsmThreatsPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
host_tags_lists: Optional[Sequence[Sequence[str]]] = None,
tags: Optional[Sequence[str]] = None)
func NewCsmThreatsPolicy(ctx *Context, name string, args CsmThreatsPolicyArgs, opts ...ResourceOption) (*CsmThreatsPolicy, error)
public CsmThreatsPolicy(string name, CsmThreatsPolicyArgs args, CustomResourceOptions? opts = null)
public CsmThreatsPolicy(String name, CsmThreatsPolicyArgs args)
public CsmThreatsPolicy(String name, CsmThreatsPolicyArgs args, CustomResourceOptions options)
type: datadog:CsmThreatsPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CsmThreatsPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CsmThreatsPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CsmThreatsPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CsmThreatsPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CsmThreatsPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var csmThreatsPolicyResource = new Datadog.CsmThreatsPolicy("csmThreatsPolicyResource", new()
{
Name = "string",
Description = "string",
Enabled = false,
HostTagsLists = new[]
{
new[]
{
"string",
},
},
Tags = new[]
{
"string",
},
});
example, err := datadog.NewCsmThreatsPolicy(ctx, "csmThreatsPolicyResource", &datadog.CsmThreatsPolicyArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
HostTagsLists: pulumi.StringArrayArray{
pulumi.StringArray{
pulumi.String("string"),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var csmThreatsPolicyResource = new CsmThreatsPolicy("csmThreatsPolicyResource", CsmThreatsPolicyArgs.builder()
.name("string")
.description("string")
.enabled(false)
.hostTagsLists("string")
.tags("string")
.build());
csm_threats_policy_resource = datadog.CsmThreatsPolicy("csmThreatsPolicyResource",
name="string",
description="string",
enabled=False,
host_tags_lists=[["string"]],
tags=["string"])
const csmThreatsPolicyResource = new datadog.CsmThreatsPolicy("csmThreatsPolicyResource", {
name: "string",
description: "string",
enabled: false,
hostTagsLists: [["string"]],
tags: ["string"],
});
type: datadog:CsmThreatsPolicy
properties:
description: string
enabled: false
hostTagsLists:
- - string
name: string
tags:
- string
CsmThreatsPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CsmThreatsPolicy resource accepts the following input properties:
- Name string
- The name of the policy.
- Description string
- A description for the policy.
- Enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - List<Immutable
Array<string>> - Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- List<string>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- Name string
- The name of the policy.
- Description string
- A description for the policy.
- Enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - [][]string
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- []string
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- name String
- The name of the policy.
- description String
- A description for the policy.
- enabled Boolean
- Indicates whether the policy is enabled. Defaults to
false
. - List<List<String>>
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- List<String>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- name string
- The name of the policy.
- description string
- A description for the policy.
- enabled boolean
- Indicates whether the policy is enabled. Defaults to
false
. - string[][]
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- string[]
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- name str
- The name of the policy.
- description str
- A description for the policy.
- enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - Sequence[Sequence[str]]
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- Sequence[str]
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- name String
- The name of the policy.
- description String
- A description for the policy.
- enabled Boolean
- Indicates whether the policy is enabled. Defaults to
false
. - List<List<String>>
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- List<String>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the CsmThreatsPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CsmThreatsPolicy Resource
Get an existing CsmThreatsPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CsmThreatsPolicyState, opts?: CustomResourceOptions): CsmThreatsPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
host_tags_lists: Optional[Sequence[Sequence[str]]] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> CsmThreatsPolicy
func GetCsmThreatsPolicy(ctx *Context, name string, id IDInput, state *CsmThreatsPolicyState, opts ...ResourceOption) (*CsmThreatsPolicy, error)
public static CsmThreatsPolicy Get(string name, Input<string> id, CsmThreatsPolicyState? state, CustomResourceOptions? opts = null)
public static CsmThreatsPolicy get(String name, Output<String> id, CsmThreatsPolicyState state, CustomResourceOptions options)
resources: _: type: datadog:CsmThreatsPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- A description for the policy.
- Enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - List<Immutable
Array<string>> - Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- Name string
- The name of the policy.
- List<string>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- Description string
- A description for the policy.
- Enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - [][]string
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- Name string
- The name of the policy.
- []string
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- description String
- A description for the policy.
- enabled Boolean
- Indicates whether the policy is enabled. Defaults to
false
. - List<List<String>>
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- name String
- The name of the policy.
- List<String>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- description string
- A description for the policy.
- enabled boolean
- Indicates whether the policy is enabled. Defaults to
false
. - string[][]
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- name string
- The name of the policy.
- string[]
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- description str
- A description for the policy.
- enabled bool
- Indicates whether the policy is enabled. Defaults to
false
. - Sequence[Sequence[str]]
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- name str
- The name of the policy.
- Sequence[str]
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
- description String
- A description for the policy.
- enabled Boolean
- Indicates whether the policy is enabled. Defaults to
false
. - List<List<String>>
- Host tags that define where the policy is deployed. Inner values are ANDed, outer arrays are ORed.
- name String
- The name of the policy.
- List<String>
- Host tags that define where the policy is deployed. Deprecated, use hosttagslists instead.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.