Class 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).
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.S3.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnBucketPropsMixin.BucketEncryptionProperty : CfnBucketPropsMixin.IBucketEncryptionProperty
Syntax (vb)
Public Class CfnBucketPropsMixin.BucketEncryptionProperty Implements CfnBucketPropsMixin.IBucketEncryptionProperty
Remarks
For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.S3.Mixins;
var bucketEncryptionProperty = new BucketEncryptionProperty {
ServerSideEncryptionConfiguration = new [] { new ServerSideEncryptionRuleProperty {
BlockedEncryptionTypes = new BlockedEncryptionTypesProperty {
EncryptionType = new [] { "encryptionType" }
},
BucketKeyEnabled = false,
ServerSideEncryptionByDefault = new ServerSideEncryptionByDefaultProperty {
KmsMasterKeyId = "kmsMasterKeyId",
SseAlgorithm = "sseAlgorithm"
}
} }
};
Synopsis
Constructors
| 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). |
Properties
| ServerSideEncryptionConfiguration | Specifies the default server-side-encryption configuration. |
Constructors
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).
public BucketEncryptionProperty()
Remarks
For information about the Amazon S3 default encryption feature, see Amazon S3 Default Encryption for S3 Buckets in the Amazon S3 User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.S3.Mixins;
var bucketEncryptionProperty = new BucketEncryptionProperty {
ServerSideEncryptionConfiguration = new [] { new ServerSideEncryptionRuleProperty {
BlockedEncryptionTypes = new BlockedEncryptionTypesProperty {
EncryptionType = new [] { "encryptionType" }
},
BucketKeyEnabled = false,
ServerSideEncryptionByDefault = new ServerSideEncryptionByDefaultProperty {
KmsMasterKeyId = "kmsMasterKeyId",
SseAlgorithm = "sseAlgorithm"
}
} }
};
Properties
ServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.
public object? ServerSideEncryptionConfiguration { get; set; }