interface BucketEncryptionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.BucketEncryptionProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.BucketEncryptionProperty |
Python | aws_cdk.aws_s3.CfnBucket.BucketEncryptionProperty |
TypeScript | @aws-cdk/aws-s3 » CfnBucket » BucketEncryptionProperty |
Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or AWS KMS-managed keys (SSE-KMS) bucket.
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 * as s3 from '@aws-cdk/aws-s3';
const bucketEncryptionProperty: s3.CfnBucket.BucketEncryptionProperty = {
serverSideEncryptionConfiguration: [{
bucketKeyEnabled: false,
serverSideEncryptionByDefault: {
sseAlgorithm: 'sseAlgorithm',
// the properties below are optional
kmsMasterKeyId: 'kmsMasterKeyId',
},
}],
};
Properties
Name | Type | Description |
---|---|---|
server | IResolvable | IResolvable | Server [] | Specifies the default server-side-encryption configuration. |
serverSideEncryptionConfiguration
Type:
IResolvable
|
IResolvable
|
Server
[]
Specifies the default server-side-encryption configuration.