Class CfnBucket.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).
Inheritance
System.Object
CfnBucket.BucketEncryptionProperty
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BucketEncryptionProperty : Object, CfnBucket.IBucketEncryptionProperty
Syntax (vb)
Public Class BucketEncryptionProperty
Inherits Object
Implements CfnBucket.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.AWS.S3;
var bucketEncryptionProperty = new BucketEncryptionProperty {
ServerSideEncryptionConfiguration = new [] { new ServerSideEncryptionRuleProperty {
BucketKeyEnabled = false,
ServerSideEncryptionByDefault = new ServerSideEncryptionByDefaultProperty {
SseAlgorithm = "sseAlgorithm",
// the properties below are optional
KmsMasterKeyId = "kmsMasterKeyId"
}
} }
};
Synopsis
Constructors
BucketEncryptionProperty() |
Properties
ServerSideEncryptionConfiguration | Specifies the default server-side-encryption configuration. |
Constructors
BucketEncryptionProperty()
public BucketEncryptionProperty()
Properties
ServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.
public object ServerSideEncryptionConfiguration { get; set; }
Property Value
System.Object