Class CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty>
- Enclosing interface:
CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty
@Stability(Stable)
public static final class CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationPattern(String destinationPattern) destinationType(String destinationType) retentionInDays(Number retentionInDays) vpcFlowLogParameters(IResolvable vpcFlowLogParameters) vpcFlowLogParameters(CfnOrganizationTelemetryRule.VPCFlowLogParametersProperty vpcFlowLogParameters)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationPattern
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder destinationPattern(String destinationPattern) Sets the value ofCfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.getDestinationPattern()- Parameters:
destinationPattern- The pattern used to generate the destination path or name, supporting macros likeand . - Returns:
this
-
destinationType
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder destinationType(String destinationType) Sets the value ofCfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.getDestinationType()- Parameters:
destinationType- The type of destination for the telemetry data (e.g., "Amazon CloudWatch Logs", "S3").- Returns:
this
-
retentionInDays
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder retentionInDays(Number retentionInDays) Sets the value ofCfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.getRetentionInDays()- Parameters:
retentionInDays- The number of days to retain the telemetry data in the destination.- Returns:
this
-
vpcFlowLogParameters
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder vpcFlowLogParameters(IResolvable vpcFlowLogParameters) Sets the value ofCfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.getVpcFlowLogParameters()- Parameters:
vpcFlowLogParameters- Configuration parameters specific to VPC Flow Logs when VPC is the resource type.- Returns:
this
-
vpcFlowLogParameters
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.Builder vpcFlowLogParameters(CfnOrganizationTelemetryRule.VPCFlowLogParametersProperty vpcFlowLogParameters) Sets the value ofCfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty.getVpcFlowLogParameters()- Parameters:
vpcFlowLogParameters- Configuration parameters specific to VPC Flow Logs when VPC is the resource type.- Returns:
this
-
build
@Stability(Stable) public CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty>- Returns:
- a new instance of
CfnOrganizationTelemetryRule.TelemetryDestinationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-