QueueEncryption Enum
What kind of encryption to apply to this queue.
Example
ts
// Use managed key
new sqs.Queue(this, 'Queue', {
encryption: sqs.QueueEncryption.KMS_MANAGED,
});
// Use custom key
const myKey = new kms.Key(this, 'Key');
new sqs.Queue(this, 'Queue', {
encryption: sqs.QueueEncryption.KMS,
encryptionMasterKey: myKey,
});
// Use SQS managed server side encryption (SSE-SQS)
new sqs.Queue(this, 'Queue', {
encryption: sqs.QueueEncryption.SQS_MANAGED,
});
// Unencrypted queue
new sqs.Queue(this, 'Queue', {
encryption: sqs.QueueEncryption.UNENCRYPTED,
});
Members
| Member | Description |
|---|---|
UNENCRYPTED | Messages in the queue are not encrypted. |
KMS_MANAGED | Server-side KMS encryption with a KMS key managed by SQS. |
KMS | Server-side encryption with a KMS key managed by the user. |
SQS_MANAGED | Server-side encryption key managed by SQS (SSE-SQS). |
Referenced by
IQueue.encryptionTypeencryption_typeencryptionTypeEncryptionTypeEncryptionTypeQueue.encryptionTypeencryption_typeencryptionTypeEncryptionTypeEncryptionTypeQueueBase.encryptionTypeencryption_typeencryptionTypeEncryptionTypeEncryptionTypeQueueProps.encryptionencryptionencryptionEncryptionEncryption