Context / Client / delete_curation_policy

delete_curation_policy

Context.Client.delete_curation_policy(**kwargs)

Deletes a curation policy. While the policy is associated with any agent context, the request fails with ConflictException. Disassociate it with DisassociateCurationPolicy first. You can’t delete a default policy that AWS Context created in your account: the request fails with ConflictException. Disassociate it instead. After the delete, GetCurationPolicy returns the policy with status DELETED, and ListCurationPolicies doesn’t return it. Deleting a policy that is already deleted succeeds.

See also: AWS API Documentation

Request Syntax

response = client.delete_curation_policy(
    curationPolicyId='string'
)
Parameters:

curationPolicyId (string) –

[REQUIRED]

The ID of the curation policy to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Context.Client.exceptions.ThrottlingException

  • Context.Client.exceptions.ConflictException

  • Context.Client.exceptions.ValidationException

  • Context.Client.exceptions.InternalServerException

  • Context.Client.exceptions.ResourceNotFoundException

  • Context.Client.exceptions.AccessDeniedException