AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The regular expression to configure for the guardrail.

Inheritance Hierarchy

System.Object
  Amazon.Bedrock.Model.GuardrailRegexConfig

Namespace: Amazon.Bedrock.Model
Assembly: AWSSDK.Bedrock.dll
Version: 3.x.y.z

Syntax

C#
public class GuardrailRegexConfig

The GuardrailRegexConfig type exposes the following members

Constructors

NameDescription
Public Method GuardrailRegexConfig()

Properties

NameTypeDescription
Public Property Action Amazon.Bedrock.GuardrailSensitiveInformationAction

Gets and sets the property Action.

The guardrail action to configure when matching regular expression is detected.

Public Property Description System.String

Gets and sets the property Description.

The description of the regular expression to configure for the guardrail.

Public Property InputAction Amazon.Bedrock.GuardrailSensitiveInformationAction

Gets and sets the property InputAction.

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.

Public Property InputEnabled System.Boolean

Gets and sets the property InputEnabled.

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.

Public Property Name System.String

Gets and sets the property Name.

The name of the regular expression to configure for the guardrail.

Public Property OutputAction Amazon.Bedrock.GuardrailSensitiveInformationAction

Gets and sets the property OutputAction.

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.

Public Property OutputEnabled System.Boolean

Gets and sets the property OutputEnabled.

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.

Public Property Pattern System.String

Gets and sets the property Pattern.

The regular expression pattern to configure for the guardrail.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5