Class: Aws::BedrockRuntime::Types::DocumentSource

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

Overview

Note:

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

Note:

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

Contains the content of the document included in a message when sending a Converse or ConverseStream request or in the response.

Direct Known Subclasses

Bytes, Unknown

Defined Under Namespace

Classes: Bytes, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bytesString

A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.

Returns:

  • (String)


624
625
626
627
628
629
630
631
632
633
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 624

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

  class Bytes < DocumentSource; end
  class Unknown < DocumentSource; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



624
625
626
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 624

def unknown
  @unknown
end