1. Packages
  2. Datadog
  3. API Docs
  4. SensitiveDataScannerGroupOrder
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

datadog.SensitiveDataScannerGroupOrder

Explore with Pulumi AI

datadog logo
Datadog v4.28.1 published on Monday, Jun 24, 2024 by Pulumi

    Provides a Datadog Sensitive Data Scanner Group Order API resource. This can be used to manage the order of Datadog Sensitive Data Scanner Groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new sensitive_data_scanner_group_order resource
    const mygrouporder = new datadog.SensitiveDataScannerGroupOrder("mygrouporder", {groupIds: [
        "group-id-1",
        "group-id-2",
        "group-id-3",
    ]});
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new sensitive_data_scanner_group_order resource
    mygrouporder = datadog.SensitiveDataScannerGroupOrder("mygrouporder", group_ids=[
        "group-id-1",
        "group-id-2",
        "group-id-3",
    ])
    
    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 {
    		// Create new sensitive_data_scanner_group_order resource
    		_, err := datadog.NewSensitiveDataScannerGroupOrder(ctx, "mygrouporder", &datadog.SensitiveDataScannerGroupOrderArgs{
    			GroupIds: pulumi.StringArray{
    				pulumi.String("group-id-1"),
    				pulumi.String("group-id-2"),
    				pulumi.String("group-id-3"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new sensitive_data_scanner_group_order resource
        var mygrouporder = new Datadog.SensitiveDataScannerGroupOrder("mygrouporder", new()
        {
            GroupIds = new[]
            {
                "group-id-1",
                "group-id-2",
                "group-id-3",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.SensitiveDataScannerGroupOrder;
    import com.pulumi.datadog.SensitiveDataScannerGroupOrderArgs;
    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) {
            // Create new sensitive_data_scanner_group_order resource
            var mygrouporder = new SensitiveDataScannerGroupOrder("mygrouporder", SensitiveDataScannerGroupOrderArgs.builder()
                .groupIds(            
                    "group-id-1",
                    "group-id-2",
                    "group-id-3")
                .build());
    
        }
    }
    
    resources:
      # Create new sensitive_data_scanner_group_order resource
      mygrouporder:
        type: datadog:SensitiveDataScannerGroupOrder
        properties:
          groupIds:
            - group-id-1
            - group-id-2
            - group-id-3
    

    Create SensitiveDataScannerGroupOrder Resource

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

    Constructor syntax

    new SensitiveDataScannerGroupOrder(name: string, args: SensitiveDataScannerGroupOrderArgs, opts?: CustomResourceOptions);
    @overload
    def SensitiveDataScannerGroupOrder(resource_name: str,
                                       args: SensitiveDataScannerGroupOrderArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SensitiveDataScannerGroupOrder(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       group_ids: Optional[Sequence[str]] = None)
    func NewSensitiveDataScannerGroupOrder(ctx *Context, name string, args SensitiveDataScannerGroupOrderArgs, opts ...ResourceOption) (*SensitiveDataScannerGroupOrder, error)
    public SensitiveDataScannerGroupOrder(string name, SensitiveDataScannerGroupOrderArgs args, CustomResourceOptions? opts = null)
    public SensitiveDataScannerGroupOrder(String name, SensitiveDataScannerGroupOrderArgs args)
    public SensitiveDataScannerGroupOrder(String name, SensitiveDataScannerGroupOrderArgs args, CustomResourceOptions options)
    
    type: datadog:SensitiveDataScannerGroupOrder
    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 SensitiveDataScannerGroupOrderArgs
    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 SensitiveDataScannerGroupOrderArgs
    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 SensitiveDataScannerGroupOrderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SensitiveDataScannerGroupOrderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SensitiveDataScannerGroupOrderArgs
    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 sensitiveDataScannerGroupOrderResource = new Datadog.SensitiveDataScannerGroupOrder("sensitiveDataScannerGroupOrderResource", new()
    {
        GroupIds = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewSensitiveDataScannerGroupOrder(ctx, "sensitiveDataScannerGroupOrderResource", &datadog.SensitiveDataScannerGroupOrderArgs{
    	GroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var sensitiveDataScannerGroupOrderResource = new SensitiveDataScannerGroupOrder("sensitiveDataScannerGroupOrderResource", SensitiveDataScannerGroupOrderArgs.builder()
        .groupIds("string")
        .build());
    
    sensitive_data_scanner_group_order_resource = datadog.SensitiveDataScannerGroupOrder("sensitiveDataScannerGroupOrderResource", group_ids=["string"])
    
    const sensitiveDataScannerGroupOrderResource = new datadog.SensitiveDataScannerGroupOrder("sensitiveDataScannerGroupOrderResource", {groupIds: ["string"]});
    
    type: datadog:SensitiveDataScannerGroupOrder
    properties:
        groupIds:
            - string
    

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

    GroupIds List<string>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    GroupIds []string
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds List<String>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds string[]
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    group_ids Sequence[str]
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds List<String>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.

    Outputs

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

    Get an existing SensitiveDataScannerGroupOrder 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?: SensitiveDataScannerGroupOrderState, opts?: CustomResourceOptions): SensitiveDataScannerGroupOrder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_ids: Optional[Sequence[str]] = None) -> SensitiveDataScannerGroupOrder
    func GetSensitiveDataScannerGroupOrder(ctx *Context, name string, id IDInput, state *SensitiveDataScannerGroupOrderState, opts ...ResourceOption) (*SensitiveDataScannerGroupOrder, error)
    public static SensitiveDataScannerGroupOrder Get(string name, Input<string> id, SensitiveDataScannerGroupOrderState? state, CustomResourceOptions? opts = null)
    public static SensitiveDataScannerGroupOrder get(String name, Output<String> id, SensitiveDataScannerGroupOrderState 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:
    GroupIds List<string>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    GroupIds []string
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds List<String>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds string[]
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    group_ids Sequence[str]
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.
    groupIds List<String>
    The list of Sensitive Data Scanner group IDs, in order. Logs are tested against the query filter of each index one by one following the order of the list.

    Import

    $ pulumi import datadog:index/sensitiveDataScannerGroupOrder:SensitiveDataScannerGroupOrder mygrouporder order
    

    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.28.1 published on Monday, Jun 24, 2024 by Pulumi