:doc:`ConnectCampaignServiceV2 <../../connectcampaignsv2>` / Client / tag_resource

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



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

  

  Tag a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcampaignsv2-2024-04-23/TagResource>`_  


  **Request Syntax**
  ::

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

    Amazon Resource Names(ARN)

    

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

    Tag map with key and value.

    

  
    - *(string) --* 

      The key of tag.

      

    
      - *(string) --* 

        The value of tag.

        

      


  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ConnectCampaignServiceV2.Client.exceptions.InternalServerException`

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

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

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

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

  