We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Exclude
Filters List<Pulumi.Aws Native. Cloud Watch. Inputs. OTel Enrichment Metric Selector> - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- Include
Filters List<Pulumi.Aws Native. Cloud Watch. Inputs. OTel Enrichment Metric Selector> - 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 []OTelEnrichment Metric Selector Args - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- Include
Filters []OTelEnrichment Metric Selector Args - 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.
- exclude
Filters List<OTelEnrichment Metric Selector> - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- include
Filters List<OTelEnrichment Metric Selector> - 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 OTelEnrichment Metric Selector[] - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- include
Filters OTelEnrichment Metric Selector[] - 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[OTelEnrichment Metric Selector Args] - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- include_
filters Sequence[OTelEnrichment Metric Selector Args] - 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<Property Map> - Removes metrics from the include set. Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.
- include
Filters 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:
- 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
Pulumi.
Aws Native. Cloud Watch. OTel Enrichment Status
- 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
OTel
Enrichment Status
- 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"
- 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
OTel
Enrichment Status
- 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
OTel
Enrichment Status
- 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
OTel
Enrichment Status
- 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"
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) -> OTelEnrichmentfunc 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.
- 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.
- Metric
Names []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.
- 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.
- metric
Names 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.
- 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.
OTelEnrichmentStatus
Current status of OTel enrichment (RUNNING or STOPPED).
| Name | Value |
|---|---|
| Running | RUNNING |
| Stopped | STOPPED |
| Name | Value |
|---|---|
| OTel | RUNNING |
| OTel | STOPPED |
| Value |
|---|
RUNNING |
STOPPED |
| Name | Value |
|---|---|
| Running | RUNNING |
| Stopped | STOPPED |
| Name | Value |
|---|---|
| Running | RUNNING |
| Stopped | STOPPED |
| Name | Value |
|---|---|
| RUNNING | RUNNING |
| STOPPED | STOPPED |
| Value |
|---|
RUNNING |
STOPPED |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi