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 document content. For <code>RAW</code> format, this is the original file type (for example, <code>application/pdf</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. The URL expires after 5 minutes.</p>"""
    document_content_length: NotRequired["int"]
    """<p>The size of the document content in bytes available at the pre-signed URL.</p>"""

document_content_length instance-attribute

document_content_length: NotRequired[int]

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

mime_type instance-attribute

mime_type: str

The MIME type of the document content. For RAW format, this is the original file type (for example, application/pdf). For EXTRACTED format, this is always application/json.

presigned_url instance-attribute

presigned_url: PresignedUrl

A pre-signed URL for downloading the document content. The URL expires after 5 minutes.