Class CfnBucket.LoggingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.LoggingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.LoggingConfigurationProperty>
- Enclosing interface:
CfnBucket.LoggingConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.LoggingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.LoggingConfigurationProperty>
A builder for
CfnBucket.LoggingConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationBucketName
(String destinationBucketName) Sets the value ofCfnBucket.LoggingConfigurationProperty.getDestinationBucketName()
logFilePrefix
(String logFilePrefix) Sets the value ofCfnBucket.LoggingConfigurationProperty.getLogFilePrefix()
targetObjectKeyFormat
(IResolvable targetObjectKeyFormat) Sets the value ofCfnBucket.LoggingConfigurationProperty.getTargetObjectKeyFormat()
targetObjectKeyFormat
(CfnBucket.TargetObjectKeyFormatProperty targetObjectKeyFormat) Sets the value ofCfnBucket.LoggingConfigurationProperty.getTargetObjectKeyFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationBucketName
@Stability(Stable) public CfnBucket.LoggingConfigurationProperty.Builder destinationBucketName(String destinationBucketName) Sets the value ofCfnBucket.LoggingConfigurationProperty.getDestinationBucketName()
- Parameters:
destinationBucketName
- The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where theLoggingConfiguration
property is defined.- Returns:
this
-
logFilePrefix
@Stability(Stable) public CfnBucket.LoggingConfigurationProperty.Builder logFilePrefix(String logFilePrefix) Sets the value ofCfnBucket.LoggingConfigurationProperty.getLogFilePrefix()
- Parameters:
logFilePrefix
- A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.- Returns:
this
-
targetObjectKeyFormat
@Stability(Stable) public CfnBucket.LoggingConfigurationProperty.Builder targetObjectKeyFormat(IResolvable targetObjectKeyFormat) Sets the value ofCfnBucket.LoggingConfigurationProperty.getTargetObjectKeyFormat()
- Parameters:
targetObjectKeyFormat
- Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed.- Returns:
this
-
targetObjectKeyFormat
@Stability(Stable) public CfnBucket.LoggingConfigurationProperty.Builder targetObjectKeyFormat(CfnBucket.TargetObjectKeyFormatProperty targetObjectKeyFormat) Sets the value ofCfnBucket.LoggingConfigurationProperty.getTargetObjectKeyFormat()
- Parameters:
targetObjectKeyFormat
- Amazon S3 key format for log objects. Only one format, either PartitionedPrefix or SimplePrefix, is allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.LoggingConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.LoggingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-