Invoicing / Client / tag_resource

tag_resource

Invoicing.Client.tag_resource(**kwargs)

Adds a tag to a resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    ResourceTags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the tags.

  • ResourceTags (list) –

    [REQUIRED]

    Adds a tag to a resource.

    • (dict) –

      The tag structure that contains a tag key and value.

      • Key (string) – [REQUIRED]

        The object key of your of your resource tag.

      • Value (string) – [REQUIRED]

        The specific value of the resource tag.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Invoicing.Client.exceptions.ResourceNotFoundException

  • Invoicing.Client.exceptions.ValidationException

  • Invoicing.Client.exceptions.InternalServerException

  • Invoicing.Client.exceptions.ServiceQuotaExceededException

  • Invoicing.Client.exceptions.ThrottlingException

  • Invoicing.Client.exceptions.AccessDeniedException