generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructs


@cdklabs/generative-ai-cdk-constructs / bedrock / PIIFilter

Interface: PIIFilter

Interface to define a PII Filter.

Properties

action

readonly action: GuardrailAction

The action to take when PII is detected.


inputAction?

readonly optional inputAction: GuardrailAction

The action to take when PII is detected in the input.


inputEnabled?

readonly optional inputEnabled: boolean

Whether the PII filter is enabled for input.


outputAction?

readonly optional outputAction: GuardrailAction

The action to take when PII is detected in the output.


outputEnabled?

readonly optional outputEnabled: boolean

Whether the PII filter is enabled for output.


type

readonly type: General | Finance | InformationTechnology | USASpecific | CanadaSpecific | UKSpecific

The type of PII to filter.