EndUserMessagingSocial / Client / tag_resource

tag_resource#

EndUserMessagingSocial.Client.tag_resource(**kwargs)#

Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value.

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 to tag.

  • tags (list) –

    [REQUIRED]

    The tags to add to the resource.

    • (dict) –

      The tag for a resource.

      • key (string) – [REQUIRED]

        The tag key.

      • value (string) –

        The tag value.

Return type:

dict

Returns:

Response Syntax

{
    'statusCode': 123
}

Response Structure

  • (dict) –

    • statusCode (integer) –

      The status code of the tag resource operation.

Exceptions