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

********************
list_tags_for_stream
********************



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

  

  Returns a list of tags associated with the specified stream.

   

  In the request, you must specify either the ``StreamName`` or the ``StreamARN``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/ListTagsForStream>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_stream(
        NextToken='string',
        StreamARN='string',
        StreamName='string'
    )
    
  :type NextToken: string
  :param NextToken: 

    If you specify this parameter and the result of a ``ListTagsForStream`` call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags.

    

  
  :type StreamARN: string
  :param StreamARN: 

    The Amazon Resource Name (ARN) of the stream that you want to list tags for.

    

  
  :type StreamName: string
  :param StreamName: 

    The name of the stream that you want to list tags for.

    

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

    
    ::

      {
          'NextToken': 'string',
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **NextToken** *(string) --* 

        If you specify this parameter and the result of a ``ListTags`` call is truncated, the response includes a token that you can use in the next request to fetch the next set of tags.

        
      

      - **Tags** *(dict) --* 

        A map of tag keys and values associated with the specified stream.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`KinesisVideo.Client.exceptions.ClientLimitExceededException`

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

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

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

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

  