Class CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.ServerSideEncryptionRuleProperty>
- Enclosing interface:
CfnBucketPropsMixin.ServerSideEncryptionRuleProperty
CfnBucketPropsMixin.ServerSideEncryptionRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockedEncryptionTypes(CfnBucketPropsMixin.BlockedEncryptionTypesProperty blockedEncryptionTypes) blockedEncryptionTypes(IResolvable blockedEncryptionTypes) bucketKeyEnabled(Boolean bucketKeyEnabled) bucketKeyEnabled(IResolvable bucketKeyEnabled) build()Builds the configured instance.serverSideEncryptionByDefault(CfnBucketPropsMixin.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault) serverSideEncryptionByDefault(IResolvable serverSideEncryptionByDefault)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockedEncryptionTypes
@Stability(Stable) public CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder blockedEncryptionTypes(IResolvable blockedEncryptionTypes) - 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 CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder blockedEncryptionTypes(CfnBucketPropsMixin.BlockedEncryptionTypesProperty blockedEncryptionTypes) - 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 CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(Boolean bucketKeyEnabled) - 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 CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder bucketKeyEnabled(IResolvable bucketKeyEnabled) - 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 CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(IResolvable serverSideEncryptionByDefault) Sets the value ofCfnBucketPropsMixin.ServerSideEncryptionRuleProperty.getServerSideEncryptionByDefault()- 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 CfnBucketPropsMixin.ServerSideEncryptionRuleProperty.Builder serverSideEncryptionByDefault(CfnBucketPropsMixin.ServerSideEncryptionByDefaultProperty serverSideEncryptionByDefault) Sets the value ofCfnBucketPropsMixin.ServerSideEncryptionRuleProperty.getServerSideEncryptionByDefault()- 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<CfnBucketPropsMixin.ServerSideEncryptionRuleProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.ServerSideEncryptionRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-