1. Packages
  2. Datadog
  3. API Docs
  4. ApmRetentionFilterOrder
Datadog v4.28.0 published on Tuesday, Apr 23, 2024 by Pulumi

datadog.ApmRetentionFilterOrder

Explore with Pulumi AI

datadog logo
Datadog v4.28.0 published on Tuesday, Apr 23, 2024 by Pulumi

    Provides a Datadog APM Retention Filters API resource, which is used to manage Datadog APM retention filters order.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.ApmRetentionFilter;
    import com.pulumi.datadog.ApmRetentionFilterArgs;
    import com.pulumi.datadog.ApmRetentionFilterOrder;
    import com.pulumi.datadog.ApmRetentionFilterOrderArgs;
    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 APM retention filter
            var foo = new ApmRetentionFilter("foo", ApmRetentionFilterArgs.builder()        
                .name("Sample order")
                .rate("1.0")
                .filter(ApmRetentionFilterFilterArgs.builder()
                    .query("*")
                    .build())
                .filterType("spans-sampling-processor")
                .enabled(false)
                .build());
    
            // Create APM reention filter order
            var bar = new ApmRetentionFilterOrder("bar", ApmRetentionFilterOrderArgs.builder()        
                .filterIds(foo.id())
                .build());
    
        }
    }
    
    resources:
      # Create APM retention filter
      foo:
        type: datadog:ApmRetentionFilter
        properties:
          name: Sample order
          rate: '1.0'
          filter:
            - query: '*'
          filterType: spans-sampling-processor
          enabled: false
      # Create APM reention filter order
      bar:
        type: datadog:ApmRetentionFilterOrder
        properties:
          filterIds:
            - ${foo.id}
    

    Create ApmRetentionFilterOrder Resource

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

    Constructor syntax

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

    Example

    The following reference example uses placeholder values for all input properties.

    var apmRetentionFilterOrderResource = new Datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", new()
    {
        FilterIds = new[]
        {
            "string",
        },
    });
    
    example, err := datadog.NewApmRetentionFilterOrder(ctx, "apmRetentionFilterOrderResource", &datadog.ApmRetentionFilterOrderArgs{
    	FilterIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var apmRetentionFilterOrderResource = new ApmRetentionFilterOrder("apmRetentionFilterOrderResource", ApmRetentionFilterOrderArgs.builder()        
        .filterIds("string")
        .build());
    
    apm_retention_filter_order_resource = datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", filter_ids=["string"])
    
    const apmRetentionFilterOrderResource = new datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", {filterIds: ["string"]});
    
    type: datadog:ApmRetentionFilterOrder
    properties:
        filterIds:
            - string
    

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

    FilterIds List<string>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    FilterIds []string
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds List<String>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds string[]
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filter_ids Sequence[str]
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds List<String>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.

    Outputs

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

    Get an existing ApmRetentionFilterOrder 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?: ApmRetentionFilterOrderState, opts?: CustomResourceOptions): ApmRetentionFilterOrder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            filter_ids: Optional[Sequence[str]] = None) -> ApmRetentionFilterOrder
    func GetApmRetentionFilterOrder(ctx *Context, name string, id IDInput, state *ApmRetentionFilterOrderState, opts ...ResourceOption) (*ApmRetentionFilterOrder, error)
    public static ApmRetentionFilterOrder Get(string name, Input<string> id, ApmRetentionFilterOrderState? state, CustomResourceOptions? opts = null)
    public static ApmRetentionFilterOrder get(String name, Output<String> id, ApmRetentionFilterOrderState 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:
    FilterIds List<string>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    FilterIds []string
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds List<String>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds string[]
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filter_ids Sequence[str]
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
    filterIds List<String>
    The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.

    Import

    Import existing APM retention filter order

    Note: Value of can be anything as this id is not stored by the resource

    $ pulumi import datadog:index/apmRetentionFilterOrder:ApmRetentionFilterOrder bar <foo>
    

    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.0 published on Tuesday, Apr 23, 2024 by Pulumi