:doc:`Kinesis <../../kinesis>` / Client / add_tags_to_stream

******************
add_tags_to_stream
******************



.. py:method:: Kinesis.Client.add_tags_to_stream(**kwargs)

  

  Adds or updates tags for the specified Kinesis data stream. You can assign up to 50 tags to a data stream.

   

  .. note::

    

    When invoking this API, you must use either the ``StreamARN`` or the ``StreamName`` parameter, or both. It is recommended that you use the ``StreamARN`` input parameter when you invoke this API.

    

   

  If tags have already been assigned to the stream, ``AddTagsToStream`` overwrites any existing tags that correspond to the specified tag keys.

   

   AddTagsToStream has a limit of five transactions per second per account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/AddTagsToStream>`_  


  **Request Syntax**
  ::

    response = client.add_tags_to_stream(
        StreamName='string',
        Tags={
            'string': 'string'
        },
        StreamARN='string',
        StreamId='string'
    )
    
  :type StreamName: string
  :param StreamName: 

    The name of the stream.

    

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

    A set of up to 50 key-value pairs to use to create the tags. A tag consists of a required key and an optional value. You can add up to 50 tags per resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type StreamARN: string
  :param StreamARN: 

    The ARN of the stream.

    

  
  :type StreamId: string
  :param StreamId: 

    Not Implemented. Reserved for future use.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Kinesis.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Kinesis.Client.exceptions.ResourceInUseException`

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

  
  *   :py:class:`Kinesis.Client.exceptions.LimitExceededException`

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

  