:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / get_resource_policy

*******************
get_resource_policy
*******************



.. py:method:: BedrockAgentCoreControl.Client.get_resource_policy(**kwargs)

  

  Retrieves the resource-based policy for a specified resource.

   

  .. note::

    

    This feature is currently available only for AgentCore Runtime and Gateway.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/GetResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_resource_policy(
        resourceArn='string'
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource for which to retrieve the resource policy.

    

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

    
    ::

      {
          'policy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policy** *(string) --* 

        The resource policy associated with the specified resource.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.AccessDeniedException`

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

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

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

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

  