Skip to main content

custom_data_identifiers

Creates, updates, deletes, gets or lists a custom_data_identifiers resource.

Overview

Namecustom_data_identifiers
TypeResource
Idaws.macie2.custom_data_identifiers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the custom data identifier.
namestringThe custom name of the custom data identifier.
arnstringThe Amazon Resource Name (ARN) of the custom data identifier.
created_atstring (date-time)The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.
deletedbooleanSpecifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it soft deletes the identifier.
descriptionstringThe custom description of the custom data identifier.
ignore_wordsarrayAn array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.
keywordsarrayAn array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.
maximum_match_distanceintegerThe maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.
regexstringThe regular expression (regex) that defines the pattern to match.
severity_levelsarrayThe severity to assign to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. You can specify as many as three SeverityLevel objects in this array, one for each severity: LOW, MEDIUM, or HIGH. If you specify more than one, the occurrences thresholds must be in ascending order by severity, moving from LOW to HIGH. For example, 1 for LOW, 50 for MEDIUM, and 100 for HIGH. If an S3 object contains fewer occurrences than the lowest specified threshold, Amazon Macie doesn't create a finding. If you don't specify any values for this array, Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie automatically assigns the MEDIUM severity to those findings.
tagsobjectA map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_data_identifierselectid, regionRetrieves the criteria and other settings for a custom data identifier.
list_custom_data_identifiersselectregionRetrieves a subset of information about the custom data identifiers for an account.
create_custom_data_identifierinsertregion, name, regexCreates and defines the criteria and other settings for a custom data identifier.
delete_custom_data_identifierdeleteid, regionSoft deletes a custom data identifier.
batch_get_custom_data_identifiersexecregionRetrieves information about one or more custom data identifiers.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the Amazon Macie resource that the request applies to.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the criteria and other settings for a custom data identifier.

SELECT
id,
name,
arn,
created_at,
deleted,
description,
ignore_words,
keywords,
maximum_match_distance,
regex,
severity_levels,
tags
FROM aws.macie2.custom_data_identifiers
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates and defines the criteria and other settings for a custom data identifier.

INSERT INTO aws.macie2.custom_data_identifiers (
clientToken,
description,
ignoreWords,
keywords,
maximumMatchDistance,
name,
regex,
severityLevels,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ description }}',
'{{ ignoreWords }}',
'{{ keywords }}',
{{ maximumMatchDistance }},
'{{ name }}' /* required */,
'{{ regex }}' /* required */,
'{{ severityLevels }}',
'{{ tags }}',
'{{ region }}'
RETURNING
custom_data_identifier_id
;

DELETE examples

Soft deletes a custom data identifier.

DELETE FROM aws.macie2.custom_data_identifiers
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Retrieves information about one or more custom data identifiers.

EXEC aws.macie2.custom_data_identifiers.batch_get_custom_data_identifiers
@region='{{ region }}' --required
@@json=
'{
"ids": "{{ ids }}"
}'
;