Field tiers
Every field in a Lex conversation event belongs to exactly one of six tiers.
The four customer-configurable tiers (Allow, Deny, Encrypt, Transform)
are mutually exclusive: any one field appears in at most one tier.
Processing order
The Lambda processes every event in four passes, in order.- Mandatory override. Check each field path against the mandatory list. If a mandatory field sits under a denied parent, retain the parent and prune all non-mandatory siblings. Mandatory always wins.
- Deny. Evaluate every remaining field path against the deny list. Mark matched fields for removal.
- Allow, Encrypt, Transform. Apply the customer-declared tiers to remaining fields.
- Default nullify. Every field not covered by the previous three
passes keeps its key, value becomes
null.
Path notation
Both lists use dot notation.sessionStatematches the entire object at that key.sessionState.intent.namematches only that subfield.- A trailing
.*matches every direct child of the path. For example,interpretations.intent.slots.*.shapematches theshapefield on every slot underinterpretations.intent.slots.
Parent-key behavior
When a deny entry targets a parent and no mandatory entry references any child, the Lambda removes the entire key — not an empty object. When a deny entry targets a parent and the mandatory, allow, encrypt, or transform list references one or more children of that parent, the Lambda retains the parent containing only those referenced children.Data flow
Mandatory keep-list
The redaction Lambda always preserves these fields, regardless of deny, encrypt, or transform configuration.Related
- Configure Lex redaction — step-by-step rollout.
- Concept: Privacy and redaction — the cross-integration model.
- Contact Flow Log redaction schema — the sibling schema for contact-flow logs.
- Install the Amazon Lex integration — the integration this schema applies to.