Class CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.observabilityadmin.mixins.CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty>
- Enclosing interface:
CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty
@Stability(Stable)
public static final class CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationConfiguration(IResolvable destinationConfiguration) destinationConfiguration(CfnOrganizationTelemetryRulePropsMixin.TelemetryDestinationConfigurationProperty destinationConfiguration) resourceType(String resourceType) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getScope()selectionCriteria(String selectionCriteria) telemetrySourceTypes(List<String> telemetrySourceTypes) telemetryType(String telemetryType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationConfiguration
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder destinationConfiguration(IResolvable destinationConfiguration) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getDestinationConfiguration()- Parameters:
destinationConfiguration- Configuration specifying where and how the telemetry data should be delivered.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder destinationConfiguration(CfnOrganizationTelemetryRulePropsMixin.TelemetryDestinationConfigurationProperty destinationConfiguration) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getDestinationConfiguration()- Parameters:
destinationConfiguration- Configuration specifying where and how the telemetry data should be delivered.- Returns:
this
-
resourceType
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder resourceType(String resourceType) - Parameters:
resourceType- The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").- Returns:
this
-
scope
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder scope(String scope) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getScope()- Parameters:
scope- The organizational scope to which the rule applies, specified using accounts or organizational units.- Returns:
this
-
selectionCriteria
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder selectionCriteria(String selectionCriteria) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getSelectionCriteria()- Parameters:
selectionCriteria- Criteria for selecting which resources the rule applies to, such as resource tags.- Returns:
this
-
telemetrySourceTypes
@Stability(Stable) public CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder telemetrySourceTypes(List<String> telemetrySourceTypes) Sets the value ofCfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.getTelemetrySourceTypes()- 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 CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty.Builder telemetryType(String telemetryType) - 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<CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty>- Returns:
- a new instance of
CfnOrganizationTelemetryRulePropsMixin.TelemetryRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-