tag_resource

ApiGatewayV2.Client.tag_resource(**kwargs)

Creates a new Tag resource to represent a tag.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The resource ARN for the tag.

  • Tags (dict) --

    The collection of tags. Each tag element is associated with a given resource.

    • (string) --
      • (string) --

        A string with a length between [0-1600].

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    The request has succeeded and has resulted in the creation of a resource.

Exceptions

  • ApiGatewayV2.Client.exceptions.NotFoundException
  • ApiGatewayV2.Client.exceptions.TooManyRequestsException
  • ApiGatewayV2.Client.exceptions.BadRequestException
  • ApiGatewayV2.Client.exceptions.ConflictException