Class CfnCluster.LoggingPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnCluster.LoggingPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.LoggingPropertiesProperty>
- Enclosing interface:
CfnCluster.LoggingPropertiesProperty
@Stability(Stable)
public static final class CfnCluster.LoggingPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.LoggingPropertiesProperty>
A builder for
CfnCluster.LoggingPropertiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofCfnCluster.LoggingPropertiesProperty.getBucketName()build()Builds the configured instance.logDestinationType(String logDestinationType) Sets the value ofCfnCluster.LoggingPropertiesProperty.getLogDestinationType()logExports(List<String> logExports) Sets the value ofCfnCluster.LoggingPropertiesProperty.getLogExports()s3KeyPrefix(String s3KeyPrefix) Sets the value ofCfnCluster.LoggingPropertiesProperty.getS3KeyPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
@Stability(Stable) public CfnCluster.LoggingPropertiesProperty.Builder bucketName(String bucketName) Sets the value ofCfnCluster.LoggingPropertiesProperty.getBucketName()- Parameters:
bucketName- The name of an existing S3 bucket where the log files are to be stored. Constraints:- Must be in the same region as the cluster
- The cluster must have read bucket and put object permissions
- Returns:
this
-
logDestinationType
@Stability(Stable) public CfnCluster.LoggingPropertiesProperty.Builder logDestinationType(String logDestinationType) Sets the value ofCfnCluster.LoggingPropertiesProperty.getLogDestinationType()- Parameters:
logDestinationType- The log destination type. An enum with possible values ofs3andcloudwatch.- Returns:
this
-
logExports
@Stability(Stable) public CfnCluster.LoggingPropertiesProperty.Builder logExports(List<String> logExports) Sets the value ofCfnCluster.LoggingPropertiesProperty.getLogExports()- Parameters:
logExports- The collection of exported log types. Possible values areconnectionlog,useractivitylog, anduserlog.- Returns:
this
-
s3KeyPrefix
@Stability(Stable) public CfnCluster.LoggingPropertiesProperty.Builder s3KeyPrefix(String s3KeyPrefix) Sets the value ofCfnCluster.LoggingPropertiesProperty.getS3KeyPrefix()- Parameters:
s3KeyPrefix- The prefix applied to the log file names. Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters: underscore (_), period (.), colon (:), slash (/), equal (=), plus (+), backslash (\), hyphen (-), at symbol (@).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.LoggingPropertiesProperty>- Returns:
- a new instance of
CfnCluster.LoggingPropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-