Route53Resolver / Client / tag_resource



Adds one or more tags to a specified resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
            'Key': 'string',
            'Value': 'string'
  • ResourceArn (string) –


    The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get or List command:

  • Tags (list) –


    The tags that you want to add to the specified resource.

    • (dict) –

      One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value.

      • Key (string) – [REQUIRED]

        The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

      • Value (string) – [REQUIRED]

        The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you’re creating the resource for.

Return type:



Response Syntax


Response Structure

  • (dict) –


  • Route53Resolver.Client.exceptions.LimitExceededException

  • Route53Resolver.Client.exceptions.ResourceNotFoundException

  • Route53Resolver.Client.exceptions.InvalidParameterException

  • Route53Resolver.Client.exceptions.InvalidRequestException

  • Route53Resolver.Client.exceptions.InvalidTagException

  • Route53Resolver.Client.exceptions.InternalServiceErrorException

  • Route53Resolver.Client.exceptions.ThrottlingException