Class CfnBucketMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketMixinProps>
- Enclosing interface:
CfnBucketMixinProps
CfnBucketMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabacStatus(String abacStatus) Sets the value ofCfnBucketMixinProps.getAbacStatus()accelerateConfiguration(CfnBucketPropsMixin.AccelerateConfigurationProperty accelerateConfiguration) Sets the value ofCfnBucketMixinProps.getAccelerateConfiguration()accelerateConfiguration(IResolvable accelerateConfiguration) Sets the value ofCfnBucketMixinProps.getAccelerateConfiguration()accessControl(String accessControl) Sets the value ofCfnBucketMixinProps.getAccessControl()analyticsConfigurations(List<? extends Object> analyticsConfigurations) Sets the value ofCfnBucketMixinProps.getAnalyticsConfigurations()analyticsConfigurations(IResolvable analyticsConfigurations) Sets the value ofCfnBucketMixinProps.getAnalyticsConfigurations()bucketEncryption(CfnBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Sets the value ofCfnBucketMixinProps.getBucketEncryption()bucketEncryption(IResolvable bucketEncryption) Sets the value ofCfnBucketMixinProps.getBucketEncryption()bucketName(String bucketName) Sets the value ofCfnBucketMixinProps.getBucketName()build()Builds the configured instance.corsConfiguration(CfnBucketPropsMixin.CorsConfigurationProperty corsConfiguration) Sets the value ofCfnBucketMixinProps.getCorsConfiguration()corsConfiguration(IResolvable corsConfiguration) Sets the value ofCfnBucketMixinProps.getCorsConfiguration()intelligentTieringConfigurations(List<? extends Object> intelligentTieringConfigurations) Sets the value ofCfnBucketMixinProps.getIntelligentTieringConfigurations()intelligentTieringConfigurations(IResolvable intelligentTieringConfigurations) Sets the value ofCfnBucketMixinProps.getIntelligentTieringConfigurations()inventoryConfigurations(List<? extends Object> inventoryConfigurations) Sets the value ofCfnBucketMixinProps.getInventoryConfigurations()inventoryConfigurations(IResolvable inventoryConfigurations) Sets the value ofCfnBucketMixinProps.getInventoryConfigurations()lifecycleConfiguration(CfnBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Sets the value ofCfnBucketMixinProps.getLifecycleConfiguration()lifecycleConfiguration(IResolvable lifecycleConfiguration) Sets the value ofCfnBucketMixinProps.getLifecycleConfiguration()loggingConfiguration(CfnBucketPropsMixin.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnBucketMixinProps.getLoggingConfiguration()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnBucketMixinProps.getLoggingConfiguration()metadataConfiguration(CfnBucketPropsMixin.MetadataConfigurationProperty metadataConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataConfiguration()metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataConfiguration()metadataTableConfiguration(CfnBucketPropsMixin.MetadataTableConfigurationProperty metadataTableConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataTableConfiguration()metadataTableConfiguration(IResolvable metadataTableConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataTableConfiguration()metricsConfigurations(List<? extends Object> metricsConfigurations) Sets the value ofCfnBucketMixinProps.getMetricsConfigurations()metricsConfigurations(IResolvable metricsConfigurations) Sets the value ofCfnBucketMixinProps.getMetricsConfigurations()notificationConfiguration(CfnBucketPropsMixin.NotificationConfigurationProperty notificationConfiguration) Sets the value ofCfnBucketMixinProps.getNotificationConfiguration()notificationConfiguration(IResolvable notificationConfiguration) Sets the value ofCfnBucketMixinProps.getNotificationConfiguration()objectLockConfiguration(CfnBucketPropsMixin.ObjectLockConfigurationProperty objectLockConfiguration) Sets the value ofCfnBucketMixinProps.getObjectLockConfiguration()objectLockConfiguration(IResolvable objectLockConfiguration) Sets the value ofCfnBucketMixinProps.getObjectLockConfiguration()objectLockEnabled(Boolean objectLockEnabled) Sets the value ofCfnBucketMixinProps.getObjectLockEnabled()objectLockEnabled(IResolvable objectLockEnabled) Sets the value ofCfnBucketMixinProps.getObjectLockEnabled()ownershipControls(CfnBucketPropsMixin.OwnershipControlsProperty ownershipControls) Sets the value ofCfnBucketMixinProps.getOwnershipControls()ownershipControls(IResolvable ownershipControls) Sets the value ofCfnBucketMixinProps.getOwnershipControls()publicAccessBlockConfiguration(CfnBucketPropsMixin.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration) Sets the value ofCfnBucketMixinProps.getPublicAccessBlockConfiguration()publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration) Sets the value ofCfnBucketMixinProps.getPublicAccessBlockConfiguration()replicationConfiguration(CfnBucketPropsMixin.ReplicationConfigurationProperty replicationConfiguration) Sets the value ofCfnBucketMixinProps.getReplicationConfiguration()replicationConfiguration(IResolvable replicationConfiguration) Sets the value ofCfnBucketMixinProps.getReplicationConfiguration()Sets the value ofCfnBucketMixinProps.getTags()versioningConfiguration(CfnBucketPropsMixin.VersioningConfigurationProperty versioningConfiguration) Sets the value ofCfnBucketMixinProps.getVersioningConfiguration()versioningConfiguration(IResolvable versioningConfiguration) Sets the value ofCfnBucketMixinProps.getVersioningConfiguration()websiteConfiguration(CfnBucketPropsMixin.WebsiteConfigurationProperty websiteConfiguration) Sets the value ofCfnBucketMixinProps.getWebsiteConfiguration()websiteConfiguration(IResolvable websiteConfiguration) Sets the value ofCfnBucketMixinProps.getWebsiteConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
abacStatus
Sets the value ofCfnBucketMixinProps.getAbacStatus()- Parameters:
abacStatus- The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see Using tags with S3 general purpose buckets .- Returns:
this
-
accelerateConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder accelerateConfiguration(IResolvable accelerateConfiguration) Sets the value ofCfnBucketMixinProps.getAccelerateConfiguration()- Parameters:
accelerateConfiguration- Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see Amazon S3 Transfer Acceleration in the Amazon S3 User Guide .- Returns:
this
-
accelerateConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder accelerateConfiguration(CfnBucketPropsMixin.AccelerateConfigurationProperty accelerateConfiguration) Sets the value ofCfnBucketMixinProps.getAccelerateConfiguration()- Parameters:
accelerateConfiguration- Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see Amazon S3 Transfer Acceleration in the Amazon S3 User Guide .- Returns:
this
-
accessControl
Sets the value ofCfnBucketMixinProps.getAccessControl()- Parameters:
accessControl-
A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see Controlling object ownership in the Amazon S3 User Guide .This is a legacy property, and it is not recommended for most use cases.
A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see Canned ACL in the Amazon S3 User Guide .
S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the AWS::S3::OwnershipControls property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.
The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see AWS::S3::BucketPolicy . For examples of common policy configurations, including S3 Server Access Logs buckets and more, see Bucket policy examples in the Amazon S3 User Guide .
- Returns:
this
-
analyticsConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder analyticsConfigurations(IResolvable analyticsConfigurations) Sets the value ofCfnBucketMixinProps.getAnalyticsConfigurations()- Parameters:
analyticsConfigurations- Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.- Returns:
this
-
analyticsConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder analyticsConfigurations(List<? extends Object> analyticsConfigurations) Sets the value ofCfnBucketMixinProps.getAnalyticsConfigurations()- Parameters:
analyticsConfigurations- Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.- Returns:
this
-
bucketEncryption
@Stability(Stable) public CfnBucketMixinProps.Builder bucketEncryption(IResolvable bucketEncryption) Sets the value ofCfnBucketMixinProps.getBucketEncryption()- Parameters:
bucketEncryption- Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .- Returns:
this
-
bucketEncryption
@Stability(Stable) public CfnBucketMixinProps.Builder bucketEncryption(CfnBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Sets the value ofCfnBucketMixinProps.getBucketEncryption()- Parameters:
bucketEncryption- Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .- Returns:
this
-
bucketName
Sets the value ofCfnBucketMixinProps.getBucketName()- Parameters:
bucketName- A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow Amazon S3 bucket restrictions and limitations . For more information, see Rules for naming Amazon S3 buckets in the Amazon S3 User Guide .If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
- Returns:
this
-
corsConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder corsConfiguration(IResolvable corsConfiguration) Sets the value ofCfnBucketMixinProps.getCorsConfiguration()- Parameters:
corsConfiguration- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide .- Returns:
this
-
corsConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder corsConfiguration(CfnBucketPropsMixin.CorsConfigurationProperty corsConfiguration) Sets the value ofCfnBucketMixinProps.getCorsConfiguration()- Parameters:
corsConfiguration- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide .- Returns:
this
-
intelligentTieringConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder intelligentTieringConfigurations(IResolvable intelligentTieringConfigurations) Sets the value ofCfnBucketMixinProps.getIntelligentTieringConfigurations()- Parameters:
intelligentTieringConfigurations- Defines how Amazon S3 handles Intelligent-Tiering storage.- Returns:
this
-
intelligentTieringConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder intelligentTieringConfigurations(List<? extends Object> intelligentTieringConfigurations) Sets the value ofCfnBucketMixinProps.getIntelligentTieringConfigurations()- Parameters:
intelligentTieringConfigurations- Defines how Amazon S3 handles Intelligent-Tiering storage.- Returns:
this
-
inventoryConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder inventoryConfigurations(IResolvable inventoryConfigurations) Sets the value ofCfnBucketMixinProps.getInventoryConfigurations()- Parameters:
inventoryConfigurations- Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon S3 API Reference .- Returns:
this
-
inventoryConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder inventoryConfigurations(List<? extends Object> inventoryConfigurations) Sets the value ofCfnBucketMixinProps.getInventoryConfigurations()- Parameters:
inventoryConfigurations- Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon S3 API Reference .- Returns:
this
-
lifecycleConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder lifecycleConfiguration(IResolvable lifecycleConfiguration) Sets the value ofCfnBucketMixinProps.getLifecycleConfiguration()- Parameters:
lifecycleConfiguration- Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see Object Lifecycle Management in the Amazon S3 User Guide .- Returns:
this
-
lifecycleConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder lifecycleConfiguration(CfnBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Sets the value ofCfnBucketMixinProps.getLifecycleConfiguration()- Parameters:
lifecycleConfiguration- Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see Object Lifecycle Management in the Amazon S3 User Guide .- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnBucketMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Settings that define where logs are stored.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder loggingConfiguration(CfnBucketPropsMixin.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnBucketMixinProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Settings that define where logs are stored.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataConfiguration()- Parameters:
metadataConfiguration- The S3 Metadata configuration for a general purpose bucket.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder metadataConfiguration(CfnBucketPropsMixin.MetadataConfigurationProperty metadataConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataConfiguration()- Parameters:
metadataConfiguration- The S3 Metadata configuration for a general purpose bucket.- Returns:
this
-
metadataTableConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder metadataTableConfiguration(IResolvable metadataTableConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataTableConfiguration()- Parameters:
metadataTableConfiguration- The metadata table configuration of an Amazon S3 general purpose bucket.- Returns:
this
-
metadataTableConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder metadataTableConfiguration(CfnBucketPropsMixin.MetadataTableConfigurationProperty metadataTableConfiguration) Sets the value ofCfnBucketMixinProps.getMetadataTableConfiguration()- Parameters:
metadataTableConfiguration- The metadata table configuration of an Amazon S3 general purpose bucket.- Returns:
this
-
metricsConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder metricsConfigurations(IResolvable metricsConfigurations) Sets the value ofCfnBucketMixinProps.getMetricsConfigurations()- Parameters:
metricsConfigurations- Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see PutBucketMetricsConfiguration .- Returns:
this
-
metricsConfigurations
@Stability(Stable) public CfnBucketMixinProps.Builder metricsConfigurations(List<? extends Object> metricsConfigurations) Sets the value ofCfnBucketMixinProps.getMetricsConfigurations()- Parameters:
metricsConfigurations- Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see PutBucketMetricsConfiguration .- Returns:
this
-
notificationConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder notificationConfiguration(IResolvable notificationConfiguration) Sets the value ofCfnBucketMixinProps.getNotificationConfiguration()- Parameters:
notificationConfiguration- Configuration that defines how Amazon S3 handles bucket notifications.- Returns:
this
-
notificationConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder notificationConfiguration(CfnBucketPropsMixin.NotificationConfigurationProperty notificationConfiguration) Sets the value ofCfnBucketMixinProps.getNotificationConfiguration()- Parameters:
notificationConfiguration- Configuration that defines how Amazon S3 handles bucket notifications.- Returns:
this
-
objectLockConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder objectLockConfiguration(IResolvable objectLockConfiguration) Sets the value ofCfnBucketMixinProps.getObjectLockConfiguration()- Parameters:
objectLockConfiguration-
Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects .This operation is not supported for directory buckets.
- The
DefaultRetentionsettings require both a mode and a period. - The
DefaultRetentionperiod can be eitherDaysorYearsbut you must select one. You cannot specifyDaysandYearsat the same time. - You can enable Object Lock for new or existing buckets. For more information, see Configuring Object Lock . > You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.
- The
- Returns:
this
-
objectLockConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder objectLockConfiguration(CfnBucketPropsMixin.ObjectLockConfigurationProperty objectLockConfiguration) Sets the value ofCfnBucketMixinProps.getObjectLockConfiguration()- Parameters:
objectLockConfiguration-
Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects .This operation is not supported for directory buckets.
- The
DefaultRetentionsettings require both a mode and a period. - The
DefaultRetentionperiod can be eitherDaysorYearsbut you must select one. You cannot specifyDaysandYearsat the same time. - You can enable Object Lock for new or existing buckets. For more information, see Configuring Object Lock . > You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.
- The
- Returns:
this
-
objectLockEnabled
Sets the value ofCfnBucketMixinProps.getObjectLockEnabled()- Parameters:
objectLockEnabled- Indicates whether this bucket has an Object Lock configuration enabled. EnableObjectLockEnabledwhen you applyObjectLockConfigurationto a bucket.- Returns:
this
-
objectLockEnabled
@Stability(Stable) public CfnBucketMixinProps.Builder objectLockEnabled(IResolvable objectLockEnabled) Sets the value ofCfnBucketMixinProps.getObjectLockEnabled()- Parameters:
objectLockEnabled- Indicates whether this bucket has an Object Lock configuration enabled. EnableObjectLockEnabledwhen you applyObjectLockConfigurationto a bucket.- Returns:
this
-
ownershipControls
@Stability(Stable) public CfnBucketMixinProps.Builder ownershipControls(IResolvable ownershipControls) Sets the value ofCfnBucketMixinProps.getOwnershipControls()- Parameters:
ownershipControls- Configuration that defines how Amazon S3 handles Object Ownership rules.- Returns:
this
-
ownershipControls
@Stability(Stable) public CfnBucketMixinProps.Builder ownershipControls(CfnBucketPropsMixin.OwnershipControlsProperty ownershipControls) Sets the value ofCfnBucketMixinProps.getOwnershipControls()- Parameters:
ownershipControls- Configuration that defines how Amazon S3 handles Object Ownership rules.- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration) Sets the value ofCfnBucketMixinProps.getPublicAccessBlockConfiguration()- Parameters:
publicAccessBlockConfiguration- Configuration that defines how Amazon S3 handles public access.- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder publicAccessBlockConfiguration(CfnBucketPropsMixin.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration) Sets the value ofCfnBucketMixinProps.getPublicAccessBlockConfiguration()- Parameters:
publicAccessBlockConfiguration- Configuration that defines how Amazon S3 handles public access.- Returns:
this
-
replicationConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder replicationConfiguration(IResolvable replicationConfiguration) Sets the value ofCfnBucketMixinProps.getReplicationConfiguration()- Parameters:
replicationConfiguration- Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using theVersioningConfigurationproperty.Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
- Returns:
this
-
replicationConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder replicationConfiguration(CfnBucketPropsMixin.ReplicationConfigurationProperty replicationConfiguration) Sets the value ofCfnBucketMixinProps.getReplicationConfiguration()- Parameters:
replicationConfiguration- Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using theVersioningConfigurationproperty.Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
- Returns:
this
-
tags
Sets the value ofCfnBucketMixinProps.getTags()- Parameters:
tags- An arbitrary set of tags (key-value pairs) for this S3 bucket.- Returns:
this
-
versioningConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder versioningConfiguration(IResolvable versioningConfiguration) Sets the value ofCfnBucketMixinProps.getVersioningConfiguration()- Parameters:
versioningConfiguration- Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (
PUTorDELETE) on objects in the bucket.- Returns:
this
-
versioningConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder versioningConfiguration(CfnBucketPropsMixin.VersioningConfigurationProperty versioningConfiguration) Sets the value ofCfnBucketMixinProps.getVersioningConfiguration()- Parameters:
versioningConfiguration- Enables multiple versions of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (
PUTorDELETE) on objects in the bucket.- Returns:
this
-
websiteConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder websiteConfiguration(IResolvable websiteConfiguration) Sets the value ofCfnBucketMixinProps.getWebsiteConfiguration()- Parameters:
websiteConfiguration- Information used to configure the bucket as a static website. For more information, see Hosting Websites on Amazon S3 .- Returns:
this
-
websiteConfiguration
@Stability(Stable) public CfnBucketMixinProps.Builder websiteConfiguration(CfnBucketPropsMixin.WebsiteConfigurationProperty websiteConfiguration) Sets the value ofCfnBucketMixinProps.getWebsiteConfiguration()- Parameters:
websiteConfiguration- Information used to configure the bucket as a static website. For more information, see Hosting Websites on Amazon S3 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketMixinProps>- Returns:
- a new instance of
CfnBucketMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-