XRay.Client.delete_resource_policy(**kwargs)¶Deletes a resource policy from the target Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.delete_resource_policy(
PolicyName='string',
PolicyRevisionId='string'
)
[REQUIRED]
The name of the resource policy to delete.
PolicyRevisionId to ensure an atomic delete operation. If the provided revision id does not match the latest policy revision id, an InvalidPolicyRevisionIdException exception is returned.dict
Response Syntax
{}
Response Structure
Exceptions
XRay.Client.exceptions.InvalidRequestExceptionXRay.Client.exceptions.InvalidPolicyRevisionIdExceptionXRay.Client.exceptions.ThrottledException