ManagedWordsConfigProperty Struct
The managed word list to configure for the guardrail.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const managedWordsConfigProperty: bedrock.CfnGuardrail.ManagedWordsConfigProperty = {
type: 'type',
// the properties below are optional
inputAction: 'inputAction',
inputEnabled: false,
outputAction: 'outputAction',
outputEnabled: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
managed_words_config_property = bedrock.CfnGuardrail.ManagedWordsConfigProperty(
type="type",
# the properties below are optional
input_action="inputAction",
input_enabled=False,
output_action="outputAction",
output_enabled=False
)
java
// 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.*;
ManagedWordsConfigProperty managedWordsConfigProperty = ManagedWordsConfigProperty.builder()
.type("type")
// the properties below are optional
.inputAction("inputAction")
.inputEnabled(false)
.outputAction("outputAction")
.outputEnabled(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 managedWordsConfigProperty = new ManagedWordsConfigProperty {
Type = "type",
// the properties below are optional
InputAction = "inputAction",
InputEnabled = false,
OutputAction = "outputAction",
OutputEnabled = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
managedWordsConfigProperty := &ManagedWordsConfigProperty{
Type: jsii.String("type"),
// the properties below are optional
InputAction: jsii.String("inputAction"),
InputEnabled: jsii.Boolean(false),
OutputAction: jsii.String("outputAction"),
OutputEnabled: jsii.Boolean(false),
}
Properties
inputActionoptionalstringinput_actionoptionalstrinputActionoptionalStringInputActionoptionalstringInputActionoptional*string #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.
inputEnabledoptionalboolean | IResolvableinput_enabledoptionaltyping.Union[bool, IResolvable]inputEnabledoptionalBooleanInputEnabledoptionalboolInputEnabledoptionalinterface{} #Specifies whether to enable guardrail evaluation on the input.
When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
outputActionoptionalstringoutput_actionoptionalstroutputActionoptionalStringOutputActionoptionalstringOutputActionoptional*string #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.
outputEnabledoptionalboolean | IResolvableoutput_enabledoptionaltyping.Union[bool, IResolvable]outputEnabledoptionalBooleanOutputEnabledoptionalboolOutputEnabledoptionalinterface{} #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.
The managed word type to configure for the guardrail.