Interface CfnGuardrailPropsMixin.WordConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnGuardrailPropsMixin.WordConfigProperty.Jsii$Proxy
- Enclosing class:
CfnGuardrailPropsMixin
@Stability(Stable)
public static interface CfnGuardrailPropsMixin.WordConfigProperty
extends software.amazon.jsii.JsiiSerializable
A word to configure for the guardrail.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
WordConfigProperty wordConfigProperty = WordConfigProperty.builder()
.inputAction("inputAction")
.inputEnabled(false)
.outputAction("outputAction")
.outputEnabled(false)
.text("text")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnGuardrailPropsMixin.WordConfigPropertystatic final classAn implementation forCfnGuardrailPropsMixin.WordConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSpecifies the action to take when harmful content is detected in the input.default ObjectSpecifies whether to enable guardrail evaluation on the intput.default StringSpecifies the action to take when harmful content is detected in the output.default ObjectSpecifies whether to enable guardrail evaluation on the output.default StringgetText()Text of the word configured for the guardrail to block.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInputAction
Specifies the action to take when harmful content is detected in the input. 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:
-
getInputEnabled
Specifies whether to enable guardrail evaluation on the intput.When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Returns union: either
BooleanorIResolvable- See Also:
-
getOutputAction
Specifies the action to take when harmful content is detected in the output. 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:
-
getOutputEnabled
Specifies whether to enable guardrail evaluation on the output.When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Returns union: either
BooleanorIResolvable- See Also:
-
getText
Text of the word configured for the guardrail to block.- See Also:
-
builder
-