CodeGuruProfiler / Client / tag_resource

tag_resource#

CodeGuruProfiler.Client.tag_resource(**kwargs)#

Use to assign one or more tags to a resource.

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) of the resource that the tags are added to.

  • tags (dict) –

    [REQUIRED]

    The list of tags that are added to the specified resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException

  • CodeGuruProfiler.Client.exceptions.ValidationException

  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException