WorkSpacesThinClient / Client / tag_resource

tag_resource#

WorkSpacesThinClient.Client.tag_resource(**kwargs)#

Assigns one or more tags (key-value pairs) to the specified 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 you want to tag.

  • tags (dict) –

    [REQUIRED]

    A map of the key-value pairs of the tag or tags to assign to the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • WorkSpacesThinClient.Client.exceptions.ValidationException

  • WorkSpacesThinClient.Client.exceptions.AccessDeniedException

  • WorkSpacesThinClient.Client.exceptions.ResourceNotFoundException

  • WorkSpacesThinClient.Client.exceptions.ThrottlingException

  • WorkSpacesThinClient.Client.exceptions.ConflictException

  • WorkSpacesThinClient.Client.exceptions.InternalServerException