:doc:`ResourceExplorer <../../resource-explorer-2>` / Client / tag_resource

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



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

  

  Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-explorer-2-2022-07-28/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the view or index that you want to attach tags to.

    

  
  :type Tags: dict
  :param Tags: 

    A list of tag key and value pairs that you want to attach to the specified view or index.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.InternalServerException`

  
  *   :py:class:`ResourceExplorer.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`ResourceExplorer.Client.exceptions.ThrottlingException`

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

  