Translate / Client / tag_resource

tag_resource#

Translate.Client.tag_resource(**kwargs)#

Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the given Amazon Translate resource to which you want to associate the tags.

  • Tags (list) –

    [REQUIRED]

    Tags being associated with a specific Amazon Translate resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.

    • (dict) –

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

      • Key (string) – [REQUIRED]

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

      • Value (string) – [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions