Interface CfnBucket.BucketEncryptionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.BucketEncryptionProperty.Jsii$Proxy
- Enclosing class:
CfnBucket
@Stability(Stable)
public static interface CfnBucket.BucketEncryptionProperty
extends software.amazon.jsii.JsiiSerializable
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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; BucketEncryptionProperty bucketEncryptionProperty = BucketEncryptionProperty.builder() .serverSideEncryptionConfiguration(List.of(ServerSideEncryptionRuleProperty.builder() .bucketKeyEnabled(false) .serverSideEncryptionByDefault(ServerSideEncryptionByDefaultProperty.builder() .sseAlgorithm("sseAlgorithm") // the properties below are optional .kmsMasterKeyId("kmsMasterKeyId") .build()) .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBucket.BucketEncryptionProperty
static final class
An implementation forCfnBucket.BucketEncryptionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Specifies the default server-side-encryption configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.- See Also:
-
builder
-