Chatbot / Client / tag_resource

tag_resource#

Chatbot.Client.tag_resource(**kwargs)#

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceARN='string',
    Tags=[
        {
            'TagKey': 'string',
            'TagValue': 'string'
        },
    ]
)
Parameters:
  • ResourceARN (string) –

    [REQUIRED]

    The ARN of the configuration.

  • Tags (list) –

    [REQUIRED]

    A list of tags to apply to the configuration.

    • (dict) –

      A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

      Warning

      Do not include confidential or sensitive information in this field.

      For more information, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

      • TagKey (string) – [REQUIRED]

        The key of the tag.

      • TagValue (string) – [REQUIRED]

        The value of the tag.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Chatbot.Client.exceptions.ServiceUnavailableException

  • Chatbot.Client.exceptions.ResourceNotFoundException

  • Chatbot.Client.exceptions.InternalServiceError

  • Chatbot.Client.exceptions.TooManyTagsException