Interface CfnGuardrail.ContextualGroundingFilterConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardrail.ContextualGroundingFilterConfigProperty.Jsii$Proxy
- Enclosing class:
CfnGuardrail
@Stability(Stable)
public static interface CfnGuardrail.ContextualGroundingFilterConfigProperty
extends software.amazon.jsii.JsiiSerializable
The filter configuration details for the guardrails contextual grounding filter.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
ContextualGroundingFilterConfigProperty contextualGroundingFilterConfigProperty = ContextualGroundingFilterConfigProperty.builder()
.threshold(123)
.type("type")
// the properties below are optional
.action("action")
.enabled(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGuardrail.ContextualGroundingFilterConfigPropertystatic final classAn implementation forCfnGuardrail.ContextualGroundingFilterConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSpecifies the action to take when content fails the contextual grounding evaluation.default ObjectSpecifies whether to enable contextual grounding evaluation.The threshold details for the guardrails contextual grounding filter.getType()The filter details for the guardrails contextual grounding filter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getThreshold
The threshold details for the guardrails contextual grounding filter.- See Also:
-
getType
The filter details for the guardrails contextual grounding filter.- See Also:
-
getAction
Specifies the action to take when content fails the contextual grounding evaluation. Supported values include:.BLOCK– Block the content and replace it with blocked messaging.NONE– Take no action but return detection information in the trace response.
- See Also:
-
getEnabled
Specifies whether to enable contextual grounding evaluation.When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Returns union: either
BooleanorIResolvable- See Also:
-
builder
-