Amazon Simple Queue Service

2023/11/08 - Amazon Simple Queue Service - 1 updated api methods

Changes  This release enables customers to call SQS using AWS JSON-1.0 protocol.

ListMessageMoveTasks (updated) Link ΒΆ
Changes (response)
{'Results': {'Status': {'CANCELLED',
                        'CANCELLING',
                        'COMPLETED',
                        'FAILED',
                        'RUNNING'}}}

Gets the most recent message movement tasks (up to 10) under a specific source queue.

See also: AWS API Documentation

Request Syntax

client.list_message_move_tasks(
    SourceArn='string',
    MaxResults=123
)
type SourceArn:

string

param SourceArn:

[REQUIRED]

The ARN of the queue whose message movement tasks are to be listed.

type MaxResults:

integer

param MaxResults:

The maximum number of results to include in the response. The default is 1, which provides the most recent message movement task. The upper limit is 10.

rtype:

dict

returns:

Response Syntax

{
    'Results': [
        {
            'TaskHandle': 'string',
            'Status': 'RUNNING'|'FAILED'|'CANCELLING'|'CANCELLED'|'COMPLETED',
            'SourceArn': 'string',
            'DestinationArn': 'string',
            'MaxNumberOfMessagesPerSecond': 123,
            'ApproximateNumberOfMessagesMoved': 123,
            'ApproximateNumberOfMessagesToMove': 123,
            'FailureReason': 'string',
            'StartedTimestamp': 123
        },
    ]
}

Response Structure

  • (dict) --

    • Results (list) --

      A list of message movement tasks and their attributes.

      • (dict) --

        Contains the details of a message movement task.

        • TaskHandle (string) --

          An identifier associated with a message movement task. When this field is returned in the response of the ListMessageMoveTasks action, it is only populated for tasks that are in RUNNING status.

        • Status (string) --

          The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.

        • SourceArn (string) --

          The ARN of the queue that contains the messages to be moved to another queue.

        • DestinationArn (string) --

          The ARN of the destination queue if it has been specified in the StartMessageMoveTask request. If a DestinationArn has not been specified in the StartMessageMoveTask request, this field value will be NULL.

        • MaxNumberOfMessagesPerSecond (integer) --

          The number of messages to be moved per second (the message movement rate), if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond has not been specified in the StartMessageMoveTask request, this field value will be NULL.

        • ApproximateNumberOfMessagesMoved (integer) --

          The approximate number of messages already moved to the destination queue.

        • ApproximateNumberOfMessagesToMove (integer) --

          The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task.

        • FailureReason (string) --

          The task failure reason (only included if the task status is FAILED).

        • StartedTimestamp (integer) --

          The timestamp of starting the message movement task.