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.
Files changed (93) hide show
  1. package/README.md +100 -55
  2. package/THIRD_PARTY_LICENSES +65 -65
  3. package/build-info.json +2 -2
  4. package/db.json.gz +0 -0
  5. package/lib/api/refactor.d.ts +1 -0
  6. package/lib/api/refactor.js +8 -0
  7. package/lib/cli/cdk-toolkit.d.ts +19 -21
  8. package/lib/cli/cdk-toolkit.js +145 -141
  9. package/lib/cli/cli-config.js +19 -13
  10. package/lib/cli/cli-type-registry.json +29 -12
  11. package/lib/cli/cli.js +76 -22
  12. package/lib/cli/convert-to-user-input.js +16 -6
  13. package/lib/cli/display-version.d.ts +11 -0
  14. package/lib/cli/display-version.js +101 -0
  15. package/lib/cli/io-host/cli-io-host.d.ts +11 -11
  16. package/lib/cli/io-host/cli-io-host.js +68 -24
  17. package/lib/cli/parse-command-line-arguments.js +29 -11
  18. package/lib/cli/platform-warnings.d.ts +2 -1
  19. package/lib/cli/platform-warnings.js +3 -4
  20. package/lib/cli/telemetry/collect-telemetry.d.ts +5 -0
  21. package/lib/cli/telemetry/collect-telemetry.js +15 -0
  22. package/lib/cli/telemetry/endpoint-sink.d.ts +1 -2
  23. package/lib/cli/telemetry/endpoint-sink.js +4 -3
  24. package/lib/cli/telemetry/error.d.ts +2 -0
  25. package/lib/cli/telemetry/error.js +16 -0
  26. package/lib/cli/telemetry/feature-flags.d.ts +96 -0
  27. package/lib/cli/telemetry/feature-flags.js +103 -0
  28. package/lib/cli/telemetry/file-sink.js +8 -12
  29. package/lib/cli/telemetry/installation-id.d.ts +5 -0
  30. package/lib/cli/telemetry/installation-id.js +47 -0
  31. package/lib/cli/telemetry/library-version.d.ts +2 -0
  32. package/lib/cli/telemetry/library-version.js +30 -0
  33. package/lib/cli/telemetry/messages.d.ts +40 -0
  34. package/lib/cli/telemetry/messages.js +65 -0
  35. package/lib/cli/telemetry/sanitation.d.ts +100 -0
  36. package/lib/cli/telemetry/sanitation.js +79 -0
  37. package/lib/cli/telemetry/schema.d.ts +47 -19
  38. package/lib/cli/telemetry/schema.js +10 -1
  39. package/lib/cli/telemetry/session.d.ts +33 -0
  40. package/lib/cli/telemetry/session.js +130 -0
  41. package/lib/cli/user-configuration.d.ts +14 -4
  42. package/lib/cli/user-configuration.js +42 -30
  43. package/lib/cli/user-input.d.ts +31 -13
  44. package/lib/cli/user-input.js +1 -1
  45. package/lib/cli/util/ci.d.ts +5 -0
  46. package/lib/cli/util/ci.js +11 -0
  47. package/lib/cli/util/yargs-helpers.d.ts +1 -1
  48. package/lib/cli/util/yargs-helpers.js +7 -7
  49. package/lib/cli/version.d.ts +2 -12
  50. package/lib/cli/version.js +5 -103
  51. package/lib/commands/context.d.ts +10 -5
  52. package/lib/commands/context.js +35 -35
  53. package/lib/commands/docs.d.ts +6 -1
  54. package/lib/commands/docs.js +20 -19
  55. package/lib/commands/doctor.d.ts +4 -1
  56. package/lib/commands/doctor.js +17 -17
  57. package/lib/commands/flags.d.ts +3 -0
  58. package/lib/commands/flags.js +43 -0
  59. package/lib/commands/init/init-hooks.d.ts +2 -1
  60. package/lib/commands/init/init-hooks.js +6 -6
  61. package/lib/commands/init/init.d.ts +4 -2
  62. package/lib/commands/init/init.js +56 -54
  63. package/lib/commands/init/os.d.ts +2 -1
  64. package/lib/commands/init/os.js +3 -4
  65. package/lib/commands/list-stacks.js +8 -2
  66. package/lib/commands/migrate.d.ts +6 -17
  67. package/lib/commands/migrate.js +28 -29
  68. package/lib/cxapp/cloud-assembly.js +1 -1
  69. package/lib/cxapp/cloud-executable.js +41 -26
  70. package/lib/index.d.ts +1 -1
  71. package/lib/index.js +46764 -31086
  72. package/lib/index_bg.wasm +0 -0
  73. package/lib/init-templates/.init-version.json +1 -1
  74. package/lib/init-templates/.recommended-feature-flags.json +1 -0
  75. package/lib/{legacy-aws-auth.d.ts → legacy/aws-auth.d.ts} +1 -1
  76. package/lib/legacy/aws-auth.js +47 -0
  77. package/lib/legacy/configuration.d.ts +82 -0
  78. package/lib/legacy/configuration.js +321 -0
  79. package/lib/legacy/index.d.ts +19 -0
  80. package/lib/{legacy-exports-source.js → legacy/index.js} +23 -23
  81. package/lib/{legacy-logging-source.d.ts → legacy/logging.d.ts} +50 -0
  82. package/lib/legacy/logging.js +154 -0
  83. package/lib/legacy/types.js +3 -0
  84. package/lib/legacy-exports.d.ts +4 -3
  85. package/lib/legacy-exports.js +4 -1
  86. package/package.json +15 -15
  87. package/lib/legacy-aws-auth.js +0 -47
  88. package/lib/legacy-exports-source.d.ts +0 -18
  89. package/lib/legacy-logging-source.js +0 -107
  90. package/lib/legacy-types.js +0 -3
  91. package/lib/logging.d.ts +0 -99
  92. package/lib/logging.js +0 -146
  93. /package/lib/{legacy-types.d.ts → legacy/types.d.ts} +0 -0
@@ -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
- * Criteria for selecting stacks to deploy
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
- mappingFile?: string;
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