Interface ICfnQueueProps
Properties for defining a CfnQueue
.
Namespace: Amazon.CDK.AWS.SQS
Assembly: Amazon.CDK.AWS.SQS.dll
Syntax (csharp)
public interface ICfnQueueProps
Syntax (vb)
Public Interface ICfnQueueProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sqs-queue.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SQS;
var redriveAllowPolicy;
var redrivePolicy;
var cfnQueueProps = new CfnQueueProps {
ContentBasedDeduplication = false,
DeduplicationScope = "deduplicationScope",
DelaySeconds = 123,
FifoQueue = false,
FifoThroughputLimit = "fifoThroughputLimit",
KmsDataKeyReusePeriodSeconds = 123,
KmsMasterKeyId = "kmsMasterKeyId",
MaximumMessageSize = 123,
MessageRetentionPeriod = 123,
QueueName = "queueName",
ReceiveMessageWaitTimeSeconds = 123,
RedriveAllowPolicy = redriveAllowPolicy,
RedrivePolicy = redrivePolicy,
SqsManagedSseEnabled = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VisibilityTimeout = 123
};
Synopsis
Properties
ContentBasedDeduplication | For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication. |
DeduplicationScope | For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. |
DelaySeconds | The time in seconds for which the delivery of all messages in the queue is delayed. |
FifoQueue | If set to true, creates a FIFO queue. |
FifoThroughputLimit | For high throughput for FIFO queues, specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. |
KmsDataKeyReusePeriodSeconds | The length of time in seconds for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. |
KmsMasterKeyId | The ID of an AWS Key Management Service (KMS) for Amazon SQS , or a custom KMS. |
MaximumMessageSize | The limit of how many bytes that a message can contain before Amazon SQS rejects it. |
MessageRetentionPeriod | The number of seconds that Amazon SQS retains a message. |
QueueName | A name for the queue. |
ReceiveMessageWaitTimeSeconds | Specifies the duration, in seconds, that the ReceiveMessage action call waits until a message is in the queue in order to include it in the response, rather than returning an empty response if a message isn't yet available. |
RedriveAllowPolicy | The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. |
RedrivePolicy | The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. |
SqsManagedSseEnabled | Enables server-side queue encryption using SQS owned encryption keys. |
Tags | The tags that you attach to this queue. |
VisibilityTimeout | The length of time during which a message will be unavailable after a message is delivered from the queue. |
Properties
ContentBasedDeduplication
For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication.
virtual object ContentBasedDeduplication { get; }
Property Value
System.Object
Remarks
During the deduplication interval, Amazon SQS treats messages that are sent with identical content as duplicates and delivers only one copy of the message. For more information, see the ContentBasedDeduplication
attribute for the CreateQueue
action in the Amazon SQS API Reference .
DeduplicationScope
For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level.
virtual string DeduplicationScope { get; }
Property Value
System.String
Remarks
Valid values are messageGroup
and queue
.
To enable high throughput for a FIFO queue, set this attribute to messageGroup
and set the FifoThroughputLimit
attribute to perMessageGroupId
. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Amazon SQS Developer Guide .
DelaySeconds
The time in seconds for which the delivery of all messages in the queue is delayed.
virtual Nullable<double> DelaySeconds { get; }
Property Value
System.Nullable<System.Double>
Remarks
You can specify an integer value of 0
to 900
(15 minutes). The default value is 0
.
FifoQueue
If set to true, creates a FIFO queue.
virtual object FifoQueue { get; }
Property Value
System.Object
Remarks
If you don't specify this property, Amazon SQS creates a standard queue. For more information, see FIFO queues in the Amazon SQS Developer Guide .
FifoThroughputLimit
For high throughput for FIFO queues, specifies whether the FIFO queue throughput quota applies to the entire queue or per message group.
virtual string FifoThroughputLimit { get; }
Property Value
System.String
Remarks
Valid values are perQueue
and perMessageGroupId
.
To enable high throughput for a FIFO queue, set this attribute to perMessageGroupId
and set the DeduplicationScope
attribute to messageGroup
. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Amazon SQS Developer Guide .
KmsDataKeyReusePeriodSeconds
The length of time in seconds for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again.
virtual Nullable<double> KmsDataKeyReusePeriodSeconds { get; }
Property Value
System.Nullable<System.Double>
Remarks
The value must be an integer between 60 (1 minute) and 86,400 (24 hours). The default is 300 (5 minutes).
A shorter time period provides better security, but results in more calls to AWS KMS , which might incur charges after Free Tier. For more information, see Encryption at rest in the Amazon SQS Developer Guide .
KmsMasterKeyId
The ID of an AWS Key Management Service (KMS) for Amazon SQS , or a custom KMS.
virtual string KmsMasterKeyId { get; }
Property Value
System.String
Remarks
To use the AWS managed KMS for Amazon SQS , specify a (default) alias ARN, alias name (e.g. alias/aws/sqs
), key ARN, or key ID. For more information, see the following:
MaximumMessageSize
The limit of how many bytes that a message can contain before Amazon SQS rejects it.
virtual Nullable<double> MaximumMessageSize { get; }
Property Value
System.Nullable<System.Double>
Remarks
You can specify an integer value from 1,024
bytes (1 KiB) to 262,144
bytes (256 KiB). The default value is 262,144
(256 KiB).
MessageRetentionPeriod
The number of seconds that Amazon SQS retains a message.
virtual Nullable<double> MessageRetentionPeriod { get; }
Property Value
System.Nullable<System.Double>
Remarks
You can specify an integer value from 60
seconds (1 minute) to 1,209,600
seconds (14 days). The default value is 345,600
seconds (4 days).
QueueName
A name for the queue.
virtual string QueueName { get; }
Property Value
System.String
Remarks
To create a FIFO queue, the name of your FIFO queue must end with the .fifo
suffix. For more information, see FIFO queues in the Amazon SQS Developer Guide .
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the queue name. For more information, see Name type in the AWS CloudFormation User Guide .
If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
ReceiveMessageWaitTimeSeconds
Specifies the duration, in seconds, that the ReceiveMessage action call waits until a message is in the queue in order to include it in the response, rather than returning an empty response if a message isn't yet available.
virtual Nullable<double> ReceiveMessageWaitTimeSeconds { get; }
Property Value
System.Nullable<System.Double>
Remarks
You can specify an integer from 1 to 20. Short polling is used as the default or when you specify 0 for this property. For more information, see Consuming messages using long polling in the Amazon SQS Developer Guide .
RedriveAllowPolicy
The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object.
virtual object RedriveAllowPolicy { get; }
Property Value
System.Object
Remarks
The parameters are as follows:
RedrivePolicy
The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object.
virtual object RedrivePolicy { get; }
Property Value
System.Object
Remarks
The parameters are as follows:
The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue.
JSON
{ "deadLetterTargetArn" : String , "maxReceiveCount" : Integer }
YAML
deadLetterTargetArn : String
maxReceiveCount : Integer
SqsManagedSseEnabled
Enables server-side queue encryption using SQS owned encryption keys.
virtual object SqsManagedSseEnabled { get; }
Property Value
System.Object
Remarks
Tags
The tags that you attach to this queue.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
For more information, see Resource tag in the AWS CloudFormation User Guide .
VisibilityTimeout
The length of time during which a message will be unavailable after a message is delivered from the queue.
virtual Nullable<double> VisibilityTimeout { get; }
Property Value
System.Nullable<System.Double>
Remarks
This blocks other components from receiving the same message and gives the initial component time to process and delete the message from the queue.
Values must be from 0 to 43,200 seconds (12 hours). If you don't specify a value, AWS CloudFormation uses the default value of 30 seconds.
For more information about Amazon SQS queue visibility timeouts, see Visibility timeout in the Amazon SQS Developer Guide .