Interface CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Jsii$Proxy
- Enclosing class:
CfnOrganizationTelemetryRulePropsMixin
@Stability(Stable)
public static interface CfnOrganizationTelemetryRulePropsMixin.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.cfnpropertymixins.services.observabilityadmin.*;
TelemetryRuleProperty telemetryRuleProperty = 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())
.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")
.scope("scope")
.selectionCriteria("selectionCriteria")
.telemetrySourceTypes(List.of("telemetrySourceTypes"))
.telemetryType("telemetryType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectConfiguration specifying where and how the telemetry data should be delivered.default StringThe type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").default StringgetScope()The organizational scope to which the rule applies, specified using accounts or organizational units.default StringCriteria for selecting which resources the rule applies to, such as resource tags.The specific telemetry source types to configure for the resource, such as VPC_FLOW_LOGS or EKS_AUDIT_LOGS.default StringThe type of telemetry to collect (Logs, Metrics, or Traces).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestinationConfiguration
Configuration specifying where and how the telemetry data should be delivered.Returns union: either
IResolvableorCfnOrganizationTelemetryRulePropsMixin.TelemetryDestinationConfigurationProperty- See Also:
-
getResourceType
The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").- See Also:
-
getScope
The organizational scope to which the rule applies, specified using accounts or organizational units.- See Also:
-
getSelectionCriteria
Criteria for selecting which resources the rule applies to, such as resource tags.- See Also:
-
getTelemetrySourceTypes
The specific telemetry source types to configure for the resource, such as VPC_FLOW_LOGS or EKS_AUDIT_LOGS.TelemetrySourceTypes must be correlated with the specific resource type.
- See Also:
-
getTelemetryType
The type of telemetry to collect (Logs, Metrics, or Traces).- See Also:
-
builder
@Stability(Stable) static CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder builder()
-