CloudWatchInternetMonitor / Client / tag_resource

tag_resource#

CloudWatchInternetMonitor.Client.tag_resource(**kwargs)#

Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor.

A minimum of one tag is required for this call. It returns an error if you use the TagResource request with 0 tags.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) for a tag that you add to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.

  • Tags (dict) –

    [REQUIRED]

    Tags that you add to a resource. You can add a maximum of 50 tags in Internet Monitor.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • CloudWatchInternetMonitor.Client.exceptions.TooManyRequestsException

  • CloudWatchInternetMonitor.Client.exceptions.AccessDeniedException

  • CloudWatchInternetMonitor.Client.exceptions.NotFoundException

  • CloudWatchInternetMonitor.Client.exceptions.BadRequestException

  • CloudWatchInternetMonitor.Client.exceptions.InternalServerErrorException