AgentsforBedrock / Client / delete_resource_policy
delete_resource_policy¶
- AgentsforBedrock.Client.delete_resource_policy(**kwargs)¶
Removes the resource policy associated with a knowledge base. After deletion, other AWS accounts can no longer access the knowledge base using cross-account permissions.
See also: AWS API Documentation
Request Syntax
response = client.delete_resource_policy( resourceArn='string', expectedRevisionId='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the knowledge base to remove the resource policy from.
expectedRevisionId (string) – The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently.
- Return type:
dict
- Returns:
Response Syntax
{ 'resourceArn': 'string', 'revisionId': 'string' }
Response Structure
(dict) –
resourceArn (string) –
The ARN of the knowledge base that the resource policy was removed from.
revisionId (string) –
The revision identifier after the resource policy was deleted.
Exceptions