Interface CfnGuardrail.IWordConfigProperty
A word to configure for the guardrail.
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnGuardrail.IWordConfigProperty
Syntax (vb)
Public Interface CfnGuardrail.IWordConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var wordConfigProperty = new WordConfigProperty {
Text = "text",
// the properties below are optional
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
};
Synopsis
Properties
| InputAction | Specifies the action to take when harmful content is detected in the input. Supported values include:. |
| InputEnabled | Specifies whether to enable guardrail evaluation on the intput. |
| OutputAction | Specifies the action to take when harmful content is detected in the output. Supported values include:. |
| OutputEnabled | Specifies whether to enable guardrail evaluation on the output. |
| Text | Text of the word configured for the guardrail to block. |
Properties
InputAction
Specifies the action to take when harmful content is detected in the input. Supported values include:.
string? InputAction { get; }
Property Value
Remarks
InputEnabled
Specifies whether to enable guardrail evaluation on the intput.
object? InputEnabled { get; }
Property Value
Remarks
When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Type union: either bool or IResolvable
OutputAction
Specifies the action to take when harmful content is detected in the output. Supported values include:.
string? OutputAction { get; }
Property Value
Remarks
OutputEnabled
Specifies whether to enable guardrail evaluation on the output.
object? OutputEnabled { get; }
Property Value
Remarks
When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Type union: either bool or IResolvable
Text
Text of the word configured for the guardrail to block.
string Text { get; }