@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.734Z") @Stability(value=Stable) public enum BucketEncryption extends Enum<BucketEncryption>
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(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.
|
@Stability(value=Stable) public static final BucketEncryption UNENCRYPTED
@Stability(value=Stable) public static final BucketEncryption KMS_MANAGED
@Stability(value=Stable) public static final BucketEncryption S3_MANAGED
@Stability(value=Stable) 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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.