aws-cdk 2.1020.2 → 2.1022.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 +100 -55
- package/THIRD_PARTY_LICENSES +65 -65
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/lib/api/refactor.d.ts +1 -0
- package/lib/api/refactor.js +8 -0
- package/lib/cli/cdk-toolkit.d.ts +19 -21
- package/lib/cli/cdk-toolkit.js +145 -141
- package/lib/cli/cli-config.js +19 -13
- package/lib/cli/cli-type-registry.json +29 -12
- package/lib/cli/cli.js +76 -22
- package/lib/cli/convert-to-user-input.js +16 -6
- 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 +11 -11
- package/lib/cli/io-host/cli-io-host.js +68 -24
- package/lib/cli/parse-command-line-arguments.js +29 -11
- package/lib/cli/platform-warnings.d.ts +2 -1
- package/lib/cli/platform-warnings.js +3 -4
- package/lib/cli/telemetry/collect-telemetry.d.ts +5 -0
- package/lib/cli/telemetry/collect-telemetry.js +15 -0
- package/lib/cli/telemetry/endpoint-sink.d.ts +1 -2
- package/lib/cli/telemetry/endpoint-sink.js +4 -3
- package/lib/cli/telemetry/error.d.ts +2 -0
- package/lib/cli/telemetry/error.js +16 -0
- package/lib/cli/telemetry/feature-flags.d.ts +96 -0
- package/lib/cli/telemetry/feature-flags.js +103 -0
- package/lib/cli/telemetry/file-sink.js +8 -12
- 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 +40 -0
- package/lib/cli/telemetry/messages.js +65 -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 +47 -19
- package/lib/cli/telemetry/schema.js +10 -1
- package/lib/cli/telemetry/session.d.ts +33 -0
- package/lib/cli/telemetry/session.js +130 -0
- package/lib/cli/user-configuration.d.ts +14 -4
- package/lib/cli/user-configuration.js +42 -30
- package/lib/cli/user-input.d.ts +31 -13
- package/lib/cli/user-input.js +1 -1
- package/lib/cli/util/ci.d.ts +5 -0
- package/lib/cli/util/ci.js +11 -0
- package/lib/cli/util/yargs-helpers.d.ts +1 -1
- package/lib/cli/util/yargs-helpers.js +7 -7
- package/lib/cli/version.d.ts +2 -12
- package/lib/cli/version.js +5 -103
- package/lib/commands/context.d.ts +10 -5
- package/lib/commands/context.js +35 -35
- package/lib/commands/docs.d.ts +6 -1
- package/lib/commands/docs.js +20 -19
- package/lib/commands/doctor.d.ts +4 -1
- package/lib/commands/doctor.js +17 -17
- package/lib/commands/flags.d.ts +3 -0
- package/lib/commands/flags.js +43 -0
- package/lib/commands/init/init-hooks.d.ts +2 -1
- package/lib/commands/init/init-hooks.js +6 -6
- package/lib/commands/init/init.d.ts +4 -2
- package/lib/commands/init/init.js +56 -54
- package/lib/commands/init/os.d.ts +2 -1
- package/lib/commands/init/os.js +3 -4
- package/lib/commands/list-stacks.js +8 -2
- package/lib/commands/migrate.d.ts +6 -17
- package/lib/commands/migrate.js +28 -29
- package/lib/cxapp/cloud-assembly.js +1 -1
- package/lib/cxapp/cloud-executable.js +41 -26
- package/lib/index.d.ts +1 -1
- package/lib/index.js +46764 -31086
- package/lib/index_bg.wasm +0 -0
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/init-templates/.recommended-feature-flags.json +1 -0
- package/lib/{legacy-aws-auth.d.ts → legacy/aws-auth.d.ts} +1 -1
- package/lib/legacy/aws-auth.js +47 -0
- package/lib/legacy/configuration.d.ts +82 -0
- package/lib/legacy/configuration.js +321 -0
- package/lib/legacy/index.d.ts +19 -0
- package/lib/{legacy-exports-source.js → legacy/index.js} +23 -23
- package/lib/{legacy-logging-source.d.ts → legacy/logging.d.ts} +50 -0
- package/lib/legacy/logging.js +154 -0
- package/lib/legacy/types.js +3 -0
- package/lib/legacy-exports.d.ts +4 -3
- package/lib/legacy-exports.js +4 -1
- package/package.json +15 -15
- package/lib/legacy-aws-auth.js +0 -47
- package/lib/legacy-exports-source.d.ts +0 -18
- package/lib/legacy-logging-source.js +0 -107
- package/lib/legacy-types.js +0 -3
- package/lib/logging.d.ts +0 -99
- package/lib/logging.js +0 -146
- /package/lib/{legacy-types.d.ts → legacy/types.d.ts} +0 -0
package/lib/cli/cdk-toolkit.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export declare class CdkToolkit {
|
|
|
87
87
|
constructor(props: CdkToolkitProps);
|
|
88
88
|
metadata(stackName: string, json: boolean): Promise<void>;
|
|
89
89
|
acknowledge(noticeId: string): Promise<void>;
|
|
90
|
+
cliTelemetryStatus(versionReporting?: boolean): Promise<void>;
|
|
90
91
|
cliTelemetry(enable: boolean): Promise<void>;
|
|
91
92
|
diff(options: DiffOptions): Promise<number>;
|
|
92
93
|
deploy(options: DeployOptions): Promise<void>;
|
|
@@ -238,6 +239,12 @@ export interface DiffOptions {
|
|
|
238
239
|
* @default false
|
|
239
240
|
*/
|
|
240
241
|
readonly importExistingResources?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Whether to include resource moves in the diff
|
|
244
|
+
*
|
|
245
|
+
* @default false
|
|
246
|
+
*/
|
|
247
|
+
readonly includeMoves?: boolean;
|
|
241
248
|
}
|
|
242
249
|
interface CfnDeployOptions {
|
|
243
250
|
/**
|
|
@@ -600,26 +607,8 @@ export interface RefactorOptions {
|
|
|
600
607
|
*/
|
|
601
608
|
readonly dryRun: boolean;
|
|
602
609
|
/**
|
|
603
|
-
*
|
|
604
|
-
|
|
605
|
-
selector: StackSelector;
|
|
606
|
-
/**
|
|
607
|
-
* The absolute path to a file that contains a list of resources that
|
|
608
|
-
* should be excluded during the refactor. This file should contain a
|
|
609
|
-
* newline separated list of _destination_ locations to exclude, i.e.,
|
|
610
|
-
* the location to which a resource would be moved if the refactor
|
|
611
|
-
* were to happen.
|
|
612
|
-
*
|
|
613
|
-
* The format of the locations in the file can be either:
|
|
614
|
-
*
|
|
615
|
-
* - Stack name and logical ID (e.g. `Stack1.MyQueue`)
|
|
616
|
-
* - A construct path (e.g. `Stack1/Foo/Bar/Resource`).
|
|
617
|
-
*/
|
|
618
|
-
excludeFile?: string;
|
|
619
|
-
/**
|
|
620
|
-
* The absolute path to a file that contains an explicit mapping to
|
|
621
|
-
* be used by the toolkit (as opposed to letting the toolkit itself
|
|
622
|
-
* compute the mapping). This file should contain a JSON object with
|
|
610
|
+
* The absolute path to a file that contains overrides to the mappings
|
|
611
|
+
* computed by the CLI. This file should contain a JSON object with
|
|
623
612
|
* the following format:
|
|
624
613
|
*
|
|
625
614
|
* {
|
|
@@ -641,13 +630,22 @@ export interface RefactorOptions {
|
|
|
641
630
|
* deployed, while the destination must refer to a location that is not already
|
|
642
631
|
* occupied by any resource.
|
|
643
632
|
*/
|
|
644
|
-
|
|
633
|
+
overrideFile?: string;
|
|
645
634
|
/**
|
|
646
635
|
* Modifies the behavior of the `mappingFile` option by swapping source and
|
|
647
636
|
* destination locations. This is useful when you want to undo a refactor
|
|
648
637
|
* that was previously applied.
|
|
649
638
|
*/
|
|
650
639
|
revert?: boolean;
|
|
640
|
+
/**
|
|
641
|
+
* Criteria for selecting stacks to compare with the deployed stacks in the
|
|
642
|
+
* target environment.
|
|
643
|
+
*/
|
|
644
|
+
stacks?: StackSelector;
|
|
645
|
+
/**
|
|
646
|
+
* A list of names of additional deployed stacks to be included in the comparison.
|
|
647
|
+
*/
|
|
648
|
+
additionalStackNames?: string[];
|
|
651
649
|
}
|
|
652
650
|
/**
|
|
653
651
|
* Options for the drift command
|