UNPKG

aws-cdk

Version:

CDK Toolkit, the command line tool for CDK apps

32 lines (31 loc) 957 B
import { CloudAssembly } from '@aws-cdk/cx-api'; /** * Source information on a construct (class fqn and version) */ export interface ConstructInfo { readonly fqn: string; readonly version: string; } /** * A node in the construct tree. */ export interface ConstructTreeNode { readonly id: string; readonly path: string; readonly children?: { [key: string]: ConstructTreeNode; }; readonly attributes?: { [key: string]: any; }; /** * Information on the construct class that led to this node, if available */ readonly constructInfo?: ConstructInfo; } /** * Whether the provided predicate is true for at least one element in the construct (sub-)tree. */ export declare function some(node: ConstructTreeNode, predicate: (n: ConstructTreeNode) => boolean): boolean; export declare function loadTree(assembly: CloudAssembly): any; export declare function loadTreeFromDir(outdir: string): any;