Skip to main content

custom_entity_types

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

Overview

Namecustom_entity_types
TypeResource
Idaws.glue.custom_entity_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
custom_entity_typesarrayA list of CustomEntityType objects representing the custom patterns that have been created.
custom_entity_types_not_foundarrayA list of the names of custom patterns that were not found.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_custom_entity_typesselectregionRetrieves the details for the custom patterns specified by a list of names.
get_custom_entity_typeselectregionRetrieves the details of a custom pattern by specifying its name.
create_custom_entity_typeinsertregion, RegexStringCreates a custom pattern that is used to detect sensitive data across the columns and rows of your structured data. Each custom pattern you create specifies a regular expression and an optional list of context words. If no context words are passed only a regular expression is checked.
delete_custom_entity_typedeleteregionDeletes a custom pattern by specifying its name.
list_custom_entity_typesexecregionLists all the custom patterns that have been created.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the details for the custom patterns specified by a list of names.

SELECT
custom_entity_types,
custom_entity_types_not_found
FROM aws.glue.custom_entity_types
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a custom pattern that is used to detect sensitive data across the columns and rows of your structured data. Each custom pattern you create specifies a regular expression and an optional list of context words. If no context words are passed only a regular expression is checked.

INSERT INTO aws.glue.custom_entity_types (
Name,
RegexString,
ContextWords,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ RegexString }}' /* required */,
'{{ ContextWords }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
name
;

DELETE examples

Deletes a custom pattern by specifying its name.

DELETE FROM aws.glue.custom_entity_types
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Lists all the custom patterns that have been created.

EXEC aws.glue.custom_entity_types.list_custom_entity_types
@region='{{ region }}' --required
@@json=
'{
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }},
"Tags": "{{ Tags }}"
}'
;