View a markdown version of this page

Redaction mask mode - Amazon Bedrock

Redaction mask mode

Use this setting to control how BDA masks detected PII entities in redacted output files.

Set the value to PII to replace all detected entities with a generic [PII] marker. Set the value to ENTITY_TYPE to replace each entity with its specific type marker, such as [NAME], [EMAIL], or [ADDRESS].

This setting applies only when you set detectionMode to DETECTION_AND_REDACTION. If you do not specify a value, BDA defaults to ENTITY_TYPE.

Redaction mask mode values
Mask mode Description

PII

Replace sensitive data with [PII] in the redacted output files.

ENTITY_TYPE

Replace sensitive data with [ENTITY_TYPE] in the redacted output files. For example, [ADDRESS], [EMAIL].