@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:27.107Z") public enum BucketEncryption extends java.lang.Enum<BucketEncryption>
Example:
Bucket bucket = Bucket.Builder.create(this, "MyEncryptedBucket") .encryption(BucketEncryption.KMS) .build(); // you can access the encryption key: assert(bucket.getEncryptionKey() instanceof Key);
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static BucketEncryption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BucketEncryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BucketEncryption UNENCRYPTED
public static final BucketEncryption KMS_MANAGED
public static final BucketEncryption S3_MANAGED
public static final BucketEncryption KMS
If encryptionKey
is specified, this key will be used, otherwise, one will be defined.
public static BucketEncryption[] values()
for (BucketEncryption c : BucketEncryption.values()) System.out.println(c);
public static BucketEncryption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null