:doc:`SupplyChain <../../supplychain>` / Client / tag_resource

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



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

  

  You can create tags during or after creating a resource such as instance, data flow, or dataset in AWS Supply chain. During the data ingestion process, you can add tags such as dev, test, or prod to data flows created during the data ingestion process in the AWS Supply Chain datasets. You can use these tags to identify a group of resources or a single resource used by the developer.

  

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


  **Request Syntax**
  ::

    response = client.tag_resource(
        resourceArn='string',
        tags={
            'string': 'string'
        }
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Web Services Supply chain resource ARN that needs to be tagged.

    

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

    The tags of the Amazon Web Services Supply chain resource to be created.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The response parameters for TagResource.

      
  
  **Exceptions**
  
  *   :py:class:`SupplyChain.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`SupplyChain.Client.exceptions.ThrottlingException`

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

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

  
  *   :py:class:`SupplyChain.Client.exceptions.InternalServerException`

  
  *   :py:class:`SupplyChain.Client.exceptions.ConflictException`

  