Amplify / Client / tag_resource

tag_resource#

Amplify.Client.tag_resource(**kwargs)#

Tags the resource with a tag key and value.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) to use to tag a resource.

  • tags (dict) –

    [REQUIRED]

    The tags used to tag the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The response for the tag resource request.

Exceptions

  • Amplify.Client.exceptions.InternalFailureException

  • Amplify.Client.exceptions.BadRequestException

  • Amplify.Client.exceptions.ResourceNotFoundException