interface BucketEncryptionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketPropsMixin.BucketEncryptionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketPropsMixin_BucketEncryptionProperty |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.BucketEncryptionProperty |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketPropsMixin.BucketEncryptionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » CfnBucketPropsMixin » BucketEncryptionProperty |
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 { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const bucketEncryptionProperty: s3_mixins.CfnBucketPropsMixin.BucketEncryptionProperty = {
serverSideEncryptionConfiguration: [{
blockedEncryptionTypes: {
encryptionType: ['encryptionType'],
},
bucketKeyEnabled: false,
serverSideEncryptionByDefault: {
kmsMasterKeyId: 'kmsMasterKeyId',
sseAlgorithm: 'sseAlgorithm',
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| server | IResolvable | (IResolvable | Server)[] | Specifies the default server-side-encryption configuration. |
serverSideEncryptionConfiguration?
Type:
IResolvable | (IResolvable | Server)[]
(optional)
Specifies the default server-side-encryption configuration.

.NET
Go
Java
Python
TypeScript