Class: Aws::Bedrock::Types::GuardrailTopic

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

Overview

Details about topics for the guardrail to identify and deny.

This data type is used in the following API operations:

  • GetGuardrail response body][1

^

[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_GetGuardrail.html#API_GetGuardrail_ResponseSyntax

Constant Summary collapse

SENSITIVE =
[:name, :definition, :examples, :input_action, :output_action]

Instance Attribute Summary collapse

Instance Attribute Details

#definitionString

A definition of the topic to deny.

Returns:

  • (String)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#examplesArray<String>

A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.

Returns:

  • (Array<String>)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#input_actionString

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)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#input_enabledBoolean

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.

Returns:

  • (Boolean)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#nameString

The name of the topic to deny.

Returns:

  • (String)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#output_actionString

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)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#output_enabledBoolean

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.

Returns:

  • (Boolean)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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

#typeString

Specifies to deny the topic.

Returns:

  • (String)


4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/aws-sdk-bedrock/types.rb', line 4648

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