1. Packages
  2. Datadog Provider
  3. API Docs
  4. CloudConfigurationRule
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.CloudConfigurationRule

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Datadog Cloud Configuration Rule resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const myrule = new datadog.CloudConfigurationRule("myrule", {
        name: "My cloud configuration rule",
        message: "Rule has triggered",
        enabled: true,
        policy: `package datadog
    
    import data.datadog.output as dd_output
    
    import future.keywords.contains
    import future.keywords.if
    import future.keywords.in
    
    eval(resource) = "skip" if {
        # Logic that evaluates to true if the resource should be skipped
        true
    } else = "pass" {
        # Logic that evaluates to true if the resource is compliant
        true
    } else = "fail" {
        # Logic that evaluates to true if the resource is not compliant
        true
    }
    
    # This part remains unchanged for all rules
    results contains result if {
        some resource in input.resources[input.main_resource_type]
        result := dd_output.format(resource, eval(resource))
    }
    `,
        resourceType: "aws_s3_bucket",
        relatedResourceTypes: [],
        severity: "high",
        groupBies: ["@resource"],
        notifications: ["@channel"],
        tags: ["some:tag"],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    myrule = datadog.CloudConfigurationRule("myrule",
        name="My cloud configuration rule",
        message="Rule has triggered",
        enabled=True,
        policy="""package datadog
    
    import data.datadog.output as dd_output
    
    import future.keywords.contains
    import future.keywords.if
    import future.keywords.in
    
    eval(resource) = "skip" if {
        # Logic that evaluates to true if the resource should be skipped
        true
    } else = "pass" {
        # Logic that evaluates to true if the resource is compliant
        true
    } else = "fail" {
        # Logic that evaluates to true if the resource is not compliant
        true
    }
    
    # This part remains unchanged for all rules
    results contains result if {
        some resource in input.resources[input.main_resource_type]
        result := dd_output.format(resource, eval(resource))
    }
    """,
        resource_type="aws_s3_bucket",
        related_resource_types=[],
        severity="high",
        group_bies=["@resource"],
        notifications=["@channel"],
        tags=["some:tag"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datadog.NewCloudConfigurationRule(ctx, "myrule", &datadog.CloudConfigurationRuleArgs{
    			Name:    pulumi.String("My cloud configuration rule"),
    			Message: pulumi.String("Rule has triggered"),
    			Enabled: pulumi.Bool(true),
    			Policy: pulumi.String(`package datadog
    
    import data.datadog.output as dd_output
    
    import future.keywords.contains
    import future.keywords.if
    import future.keywords.in
    
    eval(resource) = "skip" if {
        # Logic that evaluates to true if the resource should be skipped
        true
    } else = "pass" {
        # Logic that evaluates to true if the resource is compliant
        true
    } else = "fail" {
        # Logic that evaluates to true if the resource is not compliant
        true
    }
    
    # This part remains unchanged for all rules
    results contains result if {
        some resource in input.resources[input.main_resource_type]
        result := dd_output.format(resource, eval(resource))
    }
    `),
    			ResourceType:         pulumi.String("aws_s3_bucket"),
    			RelatedResourceTypes: pulumi.StringArray{},
    			Severity:             pulumi.String("high"),
    			GroupBies: pulumi.StringArray{
    				pulumi.String("@resource"),
    			},
    			Notifications: pulumi.StringArray{
    				pulumi.String("@channel"),
    			},
    			Tags: pulumi.StringArray{
    				pulumi.String("some:tag"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var myrule = new Datadog.CloudConfigurationRule("myrule", new()
        {
            Name = "My cloud configuration rule",
            Message = "Rule has triggered",
            Enabled = true,
            Policy = @"package datadog
    
    import data.datadog.output as dd_output
    
    import future.keywords.contains
    import future.keywords.if
    import future.keywords.in
    
    eval(resource) = ""skip"" if {
        # Logic that evaluates to true if the resource should be skipped
        true
    } else = ""pass"" {
        # Logic that evaluates to true if the resource is compliant
        true
    } else = ""fail"" {
        # Logic that evaluates to true if the resource is not compliant
        true
    }
    
    # This part remains unchanged for all rules
    results contains result if {
        some resource in input.resources[input.main_resource_type]
        result := dd_output.format(resource, eval(resource))
    }
    ",
            ResourceType = "aws_s3_bucket",
            RelatedResourceTypes = new[] {},
            Severity = "high",
            GroupBies = new[]
            {
                "@resource",
            },
            Notifications = new[]
            {
                "@channel",
            },
            Tags = new[]
            {
                "some:tag",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.CloudConfigurationRule;
    import com.pulumi.datadog.CloudConfigurationRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myrule = new CloudConfigurationRule("myrule", CloudConfigurationRuleArgs.builder()
                .name("My cloud configuration rule")
                .message("Rule has triggered")
                .enabled(true)
                .policy("""
    package datadog
    
    import data.datadog.output as dd_output
    
    import future.keywords.contains
    import future.keywords.if
    import future.keywords.in
    
    eval(resource) = "skip" if {
        # Logic that evaluates to true if the resource should be skipped
        true
    } else = "pass" {
        # Logic that evaluates to true if the resource is compliant
        true
    } else = "fail" {
        # Logic that evaluates to true if the resource is not compliant
        true
    }
    
    # This part remains unchanged for all rules
    results contains result if {
        some resource in input.resources[input.main_resource_type]
        result := dd_output.format(resource, eval(resource))
    }
                """)
                .resourceType("aws_s3_bucket")
                .relatedResourceTypes()
                .severity("high")
                .groupBies("@resource")
                .notifications("@channel")
                .tags("some:tag")
                .build());
    
        }
    }
    
    resources:
      myrule:
        type: datadog:CloudConfigurationRule
        properties:
          name: My cloud configuration rule
          message: Rule has triggered
          enabled: true
          policy: |
            package datadog
    
            import data.datadog.output as dd_output
    
            import future.keywords.contains
            import future.keywords.if
            import future.keywords.in
    
            eval(resource) = "skip" if {
                # Logic that evaluates to true if the resource should be skipped
                true
            } else = "pass" {
                # Logic that evaluates to true if the resource is compliant
                true
            } else = "fail" {
                # Logic that evaluates to true if the resource is not compliant
                true
            }
    
            # This part remains unchanged for all rules
            results contains result if {
                some resource in input.resources[input.main_resource_type]
                result := dd_output.format(resource, eval(resource))
            }        
          resourceType: aws_s3_bucket
          relatedResourceTypes: []
          severity: high
          groupBies:
            - '@resource'
          notifications:
            - '@channel'
          tags:
            - some:tag
    

    Create CloudConfigurationRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudConfigurationRule(name: string, args: CloudConfigurationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CloudConfigurationRule(resource_name: str,
                               args: CloudConfigurationRuleArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudConfigurationRule(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               enabled: Optional[bool] = None,
                               message: Optional[str] = None,
                               name: Optional[str] = None,
                               policy: Optional[str] = None,
                               resource_type: Optional[str] = None,
                               severity: Optional[str] = None,
                               filters: Optional[Sequence[CloudConfigurationRuleFilterArgs]] = None,
                               group_bies: Optional[Sequence[str]] = None,
                               notifications: Optional[Sequence[str]] = None,
                               related_resource_types: Optional[Sequence[str]] = None,
                               tags: Optional[Sequence[str]] = None)
    func NewCloudConfigurationRule(ctx *Context, name string, args CloudConfigurationRuleArgs, opts ...ResourceOption) (*CloudConfigurationRule, error)
    public CloudConfigurationRule(string name, CloudConfigurationRuleArgs args, CustomResourceOptions? opts = null)
    public CloudConfigurationRule(String name, CloudConfigurationRuleArgs args)
    public CloudConfigurationRule(String name, CloudConfigurationRuleArgs args, CustomResourceOptions options)
    
    type: datadog:CloudConfigurationRule
    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 CloudConfigurationRuleArgs
    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 CloudConfigurationRuleArgs
    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 CloudConfigurationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudConfigurationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudConfigurationRuleArgs
    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 cloudConfigurationRuleResource = new Datadog.CloudConfigurationRule("cloudConfigurationRuleResource", new()
    {
        Enabled = false,
        Message = "string",
        Name = "string",
        Policy = "string",
        ResourceType = "string",
        Severity = "string",
        Filters = new[]
        {
            new Datadog.Inputs.CloudConfigurationRuleFilterArgs
            {
                Action = "string",
                Query = "string",
            },
        },
        GroupBies = new[]
        {
            "string",
        },
        Notifications = new[]
        {
            "string",
        },
        RelatedResourceTypes = new[]
        {
            "string",
        },
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewCloudConfigurationRule(ctx, "cloudConfigurationRuleResource", &datadog.CloudConfigurationRuleArgs{
    	Enabled:      pulumi.Bool(false),
    	Message:      pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Policy:       pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    	Severity:     pulumi.String("string"),
    	Filters: datadog.CloudConfigurationRuleFilterArray{
    		&datadog.CloudConfigurationRuleFilterArgs{
    			Action: pulumi.String("string"),
    			Query:  pulumi.String("string"),
    		},
    	},
    	GroupBies: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Notifications: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RelatedResourceTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var cloudConfigurationRuleResource = new CloudConfigurationRule("cloudConfigurationRuleResource", CloudConfigurationRuleArgs.builder()
        .enabled(false)
        .message("string")
        .name("string")
        .policy("string")
        .resourceType("string")
        .severity("string")
        .filters(CloudConfigurationRuleFilterArgs.builder()
            .action("string")
            .query("string")
            .build())
        .groupBies("string")
        .notifications("string")
        .relatedResourceTypes("string")
        .tags("string")
        .build());
    
    cloud_configuration_rule_resource = datadog.CloudConfigurationRule("cloudConfigurationRuleResource",
        enabled=False,
        message="string",
        name="string",
        policy="string",
        resource_type="string",
        severity="string",
        filters=[{
            "action": "string",
            "query": "string",
        }],
        group_bies=["string"],
        notifications=["string"],
        related_resource_types=["string"],
        tags=["string"])
    
    const cloudConfigurationRuleResource = new datadog.CloudConfigurationRule("cloudConfigurationRuleResource", {
        enabled: false,
        message: "string",
        name: "string",
        policy: "string",
        resourceType: "string",
        severity: "string",
        filters: [{
            action: "string",
            query: "string",
        }],
        groupBies: ["string"],
        notifications: ["string"],
        relatedResourceTypes: ["string"],
        tags: ["string"],
    });
    
    type: datadog:CloudConfigurationRule
    properties:
        enabled: false
        filters:
            - action: string
              query: string
        groupBies:
            - string
        message: string
        name: string
        notifications:
            - string
        policy: string
        relatedResourceTypes:
            - string
        resourceType: string
        severity: string
        tags:
            - string
    

    CloudConfigurationRule 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 CloudConfigurationRule resource accepts the following input properties:

    Enabled bool
    Whether the cloud configuration rule is enabled.
    Message string
    The message associated to the rule that will be shown in findings and signals.
    Name string
    The name of the cloud configuration rule.
    Policy string
    Policy written in Rego format.
    ResourceType string
    Main resource type to be checked by the rule.
    Severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    Filters List<CloudConfigurationRuleFilter>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    GroupBies List<string>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    Notifications List<string>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    RelatedResourceTypes List<string>
    Related resource types to be checked by the rule. Defaults to empty list.
    Tags List<string>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    Enabled bool
    Whether the cloud configuration rule is enabled.
    Message string
    The message associated to the rule that will be shown in findings and signals.
    Name string
    The name of the cloud configuration rule.
    Policy string
    Policy written in Rego format.
    ResourceType string
    Main resource type to be checked by the rule.
    Severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    Filters []CloudConfigurationRuleFilterArgs
    Additional queries to filter matched events before they are processed. Defaults to empty list
    GroupBies []string
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    Notifications []string
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    RelatedResourceTypes []string
    Related resource types to be checked by the rule. Defaults to empty list.
    Tags []string
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled Boolean
    Whether the cloud configuration rule is enabled.
    message String
    The message associated to the rule that will be shown in findings and signals.
    name String
    The name of the cloud configuration rule.
    policy String
    Policy written in Rego format.
    resourceType String
    Main resource type to be checked by the rule.
    severity String
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    filters List<CloudConfigurationRuleFilter>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies List<String>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    notifications List<String>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    relatedResourceTypes List<String>
    Related resource types to be checked by the rule. Defaults to empty list.
    tags List<String>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled boolean
    Whether the cloud configuration rule is enabled.
    message string
    The message associated to the rule that will be shown in findings and signals.
    name string
    The name of the cloud configuration rule.
    policy string
    Policy written in Rego format.
    resourceType string
    Main resource type to be checked by the rule.
    severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    filters CloudConfigurationRuleFilter[]
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies string[]
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    notifications string[]
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    relatedResourceTypes string[]
    Related resource types to be checked by the rule. Defaults to empty list.
    tags string[]
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled bool
    Whether the cloud configuration rule is enabled.
    message str
    The message associated to the rule that will be shown in findings and signals.
    name str
    The name of the cloud configuration rule.
    policy str
    Policy written in Rego format.
    resource_type str
    Main resource type to be checked by the rule.
    severity str
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    filters Sequence[CloudConfigurationRuleFilterArgs]
    Additional queries to filter matched events before they are processed. Defaults to empty list
    group_bies Sequence[str]
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    notifications Sequence[str]
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    related_resource_types Sequence[str]
    Related resource types to be checked by the rule. Defaults to empty list.
    tags Sequence[str]
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled Boolean
    Whether the cloud configuration rule is enabled.
    message String
    The message associated to the rule that will be shown in findings and signals.
    name String
    The name of the cloud configuration rule.
    policy String
    Policy written in Rego format.
    resourceType String
    Main resource type to be checked by the rule.
    severity String
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    filters List<Property Map>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies List<String>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    notifications List<String>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    relatedResourceTypes List<String>
    Related resource types to be checked by the rule. Defaults to empty list.
    tags List<String>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudConfigurationRule 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 CloudConfigurationRule Resource

    Get an existing CloudConfigurationRule 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?: CloudConfigurationRuleState, opts?: CustomResourceOptions): CloudConfigurationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            filters: Optional[Sequence[CloudConfigurationRuleFilterArgs]] = None,
            group_bies: Optional[Sequence[str]] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            notifications: Optional[Sequence[str]] = None,
            policy: Optional[str] = None,
            related_resource_types: Optional[Sequence[str]] = None,
            resource_type: Optional[str] = None,
            severity: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> CloudConfigurationRule
    func GetCloudConfigurationRule(ctx *Context, name string, id IDInput, state *CloudConfigurationRuleState, opts ...ResourceOption) (*CloudConfigurationRule, error)
    public static CloudConfigurationRule Get(string name, Input<string> id, CloudConfigurationRuleState? state, CustomResourceOptions? opts = null)
    public static CloudConfigurationRule get(String name, Output<String> id, CloudConfigurationRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Enabled bool
    Whether the cloud configuration rule is enabled.
    Filters List<CloudConfigurationRuleFilter>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    GroupBies List<string>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    Message string
    The message associated to the rule that will be shown in findings and signals.
    Name string
    The name of the cloud configuration rule.
    Notifications List<string>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    Policy string
    Policy written in Rego format.
    RelatedResourceTypes List<string>
    Related resource types to be checked by the rule. Defaults to empty list.
    ResourceType string
    Main resource type to be checked by the rule.
    Severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    Tags List<string>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    Enabled bool
    Whether the cloud configuration rule is enabled.
    Filters []CloudConfigurationRuleFilterArgs
    Additional queries to filter matched events before they are processed. Defaults to empty list
    GroupBies []string
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    Message string
    The message associated to the rule that will be shown in findings and signals.
    Name string
    The name of the cloud configuration rule.
    Notifications []string
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    Policy string
    Policy written in Rego format.
    RelatedResourceTypes []string
    Related resource types to be checked by the rule. Defaults to empty list.
    ResourceType string
    Main resource type to be checked by the rule.
    Severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    Tags []string
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled Boolean
    Whether the cloud configuration rule is enabled.
    filters List<CloudConfigurationRuleFilter>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies List<String>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    message String
    The message associated to the rule that will be shown in findings and signals.
    name String
    The name of the cloud configuration rule.
    notifications List<String>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    policy String
    Policy written in Rego format.
    relatedResourceTypes List<String>
    Related resource types to be checked by the rule. Defaults to empty list.
    resourceType String
    Main resource type to be checked by the rule.
    severity String
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    tags List<String>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled boolean
    Whether the cloud configuration rule is enabled.
    filters CloudConfigurationRuleFilter[]
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies string[]
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    message string
    The message associated to the rule that will be shown in findings and signals.
    name string
    The name of the cloud configuration rule.
    notifications string[]
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    policy string
    Policy written in Rego format.
    relatedResourceTypes string[]
    Related resource types to be checked by the rule. Defaults to empty list.
    resourceType string
    Main resource type to be checked by the rule.
    severity string
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    tags string[]
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled bool
    Whether the cloud configuration rule is enabled.
    filters Sequence[CloudConfigurationRuleFilterArgs]
    Additional queries to filter matched events before they are processed. Defaults to empty list
    group_bies Sequence[str]
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    message str
    The message associated to the rule that will be shown in findings and signals.
    name str
    The name of the cloud configuration rule.
    notifications Sequence[str]
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    policy str
    Policy written in Rego format.
    related_resource_types Sequence[str]
    Related resource types to be checked by the rule. Defaults to empty list.
    resource_type str
    Main resource type to be checked by the rule.
    severity str
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    tags Sequence[str]
    Tags of the rule, propagated to findings and signals. Defaults to empty list.
    enabled Boolean
    Whether the cloud configuration rule is enabled.
    filters List<Property Map>
    Additional queries to filter matched events before they are processed. Defaults to empty list
    groupBies List<String>
    Defaults to empty list. This function will be deprecated soon. Use the notification rules function instead. Fields to group by when generating signals, e.g. @resource.
    message String
    The message associated to the rule that will be shown in findings and signals.
    name String
    The name of the cloud configuration rule.
    notifications List<String>
    This function will be deprecated soon. Use the notification rules function instead. Notification targets for signals. Defaults to empty list.
    policy String
    Policy written in Rego format.
    relatedResourceTypes List<String>
    Related resource types to be checked by the rule. Defaults to empty list.
    resourceType String
    Main resource type to be checked by the rule.
    severity String
    Severity of the rule and associated signals. Valid values are info, low, medium, high, critical.
    tags List<String>
    Tags of the rule, propagated to findings and signals. Defaults to empty list.

    Supporting Types

    CloudConfigurationRuleFilter, CloudConfigurationRuleFilterArgs

    Action string
    The type of filtering action. Valid values are require, suppress.
    Query string
    Query for selecting logs to apply the filtering action.
    Action string
    The type of filtering action. Valid values are require, suppress.
    Query string
    Query for selecting logs to apply the filtering action.
    action String
    The type of filtering action. Valid values are require, suppress.
    query String
    Query for selecting logs to apply the filtering action.
    action string
    The type of filtering action. Valid values are require, suppress.
    query string
    Query for selecting logs to apply the filtering action.
    action str
    The type of filtering action. Valid values are require, suppress.
    query str
    Query for selecting logs to apply the filtering action.
    action String
    The type of filtering action. Valid values are require, suppress.
    query String
    Query for selecting logs to apply the filtering action.

    Import

    Security monitoring rules can be imported using ID, e.g.

    $ pulumi import datadog:index/cloudConfigurationRule:CloudConfigurationRule my_rule m0o-hto-lkb
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi