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.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException