list_tags_for_resource

Translate.Client.list_tags_for_resource(**kwargs)

Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the given Amazon Translate resource you are querying.

Return type
dict
Returns
Response Syntax
{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • Tags (list) --

      Tags associated with the Amazon Translate resource being queried. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Translate. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

      • (dict) --

        A key-value pair that adds as a metadata to a resource used by Amazon Translate.

        • Key (string) --

          The initial part of a key-value pair that forms a tag associated with a given resource.

        • Value (string) --

          The second part of a key-value pair that forms a tag associated with a given resource.

Exceptions

  • Translate.Client.exceptions.InvalidParameterValueException
  • Translate.Client.exceptions.ResourceNotFoundException
  • Translate.Client.exceptions.InternalServerException