Skip to content
v2.274.0

CfnOTelEnrichmentProps Struct ​

Properties for defining a CfnOTelEnrichment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const cfnOTelEnrichmentProps: cloudwatch.CfnOTelEnrichmentProps = {
  excludeFilters: [{
    namespace: 'namespace',

    // the properties below are optional
    metricNames: ['metricNames'],
  }],
  includeFilters: [{
    namespace: 'namespace',

    // the properties below are optional
    metricNames: ['metricNames'],
  }],
};

Properties ​

excludeFiltersoptionalIResolvable | IResolvable | CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty[]exclude_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, OTelEnrichmentMetricSelectorProperty]]]excludeFiltersoptionalIResolvableExcludeFiltersoptionalIResolvableExcludeFiltersoptionalinterface{}#
Removes metrics from the include set.

Absent or empty means nothing is removed. Evaluated after IncludeFilters, so ExcludeFilters always wins.

includeFiltersoptionalIResolvable | IResolvable | CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty[]include_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, OTelEnrichmentMetricSelectorProperty]]]includeFiltersoptionalIResolvableIncludeFiltersoptionalIResolvableIncludeFiltersoptionalinterface{}#
Scopes enrichment to a subset of the account's telemetry.
notes

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.