Modifier and Type | Method and Description |
---|---|
CfnBucket.Builder |
accelerateConfiguration(CfnBucket.AccelerateConfigurationProperty accelerateConfiguration)
Configures the transfer acceleration state for an Amazon S3 bucket.
|
CfnBucket.Builder |
accelerateConfiguration(IResolvable accelerateConfiguration)
Configures the transfer acceleration state for an Amazon S3 bucket.
|
CfnBucket.Builder |
accessControl(java.lang.String accessControl)
A canned access control list (ACL) that grants predefined permissions to the bucket.
|
CfnBucket.Builder |
analyticsConfigurations(IResolvable analyticsConfigurations)
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
|
CfnBucket.Builder |
analyticsConfigurations(java.util.List<? extends java.lang.Object> analyticsConfigurations)
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
|
CfnBucket.Builder |
bucketEncryption(CfnBucket.BucketEncryptionProperty bucketEncryption)
Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) bucket.
|
CfnBucket.Builder |
bucketEncryption(IResolvable bucketEncryption)
Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) bucket.
|
CfnBucket.Builder |
bucketName(java.lang.String bucketName)
A name for the bucket.
|
CfnBucket |
build() |
CfnBucket.Builder |
corsConfiguration(CfnBucket.CorsConfigurationProperty corsConfiguration)
Describes the cross-origin access configuration for objects in an Amazon S3 bucket.
|
CfnBucket.Builder |
corsConfiguration(IResolvable corsConfiguration)
Describes the cross-origin access configuration for objects in an Amazon S3 bucket.
|
static CfnBucket.Builder |
create(Construct scope,
java.lang.String id) |
CfnBucket.Builder |
intelligentTieringConfigurations(IResolvable intelligentTieringConfigurations)
Defines how Amazon S3 handles Intelligent-Tiering storage.
|
CfnBucket.Builder |
intelligentTieringConfigurations(java.util.List<? extends java.lang.Object> intelligentTieringConfigurations)
Defines how Amazon S3 handles Intelligent-Tiering storage.
|
CfnBucket.Builder |
inventoryConfigurations(IResolvable inventoryConfigurations)
Specifies the inventory configuration for an Amazon S3 bucket.
|
CfnBucket.Builder |
inventoryConfigurations(java.util.List<? extends java.lang.Object> inventoryConfigurations)
Specifies the inventory configuration for an Amazon S3 bucket.
|
CfnBucket.Builder |
lifecycleConfiguration(CfnBucket.LifecycleConfigurationProperty lifecycleConfiguration)
Specifies the lifecycle configuration for objects in an Amazon S3 bucket.
|
CfnBucket.Builder |
lifecycleConfiguration(IResolvable lifecycleConfiguration)
Specifies the lifecycle configuration for objects in an Amazon S3 bucket.
|
CfnBucket.Builder |
loggingConfiguration(CfnBucket.LoggingConfigurationProperty loggingConfiguration)
Settings that define where logs are stored.
|
CfnBucket.Builder |
loggingConfiguration(IResolvable loggingConfiguration)
Settings that define where logs are stored.
|
CfnBucket.Builder |
metricsConfigurations(IResolvable metricsConfigurations)
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.
|
CfnBucket.Builder |
metricsConfigurations(java.util.List<? extends java.lang.Object> metricsConfigurations)
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.
|
CfnBucket.Builder |
notificationConfiguration(CfnBucket.NotificationConfigurationProperty notificationConfiguration)
Configuration that defines how Amazon S3 handles bucket notifications.
|
CfnBucket.Builder |
notificationConfiguration(IResolvable notificationConfiguration)
Configuration that defines how Amazon S3 handles bucket notifications.
|
CfnBucket.Builder |
objectLockConfiguration(CfnBucket.ObjectLockConfigurationProperty objectLockConfiguration)
Places an Object Lock configuration on the specified bucket.
|
CfnBucket.Builder |
objectLockConfiguration(IResolvable objectLockConfiguration)
Places an Object Lock configuration on the specified bucket.
|
CfnBucket.Builder |
objectLockEnabled(java.lang.Boolean objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
|
CfnBucket.Builder |
objectLockEnabled(IResolvable objectLockEnabled)
Indicates whether this bucket has an Object Lock configuration enabled.
|
CfnBucket.Builder |
ownershipControls(CfnBucket.OwnershipControlsProperty ownershipControls)
Configuration that defines how Amazon S3 handles Object Ownership rules.
|
CfnBucket.Builder |
ownershipControls(IResolvable ownershipControls)
Configuration that defines how Amazon S3 handles Object Ownership rules.
|
CfnBucket.Builder |
publicAccessBlockConfiguration(CfnBucket.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration)
Configuration that defines how Amazon S3 handles public access.
|
CfnBucket.Builder |
publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration)
Configuration that defines how Amazon S3 handles public access.
|
CfnBucket.Builder |
replicationConfiguration(CfnBucket.ReplicationConfigurationProperty replicationConfiguration)
Configuration for replicating objects in an S3 bucket.
|
CfnBucket.Builder |
replicationConfiguration(IResolvable replicationConfiguration)
Configuration for replicating objects in an S3 bucket.
|
CfnBucket.Builder |
tags(java.util.List<? extends CfnTag> tags)
An arbitrary set of tags (key-value pairs) for this S3 bucket.
|
CfnBucket.Builder |
versioningConfiguration(CfnBucket.VersioningConfigurationProperty versioningConfiguration)
Enables multiple versions of all objects in this bucket.
|
CfnBucket.Builder |
versioningConfiguration(IResolvable versioningConfiguration)
Enables multiple versions of all objects in this bucket.
|
CfnBucket.Builder |
websiteConfiguration(CfnBucket.WebsiteConfigurationProperty websiteConfiguration)
Information used to configure the bucket as a static website.
|
CfnBucket.Builder |
websiteConfiguration(IResolvable websiteConfiguration)
Information used to configure the bucket as a static website.
|
public static CfnBucket.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnBucket.AbortIncompleteMultipartUploadProperty.Builder
.public CfnBucket.Builder accelerateConfiguration(IResolvable accelerateConfiguration)
For more information, see Amazon S3 Transfer Acceleration in the Amazon S3 User Guide .
accelerateConfiguration
- Configures the transfer acceleration state for an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder accelerateConfiguration(CfnBucket.AccelerateConfigurationProperty accelerateConfiguration)
For more information, see Amazon S3 Transfer Acceleration in the Amazon S3 User Guide .
accelerateConfiguration
- Configures the transfer acceleration state for an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder accessControl(java.lang.String accessControl)
For more information about canned ACLs, see Canned ACL in the Amazon S3 User Guide .
Be aware that the syntax for this property differs from the information provided in the Amazon S3 User Guide . The AccessControl property is case-sensitive and must be one of the following values: Private, PublicRead, PublicReadWrite, AuthenticatedRead, LogDeliveryWrite, BucketOwnerRead, BucketOwnerFullControl, or AwsExecRead.
accessControl
- A canned access control list (ACL) that grants predefined permissions to the bucket. This parameter is required.this
public CfnBucket.Builder analyticsConfigurations(IResolvable analyticsConfigurations)
analyticsConfigurations
- Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder analyticsConfigurations(java.util.List<? extends java.lang.Object> analyticsConfigurations)
analyticsConfigurations
- Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder bucketEncryption(IResolvable bucketEncryption)
For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .
bucketEncryption
- Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) bucket. This parameter is required.this
public CfnBucket.Builder bucketEncryption(CfnBucket.BucketEncryptionProperty bucketEncryption)
For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .
bucketEncryption
- Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) bucket. This parameter is required.this
public CfnBucket.Builder bucketName(java.lang.String bucketName)
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.
bucketName
- A name for the bucket. This parameter is required.this
public CfnBucket.Builder corsConfiguration(IResolvable corsConfiguration)
For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide .
corsConfiguration
- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder corsConfiguration(CfnBucket.CorsConfigurationProperty corsConfiguration)
For more information, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide .
corsConfiguration
- Describes the cross-origin access configuration for objects in an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder intelligentTieringConfigurations(IResolvable intelligentTieringConfigurations)
intelligentTieringConfigurations
- Defines how Amazon S3 handles Intelligent-Tiering storage. This parameter is required.this
public CfnBucket.Builder intelligentTieringConfigurations(java.util.List<? extends java.lang.Object> intelligentTieringConfigurations)
intelligentTieringConfigurations
- Defines how Amazon S3 handles Intelligent-Tiering storage. This parameter is required.this
public CfnBucket.Builder inventoryConfigurations(IResolvable inventoryConfigurations)
For more information, see GET Bucket inventory in the Amazon S3 API Reference .
inventoryConfigurations
- Specifies the inventory configuration for an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder inventoryConfigurations(java.util.List<? extends java.lang.Object> inventoryConfigurations)
For more information, see GET Bucket inventory in the Amazon S3 API Reference .
inventoryConfigurations
- Specifies the inventory configuration for an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder lifecycleConfiguration(IResolvable lifecycleConfiguration)
For more information, see Object Lifecycle Management in the Amazon S3 User Guide .
lifecycleConfiguration
- Specifies the lifecycle configuration for objects in an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder lifecycleConfiguration(CfnBucket.LifecycleConfigurationProperty lifecycleConfiguration)
For more information, see Object Lifecycle Management in the Amazon S3 User Guide .
lifecycleConfiguration
- Specifies the lifecycle configuration for objects in an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder loggingConfiguration(IResolvable loggingConfiguration)
loggingConfiguration
- Settings that define where logs are stored. This parameter is required.this
public CfnBucket.Builder loggingConfiguration(CfnBucket.LoggingConfigurationProperty loggingConfiguration)
loggingConfiguration
- Settings that define where logs are stored. This parameter is required.this
public CfnBucket.Builder metricsConfigurations(IResolvable metricsConfigurations)
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 .
metricsConfigurations
- Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder metricsConfigurations(java.util.List<? extends java.lang.Object> metricsConfigurations)
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 .
metricsConfigurations
- Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. This parameter is required.this
public CfnBucket.Builder notificationConfiguration(IResolvable notificationConfiguration)
notificationConfiguration
- Configuration that defines how Amazon S3 handles bucket notifications. This parameter is required.this
public CfnBucket.Builder notificationConfiguration(CfnBucket.NotificationConfigurationProperty notificationConfiguration)
notificationConfiguration
- Configuration that defines how Amazon S3 handles bucket notifications. This parameter is required.this
public CfnBucket.Builder objectLockConfiguration(IResolvable objectLockConfiguration)
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 .
- The
DefaultRetention
settings require both a mode and a period.- The
DefaultRetention
period can be eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.- You can only enable Object Lock for new buckets. If you want to turn on Object Lock for an existing bucket, contact AWS Support.
objectLockConfiguration
- Places an Object Lock configuration on the specified bucket. This parameter is required.this
public CfnBucket.Builder objectLockConfiguration(CfnBucket.ObjectLockConfigurationProperty objectLockConfiguration)
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 .
- The
DefaultRetention
settings require both a mode and a period.- The
DefaultRetention
period can be eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.- You can only enable Object Lock for new buckets. If you want to turn on Object Lock for an existing bucket, contact AWS Support.
objectLockConfiguration
- Places an Object Lock configuration on the specified bucket. This parameter is required.this
public CfnBucket.Builder objectLockEnabled(java.lang.Boolean objectLockEnabled)
Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
objectLockEnabled
- Indicates whether this bucket has an Object Lock configuration enabled. This parameter is required.this
public CfnBucket.Builder objectLockEnabled(IResolvable objectLockEnabled)
Enable ObjectLockEnabled
when you apply ObjectLockConfiguration
to a bucket.
objectLockEnabled
- Indicates whether this bucket has an Object Lock configuration enabled. This parameter is required.this
public CfnBucket.Builder ownershipControls(IResolvable ownershipControls)
ownershipControls
- Configuration that defines how Amazon S3 handles Object Ownership rules. This parameter is required.this
public CfnBucket.Builder ownershipControls(CfnBucket.OwnershipControlsProperty ownershipControls)
ownershipControls
- Configuration that defines how Amazon S3 handles Object Ownership rules. This parameter is required.this
public CfnBucket.Builder publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration)
publicAccessBlockConfiguration
- Configuration that defines how Amazon S3 handles public access. This parameter is required.this
public CfnBucket.Builder publicAccessBlockConfiguration(CfnBucket.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration)
publicAccessBlockConfiguration
- Configuration that defines how Amazon S3 handles public access. This parameter is required.this
public CfnBucket.Builder replicationConfiguration(IResolvable replicationConfiguration)
To enable replication, you must also enable versioning by using the VersioningConfiguration
property.
Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
replicationConfiguration
- Configuration for replicating objects in an S3 bucket. This parameter is required.this
public CfnBucket.Builder replicationConfiguration(CfnBucket.ReplicationConfigurationProperty replicationConfiguration)
To enable replication, you must also enable versioning by using the VersioningConfiguration
property.
Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.
replicationConfiguration
- Configuration for replicating objects in an S3 bucket. This parameter is required.this
public CfnBucket.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- An arbitrary set of tags (key-value pairs) for this S3 bucket. This parameter is required.this
public CfnBucket.Builder versioningConfiguration(IResolvable versioningConfiguration)
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.
versioningConfiguration
- Enables multiple versions of all objects in this bucket. This parameter is required.this
public CfnBucket.Builder versioningConfiguration(CfnBucket.VersioningConfigurationProperty versioningConfiguration)
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.
versioningConfiguration
- Enables multiple versions of all objects in this bucket. This parameter is required.this
public CfnBucket.Builder websiteConfiguration(IResolvable websiteConfiguration)
For more information, see Hosting Websites on Amazon S3 .
websiteConfiguration
- Information used to configure the bucket as a static website. This parameter is required.this
public CfnBucket.Builder websiteConfiguration(CfnBucket.WebsiteConfigurationProperty websiteConfiguration)
For more information, see Hosting Websites on Amazon S3 .
websiteConfiguration
- Information used to configure the bucket as a static website. This parameter is required.this
public CfnBucket build()