:doc:`ApiGatewayV2 <../../apigatewayv2>` / Client / tag_resource

************
tag_resource
************



.. py:method:: ApiGatewayV2.Client.tag_resource(**kwargs)

  

  Creates a new Tag resource to represent a tag.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The resource ARN for the tag.

    

  
  :type Tags: dict
  :param Tags: 

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

    

  
    - *(string) --* 

    
      - *(string) --* 

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

        

      


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

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

      
  
  **Exceptions**
  
  *   :py:class:`ApiGatewayV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`ApiGatewayV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`ApiGatewayV2.Client.exceptions.BadRequestException`

  
  *   :py:class:`ApiGatewayV2.Client.exceptions.ConflictException`

  