Class QueueEncryption
What kind of encryption to apply to this queue.
Inheritance
System.Object
QueueEncryption
Namespace: Amazon.CDK.AWS.SQS
Assembly: Amazon.CDK.AWS.SQS.dll
Syntax (csharp)
public sealed class QueueEncryption : Enum
Syntax (vb)
Public NotInheritable Class QueueEncryption
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
// Use managed key
// Use managed key
new Queue(this, "Queue", new QueueProps {
Encryption = QueueEncryption.KMS_MANAGED
});
// Use custom key
var myKey = new Key(this, "Key");
new Queue(this, "Queue", new QueueProps {
Encryption = QueueEncryption.KMS,
EncryptionMasterKey = myKey
});
Synopsis
Fields
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. |
value__ |
Fields
KMS
Server-side encryption with a KMS key managed by the user.
public const QueueEncryption KMS
Field Value
Type | Description |
---|---|
QueueEncryption |
Remarks
If encryptionKey
is specified, this key will be used, otherwise, one will be defined.
KMS_MANAGED
Server-side KMS encryption with a master key managed by SQS.
public const QueueEncryption KMS_MANAGED
Field Value
Type | Description |
---|---|
QueueEncryption |
UNENCRYPTED
Messages in the queue are not encrypted.
public const QueueEncryption UNENCRYPTED
Field Value
Type | Description |
---|---|
QueueEncryption |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |