:doc:`AppSync <../../appsync>` / Client / tag_resource

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



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

  

  Tags a resource with user-supplied tags.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource>`_  


  **Request Syntax**
  ::

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

    The ``GraphqlApi`` Amazon Resource Name (ARN).

    

  
  :type tags: dict
  :param tags: **[REQUIRED]** 

    A ``TagMap`` object.

    

  
    - *(string) --* 

      The key for the tag.

      

    
      - *(string) --* 

        The value for the tag.

        

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppSync.Client.exceptions.BadRequestException`

  
  *   :py:class:`AppSync.Client.exceptions.NotFoundException`

  
  *   :py:class:`AppSync.Client.exceptions.LimitExceededException`

  
  *   :py:class:`AppSync.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`AppSync.Client.exceptions.InternalFailureException`

  
  *   :py:class:`AppSync.Client.exceptions.AccessDeniedException`

  