Show / Hide Table of Contents

Class BucketEncryption

What kind of server-side encryption to apply to this bucket.

Inheritance
System.Object
BucketEncryption
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public sealed class BucketEncryption : Enum
Syntax (vb)
Public NotInheritable Class BucketEncryption
    Inherits

     Enum
Remarks

ExampleMetadata: infused

Examples
Bucket bucket = new Bucket(this, "MyEncryptedBucket", new BucketProps {
    Encryption = BucketEncryption.KMS
});

// you can access the encryption key:
Assert(bucket.EncryptionKey instanceof Key);

Synopsis

Fields

KMS

Server-side encryption with a KMS key managed by the user.

KMS_MANAGED

Server-side KMS encryption with a master key managed by KMS.

S3_MANAGED

Server-side encryption with a master key managed by S3.

UNENCRYPTED

Objects in the bucket are not encrypted.

value__

Fields

KMS

Server-side encryption with a KMS key managed by the user.

public const BucketEncryption KMS
Field Value
Type Description
BucketEncryption
Remarks

If encryptionKey is specified, this key will be used, otherwise, one will be defined.

KMS_MANAGED

Server-side KMS encryption with a master key managed by KMS.

public const BucketEncryption KMS_MANAGED
Field Value
Type Description
BucketEncryption

S3_MANAGED

Server-side encryption with a master key managed by S3.

public const BucketEncryption S3_MANAGED
Field Value
Type Description
BucketEncryption

UNENCRYPTED

Objects in the bucket are not encrypted.

public const BucketEncryption UNENCRYPTED
Field Value
Type Description
BucketEncryption

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX