:doc:`Firehose <../../firehose>` / Client / tag_delivery_stream

*******************
tag_delivery_stream
*******************



.. py:method:: Firehose.Client.tag_delivery_stream(**kwargs)

  

  Adds or updates tags for the specified Firehose stream. A tag is a key-value pair 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. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the Firehose stream. For more information about tags, see `Using Cost Allocation Tags <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html>`__ in the *Amazon Web Services Billing and Cost Management User Guide*.

   

  Each Firehose stream can have up to 50 tags.

   

  This operation has a limit of five transactions per second per account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/TagDeliveryStream>`_  


  **Request Syntax**
  ::

    response = client.tag_delivery_stream(
        DeliveryStreamName='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type DeliveryStreamName: string
  :param DeliveryStreamName: **[REQUIRED]** 

    The name of the Firehose stream to which you want to add the tags.

    

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

    A set of key-value pairs to use to create the tags.

    

  
    - *(dict) --* 

      Metadata that you can assign to a Firehose stream, consisting of a key-value pair.

      

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

        A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

        

      
      - **Value** *(string) --* 

        An optional string, which you can use to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Firehose.Client.exceptions.ResourceNotFoundException`

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

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

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

  