:doc:`DataAutomationforBedrock <../../bedrock-data-automation>` / Client / tag_resource

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



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

  

  Tag an Amazon Bedrock Data Automation resource

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-data-automation-2023-07-26/TagResource>`_  


  **Request Syntax**
  ::

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

    ARN of a taggable resource

    

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

    List of tags

    

  
    - *(dict) --* 

      Key value pair of a tag

      

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

        Defines the context of the tag.

        

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

        Defines the value within the context. e.g. <key=reason, value=training>.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataAutomationforBedrock.Client.exceptions.ServiceQuotaExceededException`

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

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

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

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

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

  