:doc:`DataPipeline <../../datapipeline>` / Client / add_tags

********
add_tags
********



.. py:method:: DataPipeline.Client.add_tags(**kwargs)

  

  Adds or modifies tags for the specified pipeline.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags>`_  


  **Request Syntax**
  ::

    response = client.add_tags(
        pipelineId='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type pipelineId: string
  :param pipelineId: **[REQUIRED]** 

    The ID of the pipeline.

    

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

    The tags to add, as key/value pairs.

    

  
    - *(dict) --* 

      Tags are key/value pairs defined by a user and associated with a pipeline to control access. AWS Data Pipeline allows you to associate ten tags per pipeline. For more information, see `Controlling User Access to Pipelines <http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html>`__ in the *AWS Data Pipeline Developer Guide*.

      

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

        The key name of a tag defined by a user. For more information, see `Controlling User Access to Pipelines <http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html>`__ in the *AWS Data Pipeline Developer Guide*.

        

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

        The optional value portion of a tag defined by a user. For more information, see `Controlling User Access to Pipelines <http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html>`__ in the *AWS Data Pipeline Developer Guide*.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      Contains the output of AddTags.

      
  
  **Exceptions**
  
  *   :py:class:`DataPipeline.Client.exceptions.InternalServiceError`

  
  *   :py:class:`DataPipeline.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`DataPipeline.Client.exceptions.PipelineNotFoundException`

  
  *   :py:class:`DataPipeline.Client.exceptions.PipelineDeletedException`

  