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
-
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 ofs3
andcloudwatch
.- 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. Constraints:- Cannot exceed 512 characters
- Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (), or control characters. The hexadecimal codes for invalid characters are:
- x00 to x20
- x22
- x27
- x5c
- x7f or larger
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.LoggingPropertiesProperty>
- Returns:
- a new instance of
CfnCluster.LoggingPropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-