aws-cdk 2.1130.0 → 2.1131.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/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "comment": "Generated at 2026-07-10T07:20:38Z by generate.sh",
3
- "commit": "a7a40e0"
2
+ "comment": "Generated at 2026-07-14T15:45:07Z by generate.sh",
3
+ "commit": "1e9a1e1"
4
4
  }
package/lib/index.js CHANGED
@@ -3691,7 +3691,7 @@ var require_semver2 = __commonJS({
3691
3691
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
3692
3692
  var require_cli_version = __commonJS({
3693
3693
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
3694
- module2.exports = { version: "2.1130.0" };
3694
+ module2.exports = { version: "2.1131.0" };
3695
3695
  }
3696
3696
  });
3697
3697
 
@@ -92102,9 +92102,9 @@ async function cleanupOldChangeset(cfn, ioHelper, changeSetNameOrArn, stackNameO
92102
92102
  ChangeSetName: changeSetNameOrArn
92103
92103
  });
92104
92104
  }
92105
- async function waitForStackDelete(cfn, ioHelper, stackNameOrArn) {
92105
+ async function waitForStackDelete(cfn, ioHelper, stackNameOrArn, stabilizationPollingInterval) {
92106
92106
  const stackDisplayName = stackNameFromArn(stackNameOrArn);
92107
- const stack = await stabilizeStack(cfn, ioHelper, stackNameOrArn);
92107
+ const stack = await stabilizeStack(cfn, ioHelper, stackNameOrArn, stabilizationPollingInterval);
92108
92108
  if (!stack) {
92109
92109
  return void 0;
92110
92110
  }
@@ -92119,8 +92119,8 @@ async function waitForStackDelete(cfn, ioHelper, stackNameOrArn) {
92119
92119
  }
92120
92120
  return stack;
92121
92121
  }
92122
- async function waitForStackDeploy(cfn, ioHelper, stackName) {
92123
- const stack = await stabilizeStack(cfn, ioHelper, stackName);
92122
+ async function waitForStackDeploy(cfn, ioHelper, stackName, stabilizationPollingInterval) {
92123
+ const stack = await stabilizeStack(cfn, ioHelper, stackName, stabilizationPollingInterval);
92124
92124
  if (!stack) {
92125
92125
  return void 0;
92126
92126
  }
@@ -92135,7 +92135,7 @@ async function waitForStackDeploy(cfn, ioHelper, stackName) {
92135
92135
  }
92136
92136
  return stack;
92137
92137
  }
92138
- async function stabilizeStack(cfn, ioHelper, stackNameOrArn) {
92138
+ async function stabilizeStack(cfn, ioHelper, stackNameOrArn, pollingInterval) {
92139
92139
  const stackDisplayName = stackNameFromArn(stackNameOrArn);
92140
92140
  await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for stack %s to finish creating or updating...", stackDisplayName));
92141
92141
  return waitFor(async () => {
@@ -92152,7 +92152,7 @@ async function stabilizeStack(cfn, ioHelper, stackNameOrArn) {
92152
92152
  await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)", stackDisplayName, status));
92153
92153
  }
92154
92154
  return stack;
92155
- });
92155
+ }, pollingInterval);
92156
92156
  }
92157
92157
  var import_node_crypto9, import_node_util, import_cdk_assets_lib3, cxapi2, import_cloud_assembly_api4, import_client_cloudformation4, TemplateParameters, ParameterValues;
