:doc:`ServiceQuotas <../../service-quotas>` / Client / tag_resource

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



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

  

  Adds tags to the specified applied quota. You can include one or more tags to add to the quota.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) for the applied quota. You can get this information by using the Service Quotas console, or by listing the quotas using the `list-service-quotas <https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html>`__ CLI command or the `ListServiceQuotas <https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_ListServiceQuotas.html>`__ Amazon Web Services API operation.

    

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

    The tags that you want to add to the resource.

    

  
    - *(dict) --* 

      A complex data type that contains a tag key and tag value.

      

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

        A string that contains a tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

        

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

        A string that contains an optional tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ServiceQuotas.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`ServiceQuotas.Client.exceptions.NoSuchResourceException`

  
  *   :py:class:`ServiceQuotas.Client.exceptions.TooManyTagsException`

  
  *   :py:class:`ServiceQuotas.Client.exceptions.TagPolicyViolationException`

  
  *   :py:class:`ServiceQuotas.Client.exceptions.IllegalArgumentException`

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

  
  *   :py:class:`ServiceQuotas.Client.exceptions.ServiceException`

  