UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

26 lines (25 loc) 916 B
import { IConstruct } from 'constructs'; import * as cxapi from '../../../cx-api'; import { ISynthesisSession } from '../stack-synthesizers/types'; import { StageSynthesisOptions } from '../stage'; /** * Options for `synthesize()` */ export interface SynthesisOptions extends StageSynthesisOptions { /** * The output directory into which to synthesize the cloud assembly. * @default - creates a temporary directory */ readonly outdir?: string; } export declare function synthesize(root: IConstruct, options?: SynthesisOptions): cxapi.CloudAssembly; /** * Interface for constructs that want to do something custom during synthesis */ export interface ICustomSynthesis { /** * Called when the construct is synthesized */ onSynthesize(session: ISynthesisSession): void; } export declare function addCustomSynthesis(construct: IConstruct, synthesis: ICustomSynthesis): void;