CloudDirectory / Client / tag_resource

tag_resource#

CloudDirectory.Client.tag_resource(**kwargs)#

An API operation for adding tags to a resource.

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 resource. Tagging is only supported for directories.

  • Tags (list) –

    [REQUIRED]

    A list of tag key-value pairs.

    • (dict) –

      The tag structure that contains a tag key and value.

      • Key (string) –

        The key that is associated with the tag.

      • Value (string) –

        The value that is associated with the tag.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions