Skip to content

ReadFileParams

Defined in: src/types/index.ts:1235

Parameters for the readFile callback of extractAslFromTemplate.

path: string;

Defined in: src/types/index.ts:1243

A path relative to the template’s directory, as the template writes it (a SAM DefinitionUri such as statemachine/order.asl.json) or as CDK names it (Stack.assets.json, then the asset’s source.path). For a nested stack template, CDK’s paths start with manifest.json, then each stack’s <stack>.assets.json until one lists the template. Resolve it against the directory the template was read from.