@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / ContentFilter
Interface to declare a content filter.
readonlyoptionalinputAction?:GuardrailAction
The action to take when content is detected in the input.
readonlyoptionalinputEnabled?:boolean
Whether the content filter is enabled for input.
readonlyoptionalinputModalities?:ModalityType[]
The input modalities to apply the content filter to.
undefined - Applies to text modality
readonlyinputStrength:ContentFilterStrength
The strength of the content filter to apply to prompts / user input.
readonlyoptionaloutputAction?:GuardrailAction
The action to take when content is detected in the output.
readonlyoptionaloutputEnabled?:boolean
Whether the content filter is enabled for output.
readonlyoptionaloutputModalities?:ModalityType[]
The output modalities to apply the content filter to.
undefined - Applies to text modality
readonlyoutputStrength:ContentFilterStrength
The strength of the content filter to apply to model responses.
readonlytype:ContentFilterType
The type of harmful category that the content filter is applied to