DocumentContentDict¶
Union Type¶
DocumentContentDict
module-attribute
¶
DocumentContentDict = Union[DocumentContentBlobDict | DocumentContentS3Dict]
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.