:doc:`CloudWatchObservabilityAdminService <../../observabilityadmin>` / Client / tag_resource

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



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

  

  Adds or updates tags for a resource. Supports telemetry rule resources and telemetry pipeline resources.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/observabilityadmin-2018-05-10/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 telemetry rule resource to tag.

    

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

    The key-value pairs to add or update for the telemetry rule resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CloudWatchObservabilityAdminService.Client.exceptions.ServiceQuotaExceededException`

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

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

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

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

  
  *   :py:class:`CloudWatchObservabilityAdminService.Client.exceptions.TooManyRequestsException`

  