Macie2 / Client / delete_allow_list

delete_allow_list#

Macie2.Client.delete_allow_list(**kwargs)#

Deletes an allow list.

See also: AWS API Documentation

Request Syntax

response = client.delete_allow_list(
    id='string',
    ignoreJobChecks='string'
)
Parameters:
  • id (string) –

    [REQUIRED]

    The unique identifier for the Amazon Macie resource that the request applies to.

  • ignoreJobChecks (string) –

    Specifies whether to force deletion of the allow list, even if active classification jobs are configured to use the list.

    When you try to delete an allow list, Amazon Macie checks for classification jobs that use the list and have a status other than COMPLETE or CANCELLED. By default, Macie rejects your request if any jobs meet these criteria. To skip these checks and delete the list, set this value to true. To delete the list only if no active jobs are configured to use it, set this value to false.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The request succeeded. The allow list was deleted and there isn’t any content to include in the body of the response (No Content).

Exceptions

  • Macie2.Client.exceptions.ResourceNotFoundException

  • Macie2.Client.exceptions.ThrottlingException

  • Macie2.Client.exceptions.ValidationException

  • Macie2.Client.exceptions.InternalServerException

  • Macie2.Client.exceptions.AccessDeniedException