SQS / Client / tag_queue

tag_queue#

SQS.Client.tag_queue(**kwargs)#

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon SQS Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn’t recommended.

  • Tags don’t have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

For a full list of tag restrictions, see Quotas related to queues in the Amazon SQS Developer Guide.

Note

Cross-account permissions don’t apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide.

See also: AWS API Documentation

Request Syntax

response = client.tag_queue(
    QueueUrl='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • QueueUrl (string) –

    [REQUIRED]

    The URL of the queue.

  • Tags (dict) –

    [REQUIRED]

    The list of tags to be added to the specified queue.

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • SQS.Client.exceptions.InvalidAddress

  • SQS.Client.exceptions.RequestThrottled

  • SQS.Client.exceptions.QueueDoesNotExist

  • SQS.Client.exceptions.InvalidSecurity

  • SQS.Client.exceptions.UnsupportedOperation