Show / Hide Table of Contents

Class 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.

Inheritance
System.Object
CfnBucket.BucketEncryptionProperty
Implements
CfnBucket.IBucketEncryptionProperty
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.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 .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html

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;

BucketEncryptionProperty 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

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-bucketencryption.html#cfn-s3-bucket-bucketencryption-serversideencryptionconfiguration

Implements

CfnBucket.IBucketEncryptionProperty
Back to top Generated by DocFX