Skip to content

DocumentContentDict

Union Type

DocumentContentDict module-attribute

Dictionary form of DocumentContent, setting exactly one variant.

Union Member Types

DocumentContentBlobDict

Bases: TypedDict

Attributes

blob instance-attribute
blob: bytes

The contents of the document. Documents passed to the blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Q Business APIs. If you are calling the Amazon Q Business endpoint directly using REST, you must base64 encode the contents before sending.

DocumentContentS3Dict

Bases: TypedDict

Attributes

s3 instance-attribute
s3: S3 | S3Dict

The path to the document in an Amazon S3 bucket.