BedrockAgentCoreControl / Client / get_resource_policy

get_resource_policy

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

Request Syntax

response = client.get_resource_policy(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'policy': 'string'
}

Response Structure

  • (dict) –

    • policy (string) –

      The resource policy associated with the specified resource.

Exceptions

  • BedrockAgentCoreControl.Client.exceptions.AccessDeniedException

  • BedrockAgentCoreControl.Client.exceptions.ValidationException

  • BedrockAgentCoreControl.Client.exceptions.ThrottlingException

  • BedrockAgentCoreControl.Client.exceptions.ResourceNotFoundException

  • BedrockAgentCoreControl.Client.exceptions.InternalServerException