1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloudwatch
  6. OTelEnrichment

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    AWS::CloudWatch::OTelEnrichment enables OTel metric enrichment in CloudWatch, allowing CloudWatch vended metrics to be available for PromQL querying enriched with AWS resource tags and metadata.

    Create OTelEnrichment Resource

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

    Constructor syntax

    new OTelEnrichment(name: string, args?: OTelEnrichmentArgs, opts?: CustomResourceOptions);
    @overload
    def OTelEnrichment(resource_name: str,
                       args: Optional[OTelEnrichmentArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def OTelEnrichment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       exclude_filters: Optional[Sequence[OTelEnrichmentMetricSelectorArgs]] = None,
                       include_filters: Optional[Sequence[OTelEnrichmentMetricSelectorArgs]] = None)
    func NewOTelEnrichment(ctx *Context, name string, args *OTelEnrichmentArgs, opts ...ResourceOption) (*OTelEnrichment, error)
    public OTelEnrichment(string name, OTelEnrichmentArgs? args = null, CustomResourceOptions? opts = null)
    public OTelEnrichment(String name, OTelEnrichmentArgs args)
    public OTelEnrichment(String name, OTelEnrichmentArgs args, CustomResourceOptions options)
    
    type: aws-native:cloudwatch:OTelEnrichment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_cloudwatch_o_tel_enrichment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OTelEnrichmentArgs
    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 OTelEnrichmentArgs
    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 OTelEnrichmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OTelEnrichmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OTelEnrichmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ExcludeFilters List<Pulumi.AwsNative.CloudWatch.Inputs.OTelEnrichmentMetricSelector>
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    IncludeFilters List<Pulumi.AwsNative.CloudWatch.Inputs.OTelEnrichmentMetricSelector>
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    ExcludeFilters []OTelEnrichmentMetricSelectorArgs
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    IncludeFilters []OTelEnrichmentMetricSelectorArgs
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    exclude_filters list(object)
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    include_filters list(object)
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    excludeFilters List<OTelEnrichmentMetricSelector>
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    includeFilters List<OTelEnrichmentMetricSelector>
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    excludeFilters OTelEnrichmentMetricSelector[]
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    includeFilters OTelEnrichmentMetricSelector[]
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    exclude_filters Sequence[OTelEnrichmentMetricSelectorArgs]
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    include_filters Sequence[OTelEnrichmentMetricSelectorArgs]
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.
    excludeFilters List<Property Map>
    Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
    includeFilters List<Property Map>
    Scopes enrichment to a subset of the account's telemetry. Absent or empty means all namespaces are in scope. Present means only these are. The service enforces a combined cap of 100 selectors across IncludeFilters and ExcludeFilters, and rejects more than one selector for the same namespace within a direction.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OTelEnrichment resource produces the following output properties:

    AccountId string
    The AWS account ID. This is the primary identifier for this singleton resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status Pulumi.AwsNative.CloudWatch.OTelEnrichmentStatus
    AccountId string
    The AWS account ID. This is the primary identifier for this singleton resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status OTelEnrichmentStatus
    account_id string
    The AWS account ID. This is the primary identifier for this singleton resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status "RUNNING" | "STOPPED"
    accountId String
    The AWS account ID. This is the primary identifier for this singleton resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status OTelEnrichmentStatus
    accountId string
    The AWS account ID. This is the primary identifier for this singleton resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status OTelEnrichmentStatus
    account_id str
    The AWS account ID. This is the primary identifier for this singleton resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status OTelEnrichmentStatus
    accountId String
    The AWS account ID. This is the primary identifier for this singleton resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status "RUNNING" | "STOPPED"

    Look up Existing OTelEnrichment Resource

    Get an existing OTelEnrichment 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>, opts?: CustomResourceOptions): OTelEnrichment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> OTelEnrichment
    func GetOTelEnrichment(ctx *Context, name string, id IDInput, state *OTelEnrichmentState, opts ...ResourceOption) (*OTelEnrichment, error)
    public static OTelEnrichment Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static OTelEnrichment get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingOTelEnrichment:    type: aws-native:cloudwatch:OTelEnrichment    get:      id: ${id}
    import {
      to = aws-native_cloudwatch_o_tel_enrichment.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state OTelEnrichmentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    OTelEnrichmentMetricSelector, OTelEnrichmentMetricSelectorArgs

    Selects metrics within one namespace. The same shape serves both the include and the exclude direction. Namespaces are compared byte-for-byte and case-sensitively; no wildcards, prefixes or normalization.

    Namespace string
    The CloudWatch namespace this selector applies to.
    MetricNames List<string>
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    Namespace string
    The CloudWatch namespace this selector applies to.
    MetricNames []string
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    namespace string
    The CloudWatch namespace this selector applies to.
    metric_names list(string)
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    namespace String
    The CloudWatch namespace this selector applies to.
    metricNames List<String>
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    namespace string
    The CloudWatch namespace this selector applies to.
    metricNames string[]
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    namespace str
    The CloudWatch namespace this selector applies to.
    metric_names Sequence[str]
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.
    namespace String
    The CloudWatch namespace this selector applies to.
    metricNames List<String>
    Absent or empty means every metric in this namespace, in whichever direction this selector appears. Present means only these metric names.

    OTelEnrichmentStatus

    Current status of OTel enrichment (RUNNING or STOPPED).

    NameValue
    RunningRUNNING
    StoppedSTOPPED
    NameValue
    OTelEnrichmentStatusRunningRUNNING
    OTelEnrichmentStatusStoppedSTOPPED
    Value
    RUNNING
    STOPPED
    NameValue
    RunningRUNNING
    StoppedSTOPPED
    NameValue
    RunningRUNNING
    StoppedSTOPPED
    NameValue
    RUNNINGRUNNING
    STOPPEDSTOPPED
    Value
    RUNNING
    STOPPED

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial