Class: Aws::Bedrock::Types::GuardrailTopicConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrock/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:

Constant Summary collapse

SENSITIVE =
[:name, :definition]

Instance Attribute Summary collapse

Instance Attribute Details

#definitionString

A definition of the topic to deny.

Returns:

  • (String)


2093
2094
2095
2096
2097
2098
2099
2100
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2093

class GuardrailTopicConfig < Struct.new(
  :name,
  :definition,
  :examples,
  :type)
  SENSITIVE = [:name, :definition]
  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>)


2093
2094
2095
2096
2097
2098
2099
2100
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2093

class GuardrailTopicConfig < Struct.new(
  :name,
  :definition,
  :examples,
  :type)
  SENSITIVE = [:name, :definition]
  include Aws::Structure
end

#nameString

The name of the topic to deny.

Returns:

  • (String)


2093
2094
2095
2096
2097
2098
2099
2100
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2093

class GuardrailTopicConfig < Struct.new(
  :name,
  :definition,
  :examples,
  :type)
  SENSITIVE = [:name, :definition]
  include Aws::Structure
end

#typeString

Specifies to deny the topic.

Returns:

  • (String)


2093
2094
2095
2096
2097
2098
2099
2100
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2093

class GuardrailTopicConfig < Struct.new(
  :name,
  :definition,
  :examples,
  :type)
  SENSITIVE = [:name, :definition]
  include Aws::Structure
end