@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.276Z") @Stability(value=Stable) public enum QueueEncryption extends Enum<QueueEncryption>
Example:
// Use managed key
// Use managed key
Queue.Builder.create(this, "Queue")
.encryption(QueueEncryption.KMS_MANAGED)
.build();
// Use custom key
Key myKey = new Key(this, "Key");
Queue.Builder.create(this, "Queue")
.encryption(QueueEncryption.KMS)
.encryptionMasterKey(myKey)
.build();
| 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 SQS.
|
UNENCRYPTED
Messages in the queue are not encrypted.
|
| Modifier and Type | Method and Description |
|---|---|
static QueueEncryption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueueEncryption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final QueueEncryption UNENCRYPTED
@Stability(value=Stable) public static final QueueEncryption KMS_MANAGED
@Stability(value=Stable) public static final QueueEncryption KMS
If encryptionKey is specified, this key will be used, otherwise, one will be defined.
public static QueueEncryption[] values()
for (QueueEncryption c : QueueEncryption.values()) System.out.println(c);
public static QueueEncryption 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.