1 | import * as cxapi from '@aws-cdk/cx-api';
|
2 | import { CloudAssembly } from './cloud-assembly';
|
3 | import { Configuration } from '../../cli/user-configuration';
|
4 | import { SdkProvider } from '../aws-auth';
|
5 |
|
6 |
|
7 |
|
8 | export type Synthesizer = (aws: SdkProvider, config: Configuration) => Promise<cxapi.CloudAssembly>;
|
9 | export interface CloudExecutableProps {
|
10 | |
11 |
|
12 |
|
13 | configuration: Configuration;
|
14 | |
15 |
|
16 |
|
17 | sdkProvider: SdkProvider;
|
18 | |
19 |
|
20 |
|
21 | synthesizer: Synthesizer;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 | export declare class CloudExecutable {
|
27 | private readonly props;
|
28 | private _cloudAssembly?;
|
29 | constructor(props: CloudExecutableProps);
|
30 | /**
|
31 | * Return whether there is an app command from the configuration
|
32 | */
|
33 | get hasApp(): boolean;
|
34 | /**
|
35 | * Synthesize a set of stacks.
|
36 | *
|
37 | * @param cacheCloudAssembly whether to cache the Cloud Assembly after it has been first synthesized.
|
38 | * This is 'true' by default, and only set to 'false' for 'cdk watch',
|
39 | * which needs to re-synthesize the Assembly each time it detects a change to the project files
|
40 | */
|
41 | synthesize(cacheCloudAssembly?: boolean): Promise<CloudAssembly>;
|
42 | private doSynthesize;
|
43 | private get canLookup();
|
44 | }
|