XRay / Client / delete_resource_policy

delete_resource_policy#

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'
)
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