Skip to content

GetDocumentContentResponse

Source code in docs_src/capo_bedrock_agent_runtime/types/get_document_content_response.py
class GetDocumentContentResponse(TypedDict, closed=True):
    mime_type: "str"
    """<p>The MIME type of the returned content. For <code>RAW</code> format, this is the original file type (for example, <code>application/pdf</code>), or the image type (for example, <code>image/png</code>) if you specify <code>mediaId</code>. For <code>EXTRACTED</code> format, this is always <code>application/json</code>.</p>"""
    presigned_url: "capo_bedrock_agent_runtime.types.presigned_url.PresignedUrl"
    """<p>A pre-signed URL for downloading the document content, or the selected image if you specify <code>mediaId</code>. The URL expires after 5 minutes.</p>"""
    document_content_length: NotRequired["int"]
    """<p>The size, in bytes, of the content available at the pre-signed URL.</p>"""

document_content_length instance-attribute

document_content_length: NotRequired[int]

The size, in bytes, of the content available at the pre-signed URL.

mime_type instance-attribute

mime_type: str

The MIME type of the returned content. For RAW format, this is the original file type (for example, application/pdf), or the image type (for example, image/png) if you specify mediaId. For EXTRACTED format, this is always application/json.

presigned_url instance-attribute

presigned_url: PresignedUrl

A pre-signed URL for downloading the document content, or the selected image if you specify mediaId. The URL expires after 5 minutes.