ServiceQuotas / Client / list_tags_for_resource

list_tags_for_resource#

ServiceQuotas.Client.list_tags_for_resource(**kwargs)#

Returns a list of the tags assigned to the specified applied quota.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceARN='string'
)
Parameters:

ResourceARN (string) –

[REQUIRED]

The Amazon Resource Name (ARN) for the applied quota for which you want to list tags. You can get this information by using the Service Quotas console, or by listing the quotas using the list-service-quotas CLI command or the ListServiceQuotas Amazon Web Services API operation.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Tags (list) –

      A complex data type that contains zero or more tag elements.

      • (dict) –

        A complex data type that contains a tag key and tag value.

        • Key (string) –

          A string that contains a tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

        • Value (string) –

          A string that contains an optional tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

Exceptions

  • ServiceQuotas.Client.exceptions.TooManyRequestsException

  • ServiceQuotas.Client.exceptions.NoSuchResourceException

  • ServiceQuotas.Client.exceptions.IllegalArgumentException

  • ServiceQuotas.Client.exceptions.AccessDeniedException

  • ServiceQuotas.Client.exceptions.ServiceException