:doc:`OpenSearchIngestion <../../osis>` / Client / tag_resource

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



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

  

  Tags an OpenSearch Ingestion pipeline. For more information, see `Tagging Amazon OpenSearch Ingestion pipelines <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-pipeline.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/osis-2022-01-01/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the pipeline to tag.

    

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

    The list of key-value tags to add to the pipeline.

    

  
    - *(dict) --* 

      A tag (key-value pair) for an OpenSearch Ingestion pipeline.

      

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

        The tag key. Tag keys must be unique for the pipeline to which they are attached.

        

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

        The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of ``project : Trinity`` and ``cost-center : Trinity``

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`OpenSearchIngestion.Client.exceptions.DisabledOperationException`

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

  
  *   :py:class:`OpenSearchIngestion.Client.exceptions.ValidationException`

  
  *   :py:class:`OpenSearchIngestion.Client.exceptions.InternalException`

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

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

  