:doc:`KinesisVideo <../../kinesisvideo>` / Client / tag_resource

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



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

  

  Adds one or more tags to a signaling channel. A *tag* is a key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see `Using Cost Allocation Tags <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html>`__ in the *Billing and Cost Management and Cost Management User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/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) of the signaling channel to which you want to add tags.

    

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

    A list of tags to associate with the specified signaling channel. Each tag is a key-value pair.

    

  
    - *(dict) --* 

      A key and value pair that is associated with the specified signaling channel.

      

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

        The key of the tag that is associated with the specified signaling channel.

        

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

        The value of the tag that is associated with the specified signaling channel.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`KinesisVideo.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`KinesisVideo.Client.exceptions.ClientLimitExceededException`

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

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

  
  *   :py:class:`KinesisVideo.Client.exceptions.TagsPerResourceExceededLimitException`

  