aws-cdk 2.1016.0 → 2.1017.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/README.md +24 -0
- package/THIRD_PARTY_LICENSES +75 -75
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/lib/cli/cdk-toolkit.d.ts +21 -10
- package/lib/cli/cdk-toolkit.js +24 -17
- package/lib/cli/cli-config.js +12 -2
- package/lib/cli/cli.js +87 -66
- package/lib/cli/convert-to-user-input.js +11 -1
- package/lib/cli/io-host/cli-io-host.d.ts +1 -2
- package/lib/cli/io-host/cli-io-host.js +11 -6
- package/lib/cli/parse-command-line-arguments.js +7 -2
- package/lib/cli/proxy-agent.d.ts +30 -0
- package/lib/cli/proxy-agent.js +52 -0
- package/lib/cli/user-configuration.d.ts +2 -1
- package/lib/cli/user-configuration.js +2 -1
- package/lib/cli/user-input.d.ts +22 -1
- package/lib/cli/user-input.js +1 -1
- package/lib/cxapp/cloud-executable.js +7 -4
- package/lib/cxapp/exec.d.ts +1 -1
- package/lib/cxapp/exec.js +27 -42
- package/lib/index.js +73459 -72021
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/init-templates/.recommended-feature-flags.json +3 -1
- package/lib/legacy-aws-auth.js +3 -3
- package/lib/logging.d.ts +3 -15
- package/lib/logging.js +3 -19
- package/package.json +14 -14
- package/lib/cli/messages.d.ts +0 -41
- package/lib/cli/messages.js +0 -106
package/build-info.json
CHANGED
package/db.json.gz
CHANGED
|
Binary file
|
package/lib/cli/cdk-toolkit.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RequireApproval } from '@aws-cdk/cloud-assembly-schema';
|
|
2
|
+
import type { DeploymentMethod } from '@aws-cdk/toolkit-lib';
|
|
2
3
|
import { CliIoHost } from './io-host';
|
|
3
4
|
import type { Configuration } from './user-configuration';
|
|
4
5
|
import { CloudWatchLogEventMonitor } from '../api';
|
|
5
6
|
import type { SdkProvider } from '../api/aws-auth';
|
|
6
7
|
import type { BootstrapEnvironmentOptions } from '../api/bootstrap';
|
|
7
|
-
import type {
|
|
8
|
-
import { HotswapMode } from '../api/hotswap';
|
|
8
|
+
import type { Deployments } from '../api/deployments';
|
|
9
9
|
import { type Tag } from '../api/tags';
|
|
10
10
|
import { StackActivityProgress } from '../commands/deploy';
|
|
11
11
|
import type { FromScan } from '../commands/migrate';
|
|
@@ -89,6 +89,10 @@ export declare class CdkToolkit {
|
|
|
89
89
|
acknowledge(noticeId: string): Promise<void>;
|
|
90
90
|
diff(options: DiffOptions): Promise<number>;
|
|
91
91
|
deploy(options: DeployOptions): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Detect infrastructure drift for the given stack(s)
|
|
94
|
+
*/
|
|
95
|
+
drift(options: DriftOptions): Promise<number>;
|
|
92
96
|
/**
|
|
93
97
|
* Roll back the given stack or stacks.
|
|
94
98
|
*/
|
|
@@ -298,14 +302,6 @@ interface WatchOptions extends Omit<CfnDeployOptions, 'execute'> {
|
|
|
298
302
|
* @default false
|
|
299
303
|
*/
|
|
300
304
|
force?: boolean;
|
|
301
|
-
/**
|
|
302
|
-
* Whether to perform a 'hotswap' deployment.
|
|
303
|
-
* A 'hotswap' deployment will attempt to short-circuit CloudFormation
|
|
304
|
-
* and update the affected resources like Lambda functions directly.
|
|
305
|
-
*
|
|
306
|
-
* @default - `HotswapMode.FALL_BACK` for regular deployments, `HotswapMode.HOTSWAP_ONLY` for 'watch' deployments
|
|
307
|
-
*/
|
|
308
|
-
readonly hotswap: HotswapMode;
|
|
309
305
|
/**
|
|
310
306
|
* The extra string to append to the User-Agent header when performing AWS SDK calls.
|
|
311
307
|
*
|
|
@@ -652,4 +648,19 @@ export interface RefactorOptions {
|
|
|
652
648
|
*/
|
|
653
649
|
revert?: boolean;
|
|
654
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* Options for the drift command
|
|
653
|
+
*/
|
|
654
|
+
export interface DriftOptions {
|
|
655
|
+
/**
|
|
656
|
+
* Criteria for selecting stacks to detect drift on
|
|
657
|
+
*/
|
|
658
|
+
readonly selector: StackSelector;
|
|
659
|
+
/**
|
|
660
|
+
* Whether to fail with exit code 1 if drift is detected
|
|
661
|
+
*
|
|
662
|
+
* @default false
|
|
663
|
+
*/
|
|
664
|
+
readonly fail?: boolean;
|
|
665
|
+
}
|
|
655
666
|
export {};
|