NewReportInput
input type
ONE kind: either spec — validated through the report gate (validateReport — the plan gate, then the columns / groupBy / measures / sort arms against the terminal family’s roster) — or catalogKey + params. Both or neither answers VALIDATION in words.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the terminal family (e.g. Order report) for a built definition; the ready-made report’s title for a saved run; when supplied it must be non-blank. |
spec | ReportSpecInput | no | A built definition — the reportRun grammar verbatim (a plan + columns, or a plan + groupBy/measures, an optional sort); validated now, run later as whoever runs it. Exactly one of spec or catalogKey. |
catalogKey | String | no | A saved run — the ready-made report’s key (reportCatalog lists them); the caller must be able to run it. Exactly one of spec or catalogKey. |
params | ReportParamsInput | no | A saved run’s parameters as named (the reportRun catalogue grammar: period · lens · person · record · axis · status · option · facility) — rides with catalogKey alone; bound against the report now and at every run; absent parameters take the report’s own defaults. A page cursor (nextToken) never saves — the save refuses it, VALIDATION. |
description | String | no | What the report is for (at most 512 characters). |