Model/applications/bulk_document_download/bulk_document_download_trigger_body.py
Khalim Conn-Kowlessar 8c0b015923 bulk_document_download Lambda: attach-mode handler, trigger body, packaging 🟩
Reads the recipe from sub_task.inputs, assembles the Download Package via the
orchestrator (source docs from each row's bucket -> ZIP -> the dedicated
DOCUMENT_EXPORTS_BUCKET), returns the presigned URL + skip summary for
sub_task.outputs. Dockerfile/requirements mirror bulk_upload_finaliser.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 09:51:51 +00:00

19 lines
620 B
Python

from uuid import UUID
from pydantic import BaseModel, ConfigDict
class BulkDocumentDownloadTriggerBody(BaseModel):
"""SQS trigger for the bulk_document_download Lambda (ADR-0055/0060).
Attach mode: the FastAPI route created the Task + SubTask and pinned the
recipe (``landlord_property_ids``, ``recipient_email``, ``package_name``)
onto the SubTask's ``inputs``. The message therefore carries only the
identifiers — the (potentially large) property set never travels through the
256 KB SQS body.
"""
model_config = ConfigDict(extra="allow")
task_id: UUID
subtask_id: UUID