AgentsforBedrock / Client / get_resource_policy
get_resource_policy¶
- AgentsforBedrock.Client.get_resource_policy(**kwargs)¶
Retrieves the resource policy associated with a knowledge base.
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 knowledge base to retrieve the resource policy for.
- Return type:
dict
- Returns:
Response Syntax
{ 'resourceArn': 'string', 'policy': 'string', 'revisionId': 'string' }
Response Structure
(dict) –
resourceArn (string) –
The ARN of the knowledge base that the resource policy is associated with.
policy (string) –
The JSON-formatted resource policy associated with the knowledge base.
revisionId (string) –
The revision identifier of the resource policy.
Exceptions