92158
92158
  var init_cfn_api = __esm({
@@ -105400,7 +105400,7 @@ async function deployStack(options, ioHelper) {
105400
105400
  `Found existing stack ${deployName} that had previously failed creation. Deleting it before attempting to re-create it.`
105401
105401
  );
105402
105402
  await cfn.deleteStack({ StackName: cloudFormationStack.stackId, ClientRequestToken: (0, import_node_crypto10.randomUUID)() });
105403
- const deletedStack = await waitForStackDelete(cfn, ioHelper, cloudFormationStack.stackId);
105403
+ const deletedStack = await waitForStackDelete(cfn, ioHelper, cloudFormationStack.stackId, options.stackEventPollingInterval);
105404
105404
  if (deletedStack && deletedStack.stackStatus.name !== "DELETE_COMPLETE") {
105405
105405
  throw new DeploymentError(
105406
105406
  `Failed deleting stack ${deployName} that had previously failed creation (current state: ${deletedStack.stackStatus})`,
@@ -105538,7 +105538,7 @@ async function destroyStack(options, ioHelper) {
105538
105538
  await monitor.start();
105539
105539
  try {
105540
105540
  await cfn.deleteStack({ StackName: currentStack.stackId, RoleARN: options.roleArn, ClientRequestToken: (0, import_node_crypto10.randomUUID)(), DeploymentConfig: { Mode: options.express ? "EXPRESS" : "STANDARD" } });
105541
- const destroyedStack = await waitForStackDelete(cfn, ioHelper, currentStack.stackId);
105541
+ const destroyedStack = await waitForStackDelete(cfn, ioHelper, currentStack.stackId, options.stackEventPollingInterval);
105542
105542
  if (destroyedStack && destroyedStack.stackStatus.name !== "DELETE_COMPLETE") {
105543
105543
  throw new DeploymentError(`Failed to destroy ${deployName}: ${destroyedStack.stackStatus}`, "StackDestroyFailed");
105544
105544
  }
@@ -105920,7 +105920,7 @@ var init_deploy_stack = __esm({
105920
105920
  await monitor.start();
105921
105921
  let finalState = this.cloudFormationStack;
105922
105922
  try {
105923
- const successStack = await waitForStackDeploy(this.cfn, this.ioHelper, this.stackName);
105923
+ const successStack = await waitForStackDeploy(this.cfn, this.ioHelper, this.stackName, this.options.stackEventPollingInterval);
105924
105924
  if (!successStack) {
105925
105925
  throw new DeploymentError("Stack deploy failed (the stack disappeared while we were deploying it)", DeploymentErrorCodes.STACK_DISAPPEARED_ERROR_CODE);
105926
105926
  }
@@ -107384,7 +107384,7 @@ var init_deployments = __esm({
107384
107384
  }
107385
107385
  if (result2.noOp && options.cleanupOnNoOp) {
107386
107386
  const changeSetName = options.deploymentMethod.changeSetName ?? DEFAULT_DEPLOY_CHANGE_SET_NAME;
107387
- await this.cleanupChangeSet(options.stack, changeSetName);
107387
+ await this.cleanupChangeSet(options.stack, changeSetName, options.stackEventPollingInterval);
107388
107388
  }
107389
107389
  return result2;
107390
107390
  }
@@ -107392,7 +107392,7 @@ var init_deployments = __esm({
107392
107392
  * Clean up a change set that was created by prepareStack but never executed.
107393
107393
  * If the stack was created in REVIEW_IN_PROGRESS state (new stack), delete the stack too.
107394
107394
  */
107395
- async cleanupChangeSet(stack, changeSetName) {
107395
+ async cleanupChangeSet(stack, changeSetName, stackEventPollingInterval) {
107396
107396
  const env3 = await this.envs.accessStackForMutableStackOperations(stack);
107397
107397
  const cfn = env3.sdk.cloudFormation();
107398
107398
  const deployName = stack.stackName;
@@ -107403,7 +107403,7 @@ var init_deployments = __esm({
107403
107403
  await cfn.deleteChangeSet({ StackName: deployName, ChangeSetName: changeSetName });
107404
107404
  if (cloudFormationStack.stackStatus.name === "REVIEW_IN_PROGRESS") {
107405
107405
  await cfn.deleteStack({ StackName: deployName, ClientRequestToken: (0, import_node_crypto11.randomUUID)() });
107406
- await waitForStackDelete(cfn, this.ioHelper, deployName);
107406
+ await waitForStackDelete(cfn, this.ioHelper, deployName, stackEventPollingInterval);
107407
107407
  }
107408
107408
  }
107409
107409
  /**
@@ -290092,7 +290092,7 @@ Do you wish to deploy these changes`;
290092
290092
  }));
290093
290093
  if (!deployConfirmed) {
290094
290094
  if (prepareResult?.changeSet?.ChangeSetName) {
290095
- await deployments.cleanupChangeSet(stack, prepareResult.changeSet.ChangeSetName);
290095
+ await deployments.cleanupChangeSet(stack, prepareResult.changeSet.ChangeSetName, options.stackEventPollingInterval);
290096
290096
  }
290097
290097
  throw new AbortError("DeployAborted", "Deployment cancelled");
290098
290098
  }
@@ -6,8 +6,8 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
6
6
 
7
7
  ## Useful commands
8
8
 
9
- * `%pm-cmd% build` compile typescript to js
10
- * `%pm-cmd% watch` watch for changes and compile
9
+ * `%pm-cmd% build` type-check the project
10
+ * `%pm-cmd% watch` watch for changes and type-check
11
11
  * `%pm-cmd% test` perform the jest unit tests
12
12
  * `npx cdk deploy` deploy this stack to your default AWS account/region
13
13
  * `npx cdk diff` compare deployed stack with current state
@@ -1,5 +1,5 @@
1
1
  {
2
- "app": "npx ts-node --prefer-ts-exts bin/%name%.ts",
2
+ "app": "npx tsc && npx tsx bin/%name%.ts",
3
3
  "watch": {
4
4
  "include": ["**"],
5
5
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -8,13 +8,14 @@
8
8
  "cdk": "cdk"
9
9
  },
10
10
  "devDependencies": {
11
+ "@swc/core": "^1.15.0",
12
+ "@swc/jest": "^0.2.39",
11
13
  "@types/jest": "^30",
12
14
  "@types/node": "^24.10.1",
13
15
  "jest": "^30",
14
- "ts-jest": "^29",
15
16
  "aws-cdk": "%cdk-cli-version%",
16
- "ts-node": "^10.9.2",
17
- "typescript": "~5.9.3"
17
+ "tsx": "^4.23.0",
18
+ "typescript": "~7.0.2"
18
19
  },
19
20
  "dependencies": {
20
21
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,12 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "noEmit": true,
28
+ "isolatedModules": true,
29
+ "types": [
30
+ "jest",
31
+ "node"
26
32
  ]
27
33
  },
28
34
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -9,13 +9,14 @@
9
9
  "test": "jest"
10
10
  },
11
11
  "devDependencies": {
12
+ "@swc/core": "^1.15.0",
13
+ "@swc/jest": "^0.2.39",
12
14
  "@types/jest": "^30",
13
15
  "@types/node": "^20.19.24",
14
16
  "aws-cdk-lib": "%cdk-version%",
15
17
  "constructs": "%constructs-version%",
16
18
  "jest": "^30",
17
- "ts-jest": "^29",
18
- "typescript": "~5.9.3"
19
+ "typescript": "~7.0.2"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,10 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "types": [
28
+ "jest",
29
+ "node"
26
30
  ]
27
31
  },
28
32
  "exclude": [
@@ -7,8 +7,8 @@ The `cdk.json` file tells the CDK Toolkit how to execute your app.
7
7
 
8
8
  ## Useful commands
9
9
 
10
- * `%pm-cmd% build` compile typescript to js
11
- * `%pm-cmd% watch` watch for changes and compile
10
+ * `%pm-cmd% build` type-check the project
11
+ * `%pm-cmd% watch` watch for changes and type-check
12
12
  * `%pm-cmd% test` perform the jest unit tests
13
13
  * `cdk deploy` deploy this stack to your default AWS account/region
14
14
  * `cdk diff` compare deployed stack with current state
@@ -1,5 +1,5 @@
1
1
  {
2
- "app": "npx ts-node --prefer-ts-exts bin/%name%.ts",
2
+ "app": "npx tsc && npx tsx bin/%name%.ts",
3
3
  "watch": {
4
4
  "include": ["**"],
5
5
  "exclude": [
@@ -3,7 +3,7 @@ module.exports = {
3
3
  roots: ['<rootDir>/test'],
4
4
  testMatch: ['**/*.test.ts'],
5
5
  transform: {
6
- '^.+\\.tsx?$': 'ts-jest'
6
+ '^.+\\.tsx?$': ['@swc/jest']
7
7
  },
8
8
  setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
9
9
  };
@@ -8,13 +8,14 @@
8
8
  "cdk": "cdk"
9
9
  },
10
10
  "devDependencies": {
11
+ "@swc/core": "^1.15.0",
12
+ "@swc/jest": "^0.2.39",
11
13
  "@types/jest": "^30",
12
14
  "@types/node": "^24.10.1",
13
15
  "jest": "^30",
14
- "ts-jest": "^29",
15
16
  "aws-cdk": "%cdk-cli-version%",
16
- "ts-node": "^10.9.2",
17
- "typescript": "~5.9.3"
17
+ "tsx": "^4.23.0",
18
+ "typescript": "~7.0.2"
18
19
  },
19
20
  "dependencies": {
20
21
  "aws-cdk-lib": "%cdk-version%",
@@ -23,6 +23,12 @@
23
23
  "skipLibCheck": true,
24
24
  "typeRoots": [
25
25
  "./node_modules/@types"
26
+ ],
27
+ "noEmit": true,
28
+ "isolatedModules": true,
29
+ "types": [
30
+ "jest",
31
+ "node"
26
32
  ]
27
33
  },
28
34
  "exclude": [
package/package.json CHANGED
@@ -83,11 +83,11 @@
83
83
  "typescript": "5.9",
84
84
  "@aws-cdk/cdk-assets-lib": "^1.4.13",
85
85
  "@aws-cdk/cloud-assembly-api": "2.2.6",
86
- "@aws-cdk/cloud-assembly-schema": ">=54.9.0",
86
+ "@aws-cdk/cloud-assembly-schema": ">=54.11.0",
87
87
  "@aws-cdk/cloudformation-diff": "2.187.2",
88
88
  "@aws-cdk/cx-api": "^2",
89
89
  "@aws-cdk/private-tools": "^0.0.0",
90
- "@aws-cdk/toolkit-lib": "^1.33.0",
90
+ "@aws-cdk/toolkit-lib": "^1.34.0",
91
91
  "@aws-sdk/client-appsync": "^3",
92
92
  "@aws-sdk/client-bedrock-agentcore-control": "^3",
93
93
  "@aws-sdk/client-cloudcontrol": "^3",
@@ -158,7 +158,7 @@
158
158
  "publishConfig": {
159
159
  "access": "public"
160
160
  },
161
- "version": "2.1130.0",
161
+ "version": "2.1131.0",
162
162
  "packageManager": "yarn@4.13.0",
163
163
  "types": "lib/index.d.ts",
164
164
  "exports": {