Create Queue
The CreateQueue activity is used to create a SQS queue.
General
In the General tab, you can select shared resource to establish a connection to the Amazon server. The following table lists the configurations in the General tab of the CreateQueue activity.
Description
In the Description tab, you can provide a short description for the CreateQueue activity.
Input
In the Input tab, you can specify input values for the CreateQueue activity. The following table lists the input elements in the Input tab of the CreateQueue activity.
Input Item | Data Type | Description |
---|---|---|
QueueName | String | Required. The name of the queue to create. This name will be incorporated into the queue URL returned. |
FIFOQueue | Boolean | Optional. This flag needs to be set to true if the user wants to create the FIFO queue. The name of the queue should have .fifo as a suffix. |
ContentBasedDeduplication | Boolean | Optional. This field is used for enabling or disabling content based deduplication for the FIFO queue. |
DelaySeconds | Int | Optional. The time in seconds for which the delivery of all messages in the queue is delayed. It is an integer value ranging from 0 to 900 seconds (15 minutes). The default for this attribute is 0 (zero). |
MaximumMessageSize | Int | Optional. The number of bytes a message can contain before Amazon SQS rejects it. It is an integer value ranging from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default value for this attribute is 262144 (256 KiB). |
MessageRetentionPeriod | Int | Optional. The number of seconds for which Amazon SQS retains a message. It is an integer value in seconds, ranging from 60 seconds (1 minute) to 1209600 seconds (14 days). The default value is 345600 seconds (4 days). |
Policy | String | Optional. The queue's policy. A valid AWS policy. For more information about policy structure, refer to Overview of AWS IAM Policies in the Amazon IAM User Guide. |
ReceiveMessageWaitTimeSeconds | Int | Optional. The time for which a ReceiveMessage call will wait for a message to arrive. It is an integer value ranging from 0 to 20 (seconds).The default value for this attribute is 0. |
RedrivePolicy | String | Optional. The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, refer to Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide. |
VisibilityTimeout | Int | Optional. The visibility timeout for the queue is a period of time, during which SQS prevents other consuming components from receiving and processing that queue. This is an integer value which can range from 0 to 43200 seconds (12 hours). The default value for this attribute is 30 seconds. |
Permissions | Complex | Optional. Permissions contribute to the policy for the queue. Permissions permit queues to be shared with other principles (userIDs). |
Label | String | An arbitrary label for the permission. |
AccountId | String | One or more Amazon Account IDs for which the permission is to be applied. |
Action | String | One or more actions the client wants to allow for the specified principals. The following values are valid values:
* | SendMessage | ReceiveMessage | DeleteMessage | ChangeMessageVisibility | GetQueueAttributes | GetQueueUrl. |
Output
In the Output tab, you can find the output value of the CreateQueue activity. The following table lists the output elements in the Output tab of the CreateQueue activity.
Fault
The Fault tab lists exceptions that are generated by this activity.
Fault | Data Type | Description |
---|---|---|
SQSException | Any exception generated by the activity after execution. It has the following fields: ErrorCode and ErrorMessage. | |
ErrorCode | String | The plug-in error code for the exception. For more information, refer to Error Codes topic. |
ErrorMessage | String | The plug-in error message for the exception. It contains the error message from the AWS SQS API call that failed. |