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 a document.

Direct Known Subclasses

Bytes, Unknown

Defined Under Namespace

Classes: Bytes, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bytesString

The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

Returns:

  • (String)


762
763
764
765
766
767
768
769
770
771
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 762

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



762
763
764
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 762

def unknown
  @unknown
end