Allow List
The Allow List resource provides access to existing allow lists for your Amazon Macie account. In Macie, an allow list defines specific text or a text pattern that you want Macie to ignore when it inspects a data source for sensitive data. If data matches text or a text pattern in an allow list, Macie doesn't report the data. This is the case even if the data matches the criteria of a managed data identifier or a custom data identifier. You can create and use allow lists in all the AWS Regions where Macie is currently available except the Asia Pacific (Osaka) Region.
Macie supports two types of allow lists. An allow list can be a
line-delimited plaintext file that lists specific text to ignore. For this type of
list (s3WordsList), you create the list by using a text editor, store
the list in an Amazon Simple Storage Service (Amazon S3) general purpose bucket, and then configure
settings for Macie to access the list in the bucket. Alternatively, an
allow list can specify a regular expression (regex) that defines
a text pattern to ignore. For this type of list (regex), you create and
store the regex and all other list settings in Macie. For more
information, see Defining sensitive data exceptions with allow lists in the
Amazon Macie User Guide.
You can use the Allow List resource to retrieve detailed information about an allow list, including the current status of the list. If a list is stored in an S3 bucket, the list's status indicates whether Macie can retrieve and parse the list. You can also use the Allow List resource to update the settings for an allow list or to delete an allow list from Macie.
To use this resource, you have to specify the unique identifier for the allow list that your request applies to. To find this identifier, use the Allow Lists resource.
URI
/allow-lists/id
HTTP methods
DELETE
Operation ID: DeleteAllowList
Deletes an allow list.
| Name | Type | Required | Description |
|---|---|---|---|
id | String | True | The unique identifier for the Amazon Macie resource that the request applies to. |
| Name | Type | Required | Description |
|---|---|---|---|
ignoreJobChecks | String | False | 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
|
| Status code | Response model | Description |
|---|---|---|
200 | Empty Schema | The request succeeded. The allow list was deleted and there isn't any content to include in the body of the response (No Content). |
400 | ValidationException | The request failed because the input doesn't satisfy the constraints specified by the service. |
403 | AccessDeniedException | The request was denied because you don't have sufficient access to the specified resource. |
404 | ResourceNotFoundException | The request failed because the specified resource wasn't found. |
429 | ThrottlingException | The request failed because you sent too many requests during a certain amount of time. |
500 | InternalServerException | The request failed due to an unknown internal server error, exception, or failure. |
GET
Operation ID: GetAllowList
Retrieves the settings and status of an allow list.
| Name | Type | Required | Description |
|---|---|---|---|
id | String | True | The unique identifier for the Amazon Macie resource that the request applies to. |
| Status code | Response model | Description |
|---|---|---|
200 | GetAllowListResponse | The request succeeded. |
400 | ValidationException | The request failed because the input doesn't satisfy the constraints specified by the service. |
403 | AccessDeniedException | The request was denied because you don't have sufficient access to the specified resource. |
404 | ResourceNotFoundException | The request failed because the specified resource wasn't found. |
429 | ThrottlingException | The request failed because you sent too many requests during a certain amount of time. |
500 | InternalServerException | The request failed due to an unknown internal server error, exception, or failure. |
PUT
Operation ID: UpdateAllowList
Updates the settings for an allow list.
| Name | Type | Required | Description |
|---|---|---|---|
id | String | True | The unique identifier for the Amazon Macie resource that the request applies to. |
| Status code | Response model | Description |
|---|---|---|
200 | UpdateAllowListResponse | The request succeeded. The settings for the allow list were updated. |
400 | ValidationException | The request failed because the input doesn't satisfy the constraints specified by the service. |
403 | AccessDeniedException | The request was denied because you don't have sufficient access to the specified resource. |
404 | ResourceNotFoundException | The request failed because the specified resource wasn't found. |
429 | ThrottlingException | The request failed because you sent too many requests during a certain amount of time. |
500 | InternalServerException | The request failed due to an unknown internal server error, exception, or failure. |
Schemas
Request bodies
{ "criteria": { "regex": "string", "s3WordsList": { "bucketName": "string", "objectKey": "string" } }, "description": "string", "name": "string" }
Response bodies
{ }
{ "arn": "string", "createdAt": "string", "criteria": { "regex": "string", "s3WordsList": { "bucketName": "string", "objectKey": "string" } }, "description": "string", "id": "string", "name": "string", "status": { "code": enum, "description": "string" }, "tags": { }, "updatedAt": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
| Property | Type | Required | Description |
|---|---|---|---|
message | string | False | The explanation of the error that occurred. |
AllowListCriteria
Specifies the criteria for an allow list. The criteria must specify a regular
expression (regex) or an S3 object (s3WordsList). It can't
specify both.
| Property | Type | Required | Description |
|---|---|---|---|
regex | string Pattern: MinLength: 1 MaxLength: 512 | False | The regular expression (regex) that defines the text pattern to ignore. The expression can contain as many as 512 characters. |
s3WordsList | False | The location and name of the S3 object that lists specific text to ignore. |
AllowListStatus
Provides information about the current status of an allow list, which indicates whether Amazon Macie can access and use the list's criteria.
| Property | Type | Required | Description |
|---|---|---|---|
code | True | The current status of the allow list. If the list's criteria specify a regular
expression ( If the list's criteria specify an S3 object, possible values are:
| |
description | string Pattern: MinLength: 1 MaxLength: 1024 | False | A brief description of the status of the allow list. Amazon Macie uses this value to provide additional information about an error that occurred when Macie tried to access and use the list's criteria. |
AllowListStatusCode
Indicates the current status of an allow list. Depending on the type of criteria that the list specifies, possible values are:
OKS3_OBJECT_NOT_FOUNDS3_USER_ACCESS_DENIEDS3_OBJECT_ACCESS_DENIEDS3_THROTTLEDS3_OBJECT_OVERSIZES3_OBJECT_EMPTYUNKNOWN_ERROR