Class: Aws::BedrockRuntime::Types::DocumentContentBlock

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

Overview

Note:

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

Note:

DocumentContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of DocumentContentBlock corresponding to the set member.

Contains the actual content of a document that can be processed by the model and potentially cited in the response.

Direct Known Subclasses

Text, Unknown

Defined Under Namespace

Classes: Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#textString

The text content of the document.

Returns:

  • (String)


1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1319

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

  class Text < DocumentContentBlock; end
  class Unknown < DocumentContentBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1319
1320
1321
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1319

def unknown
  @unknown
end