UNPKG

1.2 kBTypeScriptView Raw
1import type { CloudFormationStackArtifact } from '@aws-cdk/cx-api';
2import type { SDK } from '../aws-auth';
3import { type Template } from './cloudformation';
4export interface NestedStackTemplates {
5 readonly physicalName: string | undefined;
6 readonly deployedTemplate: Template;
7 readonly generatedTemplate: Template;
8 readonly nestedStackTemplates: {
9 [nestedStackLogicalId: string]: NestedStackTemplates;
10 };
11}
12export interface RootTemplateWithNestedStacks {
13 readonly deployedRootTemplate: Template;
14 readonly nestedStacks: {
15 [nestedStackLogicalId: string]: NestedStackTemplates;
16 };
17}
18/**
19 * Reads the currently deployed template and all of its nested stack templates from CloudFormation.
20 */
21export declare function loadCurrentTemplateWithNestedStacks(rootStackArtifact: CloudFormationStackArtifact, sdk: SDK, retrieveProcessedTemplate?: boolean): Promise<RootTemplateWithNestedStacks>;
22/**
23 * Returns the currently deployed template from CloudFormation that corresponds to `stackArtifact`.
24 */
25export declare function loadCurrentTemplate(stackArtifact: CloudFormationStackArtifact, sdk: SDK, retrieveProcessedTemplate?: boolean): Promise<Template>;