Class: Aws::Bedrock::Types::GuardrailWord
- Inherits:
-
Struct
- Object
- Struct
- Aws::Bedrock::Types::GuardrailWord
- Defined in:
- gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb
Overview
A word configured for the guardrail.
Constant Summary collapse
- SENSITIVE =
[:input_action, :output_action]
Instance Attribute Summary collapse
-
#input_action ⇒ String
The action to take when harmful content is detected in the input.
-
#input_enabled ⇒ Boolean
Indicates whether guardrail evaluation is enabled on the input.
-
#output_action ⇒ String
The action to take when harmful content is detected in the output.
-
#output_enabled ⇒ Boolean
Indicates whether guardrail evaluation is enabled on the output.
-
#text ⇒ String
Text of the word configured for the guardrail to block.
Instance Attribute Details
#input_action ⇒ String
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.
8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8261 class GuardrailWord < Struct.new( :text, :input_action, :output_action, :input_enabled, :output_enabled) SENSITIVE = [:input_action, :output_action] include Aws::Structure end |
#input_enabled ⇒ Boolean
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.
8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8261 class GuardrailWord < Struct.new( :text, :input_action, :output_action, :input_enabled, :output_enabled) SENSITIVE = [:input_action, :output_action] include Aws::Structure end |
#output_action ⇒ String
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.
8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8261 class GuardrailWord < Struct.new( :text, :input_action, :output_action, :input_enabled, :output_enabled) SENSITIVE = [:input_action, :output_action] include Aws::Structure end |
#output_enabled ⇒ Boolean
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.
8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8261 class GuardrailWord < Struct.new( :text, :input_action, :output_action, :input_enabled, :output_enabled) SENSITIVE = [:input_action, :output_action] include Aws::Structure end |
#text ⇒ String
Text of the word configured for the guardrail to block.
8261 8262 8263 8264 8265 8266 8267 8268 8269 |
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8261 class GuardrailWord < Struct.new( :text, :input_action, :output_action, :input_enabled, :output_enabled) SENSITIVE = [:input_action, :output_action] include Aws::Structure end |