VerifiedPermissions / Client / delete_policy

delete_policy#

VerifiedPermissions.Client.delete_policy(**kwargs)#

Deletes the specified policy from the policy store.

This operation is idempotent; if you specify a policy that doesn’t exist, the request response returns a successful HTTP 200 status code.

See also: AWS API Documentation

Request Syntax

response = client.delete_policy(
    policyStoreId='string',
    policyId='string'
)
Parameters:
  • policyStoreId (string) –

    [REQUIRED]

    Specifies the ID of the policy store that contains the policy that you want to delete.

  • policyId (string) –

    [REQUIRED]

    Specifies the ID of the policy that you want to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • VerifiedPermissions.Client.exceptions.ValidationException

  • VerifiedPermissions.Client.exceptions.ConflictException

  • VerifiedPermissions.Client.exceptions.AccessDeniedException

  • VerifiedPermissions.Client.exceptions.ResourceNotFoundException

  • VerifiedPermissions.Client.exceptions.ThrottlingException

  • VerifiedPermissions.Client.exceptions.InternalServerException