:doc:`Bedrock <../../bedrock>` / Client / tag_resource

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



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

  

  Associate tags with a resource. For more information, see `Tagging resources <https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html>`__ in the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/TagResource>`_  


  **Request Syntax**
  ::

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

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

    

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

    Tags to associate with the resource.

    

  
    - *(dict) --* 

      Definition of the key/value pair for a tag.

      

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

        Key for the tag.

        

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

        Value for the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  
  *   :py:class:`Bedrock.Client.exceptions.TooManyTagsException`

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

  