/AWS1/CL_BDKGUARDRAILREGEX¶
The regular expression configured for the guardrail.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
iv_name
TYPE /AWS1/BDKSTRING
/AWS1/BDKSTRING
¶
The name of the regular expression for the guardrail.
iv_pattern
TYPE /AWS1/BDKSTRING
/AWS1/BDKSTRING
¶
The pattern of the regular expression configured for the guardrail.
iv_action
TYPE /AWS1/BDKGUARDRAILSENSITIVEI00
/AWS1/BDKGUARDRAILSENSITIVEI00
¶
The action taken when a match to the regular expression is detected.
Optional arguments:¶
iv_description
TYPE /AWS1/BDKSTRING
/AWS1/BDKSTRING
¶
The description of the regular expression for the guardrail.
iv_inputaction
TYPE /AWS1/BDKGUARDRAILSENSITIVEI00
/AWS1/BDKGUARDRAILSENSITIVEI00
¶
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.
iv_outputaction
TYPE /AWS1/BDKGUARDRAILSENSITIVEI00
/AWS1/BDKGUARDRAILSENSITIVEI00
¶
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.
iv_inputenabled
TYPE /AWS1/BDKBOOLEAN
/AWS1/BDKBOOLEAN
¶
Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
iv_outputenabled
TYPE /AWS1/BDKBOOLEAN
/AWS1/BDKBOOLEAN
¶
Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Queryable Attributes¶
name¶
The name of the regular expression for the guardrail.
Accessible with the following methods¶
Method | Description |
---|---|
GET_NAME() |
Getter for NAME, with configurable default |
ASK_NAME() |
Getter for NAME w/ exceptions if field has no value |
HAS_NAME() |
Determine if NAME has a value |
description¶
The description of the regular expression for the guardrail.
Accessible with the following methods¶
Method | Description |
---|---|
GET_DESCRIPTION() |
Getter for DESCRIPTION, with configurable default |
ASK_DESCRIPTION() |
Getter for DESCRIPTION w/ exceptions if field has no value |
HAS_DESCRIPTION() |
Determine if DESCRIPTION has a value |
pattern¶
The pattern of the regular expression configured for the guardrail.
Accessible with the following methods¶
Method | Description |
---|---|
GET_PATTERN() |
Getter for PATTERN, with configurable default |
ASK_PATTERN() |
Getter for PATTERN w/ exceptions if field has no value |
HAS_PATTERN() |
Determine if PATTERN has a value |
action¶
The action taken when a match to the regular expression is detected.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ACTION() |
Getter for ACTION, with configurable default |
ASK_ACTION() |
Getter for ACTION w/ exceptions if field has no value |
HAS_ACTION() |
Determine if ACTION has a value |
inputAction¶
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.
Accessible with the following methods¶
Method | Description |
---|---|
GET_INPUTACTION() |
Getter for INPUTACTION, with configurable default |
ASK_INPUTACTION() |
Getter for INPUTACTION w/ exceptions if field has no value |
HAS_INPUTACTION() |
Determine if INPUTACTION has a value |
outputAction¶
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.
Accessible with the following methods¶
Method | Description |
---|---|
GET_OUTPUTACTION() |
Getter for OUTPUTACTION, with configurable default |
ASK_OUTPUTACTION() |
Getter for OUTPUTACTION w/ exceptions if field has no value |
HAS_OUTPUTACTION() |
Determine if OUTPUTACTION has a value |
inputEnabled¶
Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Accessible with the following methods¶
Method | Description |
---|---|
GET_INPUTENABLED() |
Getter for INPUTENABLED, with configurable default |
ASK_INPUTENABLED() |
Getter for INPUTENABLED w/ exceptions if field has no value |
HAS_INPUTENABLED() |
Determine if INPUTENABLED has a value |
outputEnabled¶
Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
Accessible with the following methods¶
Method | Description |
---|---|
GET_OUTPUTENABLED() |
Getter for OUTPUTENABLED, with configurable default |
ASK_OUTPUTENABLED() |
Getter for OUTPUTENABLED w/ exceptions if field has no value |
HAS_OUTPUTENABLED() |
Determine if OUTPUTENABLED has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_GUARDRAILREGEXES
¶
TYPES TT_GUARDRAILREGEXES TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDKGUARDRAILREGEX WITH DEFAULT KEY
.