Class CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.observabilityadmin.CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTelemetryRulePropsMixin.TelemetryRuleProperty>
- Enclosing interface:
CfnTelemetryRulePropsMixin.TelemetryRuleProperty
@Stability(Stable)
public static final class CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTelemetryRulePropsMixin.TelemetryRuleProperty>
A builder for
CfnTelemetryRulePropsMixin.TelemetryRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationConfiguration(CfnTelemetryRulePropsMixin.TelemetryDestinationConfigurationProperty destinationConfiguration) destinationConfiguration(IResolvable destinationConfiguration) resourceType(String resourceType) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getResourceType()selectionCriteria(String selectionCriteria) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getSelectionCriteria()telemetrySourceTypes(List<String> telemetrySourceTypes) telemetryType(String telemetryType) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getTelemetryType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationConfiguration
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder destinationConfiguration(IResolvable destinationConfiguration) - Parameters:
destinationConfiguration- Configuration specifying where and how the telemetry data should be delivered.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder destinationConfiguration(CfnTelemetryRulePropsMixin.TelemetryDestinationConfigurationProperty destinationConfiguration) - Parameters:
destinationConfiguration- Configuration specifying where and how the telemetry data should be delivered.- Returns:
this
-
resourceType
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder resourceType(String resourceType) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getResourceType()- Parameters:
resourceType- The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").- Returns:
this
-
selectionCriteria
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder selectionCriteria(String selectionCriteria) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getSelectionCriteria()- Parameters:
selectionCriteria- Criteria for selecting which resources the rule applies to, such as resource tags.- Returns:
this
-
telemetrySourceTypes
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder telemetrySourceTypes(List<String> telemetrySourceTypes) - Parameters:
telemetrySourceTypes- 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.- Returns:
this
-
telemetryType
@Stability(Stable) public CfnTelemetryRulePropsMixin.TelemetryRuleProperty.Builder telemetryType(String telemetryType) Sets the value ofCfnTelemetryRulePropsMixin.TelemetryRuleProperty.getTelemetryType()- Parameters:
telemetryType- The type of telemetry to collect (Logs, Metrics, or Traces).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTelemetryRulePropsMixin.TelemetryRuleProperty>- Returns:
- a new instance of
CfnTelemetryRulePropsMixin.TelemetryRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-