interface TelemetryRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ObservabilityAdmin.CfnTelemetryRule.TelemetryRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsobservabilityadmin#CfnTelemetryRule_TelemetryRuleProperty |
Java | software.amazon.awscdk.services.observabilityadmin.CfnTelemetryRule.TelemetryRuleProperty |
Python | aws_cdk.aws_observabilityadmin.CfnTelemetryRule.TelemetryRuleProperty |
TypeScript | aws-cdk-lib » aws_observabilityadmin » CfnTelemetryRule » TelemetryRuleProperty |
Defines how telemetry should be configured for specific AWS resources.
Example
// 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 telemetryRuleProperty: observabilityadmin.CfnTelemetryRule.TelemetryRuleProperty = {
resourceType: 'resourceType',
telemetryType: 'telemetryType',
// the properties below are optional
destinationConfiguration: {
destinationPattern: 'destinationPattern',
destinationType: 'destinationType',
retentionInDays: 123,
vpcFlowLogParameters: {
logFormat: 'logFormat',
maxAggregationInterval: 123,
trafficType: 'trafficType',
},
},
selectionCriteria: 'selectionCriteria',
};
Properties
| Name | Type | Description |
|---|---|---|
| resource | string | The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC"). |
| telemetry | string | The type of telemetry to collect (Logs, Metrics, or Traces). |
| destination | IResolvable | Telemetry | Configuration specifying where and how the telemetry data should be delivered. |
| selection | string | Criteria for selecting which resources the rule applies to, such as resource tags. |
resourceType
Type:
string
The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC").
telemetryType
Type:
string
The type of telemetry to collect (Logs, Metrics, or Traces).
destinationConfiguration?
Type:
IResolvable | Telemetry
(optional)
Configuration specifying where and how the telemetry data should be delivered.
selectionCriteria?
Type:
string
(optional)
Criteria for selecting which resources the rule applies to, such as resource tags.

.NET
Go
Java
Python
TypeScript