Skip to main content

allow_lists

Creates, updates, deletes or gets an allow_list resource or lists allow_lists in a region

Overview

Nameallow_lists
TypeResource
DescriptionMacie AllowList resource schema
Idaws.macie.allow_lists

Fields

NameDatatypeDescription
namestringName of AllowList.
descriptionstringDescription of AllowList.
criteriaobjectAllowList criteria.
idstringAllowList ID.
arnstringAllowList ARN.
statusstringAllowList status.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Criteria, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all allow_lists in a region.

SELECT
region,
name,
description,
criteria,
id,
arn,
status,
tags
FROM aws.macie.allow_lists
WHERE region = 'us-east-1';

Gets all properties from an individual allow_list.

SELECT
region,
name,
description,
criteria,
id,
arn,
status,
tags
FROM aws.macie.allow_lists
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new allow_list resource, using stack-deploy.

/*+ create */
INSERT INTO aws.macie.allow_lists (
Name,
Criteria,
region
)
SELECT
'{{ Name }}',
'{{ Criteria }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.macie.allow_lists
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the allow_lists resource, the following permissions are required:

Create

macie2:CreateAllowList,
macie2:GetAllowList,
macie2:TagResource

Read

macie2:GetAllowList

Update

macie2:UpdateAllowList,
macie2:GetAllowList,
macie2:TagResource,
macie2:UntagResource

Delete

macie2:DeleteAllowList

List

macie2:ListAllowLists