interface RegexConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnGuardrailPropsMixin.RegexConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnGuardrailPropsMixin_RegexConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnGuardrailPropsMixin.RegexConfigProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnGuardrailPropsMixin.RegexConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnGuardrailPropsMixin » RegexConfigProperty |
The regular expression 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 { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const regexConfigProperty: bedrock_mixins.CfnGuardrailPropsMixin.RegexConfigProperty = {
action: 'action',
description: 'description',
inputAction: 'inputAction',
inputEnabled: false,
name: 'name',
outputAction: 'outputAction',
outputEnabled: false,
pattern: 'pattern',
};
Properties
| Name | Type | Description |
|---|---|---|
| action? | string | The guardrail action to configure when matching regular expression is detected. |
| description? | string | The description of the regular expression to configure for the guardrail. |
| input | string | Specifies the action to take when harmful content is detected in the input. Supported values include:. |
| input | boolean | IResolvable | Specifies whether to enable guardrail evaluation on the input. |
| name? | string | The name of the regular expression to configure for the guardrail. |
| output | string | Specifies the action to take when harmful content is detected in the output. Supported values include:. |
| output | boolean | IResolvable | Specifies whether to enable guardrail evaluation on the output. |
| pattern? | string | The regular expression pattern to configure for the guardrail. |
action?
Type:
string
(optional)
The guardrail action to configure when matching regular expression is detected.
description?
Type:
string
(optional)
The description of the regular expression to configure for the guardrail.
inputAction?
Type:
string
(optional)
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.
inputEnabled?
Type:
boolean | IResolvable
(optional)
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.
name?
Type:
string
(optional)
The name of the regular expression to configure for the guardrail.
outputAction?
Type:
string
(optional)
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.
outputEnabled?
Type:
boolean | IResolvable
(optional)
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.
pattern?
Type:
string
(optional)
The regular expression pattern to configure for the guardrail.

.NET
Go
Java
Python
TypeScript