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