11/17/2023 0 Comments Create an aws sqs queue using boto3Configure KMS and Timeout Settings for banking-reconciliation-function. You set the timeout (5 seconds) for your function in Step 6. Following the guidance for configuring a queue for use with Lambda in the AWS Lambda Developer Guide, you set the visibility timeout to at least six times the timeout that you configure on your function. Receive Message Wait Time = 20 seconds (This is the amount of time that a long poller waits before it returns an empty response to the function).Īs the developer, you expect the reconciliation to take less than a second.Message Retention Period = 1 day (This is the amount of time that Amazon SQS retains a message before it gets deleted).Default Visibility Timeout = 30 seconds (This is the amount of time that a message is invisible so that it isn’t processed by another functions). On the configuration page shown after step 7, set the following Queue Attributes: Similarly, the dead-letter queue of a standard queue must also be a standard queue.5. The dead-letter queue of a FIFO queue must also be a FIFO queue. To allow more than 10 source queues to specify dead-letter queues, set the redrivePermission parameter to allowAll. You can specify up to 10 source queue ARNs. You can specify this parameter only when the redrivePermission parameter is set to byQueue. SourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. Valid values are:ĪllowAll – (Default) Any source queues in this Amazon Web Services account in the same Region can specify this queue as the dead-letter queue.ĭenyAll – No source queues can specify this queue as the dead-letter queue.īyQueue – Only queues specified by the sourceQueueArns parameter can specify this queue as the dead-letter queue. RedrivePermission – The permission type that defines which source queues can specify the current queue as the dead-letter queue. 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. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue. MaxReceiveCount – The number of times a message is delivered to the source queue before being moved to the dead-letter queue. The parameters are as follows:ĭeadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded. RedrivePolicy – The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The following attributes apply only to dead-letter queues: For more information about the visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide. Valid values: An integer from 0 to 43,200 (12 hours). VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid values: An integer from 0 to 20 (seconds). ReceiveMessageWaitTimeSeconds – The length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. For more information about policy structure, see Overview of Amazon Web Services IAM Policies in the IAM User Guide. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the MessageRetentionPeriod is reduced below the age of existing messages. When you change a queue’s attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14 days). MessageRetentionPeriod – The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). MaximumMessageSize – The limit of how many bytes a message can contain before Amazon SQS rejects it. Valid values: An integer from 0 to 900 seconds (15 minutes). The following lists the names, descriptions, and values of the special request parameters that the CreateQueue action uses:ĭelaySeconds – The length of time, in seconds, for which the delivery of all messages in the queue is delayed. fifo suffix.Ī map of attributes with their corresponding values. Valid values: alphanumeric characters, hyphens ( -), and underscores ( _).Ī FIFO queue name must end with the. The following limits apply to this name:Ī queue name can have up to 80 characters. create_queue ( QueueName = 'string', Attributes = ) Parameters :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |