-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist-stacks.d.ts
38 lines (38 loc) · 883 Bytes
/
list-stacks.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import '@jsii/check-node/run';
import { Environment } from '@aws-cdk/cx-api';
import { CdkToolkit } from './cdk-toolkit';
/**
* Options for List Stacks
*/
export interface ListStacksOptions {
/**
* Stacks to list
*
* @default - All stacks are listed
*/
readonly selectors: string[];
}
/**
* Type to store stack dependencies recursively
*/
export type DependencyDetails = {
id: string;
dependencies: DependencyDetails[];
};
/**
* Type to store stack and their dependencies
*/
export type StackDetails = {
id: string;
name: string;
environment: Environment;
dependencies: DependencyDetails[];
};
/**
* List Stacks
*
* @param toolkit cdk toolkit
* @param options list stacks options
* @returns StackDetails[]
*/
export declare function listStacks(toolkit: CdkToolkit, options: ListStacksOptions): Promise<StackDetails[]>;