# TelemetryDestinationConfigurationProperty

Configuration specifying where and how telemetry data should be delivered for AWS resources.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const telemetryDestinationConfigurationProperty: observabilityadmin.CfnTelemetryRule.TelemetryDestinationConfigurationProperty = {
  cloudtrailParameters: {
    advancedEventSelectors: [{
      fieldSelectors: [{
        endsWith: ['endsWith'],
        equalTo: ['equalTo'],
        field: 'field',
        notEndsWith: ['notEndsWith'],
        notEquals: ['notEquals'],
        notStartsWith: ['notStartsWith'],
        startsWith: ['startsWith'],
      }],

      // the properties below are optional
      name: 'name',
    }],
  },
  destinationPattern: 'destinationPattern',
  destinationType: 'destinationType',
  elbLoadBalancerLoggingParameters: {
    fieldDelimiter: 'fieldDelimiter',
    outputFormat: 'outputFormat',
  },
  kmsKeyArn: 'kmsKeyArn',
  logDeliveryParameters: {
    logTypes: ['logTypes'],
  },
  mskMonitoringParameters: {
    enhancedMonitoring: 'enhancedMonitoring',
  },
  retentionInDays: 123,
  vpcFlowLogParameters: {
    logFormat: 'logFormat',
    maxAggregationInterval: 123,
    trafficType: 'trafficType',
  },
  wafLoggingParameters: {
    loggingFilter: {
      defaultBehavior: 'defaultBehavior',
      filters: [{
        behavior: 'behavior',
        conditions: [{
          actionCondition: {
            action: 'action',
          },
          labelNameCondition: {
            labelName: 'labelName',
          },
        }],
        requirement: 'requirement',
      }],
    },
    logType: 'logType',
    redactedFields: [{
      method: 'method',
      queryString: 'queryString',
      singleHeader: {
        name: 'name',
      },
      uriPath: 'uriPath',
    }],
  },
};
```

## Properties

- `cloudtrailParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.CloudtrailParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.CloudtrailParametersProperty.html) — Configuration parameters specific to AWS CloudTrail when CloudTrail is the source type.

- `destinationPattern`: string — The pattern used to generate the destination path or name, supporting macros like <resourceId> and <accountId>.

- `destinationType`: string — The type of destination for the telemetry data (e.g., "Amazon CloudWatch Logs", "S3").

- `elbLoadBalancerLoggingParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.ELBLoadBalancerLoggingParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.ELBLoadBalancerLoggingParametersProperty.html) — Configuration parameters specific to ELB load balancer logging when ELB is the resource type.

- `kmsKeyArn`: string — The Amazon Resource Name (ARN) of the customer-managed AWS KMS key used to encrypt the destination log groups specified in the Telemetry Rule.

- `logDeliveryParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.LogDeliveryParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.LogDeliveryParametersProperty.html) — Configuration parameters specific to Amazon Bedrock AgentCore logging when Amazon Bedrock AgentCore is the resource type.

- `mskMonitoringParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.MskMonitoringParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.MskMonitoringParametersProperty.html) — Configuration parameters for Amazon MSK cluster monitoring.

- `retentionInDays`: number — The number of days to retain the telemetry data in the destination.

- `vpcFlowLogParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.VPCFlowLogParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.VPCFlowLogParametersProperty.html) — Configuration parameters specific to VPC Flow Logs when VPC is the resource type.

- `wafLoggingParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.WAFLoggingParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.WAFLoggingParametersProperty.html) — Configuration parameters specific to WAF logging when WAF is the resource type.
