MASK_CUSTOM - Amazon Glue DataBrew
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

MASK_CUSTOM

Masks characters that match a provided custom value.

Parameters
  • sourceColumns – A list of existing column names.

  • maskSymbol – A symbol that will be used to replace specified characters.

  • regex – If true, treats customValue as a regex pattern to match.

  • customValue – All occurrences (or regex matches) of customValue will be masked in the string.

  • entityTypeFilter – Optional array of entity types. Can be used to encrypt only detected PII in free-text column.

Example

// Mask all occurrences of 'amazon' in the column { "RecipeAction": { "Operation": "MASK_CUSTOM", "Parameters": { "sourceColumns": ["company"], "maskSymbol": "#", "customValue": "amazon" } } }