Skip to main content

custom_data_identifiers

Creates, updates, deletes or gets a custom_data_identifier resource or lists custom_data_identifiers in a region

Overview

Namecustom_data_identifiers
TypeResource
DescriptionMacie CustomDataIdentifier resource schema
Idaws.macie.custom_data_identifiers

Fields

NameDatatypeDescription
namestringName of custom data identifier.
descriptionstringDescription of custom data identifier.
regexstringRegular expression for custom data identifier.
maximum_match_distanceintegerMaximum match distance.
keywordsarrayKeywords to be matched against.
ignore_wordsarrayWords to be ignored.
idstringCustom data identifier ID.
arnstringCustom data identifier ARN.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

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

SELECT examples

Gets all custom_data_identifiers in a region.

SELECT
region,
name,
description,
regex,
maximum_match_distance,
keywords,
ignore_words,
id,
arn,
tags
FROM aws.macie.custom_data_identifiers
WHERE region = 'us-east-1';

Gets all properties from an individual custom_data_identifier.

SELECT
region,
name,
description,
regex,
maximum_match_distance,
keywords,
ignore_words,
id,
arn,
tags
FROM aws.macie.custom_data_identifiers
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

macie2:CreateCustomDataIdentifier,
macie2:GetCustomDataIdentifier,
macie2:TagResource

Read

macie2:GetCustomDataIdentifier

Delete

macie2:DeleteCustomDataIdentifier

List

macie2:ListCustomDataIdentifiers

Update

macie2:TagResource,
macie2:UntagResource