java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.observabilityadmin.CfnTelemetryRulePropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:01.944Z") @Stability(Stable) public class CfnTelemetryRulePropsMixin extends Mixin implements software.constructs.IMixin
Creates a telemetry rule that defines how telemetry should be configured for AWS resources in your account.

The rule specifies which resources should have telemetry enabled and how that telemetry data should be collected based on resource type, telemetry type, and selection criteria.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.observabilityadmin.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnTelemetryRulePropsMixin cfnTelemetryRulePropsMixin = CfnTelemetryRulePropsMixin.Builder.create(CfnTelemetryRuleMixinProps.builder()
         .rule(TelemetryRuleProperty.builder()
                 .destinationConfiguration(TelemetryDestinationConfigurationProperty.builder()
                         .cloudtrailParameters(CloudtrailParametersProperty.builder()
                                 .advancedEventSelectors(List.of(AdvancedEventSelectorProperty.builder()
                                         .fieldSelectors(List.of(AdvancedFieldSelectorProperty.builder()
                                                 .endsWith(List.of("endsWith"))
                                                 .equalTo(List.of("equalTo"))
                                                 .field("field")
                                                 .notEndsWith(List.of("notEndsWith"))
                                                 .notEquals(List.of("notEquals"))
                                                 .notStartsWith(List.of("notStartsWith"))
                                                 .startsWith(List.of("startsWith"))
                                                 .build()))
                                         .name("name")
                                         .build()))
                                 .build())
                         .destinationPattern("destinationPattern")
                         .destinationType("destinationType")
                         .elbLoadBalancerLoggingParameters(ELBLoadBalancerLoggingParametersProperty.builder()
                                 .fieldDelimiter("fieldDelimiter")
                                 .outputFormat("outputFormat")
                                 .build())
                         .logDeliveryParameters(LogDeliveryParametersProperty.builder()
                                 .logTypes(List.of("logTypes"))
                                 .build())
                         .retentionInDays(123)
                         .vpcFlowLogParameters(VPCFlowLogParametersProperty.builder()
                                 .logFormat("logFormat")
                                 .maxAggregationInterval(123)
                                 .trafficType("trafficType")
                                 .build())
                         .wafLoggingParameters(WAFLoggingParametersProperty.builder()
                                 .loggingFilter(LoggingFilterProperty.builder()
                                         .defaultBehavior("defaultBehavior")
                                         .filters(List.of(FilterProperty.builder()
                                                 .behavior("behavior")
                                                 .conditions(List.of(ConditionProperty.builder()
                                                         .actionCondition(ActionConditionProperty.builder()
                                                                 .action("action")
                                                                 .build())
                                                         .labelNameCondition(LabelNameConditionProperty.builder()
                                                                 .labelName("labelName")
                                                                 .build())
                                                         .build()))
                                                 .requirement("requirement")
                                                 .build()))
                                         .build())
                                 .logType("logType")
                                 .redactedFields(List.of(FieldToMatchProperty.builder()
                                         .method("method")
                                         .queryString("queryString")
                                         .singleHeader(SingleHeaderProperty.builder()
                                                 .name("name")
                                                 .build())
                                         .uriPath("uriPath")
                                         .build()))
                                 .build())
                         .build())
                 .resourceType("resourceType")
                 .selectionCriteria("selectionCriteria")
                 .telemetrySourceTypes(List.of("telemetrySourceTypes"))
                 .telemetryType("telemetryType")
                 .build())
         .ruleName("ruleName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnTelemetryRulePropsMixin

      protected CfnTelemetryRulePropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTelemetryRulePropsMixin

      protected CfnTelemetryRulePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTelemetryRulePropsMixin

      @Stability(Stable) public CfnTelemetryRulePropsMixin(@NotNull CfnTelemetryRuleMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::ObservabilityAdmin::TelemetryRule.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnTelemetryRulePropsMixin

      @Stability(Stable) public CfnTelemetryRulePropsMixin(@NotNull CfnTelemetryRuleMixinProps props)
      Create a mixin to apply properties to AWS::ObservabilityAdmin::TelemetryRule.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnTelemetryRuleMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()