Class: Aws::Bedrock::Types::GuardrailManagedWordsConfig

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrock/types.rb

Overview

The managed word list to configure for the guardrail.

Constant Summary collapse

SENSITIVE =
[:input_action, :output_action]

Instance Attribute Summary collapse

Instance Attribute Details

#input_actionString

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.

Returns:

  • (String)


7460
7461
7462
7463
7464
7465
7466
7467
7468
# File 'lib/aws-sdk-bedrock/types.rb', line 7460

class GuardrailManagedWordsConfig < Struct.new(
  :type,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = [:input_action, :output_action]
  include Aws::Structure
end

#input_enabledBoolean

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.

Returns:

  • (Boolean)


7460
7461
7462
7463
7464
7465
7466
7467
7468
# File 'lib/aws-sdk-bedrock/types.rb', line 7460

class GuardrailManagedWordsConfig < Struct.new(
  :type,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = [:input_action, :output_action]
  include Aws::Structure
end

#output_actionString

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.

Returns:

  • (String)


7460
7461
7462
7463
7464
7465
7466
7467
7468
# File 'lib/aws-sdk-bedrock/types.rb', line 7460

class GuardrailManagedWordsConfig < Struct.new(
  :type,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = [:input_action, :output_action]
  include Aws::Structure
end

#output_enabledBoolean

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.

Returns:

  • (Boolean)


7460
7461
7462
7463
7464
7465
7466
7467
7468
# File 'lib/aws-sdk-bedrock/types.rb', line 7460

class GuardrailManagedWordsConfig < Struct.new(
  :type,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = [:input_action, :output_action]
  include Aws::Structure
end

#typeString

The managed word type to configure for the guardrail.

Returns:

  • (String)


7460
7461
7462
7463
7464
7465
7466
7467
7468
# File 'lib/aws-sdk-bedrock/types.rb', line 7460

class GuardrailManagedWordsConfig < Struct.new(
  :type,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = [:input_action, :output_action]
  include Aws::Structure
end