1. Packages
  2. Datadog
  3. API Docs
  4. SensitiveDataScannerGroup
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.SensitiveDataScannerGroup

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Provides a Sensitive Data Scanner group resource.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var mygroup = new Datadog.SensitiveDataScannerGroup("mygroup", new()
        {
            Description = "A relevant description",
            Filter = new Datadog.Inputs.SensitiveDataScannerGroupFilterArgs
            {
                Query = "service:my-service",
            },
            IsEnabled = true,
            Name = "My new scanning group",
            ProductLists = new[]
            {
                "apm",
            },
        });
    
    });
    
    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.NewSensitiveDataScannerGroup(ctx, "mygroup", &datadog.SensitiveDataScannerGroupArgs{
    			Description: pulumi.String("A relevant description"),
    			Filter: &datadog.SensitiveDataScannerGroupFilterArgs{
    				Query: pulumi.String("service:my-service"),
    			},
    			IsEnabled: pulumi.Bool(true),
    			Name:      pulumi.String("My new scanning group"),
    			ProductLists: pulumi.StringArray{
    				pulumi.String("apm"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.SensitiveDataScannerGroup;
    import com.pulumi.datadog.SensitiveDataScannerGroupArgs;
    import com.pulumi.datadog.inputs.SensitiveDataScannerGroupFilterArgs;
    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 mygroup = new SensitiveDataScannerGroup("mygroup", SensitiveDataScannerGroupArgs.builder()        
                .description("A relevant description")
                .filter(SensitiveDataScannerGroupFilterArgs.builder()
                    .query("service:my-service")
                    .build())
                .isEnabled(true)
                .name("My new scanning group")
                .productLists("apm")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    mygroup = datadog.SensitiveDataScannerGroup("mygroup",
        description="A relevant description",
        filter=datadog.SensitiveDataScannerGroupFilterArgs(
            query="service:my-service",
        ),
        is_enabled=True,
        name="My new scanning group",
        product_lists=["apm"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const mygroup = new datadog.SensitiveDataScannerGroup("mygroup", {
        description: "A relevant description",
        filter: {
            query: "service:my-service",
        },
        isEnabled: true,
        name: "My new scanning group",
        productLists: ["apm"],
    });
    
    resources:
      mygroup:
        type: datadog:SensitiveDataScannerGroup
        properties:
          description: A relevant description
          filter:
            query: service:my-service
          isEnabled: true
          name: My new scanning group
          productLists:
            - apm
    

    Create SensitiveDataScannerGroup Resource

    new SensitiveDataScannerGroup(name: string, args: SensitiveDataScannerGroupArgs, opts?: CustomResourceOptions);
    @overload
    def SensitiveDataScannerGroup(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  description: Optional[str] = None,
                                  filter: Optional[SensitiveDataScannerGroupFilterArgs] = None,
                                  is_enabled: Optional[bool] = None,
                                  name: Optional[str] = None,
                                  product_lists: Optional[Sequence[str]] = None)
    @overload
    def SensitiveDataScannerGroup(resource_name: str,
                                  args: SensitiveDataScannerGroupArgs,
                                  opts: Optional[ResourceOptions] = None)
    func NewSensitiveDataScannerGroup(ctx *Context, name string, args SensitiveDataScannerGroupArgs, opts ...ResourceOption) (*SensitiveDataScannerGroup, error)
    public SensitiveDataScannerGroup(string name, SensitiveDataScannerGroupArgs args, CustomResourceOptions? opts = null)
    public SensitiveDataScannerGroup(String name, SensitiveDataScannerGroupArgs args)
    public SensitiveDataScannerGroup(String name, SensitiveDataScannerGroupArgs args, CustomResourceOptions options)
    
    type: datadog:SensitiveDataScannerGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SensitiveDataScannerGroupArgs
    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 SensitiveDataScannerGroupArgs
    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 SensitiveDataScannerGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SensitiveDataScannerGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SensitiveDataScannerGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SensitiveDataScannerGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SensitiveDataScannerGroup resource accepts the following input properties:

    Filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    IsEnabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    Name string

    Name of the Datadog scanning group.

    ProductLists List<string>

    List of products the scanning group applies.

    Description string

    Description of the Datadog scanning group.

    Filter SensitiveDataScannerGroupFilterArgs

    Filter object the scanning group applies.

    IsEnabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    Name string

    Name of the Datadog scanning group.

    ProductLists []string

    List of products the scanning group applies.

    Description string

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    isEnabled Boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name String

    Name of the Datadog scanning group.

    productLists List<String>

    List of products the scanning group applies.

    description String

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    isEnabled boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name string

    Name of the Datadog scanning group.

    productLists string[]

    List of products the scanning group applies.

    description string

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilterArgs

    Filter object the scanning group applies.

    is_enabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name str

    Name of the Datadog scanning group.

    product_lists Sequence[str]

    List of products the scanning group applies.

    description str

    Description of the Datadog scanning group.

    filter Property Map

    Filter object the scanning group applies.

    isEnabled Boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name String

    Name of the Datadog scanning group.

    productLists List<String>

    List of products the scanning group applies.

    description String

    Description of the Datadog scanning group.

    Outputs

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

    Get an existing SensitiveDataScannerGroup 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?: SensitiveDataScannerGroupState, opts?: CustomResourceOptions): SensitiveDataScannerGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            filter: Optional[SensitiveDataScannerGroupFilterArgs] = None,
            is_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            product_lists: Optional[Sequence[str]] = None) -> SensitiveDataScannerGroup
    func GetSensitiveDataScannerGroup(ctx *Context, name string, id IDInput, state *SensitiveDataScannerGroupState, opts ...ResourceOption) (*SensitiveDataScannerGroup, error)
    public static SensitiveDataScannerGroup Get(string name, Input<string> id, SensitiveDataScannerGroupState? state, CustomResourceOptions? opts = null)
    public static SensitiveDataScannerGroup get(String name, Output<String> id, SensitiveDataScannerGroupState 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:
    Description string

    Description of the Datadog scanning group.

    Filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    IsEnabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    Name string

    Name of the Datadog scanning group.

    ProductLists List<string>

    List of products the scanning group applies.

    Description string

    Description of the Datadog scanning group.

    Filter SensitiveDataScannerGroupFilterArgs

    Filter object the scanning group applies.

    IsEnabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    Name string

    Name of the Datadog scanning group.

    ProductLists []string

    List of products the scanning group applies.

    description String

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    isEnabled Boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name String

    Name of the Datadog scanning group.

    productLists List<String>

    List of products the scanning group applies.

    description string

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilter

    Filter object the scanning group applies.

    isEnabled boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name string

    Name of the Datadog scanning group.

    productLists string[]

    List of products the scanning group applies.

    description str

    Description of the Datadog scanning group.

    filter SensitiveDataScannerGroupFilterArgs

    Filter object the scanning group applies.

    is_enabled bool

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name str

    Name of the Datadog scanning group.

    product_lists Sequence[str]

    List of products the scanning group applies.

    description String

    Description of the Datadog scanning group.

    filter Property Map

    Filter object the scanning group applies.

    isEnabled Boolean

    Whether or not the scanning group is enabled. If the group doesn't contain any rule or if all the rules in it are disabled, the group is force-disabled by our backend

    name String

    Name of the Datadog scanning group.

    productLists List<String>

    List of products the scanning group applies.

    Supporting Types

    SensitiveDataScannerGroupFilter, SensitiveDataScannerGroupFilterArgs

    Query string

    Query to filter the events.

    Query string

    Query to filter the events.

    query String

    Query to filter the events.

    query string

    Query to filter the events.

    query str

    Query to filter the events.

    query String

    Query to filter the events.

    Import

     $ pulumi import datadog:index/sensitiveDataScannerGroup:SensitiveDataScannerGroup new_list ""
    

    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.23.0 published on Wednesday, Sep 27, 2023 by Pulumi