IoTThingsGraph / Client / tag_resource

tag_resource#

IoTThingsGraph.Client.tag_resource(**kwargs)#

Creates a tag for the specified resource.

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

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 whose tags are returned.

  • tags (list) –

    [REQUIRED]

    A list of tags to add to the resource.>

    • (dict) –

      Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.

      • key (string) – [REQUIRED]

        The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.

      • value (string) – [REQUIRED]

        The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions