App is the root of the construct tree. It represents the entire tfts application and manages the synthesis process.
Constructor
AppConfig
| Property | Type | Description |
|---|---|---|
outdir | string | The directory where synthesized files will be written. |
stackTraces | boolean | Whether to include stack traces in the output. |
hclOutput | boolean | Whether to output HCL instead of JSON. |
context | Record<string, any> | Initial context values. |
skipValidation | boolean | Whether to skip resource validation. |
skipBackendValidation | boolean | Whether to skip backend validation. |
Properties
outdir
readonly outdir: string
The output directory for synthesized files.
hclOutput
readonly hclOutput: boolean
Whether HCL output is enabled.
targetStackId
readonly targetStackId?: string
The ID of the stack being targeted for synthesis.
skipValidation
readonly skipValidation: boolean
Whether validation is skipped.
skipBackendValidation
readonly skipBackendValidation: boolean
Whether backend validation is skipped.
manifest
readonly manifest: Manifest
The synthesis manifest.
Methods
synth()
static asApp()
App instance if the object is an App.
static of()
App instance that contains the given construct.