:doc:`NeptuneGraph <../../neptune-graph>` / Client / tag_resource

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



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

  

  Adds tags to the specified resource.

  

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


  **Request Syntax**
  ::

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

    ARN of the resource for which tags need to be added.

    

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

    The tags to be assigned to the Neptune Analytics resource.

     

    The tags are metadata that are specified as a list of key-value pairs:

     

    **Key** (string) – A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length. It can't be prefixed with ``aws:`` and can only contain the set of Unicode characters specified by this Java regular expression: ``"^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$")``.

     

    **Value** (string) – A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length. It can't be prefixed with ``aws:`` and can only contain the set of Unicode characters specified by this Java regular expression: ``"^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$")``.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`NeptuneGraph.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`NeptuneGraph.Client.exceptions.InternalServerException`

  
  *   :py:class:`NeptuneGraph.Client.exceptions.ResourceNotFoundException`

  