ControlTower / Client / tag_resource

tag_resource#

ControlTower.Client.tag_resource(**kwargs)#

Applies tags to a resource. For usage examples, see the Controls Reference Guide.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ARN of the resource to be tagged.

  • tags (dict) –

    [REQUIRED]

    Tags to be applied to the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • ControlTower.Client.exceptions.ValidationException

  • ControlTower.Client.exceptions.InternalServerException

  • ControlTower.Client.exceptions.ResourceNotFoundException