Class CfnBucket.ServerSideEncryptionRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionRuleProperty>
- Enclosing interface:
CfnBucket.ServerSideEncryptionRuleProperty
CfnBucket.ServerSideEncryptionRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockedEncryptionTypes(IResolvable blockedEncryptionTypes) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBlockedEncryptionTypes()blockedEncryptionTypes(CfnBucket.BlockedEncryptionTypesProperty blockedEncryptionTypes) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBlockedEncryptionTypes()bucketKeyEnabled(Boolean bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()bucketKeyEnabled(IResolvable bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()build()Builds the configured instance.serverSideEncryptionByDefault(IResolvable serverSideEncryptionByDefault) serverSideEncryptionByDefault(CfnBucket.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockedEncryptionTypes
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder blockedEncryptionTypes(IResolvable blockedEncryptionTypes) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBlockedEncryptionTypes()- Parameters:
blockedEncryptionTypes- A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. For example, blocking an encryption type will blockPutObject,CopyObject,PostObject, multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see Blocking or unblocking SSE-C for a general purpose bucket .Currently, this parameter only supports blocking or unblocking server-side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C) .
- Returns:
this
-
blockedEncryptionTypes
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder blockedEncryptionTypes(CfnBucket.BlockedEncryptionTypesProperty blockedEncryptionTypes) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBlockedEncryptionTypes()- Parameters:
blockedEncryptionTypes- A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. For example, blocking an encryption type will blockPutObject,CopyObject,PostObject, multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see Blocking or unblocking SSE-C for a general purpose bucket .Currently, this parameter only supports blocking or unblocking server-side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C) .
- Returns:
this
-
bucketKeyEnabled
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(Boolean bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()- Parameters:
bucketKeyEnabled- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting theBucketKeyEnabledelement totruecauses Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide .
- Returns:
this
-
bucketKeyEnabled
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(IResolvable bucketKeyEnabled) Sets the value ofCfnBucket.ServerSideEncryptionRuleProperty.getBucketKeyEnabled()- Parameters:
bucketKeyEnabled- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting theBucketKeyEnabledelement totruecauses Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide .
- Returns:
this
-
serverSideEncryptionByDefault
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(IResolvable serverSideEncryptionByDefault) - Parameters:
serverSideEncryptionByDefault- Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.- Returns:
this
-
serverSideEncryptionByDefault
@Stability(Stable) public CfnBucket.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(CfnBucket.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault) - Parameters:
serverSideEncryptionByDefault- Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucket.ServerSideEncryptionRuleProperty>- Returns:
- a new instance of
CfnBucket.ServerSideEncryptionRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-