Interface CfnTelemetryRule.TelemetryRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTelemetryRule.TelemetryRuleProperty.Jsii$Proxy
- Enclosing class:
CfnTelemetryRule
@Stability(Stable)
public static interface CfnTelemetryRule.TelemetryRuleProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.observabilityadmin.*;
TelemetryRuleProperty telemetryRuleProperty = TelemetryRuleProperty.builder()
.resourceType("resourceType")
.telemetryType("telemetryType")
// the properties below are optional
.destinationConfiguration(TelemetryDestinationConfigurationProperty.builder()
.destinationPattern("destinationPattern")
.destinationType("destinationType")
.retentionInDays(123)
.vpcFlowLogParameters(VPCFlowLogParametersProperty.builder()
.logFormat("logFormat")
.maxAggregationInterval(123)
.trafficType("trafficType")
.build())
.build())
.selectionCriteria("selectionCriteria")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTelemetryRule.TelemetryRulePropertystatic final classAn implementation forCfnTelemetryRule.TelemetryRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectConfiguration specifying where and how the telemetry data should be delivered.The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC").default StringCriteria for selecting which resources the rule applies to, such as resource tags.The type of telemetry to collect (Logs, Metrics, or Traces).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC").- See Also:
-
getTelemetryType
The type of telemetry to collect (Logs, Metrics, or Traces).- See Also:
-
getDestinationConfiguration
Configuration specifying where and how the telemetry data should be delivered.Returns union: either
IResolvableorCfnTelemetryRule.TelemetryDestinationConfigurationProperty- See Also:
-
getSelectionCriteria
Criteria for selecting which resources the rule applies to, such as resource tags.- See Also:
-
builder
-