Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_resource_policy

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'
)
Parameters
  • PolicyName (string) --

    [REQUIRED]

    The name of the resource policy to delete.

  • PolicyRevisionId (string) -- Specifies a specific policy revision to delete. Provide a 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.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • XRay.Client.exceptions.InvalidRequestException
  • XRay.Client.exceptions.InvalidPolicyRevisionIdException
  • XRay.Client.exceptions.ThrottledException