Class: Aws::BedrockRuntime::Types::GuardrailChecksContentBlock

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

GuardrailChecksContentBlock is a union - when making an API calls you must set exactly one of the members.

A content block within a message to evaluate.

Defined Under Namespace

Classes: Text, Unknown

Constant Summary collapse

SENSITIVE =
[:text]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The text content to evaluate.

Returns:

  • (String)


2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2333

class GuardrailChecksContentBlock < Struct.new(
  :text,
  :unknown)
  SENSITIVE = [:text]
  include Aws::Structure
  include Aws::Structure::Union

  class Text < GuardrailChecksContentBlock; end
  class Unknown < GuardrailChecksContentBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2333
2334
2335
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2333

def unknown
  @unknown
end