Skip to content

Bedrock Runtime  >  Unions  >  DocumentSource

DocumentSource

Union Type

DocumentSource module-attribute

Contains the content of a document.

Union Member Types

DocumentSourceBytes dataclass

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

Attributes

value instance-attribute
value: bytes

DocumentSourceS3Location dataclass

The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

Attributes

value instance-attribute
value: S3Location

DocumentSourceText dataclass

The text content of the document source.

Attributes

value instance-attribute
value: str

DocumentSourceContent dataclass

The structured content of the document source, which may include various content blocks such as text, images, or other document elements.

Attributes

value instance-attribute
value: list[DocumentContentBlock]

DocumentSourceUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str