1. Packages
  2. Datadog Provider
  3. API Docs
  4. ApmRetentionFilterOrder
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.ApmRetentionFilterOrder

Explore with Pulumi AI

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!
Coming soon!
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ApmRetentionFilterOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ApmRetentionFilterOrderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApmRetentionFilterOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApmRetentionFilterOrderArgs
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 apmRetentionFilterOrderResource = new Datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", new()
{
    FilterIds = new[]
    {
        "string",
    },
});
Copy
example, err := datadog.NewApmRetentionFilterOrder(ctx, "apmRetentionFilterOrderResource", &datadog.ApmRetentionFilterOrderArgs{
	FilterIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var apmRetentionFilterOrderResource = new ApmRetentionFilterOrder("apmRetentionFilterOrderResource", ApmRetentionFilterOrderArgs.builder()
    .filterIds("string")
    .build());
Copy
apm_retention_filter_order_resource = datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", filter_ids=["string"])
Copy
const apmRetentionFilterOrderResource = new datadog.ApmRetentionFilterOrder("apmRetentionFilterOrderResource", {filterIds: ["string"]});
Copy
type: datadog:ApmRetentionFilterOrder
properties:
    filterIds:
        - string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ApmRetentionFilterOrder resource accepts the following input properties:

FilterIds This property is required. List<string>
The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
FilterIds This property is required. []string
The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
filterIds This property is required. List<String>
The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
filterIds This property is required. string[]
The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
filter_ids This property is required. Sequence[str]
The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.
filterIds This property is required. 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)
resources:  _:    type: datadog:ApmRetentionFilterOrder    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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>
Copy

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.