Class CfnTelemetryRule.TelemetryRuleProperty
Defines how telemetry should be configured for specific AWS resources.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ObservabilityAdmin
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTelemetryRule.TelemetryRuleProperty : CfnTelemetryRule.ITelemetryRuleProperty
Syntax (vb)
Public Class CfnTelemetryRule.TelemetryRuleProperty Implements CfnTelemetryRule.ITelemetryRuleProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ObservabilityAdmin;
var telemetryRuleProperty = new TelemetryRuleProperty {
ResourceType = "resourceType",
TelemetryType = "telemetryType",
// the properties below are optional
DestinationConfiguration = new TelemetryDestinationConfigurationProperty {
DestinationPattern = "destinationPattern",
DestinationType = "destinationType",
RetentionInDays = 123,
VpcFlowLogParameters = new VPCFlowLogParametersProperty {
LogFormat = "logFormat",
MaxAggregationInterval = 123,
TrafficType = "trafficType"
}
},
SelectionCriteria = "selectionCriteria"
};
Synopsis
Constructors
| TelemetryRuleProperty() | Defines how telemetry should be configured for specific AWS resources. |
Properties
| DestinationConfiguration | Configuration specifying where and how the telemetry data should be delivered. |
| ResourceType | The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC"). |
| SelectionCriteria | Criteria for selecting which resources the rule applies to, such as resource tags. |
| TelemetryType | The type of telemetry to collect (Logs, Metrics, or Traces). |
Constructors
TelemetryRuleProperty()
Defines how telemetry should be configured for specific AWS resources.
public TelemetryRuleProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ObservabilityAdmin;
var telemetryRuleProperty = new TelemetryRuleProperty {
ResourceType = "resourceType",
TelemetryType = "telemetryType",
// the properties below are optional
DestinationConfiguration = new TelemetryDestinationConfigurationProperty {
DestinationPattern = "destinationPattern",
DestinationType = "destinationType",
RetentionInDays = 123,
VpcFlowLogParameters = new VPCFlowLogParametersProperty {
LogFormat = "logFormat",
MaxAggregationInterval = 123,
TrafficType = "trafficType"
}
},
SelectionCriteria = "selectionCriteria"
};
Properties
DestinationConfiguration
Configuration specifying where and how the telemetry data should be delivered.
public object? DestinationConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnTelemetryRule.ITelemetryDestinationConfigurationProperty
ResourceType
The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC").
public string ResourceType { get; set; }
Property Value
Remarks
SelectionCriteria
Criteria for selecting which resources the rule applies to, such as resource tags.
public string? SelectionCriteria { get; set; }
Property Value
Remarks
TelemetryType
The type of telemetry to collect (Logs, Metrics, or Traces).
public string TelemetryType { get; set; }