:doc:`CloudHSM <../../cloudhsm>` / Client / add_tags_to_resource

********************
add_tags_to_resource
********************



.. py:method:: CloudHSM.Client.add_tags_to_resource(**kwargs)

  

  This is documentation for **AWS CloudHSM Classic**. For more information, see `AWS CloudHSM Classic FAQs <http://aws.amazon.com/cloudhsm/faqs-classic/>`__, the `AWS CloudHSM Classic User Guide <https://docs.aws.amazon.com/cloudhsm/classic/userguide/>`__, and the `AWS CloudHSM Classic API Reference <https://docs.aws.amazon.com/cloudhsm/classic/APIReference/>`__.

   

  **For information about the current version of AWS CloudHSM**, see `AWS CloudHSM <http://aws.amazon.com/cloudhsm/>`__, the `AWS CloudHSM User Guide <https://docs.aws.amazon.com/cloudhsm/latest/userguide/>`__, and the `AWS CloudHSM API Reference <https://docs.aws.amazon.com/cloudhsm/latest/APIReference/>`__.

   

  Adds or overwrites one or more tags for the specified AWS CloudHSM resource.

   

  Each tag consists of a key and a value. Tag keys must be unique to each resource.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource>`_  


  **Request Syntax**
  ::

    response = client.add_tags_to_resource(
        ResourceArn='string',
        TagList=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.

    

  
  :type TagList: list
  :param TagList: **[REQUIRED]** 

    One or more tags.

    

  
    - *(dict) --* 

      A key-value pair that identifies or specifies metadata about an AWS CloudHSM resource.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key of the tag.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The value of the tag.

        

      
    

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

    
    ::

      {
          'Status': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(string) --* 

        The status of the operation.

        
  
  **Exceptions**
  
  *   :py:class:`CloudHSM.Client.exceptions.CloudHsmServiceException`

  
  *   :py:class:`CloudHSM.Client.exceptions.CloudHsmInternalException`

  
  *   :py:class:`CloudHSM.Client.exceptions.InvalidRequestException`

  