Interface CfnDirectoryBucketPropsMixin.BucketEncryptionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDirectoryBucketPropsMixin.BucketEncryptionProperty.Jsii$Proxy
- Enclosing class:
CfnDirectoryBucketPropsMixin
@Stability(Stable)
public static interface CfnDirectoryBucketPropsMixin.BucketEncryptionProperty
extends software.amazon.jsii.JsiiSerializable
Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).
For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.s3express.*;
BucketEncryptionProperty bucketEncryptionProperty = BucketEncryptionProperty.builder()
.serverSideEncryptionConfiguration(List.of(ServerSideEncryptionRuleProperty.builder()
.bucketKeyEnabled(false)
.serverSideEncryptionByDefault(ServerSideEncryptionByDefaultProperty.builder()
.kmsMasterKeyId("kmsMasterKeyId")
.sseAlgorithm("sseAlgorithm")
.build())
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDirectoryBucketPropsMixin.BucketEncryptionPropertystatic final classAn implementation forCfnDirectoryBucketPropsMixin.BucketEncryptionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDirectoryBucketPropsMixin.ServerSideEncryptionRuleProperty>- See Also:
-
builder
-