Skip to content

/AWS1/CL_QQBDOCUMENTCONTENT

The contents of a document.

Documents have size limitations. The maximum file size for a document is 50 MB. The maximum amount of text that can be extracted from a single document is 5 MB. For more information, see Supported document formats in Amazon Q Business.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_blob TYPE /AWS1/QQBBLOB /AWS1/QQBBLOB

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.

io_s3 TYPE REF TO /AWS1/CL_QQBS3 /AWS1/CL_QQBS3

The path to the document in an Amazon S3 bucket.


Queryable Attributes

blob

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.

Accessible with the following methods

Method Description
GET_BLOB() Getter for BLOB, with configurable default
ASK_BLOB() Getter for BLOB w/ exceptions if field has no value
HAS_BLOB() Determine if BLOB has a value

s3

The path to the document in an Amazon S3 bucket.

Accessible with the following methods

Method Description
GET_S3() Getter for S3