Enum QueueEncryption
- All Implemented Interfaces:
- Serializable,- Comparable<QueueEncryption>,- java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:49.146Z")
@Stability(Stable)
public enum QueueEncryption
extends Enum<QueueEncryption>
What kind of encryption to apply to this queue.
 
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();
 // Use SQS managed server side encryption (SSE-SQS)
 // Use SQS managed server side encryption (SSE-SQS)
 Queue.Builder.create(this, "Queue")
         .encryption(QueueEncryption.SQS_MANAGED)
         .build();
 // Unencrypted queue
 // Unencrypted queue
 Queue.Builder.create(this, "Queue")
         .encryption(QueueEncryption.UNENCRYPTED)
         .build();
 - 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionServer-side encryption with a KMS key managed by the user.Server-side KMS encryption with a KMS key managed by SQS.Server-side encryption key managed by SQS (SSE-SQS).Messages in the queue are not encrypted.
- 
Method SummaryModifier and TypeMethodDescriptionstatic QueueEncryptionReturns 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.
- 
Enum Constant Details- 
UNENCRYPTEDMessages in the queue are not encrypted.
- 
KMS_MANAGEDServer-side KMS encryption with a KMS key managed by SQS.
- 
KMSServer-side encryption with a KMS key managed by the user.If encryptionKeyis specified, this key will be used, otherwise, one will be defined.
- 
SQS_MANAGEDServer-side encryption key managed by SQS (SSE-SQS).To learn more about SSE-SQS on Amazon SQS, please visit the Amazon SQS documentation. 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-