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