Glue / Client / create_custom_entity_type

create_custom_entity_type#

Glue.Client.create_custom_entity_type(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.create_custom_entity_type(
    Name='string',
    RegexString='string',
    ContextWords=[
        'string',
    ],
    Tags={
        'string': 'string'
    }
)
Parameters:
  • Name (string) –

    [REQUIRED]

    A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.

  • RegexString (string) –

    [REQUIRED]

    A regular expression string that is used for detecting sensitive data in a custom pattern.

  • ContextWords (list) –

    A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.

    If no context words are passed only a regular expression is checked.

    • (string) –

  • Tags (dict) –

    A list of tags applied to the custom entity type.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Name': 'string'
}

Response Structure

  • (dict) –

    • Name (string) –

      The name of the custom pattern you created.

Exceptions

  • Glue.Client.exceptions.AccessDeniedException

  • Glue.Client.exceptions.AlreadyExistsException

  • Glue.Client.exceptions.IdempotentParameterMismatchException

  • Glue.Client.exceptions.InternalServiceException

  • Glue.Client.exceptions.InvalidInputException

  • Glue.Client.exceptions.OperationTimeoutException

  • Glue.Client.exceptions.ResourceNumberLimitExceededException