@depup/aws-cdk 2.1117.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +16 -0
- package/README.md +25 -0
- package/THIRD_PARTY_LICENSES +24866 -0
- package/bin/cdk +6 -0
- package/build-info.json +4 -0
- package/changes.json +5 -0
- package/db.json.gz +0 -0
- package/docs/deploy-architecture.md +194 -0
- package/lib/api/aws-auth.d.ts +3 -0
- package/lib/api/aws-auth.js +21 -0
- package/lib/api/bootstrap/bootstrap-template.yaml +855 -0
- package/lib/api/bootstrap.d.ts +1 -0
- package/lib/api/bootstrap.js +19 -0
- package/lib/api/cloud-assembly.d.ts +5 -0
- package/lib/api/cloud-assembly.js +23 -0
- package/lib/api/cloudformation.d.ts +1 -0
- package/lib/api/cloudformation.js +19 -0
- package/lib/api/context.d.ts +1 -0
- package/lib/api/context.js +19 -0
- package/lib/api/deployments.d.ts +1 -0
- package/lib/api/deployments.js +19 -0
- package/lib/api/hotswap.d.ts +1 -0
- package/lib/api/hotswap.js +19 -0
- package/lib/api/index.d.ts +16 -0
- package/lib/api/index.js +38 -0
- package/lib/api/network-detector.d.ts +1 -0
- package/lib/api/network-detector.js +19 -0
- package/lib/api/notices.d.ts +1 -0
- package/lib/api/notices.js +19 -0
- package/lib/api/plugin.d.ts +1 -0
- package/lib/api/plugin.js +19 -0
- package/lib/api/refactor.d.ts +1 -0
- package/lib/api/refactor.js +8 -0
- package/lib/api/settings.d.ts +1 -0
- package/lib/api/settings.js +19 -0
- package/lib/api/tags.d.ts +1 -0
- package/lib/api/tags.js +19 -0
- package/lib/api-private.d.ts +9 -0
- package/lib/api-private.js +29 -0
- package/lib/cli/cdk-toolkit.d.ts +699 -0
- package/lib/cli/cdk-toolkit.js +1260 -0
- package/lib/cli/ci-systems.d.ts +29 -0
- package/lib/cli/ci-systems.js +61 -0
- package/lib/cli/cli-config.d.ts +10 -0
- package/lib/cli/cli-config.js +556 -0
- package/lib/cli/cli-type-registry.json +1147 -0
- package/lib/cli/cli.d.ts +3 -0
- package/lib/cli/cli.js +746 -0
- package/lib/cli/convert-to-user-input.d.ts +3 -0
- package/lib/cli/convert-to-user-input.js +560 -0
- package/lib/cli/display-version.d.ts +11 -0
- package/lib/cli/display-version.js +101 -0
- package/lib/cli/io-host/cli-io-host.d.ts +191 -0
- package/lib/cli/io-host/cli-io-host.js +477 -0
- package/lib/cli/io-host/index.d.ts +1 -0
- package/lib/cli/io-host/index.js +18 -0
- package/lib/cli/parse-command-line-arguments.d.ts +1 -0
- package/lib/cli/parse-command-line-arguments.js +1067 -0
- package/lib/cli/platform-warnings.d.ts +3 -0
- package/lib/cli/platform-warnings.js +44 -0
- package/lib/cli/pretty-print-error.d.ts +1 -0
- package/lib/cli/pretty-print-error.js +37 -0
- package/lib/cli/proxy-agent.d.ts +30 -0
- package/lib/cli/proxy-agent.js +52 -0
- package/lib/cli/root-dir.d.ts +10 -0
- package/lib/cli/root-dir.js +23 -0
- package/lib/cli/singleton-plugin-host.d.ts +7 -0
- package/lib/cli/singleton-plugin-host.js +11 -0
- package/lib/cli/tables.d.ts +1 -0
- package/lib/cli/tables.js +10 -0
- package/lib/cli/telemetry/collect-telemetry.d.ts +5 -0
- package/lib/cli/telemetry/collect-telemetry.js +16 -0
- package/lib/cli/telemetry/error.d.ts +15 -0
- package/lib/cli/telemetry/error.js +68 -0
- package/lib/cli/telemetry/feature-flags.d.ts +96 -0
- package/lib/cli/telemetry/feature-flags.js +103 -0
- package/lib/cli/telemetry/installation-id.d.ts +5 -0
- package/lib/cli/telemetry/installation-id.js +47 -0
- package/lib/cli/telemetry/library-version.d.ts +2 -0
- package/lib/cli/telemetry/library-version.js +30 -0
- package/lib/cli/telemetry/messages.d.ts +43 -0
- package/lib/cli/telemetry/messages.js +60 -0
- package/lib/cli/telemetry/sanitation.d.ts +100 -0
- package/lib/cli/telemetry/sanitation.js +79 -0
- package/lib/cli/telemetry/schema.d.ts +85 -0
- package/lib/cli/telemetry/schema.js +3 -0
- package/lib/cli/telemetry/session.d.ts +67 -0
- package/lib/cli/telemetry/session.js +174 -0
- package/lib/cli/telemetry/sink/endpoint-sink.d.ts +44 -0
- package/lib/cli/telemetry/sink/endpoint-sink.js +105 -0
- package/lib/cli/telemetry/sink/file-sink.d.ts +32 -0
- package/lib/cli/telemetry/sink/file-sink.js +43 -0
- package/lib/cli/telemetry/sink/funnel.d.ts +16 -0
- package/lib/cli/telemetry/sink/funnel.js +29 -0
- package/lib/cli/telemetry/sink/io-host-sink.d.ts +27 -0
- package/lib/cli/telemetry/sink/io-host-sink.js +35 -0
- package/lib/cli/telemetry/sink/sink-interface.d.ts +18 -0
- package/lib/cli/telemetry/sink/sink-interface.js +3 -0
- package/lib/cli/user-configuration.d.ts +104 -0
- package/lib/cli/user-configuration.js +334 -0
- package/lib/cli/user-input.d.ts +1505 -0
- package/lib/cli/user-input.js +3 -0
- package/lib/cli/util/ci.d.ts +5 -0
- package/lib/cli/util/ci.js +11 -0
- package/lib/cli/util/console-formatters.d.ts +18 -0
- package/lib/cli/util/console-formatters.js +42 -0
- package/lib/cli/util/guess-agent.d.ts +7 -0
- package/lib/cli/util/guess-agent.js +32 -0
- package/lib/cli/util/npm.d.ts +4 -0
- package/lib/cli/util/npm.js +34 -0
- package/lib/cli/util/trap-errors.d.ts +6 -0
- package/lib/cli/util/trap-errors.js +17 -0
- package/lib/cli/util/yargs-helpers.d.ts +22 -0
- package/lib/cli/util/yargs-helpers.js +49 -0
- package/lib/cli/version.d.ts +3 -0
- package/lib/cli/version.js +22 -0
- package/lib/commands/context.d.ts +40 -0
- package/lib/commands/context.js +158 -0
- package/lib/commands/deploy.d.ts +13 -0
- package/lib/commands/deploy.js +18 -0
- package/lib/commands/docs.d.ts +18 -0
- package/lib/commands/docs.js +33 -0
- package/lib/commands/doctor.d.ts +4 -0
- package/lib/commands/doctor.js +69 -0
- package/lib/commands/flags/flags.d.ts +13 -0
- package/lib/commands/flags/flags.js +30 -0
- package/lib/commands/flags/interactive-handler.d.ts +16 -0
- package/lib/commands/flags/interactive-handler.js +71 -0
- package/lib/commands/flags/obsolete-flags.d.ts +1 -0
- package/lib/commands/flags/obsolete-flags.js +9 -0
- package/lib/commands/flags/operations.d.ts +80 -0
- package/lib/commands/flags/operations.js +467 -0
- package/lib/commands/flags/router.d.ts +18 -0
- package/lib/commands/flags/router.js +60 -0
- package/lib/commands/flags/types.d.ts +12 -0
- package/lib/commands/flags/types.js +12 -0
- package/lib/commands/flags/validator.d.ts +22 -0
- package/lib/commands/flags/validator.js +95 -0
- package/lib/commands/init/index.d.ts +1 -0
- package/lib/commands/init/index.js +18 -0
- package/lib/commands/init/init-hooks.d.ts +41 -0
- package/lib/commands/init/init-hooks.js +85 -0
- package/lib/commands/init/init.d.ts +139 -0
- package/lib/commands/init/init.js +788 -0
- package/lib/commands/init/os.d.ts +8 -0
- package/lib/commands/init/os.js +91 -0
- package/lib/commands/init/package-manager.d.ts +15 -0
- package/lib/commands/init/package-manager.js +14 -0
- package/lib/commands/language.d.ts +30 -0
- package/lib/commands/language.js +46 -0
- package/lib/commands/list-stacks.d.ts +21 -0
- package/lib/commands/list-stacks.js +28 -0
- package/lib/commands/migrate.d.ts +316 -0
- package/lib/commands/migrate.js +801 -0
- package/lib/context-providers.d.ts +1 -0
- package/lib/context-providers.js +19 -0
- package/lib/cxapp/cloud-assembly.d.ts +79 -0
- package/lib/cxapp/cloud-assembly.js +109 -0
- package/lib/cxapp/cloud-executable.d.ts +51 -0
- package/lib/cxapp/cloud-executable.js +123 -0
- package/lib/cxapp/environments.d.ts +8 -0
- package/lib/cxapp/environments.js +66 -0
- package/lib/cxapp/exec.d.ts +14 -0
- package/lib/cxapp/exec.js +133 -0
- package/lib/cxapp/index.d.ts +4 -0
- package/lib/cxapp/index.js +21 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +364043 -0
- package/lib/index_bg.wasm +0 -0
- package/lib/init-templates/.init-version.json +1 -0
- package/lib/init-templates/.no-packagejson-validator +0 -0
- package/lib/init-templates/.recommended-feature-flags.json +86 -0
- package/lib/init-templates/LICENSE +16 -0
- package/lib/init-templates/app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/app/csharp/README.md +14 -0
- package/lib/init-templates/app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +13 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/Program.template.cs +44 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/app/fsharp/README.md +18 -0
- package/lib/init-templates/app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +8 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/go/%name%.template.go +70 -0
- package/lib/init-templates/app/go/%name%_test.template.go +26 -0
- package/lib/init-templates/app/go/.template.gitignore +19 -0
- package/lib/init-templates/app/go/README.md +12 -0
- package/lib/init-templates/app/go/cdk.template.json +13 -0
- package/lib/init-templates/app/go/go.template.mod +9 -0
- package/lib/init-templates/app/info.json +4 -0
- package/lib/init-templates/app/java/.template.gitignore +13 -0
- package/lib/init-templates/app/java/README.md +18 -0
- package/lib/init-templates/app/java/cdk.json +13 -0
- package/lib/init-templates/app/java/pom.xml +60 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +42 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +24 -0
- package/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +26 -0
- package/lib/init-templates/app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/app/javascript/README.md +12 -0
- package/lib/init-templates/app/javascript/bin/%name%.template.js +21 -0
- package/lib/init-templates/app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/app/javascript/jest.config.js +4 -0
- package/lib/init-templates/app/javascript/lib/%name%-stack.template.js +23 -0
- package/lib/init-templates/app/javascript/package.json +20 -0
- package/lib/init-templates/app/javascript/test/%name%.test.template.js +17 -0
- package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +19 -0
- package/lib/init-templates/app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/app/python/.template.gitignore +10 -0
- package/lib/init-templates/app/python/README.template.md +58 -0
- package/lib/init-templates/app/python/app.template.py +28 -0
- package/lib/init-templates/app/python/cdk.template.json +15 -0
- package/lib/init-templates/app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/app/python/requirements.txt +2 -0
- package/lib/init-templates/app/python/source.bat +13 -0
- package/lib/init-templates/app/python/tests/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +15 -0
- package/lib/init-templates/app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/app/typescript/README.md +14 -0
- package/lib/init-templates/app/typescript/bin/%name%.template.ts +20 -0
- package/lib/init-templates/app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/app/typescript/jest.config.js +9 -0
- package/lib/init-templates/app/typescript/lib/%name%-stack.template.ts +16 -0
- package/lib/init-templates/app/typescript/package.json +26 -0
- package/lib/init-templates/app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/app/typescript/tsconfig.json +32 -0
- package/lib/init-templates/lib/info.json +4 -0
- package/lib/init-templates/lib/typescript/.template.gitignore +8 -0
- package/lib/init-templates/lib/typescript/.template.npmignore +6 -0
- package/lib/init-templates/lib/typescript/README.template.md +12 -0
- package/lib/init-templates/lib/typescript/jest.config.js +9 -0
- package/lib/init-templates/lib/typescript/lib/index.template.ts +21 -0
- package/lib/init-templates/lib/typescript/package.json +24 -0
- package/lib/init-templates/lib/typescript/test/%name%.test.template.ts +18 -0
- package/lib/init-templates/lib/typescript/tsconfig.json +32 -0
- package/lib/init-templates/sample-app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/csharp/README.template.md +19 -0
- package/lib/init-templates/sample-app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +24 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
- package/lib/init-templates/sample-app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/go/%name%.template.go +73 -0
- package/lib/init-templates/sample-app/go/%name%_test.template.go +25 -0
- package/lib/init-templates/sample-app/go/.template.gitignore +19 -0
- package/lib/init-templates/sample-app/go/README.md +12 -0
- package/lib/init-templates/sample-app/go/cdk.template.json +13 -0
- package/lib/init-templates/sample-app/go/go.template.mod +9 -0
- package/lib/init-templates/sample-app/info.json +4 -0
- package/lib/init-templates/sample-app/java/.template.gitignore +13 -0
- package/lib/init-templates/sample-app/java/README.template.md +19 -0
- package/lib/init-templates/sample-app/java/cdk.json +13 -0
- package/lib/init-templates/sample-app/java/pom.xml +55 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +13 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +29 -0
- package/lib/init-templates/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +27 -0
- package/lib/init-templates/sample-app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/sample-app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/sample-app/javascript/README.template.md +13 -0
- package/lib/init-templates/sample-app/javascript/bin/%name%.template.js +6 -0
- package/lib/init-templates/sample-app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/javascript/jest.config.js +4 -0
- package/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js +25 -0
- package/lib/init-templates/sample-app/javascript/package.json +20 -0
- package/lib/init-templates/sample-app/javascript/test/%name%.test.template.js +16 -0
- package/lib/init-templates/sample-app/javascript/tsconfig.json +34 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +26 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/.template.gitignore +22 -0
- package/lib/init-templates/sample-app/python/README.template.md +65 -0
- package/lib/init-templates/sample-app/python/app.template.py +11 -0
- package/lib/init-templates/sample-app/python/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/sample-app/python/requirements.txt +2 -0
- package/lib/init-templates/sample-app/python/source.bat +13 -0
- package/lib/init-templates/sample-app/python/tests/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +21 -0
- package/lib/init-templates/sample-app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/sample-app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/sample-app/typescript/README.template.md +15 -0
- package/lib/init-templates/sample-app/typescript/bin/%name%.template.ts +6 -0
- package/lib/init-templates/sample-app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/sample-app/typescript/jest.config.js +9 -0
- package/lib/init-templates/sample-app/typescript/lib/%name%-stack.template.ts +19 -0
- package/lib/init-templates/sample-app/typescript/package.json +26 -0
- package/lib/init-templates/sample-app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/sample-app/typescript/tsconfig.json +32 -0
- package/lib/util.d.ts +1 -0
- package/lib/util.js +19 -0
- package/package.json +170 -0
- package/release.txt +2 -0
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
import { RequireApproval } from '@aws-cdk/cloud-assembly-schema';
|
|
2
|
+
import type { DeploymentMethod, PublishAssetsOptions, ToolkitOptions } from '@aws-cdk/toolkit-lib';
|
|
3
|
+
import { Toolkit } from '@aws-cdk/toolkit-lib';
|
|
4
|
+
import { CliIoHost } from './io-host';
|
|
5
|
+
import type { Configuration } from './user-configuration';
|
|
6
|
+
import type { IoHelper } from '../../lib/api-private';
|
|
7
|
+
import { CloudWatchLogEventMonitor } from '../api';
|
|
8
|
+
import type { SdkProvider } from '../api/aws-auth';
|
|
9
|
+
import type { BootstrapEnvironmentOptions } from '../api/bootstrap';
|
|
10
|
+
import type { Deployments } from '../api/deployments';
|
|
11
|
+
import { type Tag } from '../api/tags';
|
|
12
|
+
import { StackActivityProgress } from '../commands/deploy';
|
|
13
|
+
import type { FromScan } from '../commands/migrate';
|
|
14
|
+
import type { CloudAssembly, CloudExecutable, StackSelector } from '../cxapp';
|
|
15
|
+
export interface CdkToolkitProps {
|
|
16
|
+
/**
|
|
17
|
+
* The Cloud Executable
|
|
18
|
+
*/
|
|
19
|
+
cloudExecutable: CloudExecutable;
|
|
20
|
+
/**
|
|
21
|
+
* The provisioning engine used to apply changes to the cloud
|
|
22
|
+
*/
|
|
23
|
+
deployments: Deployments;
|
|
24
|
+
/**
|
|
25
|
+
* The CliIoHost that's used for I/O operations
|
|
26
|
+
*/
|
|
27
|
+
ioHost?: CliIoHost;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the toolkit stack to use/deploy
|
|
30
|
+
*
|
|
31
|
+
* @default CDKToolkit
|
|
32
|
+
*/
|
|
33
|
+
toolkitStackName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to be verbose
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
verbose?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Don't stop on error metadata
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
ignoreErrors?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Treat warnings in metadata as errors
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
strict?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Application configuration (settings and context)
|
|
54
|
+
*/
|
|
55
|
+
configuration: Configuration;
|
|
56
|
+
/**
|
|
57
|
+
* AWS object (used by synthesizer and contextprovider)
|
|
58
|
+
*/
|
|
59
|
+
sdkProvider: SdkProvider;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* When to build assets
|
|
63
|
+
*/
|
|
64
|
+
export declare enum AssetBuildTime {
|
|
65
|
+
/**
|
|
66
|
+
* Build all assets before deploying the first stack
|
|
67
|
+
*
|
|
68
|
+
* This is intended for expensive Docker image builds; so that if the Docker image build
|
|
69
|
+
* fails, no stacks are unnecessarily deployed (with the attendant wait time).
|
|
70
|
+
*/
|
|
71
|
+
ALL_BEFORE_DEPLOY = "all-before-deploy",
|
|
72
|
+
/**
|
|
73
|
+
* Build assets just-in-time, before publishing
|
|
74
|
+
*/
|
|
75
|
+
JUST_IN_TIME = "just-in-time"
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Custom implementation of the public Toolkit to integrate with the legacy CdkToolkit
|
|
79
|
+
*
|
|
80
|
+
* This overwrites how an sdkProvider is acquired
|
|
81
|
+
* in favor of the one provided directly to CdkToolkit.
|
|
82
|
+
*/
|
|
83
|
+
declare class InternalToolkit extends Toolkit {
|
|
84
|
+
private readonly _sdkProvider;
|
|
85
|
+
constructor(sdkProvider: SdkProvider, options: Omit<ToolkitOptions, 'sdkConfig'>);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Toolkit logic
|
|
89
|
+
*
|
|
90
|
+
* The toolkit runs the `cloudExecutable` to obtain a cloud assembly and
|
|
91
|
+
* deploys applies them to `cloudFormation`.
|
|
92
|
+
*/
|
|
93
|
+
export declare class CdkToolkit {
|
|
94
|
+
private readonly props;
|
|
95
|
+
private ioHost;
|
|
96
|
+
private toolkitStackName;
|
|
97
|
+
private toolkit;
|
|
98
|
+
constructor(props: CdkToolkitProps);
|
|
99
|
+
metadata(stackName: string, json: boolean): Promise<void>;
|
|
100
|
+
acknowledge(noticeId: string): Promise<void>;
|
|
101
|
+
cliTelemetryStatus(args: any): Promise<void>;
|
|
102
|
+
cliTelemetry(enable: boolean): Promise<void>;
|
|
103
|
+
diff(options: DiffOptions): Promise<number>;
|
|
104
|
+
/**
|
|
105
|
+
* Try to create a diff changeset for the given stack.
|
|
106
|
+
* Returns undefined if the stack cannot be accessed and changeSetOnly is not set.
|
|
107
|
+
*/
|
|
108
|
+
private tryCreateDiffChangeSet;
|
|
109
|
+
deploy(options: DeployOptions): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Detect infrastructure drift for the given stack(s)
|
|
112
|
+
*/
|
|
113
|
+
drift(options: DriftOptions): Promise<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Roll back the given stack or stacks.
|
|
116
|
+
*/
|
|
117
|
+
rollback(options: RollbackOptions): Promise<void>;
|
|
118
|
+
publishAssets(options: PublishAssetsOptions): Promise<void>;
|
|
119
|
+
watch(options: WatchOptions): Promise<void>;
|
|
120
|
+
import(options: ImportOptions): Promise<void>;
|
|
121
|
+
destroy(options: DestroyOptions): Promise<void>;
|
|
122
|
+
list(selectors: string[], options?: {
|
|
123
|
+
long?: boolean;
|
|
124
|
+
json?: boolean;
|
|
125
|
+
showDeps?: boolean;
|
|
126
|
+
}): Promise<number>;
|
|
127
|
+
/**
|
|
128
|
+
* Synthesize the given set of stacks (called when the user runs 'cdk synth')
|
|
129
|
+
*
|
|
130
|
+
* INPUT: Stack names can be supplied using a glob filter. If no stacks are
|
|
131
|
+
* given, all stacks from the application are implicitly selected.
|
|
132
|
+
*
|
|
133
|
+
* OUTPUT: If more than one stack ends up being selected, an output directory
|
|
134
|
+
* should be supplied, where the templates will be written.
|
|
135
|
+
*/
|
|
136
|
+
synth(stackNames: string[], exclusively: boolean, quiet: boolean, autoValidate?: boolean, json?: boolean): Promise<any>;
|
|
137
|
+
/**
|
|
138
|
+
* Bootstrap the CDK Toolkit stack in the accounts used by the specified stack(s).
|
|
139
|
+
*
|
|
140
|
+
* @param userEnvironmentSpecs - environment names that need to have toolkit support
|
|
141
|
+
* provisioned, as a glob filter. If none is provided, all stacks are implicitly selected.
|
|
142
|
+
* @param options - The name, role ARN, bootstrapping parameters, etc. to be used for the CDK Toolkit stack.
|
|
143
|
+
*/
|
|
144
|
+
bootstrap(userEnvironmentSpecs: string[], options: BootstrapEnvironmentOptions): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Garbage collects assets from a CDK app's environment
|
|
147
|
+
* @param options - Options for Garbage Collection
|
|
148
|
+
*/
|
|
149
|
+
garbageCollect(userEnvironmentSpecs: string[], options: GarbageCollectionOptions): Promise<void>;
|
|
150
|
+
private defineEnvironments;
|
|
151
|
+
/**
|
|
152
|
+
* Migrates a CloudFormation stack/template to a CDK app
|
|
153
|
+
* @param options - Options for CDK app creation
|
|
154
|
+
*/
|
|
155
|
+
migrate(options: MigrateOptions): Promise<void>;
|
|
156
|
+
refactor(options: RefactorOptions): Promise<number>;
|
|
157
|
+
private selectStacksForList;
|
|
158
|
+
private selectStacksForDeploy;
|
|
159
|
+
private selectStacksForDiff;
|
|
160
|
+
private selectStacksForDestroy;
|
|
161
|
+
/**
|
|
162
|
+
* Validate the stacks for errors and warnings according to the CLI's current settings
|
|
163
|
+
*/
|
|
164
|
+
private validateStacks;
|
|
165
|
+
private validateMetadataFailAt;
|
|
166
|
+
/**
|
|
167
|
+
* Validate that if a user specified a stack name there exists at least 1 stack selected
|
|
168
|
+
*/
|
|
169
|
+
private validateStacksSelected;
|
|
170
|
+
/**
|
|
171
|
+
* Select a single stack by its name
|
|
172
|
+
*/
|
|
173
|
+
private selectSingleStackByName;
|
|
174
|
+
assembly(cacheCloudAssembly?: boolean): Promise<CloudAssembly>;
|
|
175
|
+
private patternsArrayForWatch;
|
|
176
|
+
private invokeDeployFromWatch;
|
|
177
|
+
/**
|
|
178
|
+
* Remove the asset publishing and building from the work graph for assets that are already in place
|
|
179
|
+
*/
|
|
180
|
+
private removePublishedAssets;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Options for the diff command
|
|
184
|
+
*/
|
|
185
|
+
export interface DiffOptions {
|
|
186
|
+
/**
|
|
187
|
+
* Stack names to diff
|
|
188
|
+
*/
|
|
189
|
+
readonly stackNames: string[];
|
|
190
|
+
/**
|
|
191
|
+
* Name of the toolkit stack, if not the default name
|
|
192
|
+
*
|
|
193
|
+
* @default 'CDKToolkit'
|
|
194
|
+
*/
|
|
195
|
+
readonly toolkitStackName?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Only select the given stack
|
|
198
|
+
*
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
readonly exclusively?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Used a template from disk instead of from the server
|
|
204
|
+
*
|
|
205
|
+
* @default Use from the server
|
|
206
|
+
*/
|
|
207
|
+
readonly templatePath?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Strict diff mode
|
|
210
|
+
*
|
|
211
|
+
* @default false
|
|
212
|
+
*/
|
|
213
|
+
readonly strict?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* How many lines of context to show in the diff
|
|
216
|
+
*
|
|
217
|
+
* @default 3
|
|
218
|
+
*/
|
|
219
|
+
readonly contextLines?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Whether to fail with exit code 1 in case of diff
|
|
222
|
+
*
|
|
223
|
+
* @default false
|
|
224
|
+
*/
|
|
225
|
+
readonly fail?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Only run diff on broadened security changes
|
|
228
|
+
*
|
|
229
|
+
* @default false
|
|
230
|
+
*/
|
|
231
|
+
readonly securityOnly?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Whether to run the diff against the template after the CloudFormation Transforms inside it have been executed
|
|
234
|
+
* (as opposed to the original template, the default, which contains the unprocessed Transforms).
|
|
235
|
+
*
|
|
236
|
+
* @default false
|
|
237
|
+
*/
|
|
238
|
+
readonly compareAgainstProcessedTemplate?: boolean;
|
|
239
|
+
readonly quiet?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Additional parameters for CloudFormation at diff time, used to create a change set
|
|
242
|
+
* @default {}
|
|
243
|
+
*/
|
|
244
|
+
readonly parameters?: {
|
|
245
|
+
[name: string]: string | undefined;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* How to compute the diff.
|
|
249
|
+
* - 'change-set': always use a changeset, fail if it cannot be created
|
|
250
|
+
* - 'template': skip changeset, compare templates directly
|
|
251
|
+
* - 'auto': try changeset, fall back to template on failure
|
|
252
|
+
*
|
|
253
|
+
* @default 'auto'
|
|
254
|
+
*/
|
|
255
|
+
readonly method?: 'auto' | 'change-set' | 'template';
|
|
256
|
+
/**
|
|
257
|
+
* Whether or not the change set imports resources that already exist.
|
|
258
|
+
*
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
readonly importExistingResources?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Whether to include resource moves in the diff
|
|
264
|
+
*
|
|
265
|
+
* @default false
|
|
266
|
+
*/
|
|
267
|
+
readonly includeMoves?: boolean;
|
|
268
|
+
}
|
|
269
|
+
interface CfnDeployOptions {
|
|
270
|
+
/**
|
|
271
|
+
* Criteria for selecting stacks to deploy
|
|
272
|
+
*/
|
|
273
|
+
selector: StackSelector;
|
|
274
|
+
/**
|
|
275
|
+
* Name of the toolkit stack to use/deploy
|
|
276
|
+
*
|
|
277
|
+
* @default CDKToolkit
|
|
278
|
+
*/
|
|
279
|
+
toolkitStackName?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Role to pass to CloudFormation for deployment
|
|
282
|
+
*/
|
|
283
|
+
roleArn?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Deployment method
|
|
286
|
+
*/
|
|
287
|
+
readonly deploymentMethod?: DeploymentMethod;
|
|
288
|
+
/**
|
|
289
|
+
* Display mode for stack deployment progress.
|
|
290
|
+
*
|
|
291
|
+
* @default - StackActivityProgress.Bar - stack events will be displayed for
|
|
292
|
+
* the resource currently being deployed.
|
|
293
|
+
*/
|
|
294
|
+
progress?: StackActivityProgress;
|
|
295
|
+
/**
|
|
296
|
+
* Rollback failed deployments
|
|
297
|
+
*
|
|
298
|
+
* @default true
|
|
299
|
+
*/
|
|
300
|
+
readonly rollback?: boolean;
|
|
301
|
+
}
|
|
302
|
+
interface WatchOptions extends Omit<CfnDeployOptions, 'execute'> {
|
|
303
|
+
/**
|
|
304
|
+
* Only select the given stack
|
|
305
|
+
*
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
exclusively?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Reuse the assets with the given asset IDs
|
|
311
|
+
*/
|
|
312
|
+
reuseAssets?: string[];
|
|
313
|
+
/**
|
|
314
|
+
* Always deploy, even if templates are identical.
|
|
315
|
+
* @default false
|
|
316
|
+
*/
|
|
317
|
+
force?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* The extra string to append to the User-Agent header when performing AWS SDK calls.
|
|
320
|
+
*
|
|
321
|
+
* @default - nothing extra is appended to the User-Agent header
|
|
322
|
+
*/
|
|
323
|
+
readonly extraUserAgent?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Whether to show CloudWatch logs for hotswapped resources
|
|
326
|
+
* locally in the users terminal
|
|
327
|
+
*
|
|
328
|
+
* @default - false
|
|
329
|
+
*/
|
|
330
|
+
readonly traceLogs?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Maximum number of simultaneous deployments (dependency permitting) to execute.
|
|
333
|
+
* The default is '1', which executes all deployments serially.
|
|
334
|
+
*
|
|
335
|
+
* @default 1
|
|
336
|
+
*/
|
|
337
|
+
readonly concurrency?: number;
|
|
338
|
+
}
|
|
339
|
+
export interface DeployOptions extends CfnDeployOptions, WatchOptions {
|
|
340
|
+
/**
|
|
341
|
+
* ARNs of SNS topics that CloudFormation will notify with stack related events
|
|
342
|
+
*/
|
|
343
|
+
notificationArns?: string[];
|
|
344
|
+
/**
|
|
345
|
+
* What kind of security changes require approval
|
|
346
|
+
*
|
|
347
|
+
* @default RequireApproval.Broadening
|
|
348
|
+
*/
|
|
349
|
+
requireApproval?: RequireApproval;
|
|
350
|
+
/**
|
|
351
|
+
* Tags to pass to CloudFormation for deployment
|
|
352
|
+
*/
|
|
353
|
+
tags?: Tag[];
|
|
354
|
+
/**
|
|
355
|
+
* Additional parameters for CloudFormation at deploy time
|
|
356
|
+
* @default {}
|
|
357
|
+
*/
|
|
358
|
+
parameters?: {
|
|
359
|
+
[name: string]: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Use previous values for unspecified parameters
|
|
363
|
+
*
|
|
364
|
+
* If not set, all parameters must be specified for every deployment.
|
|
365
|
+
*
|
|
366
|
+
* @default true
|
|
367
|
+
*/
|
|
368
|
+
usePreviousParameters?: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* Path to file where stack outputs will be written after a successful deploy as JSON
|
|
371
|
+
* @default - Outputs are not written to any file
|
|
372
|
+
*/
|
|
373
|
+
outputsFile?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Whether we are on a CI system
|
|
376
|
+
*
|
|
377
|
+
* @default false
|
|
378
|
+
*/
|
|
379
|
+
readonly ci?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* Whether this 'deploy' command should actually delegate to the 'watch' command.
|
|
382
|
+
*
|
|
383
|
+
* @default false
|
|
384
|
+
*/
|
|
385
|
+
readonly watch?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Whether we should cache the Cloud Assembly after the first time it has been synthesized.
|
|
388
|
+
* The default is 'true', we only don't want to do it in case the deployment is triggered by
|
|
389
|
+
* 'cdk watch'.
|
|
390
|
+
*
|
|
391
|
+
* @default true
|
|
392
|
+
*/
|
|
393
|
+
readonly cacheCloudAssembly?: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Allows adding CloudWatch log groups to the log monitor via
|
|
396
|
+
* cloudWatchLogMonitor.setLogGroups();
|
|
397
|
+
*
|
|
398
|
+
* @default - not monitoring CloudWatch logs
|
|
399
|
+
*/
|
|
400
|
+
readonly cloudWatchLogMonitor?: CloudWatchLogEventMonitor;
|
|
401
|
+
/**
|
|
402
|
+
* Maximum number of simultaneous deployments (dependency permitting) to execute.
|
|
403
|
+
* The default is '1', which executes all deployments serially.
|
|
404
|
+
*
|
|
405
|
+
* @default 1
|
|
406
|
+
*/
|
|
407
|
+
readonly concurrency?: number;
|
|
408
|
+
/**
|
|
409
|
+
* Build/publish assets for a single stack in parallel
|
|
410
|
+
*
|
|
411
|
+
* Independent of whether stacks are being done in parallel or no.
|
|
412
|
+
*
|
|
413
|
+
* @default true
|
|
414
|
+
*/
|
|
415
|
+
readonly assetParallelism?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Maximum number of asset builds to run in parallel
|
|
418
|
+
*
|
|
419
|
+
* This setting only has an effect if `assetParallelism` is set to `true`.
|
|
420
|
+
*
|
|
421
|
+
* @default 1
|
|
422
|
+
*/
|
|
423
|
+
readonly assetBuildConcurrency?: number;
|
|
424
|
+
/**
|
|
425
|
+
* When to build assets
|
|
426
|
+
*
|
|
427
|
+
* The default is the Docker-friendly default.
|
|
428
|
+
*
|
|
429
|
+
* @default AssetBuildTime.ALL_BEFORE_DEPLOY
|
|
430
|
+
*/
|
|
431
|
+
readonly assetBuildTime?: AssetBuildTime;
|
|
432
|
+
/**
|
|
433
|
+
* Whether to deploy if the app contains no stacks.
|
|
434
|
+
*
|
|
435
|
+
* @default false
|
|
436
|
+
*/
|
|
437
|
+
readonly ignoreNoStacks?: boolean;
|
|
438
|
+
}
|
|
439
|
+
export interface RollbackOptions {
|
|
440
|
+
/**
|
|
441
|
+
* Criteria for selecting stacks to deploy
|
|
442
|
+
*/
|
|
443
|
+
readonly selector: StackSelector;
|
|
444
|
+
/**
|
|
445
|
+
* Name of the toolkit stack to use/deploy
|
|
446
|
+
*
|
|
447
|
+
* @default CDKToolkit
|
|
448
|
+
*/
|
|
449
|
+
readonly toolkitStackName?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Role to pass to CloudFormation for deployment
|
|
452
|
+
*
|
|
453
|
+
* @default - Default stack role
|
|
454
|
+
*/
|
|
455
|
+
readonly roleArn?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Whether to force the rollback or not
|
|
458
|
+
*
|
|
459
|
+
* @default false
|
|
460
|
+
*/
|
|
461
|
+
readonly force?: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* Logical IDs of resources to orphan
|
|
464
|
+
*
|
|
465
|
+
* @default - No orphaning
|
|
466
|
+
*/
|
|
467
|
+
readonly orphanLogicalIds?: string[];
|
|
468
|
+
/**
|
|
469
|
+
* Whether to validate the version of the bootstrap stack permissions
|
|
470
|
+
*
|
|
471
|
+
* @default true
|
|
472
|
+
*/
|
|
473
|
+
readonly validateBootstrapStackVersion?: boolean;
|
|
474
|
+
}
|
|
475
|
+
export interface ImportOptions extends CfnDeployOptions {
|
|
476
|
+
/**
|
|
477
|
+
* Build a physical resource mapping and write it to the given file, without performing the actual import operation
|
|
478
|
+
*
|
|
479
|
+
* @default - No file
|
|
480
|
+
*/
|
|
481
|
+
readonly recordResourceMapping?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Path to a file with the physical resource mapping to CDK constructs in JSON format
|
|
484
|
+
*
|
|
485
|
+
* @default - No mapping file
|
|
486
|
+
*/
|
|
487
|
+
readonly resourceMappingFile?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Allow non-addition changes to the template
|
|
490
|
+
*
|
|
491
|
+
* @default false
|
|
492
|
+
*/
|
|
493
|
+
readonly force?: boolean;
|
|
494
|
+
}
|
|
495
|
+
export interface DestroyOptions {
|
|
496
|
+
/**
|
|
497
|
+
* Criteria for selecting stacks to deploy
|
|
498
|
+
*/
|
|
499
|
+
selector: StackSelector;
|
|
500
|
+
/**
|
|
501
|
+
* Whether to exclude stacks that depend on the stacks to be deleted
|
|
502
|
+
*/
|
|
503
|
+
exclusively: boolean;
|
|
504
|
+
/**
|
|
505
|
+
* Whether to skip prompting for confirmation
|
|
506
|
+
*/
|
|
507
|
+
force: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* The arn of the IAM role to use
|
|
510
|
+
*/
|
|
511
|
+
roleArn?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Whether the destroy request came from a deploy.
|
|
514
|
+
*/
|
|
515
|
+
fromDeploy?: boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Maximum number of simultaneous destroys (dependency permitting) to execute.
|
|
518
|
+
*/
|
|
519
|
+
concurrency?: number;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Options for the garbage collection
|
|
523
|
+
*/
|
|
524
|
+
export interface GarbageCollectionOptions {
|
|
525
|
+
/**
|
|
526
|
+
* The action to perform.
|
|
527
|
+
*
|
|
528
|
+
* @default 'full'
|
|
529
|
+
*/
|
|
530
|
+
readonly action: 'print' | 'tag' | 'delete-tagged' | 'full';
|
|
531
|
+
/**
|
|
532
|
+
* The type of the assets to be garbage collected.
|
|
533
|
+
*
|
|
534
|
+
* @default 'all'
|
|
535
|
+
*/
|
|
536
|
+
readonly type: 's3' | 'ecr' | 'all';
|
|
537
|
+
/**
|
|
538
|
+
* Elapsed time between an asset being marked as isolated and actually deleted.
|
|
539
|
+
*
|
|
540
|
+
* @default 0
|
|
541
|
+
*/
|
|
542
|
+
readonly rollbackBufferDays: number;
|
|
543
|
+
/**
|
|
544
|
+
* Refuse deletion of any assets younger than this number of days.
|
|
545
|
+
*/
|
|
546
|
+
readonly createdBufferDays: number;
|
|
547
|
+
/**
|
|
548
|
+
* The stack name of the bootstrap stack.
|
|
549
|
+
*
|
|
550
|
+
* @default DEFAULT_TOOLKIT_STACK_NAME
|
|
551
|
+
*/
|
|
552
|
+
readonly bootstrapStackName?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Skips the prompt before actual deletion begins
|
|
555
|
+
*
|
|
556
|
+
* @default false
|
|
557
|
+
*/
|
|
558
|
+
readonly confirm?: boolean;
|
|
559
|
+
}
|
|
560
|
+
export interface MigrateOptions {
|
|
561
|
+
/**
|
|
562
|
+
* The name assigned to the generated stack. This is also used to get
|
|
563
|
+
* the stack from the user's account if `--from-stack` is used.
|
|
564
|
+
*/
|
|
565
|
+
readonly stackName: string;
|
|
566
|
+
/**
|
|
567
|
+
* The target language for the generated the CDK app.
|
|
568
|
+
*
|
|
569
|
+
* @default typescript
|
|
570
|
+
*/
|
|
571
|
+
readonly language?: string;
|
|
572
|
+
/**
|
|
573
|
+
* The local path of the template used to generate the CDK app.
|
|
574
|
+
*
|
|
575
|
+
* @default - Local path is not used for the template source.
|
|
576
|
+
*/
|
|
577
|
+
readonly fromPath?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Whether to get the template from an existing CloudFormation stack.
|
|
580
|
+
*
|
|
581
|
+
* @default false
|
|
582
|
+
*/
|
|
583
|
+
readonly fromStack?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* The output path at which to create the CDK app.
|
|
586
|
+
*
|
|
587
|
+
* @default - The current directory
|
|
588
|
+
*/
|
|
589
|
+
readonly outputPath?: string;
|
|
590
|
+
/**
|
|
591
|
+
* The account from which to retrieve the template of the CloudFormation stack.
|
|
592
|
+
*
|
|
593
|
+
* @default - Uses the account for the credentials in use by the user.
|
|
594
|
+
*/
|
|
595
|
+
readonly account?: string;
|
|
596
|
+
/**
|
|
597
|
+
* The region from which to retrieve the template of the CloudFormation stack.
|
|
598
|
+
*
|
|
599
|
+
* @default - Uses the default region for the credentials in use by the user.
|
|
600
|
+
*/
|
|
601
|
+
readonly region?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Filtering criteria used to select the resources to be included in the generated CDK app.
|
|
604
|
+
*
|
|
605
|
+
* @default - Include all resources
|
|
606
|
+
*/
|
|
607
|
+
readonly filter?: string[];
|
|
608
|
+
/**
|
|
609
|
+
* Whether to initiate a new account scan for generating the CDK app.
|
|
610
|
+
*
|
|
611
|
+
* @default false
|
|
612
|
+
*/
|
|
613
|
+
readonly fromScan?: FromScan;
|
|
614
|
+
/**
|
|
615
|
+
* Whether to zip the generated cdk app folder.
|
|
616
|
+
*
|
|
617
|
+
* @default false
|
|
618
|
+
*/
|
|
619
|
+
readonly compress?: boolean;
|
|
620
|
+
}
|
|
621
|
+
export interface RefactorOptions {
|
|
622
|
+
/**
|
|
623
|
+
* Whether to only show the proposed refactor, without applying it
|
|
624
|
+
*/
|
|
625
|
+
readonly dryRun: boolean;
|
|
626
|
+
/**
|
|
627
|
+
* The absolute path to a file that contains overrides to the mappings
|
|
628
|
+
* computed by the CLI. This file should contain a JSON object with
|
|
629
|
+
* the following format:
|
|
630
|
+
*
|
|
631
|
+
* {
|
|
632
|
+
* "environments": [
|
|
633
|
+
* {
|
|
634
|
+
* "account": "123456789012",
|
|
635
|
+
* "region": "us-east-1",
|
|
636
|
+
* "resources": {
|
|
637
|
+
* "Foo.OldName": "Bar.NewName",
|
|
638
|
+
* }
|
|
639
|
+
* },
|
|
640
|
+
* ]
|
|
641
|
+
* }
|
|
642
|
+
*
|
|
643
|
+
* where mappings are grouped by environment. The `resources` object contains
|
|
644
|
+
* a mapping where each key is the source location and the value is the
|
|
645
|
+
* destination location. Locations must be in the format `StackName.LogicalId`.
|
|
646
|
+
* The source must refer to a location where there is a resource currently
|
|
647
|
+
* deployed, while the destination must refer to a location that is not already
|
|
648
|
+
* occupied by any resource.
|
|
649
|
+
*/
|
|
650
|
+
overrideFile?: string;
|
|
651
|
+
/**
|
|
652
|
+
* Modifies the behavior of the `overrideFile` option by swapping source and
|
|
653
|
+
* destination locations. This is useful when you want to undo a refactor
|
|
654
|
+
* that was previously applied.
|
|
655
|
+
*/
|
|
656
|
+
revert?: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Whether to do the refactor without prompting the user for confirmation.
|
|
659
|
+
*/
|
|
660
|
+
force?: boolean;
|
|
661
|
+
/**
|
|
662
|
+
* Criteria for selecting stacks to compare with the deployed stacks in the
|
|
663
|
+
* target environment.
|
|
664
|
+
*/
|
|
665
|
+
stacks?: StackSelector;
|
|
666
|
+
/**
|
|
667
|
+
* A list of names of additional deployed stacks to be included in the comparison.
|
|
668
|
+
*/
|
|
669
|
+
additionalStackNames?: string[];
|
|
670
|
+
/**
|
|
671
|
+
* Role to assume in the target environment before performing the refactor.
|
|
672
|
+
*/
|
|
673
|
+
roleArn?: string;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Options for the drift command
|
|
677
|
+
*/
|
|
678
|
+
export interface DriftOptions {
|
|
679
|
+
/**
|
|
680
|
+
* Criteria for selecting stacks to detect drift on
|
|
681
|
+
*/
|
|
682
|
+
readonly selector: StackSelector;
|
|
683
|
+
/**
|
|
684
|
+
* Whether to fail with exit code 1 if drift is detected
|
|
685
|
+
*
|
|
686
|
+
* @default false
|
|
687
|
+
*/
|
|
688
|
+
readonly fail?: boolean;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Display a warning if there are flags that are different from the recommended value
|
|
692
|
+
*
|
|
693
|
+
* This happens if both of the following are true:
|
|
694
|
+
*
|
|
695
|
+
* - The user didn't configure the value
|
|
696
|
+
* - The default value for the flag (unconfiguredBehavesLike) is different from the recommended value
|
|
697
|
+
*/
|
|
698
|
+
export declare function displayFlagsMessage(ioHost: IoHelper, toolkit: InternalToolkit, cloudExecutable: CloudExecutable): Promise<void>;
|
|
699
|
+
export {};
|