@Stability(value=Stable)
public static interface CfnBucket.BucketEncryptionProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.BucketEncryptionProperty.Builder
A builder for
CfnBucket.BucketEncryptionProperty |
static class |
CfnBucket.BucketEncryptionProperty.Jsii$Proxy
An implementation for
CfnBucket.BucketEncryptionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.BucketEncryptionProperty.Builder |
builder() |
Object |
getServerSideEncryptionConfiguration()
Specifies the default server-side-encryption configuration.
|
@Stability(value=Stable) @NotNull Object getServerSideEncryptionConfiguration()
@Stability(value=Stable) static CfnBucket.BucketEncryptionProperty.Builder builder()
Copyright © 2022. All rights reserved.