aws-cdk 2.9.0 → 2.13.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 (99) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +3 -2
  3. package/bin/cdk.d.ts +1 -3
  4. package/bin/cdk.js +3 -511
  5. package/build-info.json +2 -2
  6. package/lib/api/aws-auth/sdk.d.ts +2 -0
  7. package/lib/api/aws-auth/sdk.js +4 -1
  8. package/lib/api/cloudformation-deployments.d.ts +8 -5
  9. package/lib/api/cloudformation-deployments.js +90 -38
  10. package/lib/api/cxapp/cloud-executable.js +12 -8
  11. package/lib/api/evaluate-cloudformation-template.js +34 -2
  12. package/lib/api/hotswap/appsync-mapping-templates.d.ts +3 -0
  13. package/lib/api/hotswap/appsync-mapping-templates.js +69 -0
  14. package/lib/api/hotswap/lambda-functions.js +48 -13
  15. package/lib/api/hotswap-deployments.js +3 -1
  16. package/lib/api/toolkit-info.js +5 -5
  17. package/lib/api/util/placeholders.d.ts +6 -0
  18. package/lib/api/util/placeholders.js +25 -0
  19. package/lib/assets.js +2 -1
  20. package/lib/cdk-toolkit.js +3 -3
  21. package/lib/cli.d.ts +3 -0
  22. package/lib/cli.js +545 -0
  23. package/lib/commands/context.d.ts +0 -16
  24. package/lib/commands/context.js +2 -20
  25. package/lib/commands/docs.d.ts +0 -13
  26. package/lib/commands/docs.js +2 -19
  27. package/lib/commands/doctor.d.ts +0 -5
  28. package/lib/commands/doctor.js +2 -9
  29. package/lib/context-providers/ami.d.ts +1 -1
  30. package/lib/context-providers/ami.js +3 -3
  31. package/lib/context-providers/availability-zones.d.ts +1 -1
  32. package/lib/context-providers/availability-zones.js +3 -3
  33. package/lib/context-providers/endpoint-service-availability-zones.d.ts +1 -1
  34. package/lib/context-providers/endpoint-service-availability-zones.js +3 -3
  35. package/lib/context-providers/hosted-zones.d.ts +1 -1
  36. package/lib/context-providers/hosted-zones.js +3 -3
  37. package/lib/context-providers/index.d.ts +6 -0
  38. package/lib/context-providers/index.js +18 -5
  39. package/lib/context-providers/keys.d.ts +1 -1
  40. package/lib/context-providers/keys.js +3 -3
  41. package/lib/context-providers/load-balancers.d.ts +1 -1
  42. package/lib/context-providers/load-balancers.js +4 -4
  43. package/lib/context-providers/security-groups.d.ts +1 -1
  44. package/lib/context-providers/security-groups.js +3 -3
  45. package/lib/context-providers/ssm-parameters.d.ts +1 -1
  46. package/lib/context-providers/ssm-parameters.js +3 -3
  47. package/lib/context-providers/vpcs.d.ts +1 -1
  48. package/lib/context-providers/vpcs.js +6 -3
  49. package/lib/index.d.ts +3 -0
  50. package/lib/index.js +17 -0
  51. package/lib/init-templates/v1/app/csharp/cdk.template.json +1 -1
  52. package/lib/init-templates/v1/app/fsharp/cdk.template.json +1 -1
  53. package/lib/init-templates/v1/app/javascript/README.md +5 -5
  54. package/lib/init-templates/v1/app/typescript/README.md +7 -7
  55. package/lib/init-templates/v1/lib/typescript/README.template.md +4 -4
  56. package/lib/init-templates/v1/sample-app/csharp/cdk.template.json +1 -1
  57. package/lib/init-templates/v1/sample-app/fsharp/cdk.template.json +1 -1
  58. package/lib/init-templates/v1/sample-app/javascript/README.template.md +7 -6
  59. package/lib/init-templates/v1/sample-app/typescript/README.template.md +9 -9
  60. package/lib/init-templates/v2/app/csharp/cdk.template.json +1 -1
  61. package/lib/init-templates/v2/app/fsharp/cdk.template.json +1 -1
  62. package/lib/init-templates/v2/app/javascript/README.md +5 -5
  63. package/lib/init-templates/v2/app/typescript/README.md +7 -7
  64. package/lib/init-templates/v2/lib/typescript/README.template.md +4 -4
  65. package/lib/init-templates/v2/sample-app/csharp/cdk.template.json +1 -1
  66. package/lib/init-templates/v2/sample-app/fsharp/cdk.template.json +1 -1
  67. package/lib/init-templates/v2/sample-app/javascript/README.template.md +5 -5
  68. package/lib/init-templates/v2/sample-app/typescript/README.template.md +7 -7
  69. package/lib/plugin.d.ts +15 -1
  70. package/lib/plugin.js +17 -3
  71. package/lib/util/asset-publishing.d.ts +1 -1
  72. package/lib/util/asset-publishing.js +4 -4
  73. package/npm-shrinkwrap.json +96 -52
  74. package/package.json +16 -15
  75. package/test/api/cloud-executable.test.js +57 -32
  76. package/test/api/cloudformation-deployments.test.js +643 -1
  77. package/test/api/hotswap/appsync-mapping-templates-hotswap-deployments.test.d.ts +1 -0
  78. package/test/api/hotswap/appsync-mapping-templates-hotswap-deployments.test.js +336 -0
  79. package/test/api/hotswap/hotswap-deployments.test.js +2 -2
  80. package/test/api/hotswap/hotswap-test-setup.d.ts +7 -1
  81. package/test/api/hotswap/hotswap-test-setup.js +22 -3
  82. package/test/api/hotswap/lambda-functions-docker-hotswap-deployments.test.js +59 -2
  83. package/test/api/hotswap/lambda-functions-hotswap-deployments.test.js +175 -2
  84. package/test/api/hotswap/lambda-functions-inline-hotswap-deployments.test.js +2 -2
  85. package/test/api/hotswap/lambda-versions-aliases-hotswap-deployments.test.js +2 -2
  86. package/test/api/hotswap/state-machine-hotswap-deployments.test.js +72 -1
  87. package/test/api/logs/logs-monitor.test.js +9 -13
  88. package/test/cdk-docs.test.js +4 -7
  89. package/test/cdk-doctor.test.js +3 -4
  90. package/test/context-providers/generic.test.js +7 -6
  91. package/test/context-providers/vpcs.test.js +132 -1
  92. package/test/diff-nested-stacks-templates/one-output-one-param-stack.nested.template.json +20 -0
  93. package/test/diff-nested-stacks-templates/one-resource-one-stack-stack.nested.template.json +19 -0
  94. package/test/diff-nested-stacks-templates/one-resource-stack.nested.template.json +10 -0
  95. package/test/diff-nested-stacks-templates/one-resource-two-stacks-stack.nested.template.json +28 -0
  96. package/test/diff.test.js +215 -96
  97. package/test/util/mock-sdk.d.ts +9 -1
  98. package/test/util/mock-sdk.js +13 -3
  99. package/test/util.js +18 -1
package/CONTRIBUTING.md CHANGED
@@ -131,7 +131,7 @@ Its value can either be that of `CANDIDATE_VERSION` (for testing against the lat
131
131
 
132
132
  Following are the steps involved in running these tests:
133
133
 
134
- 1. Run [`./bump-candidate.sh`](../../bump-candidate.sh) to differentiate between the local version and the published version. For example, if the version in `lerna.json` is `1.67.0`, this script will result in a version `1.67.0-rc.0`. This is needed so that we can launch a verdaccio instance serving local tarballs without worrying about conflicts with the public npm uplink. This will help us avoid version quirks that might happen during the *post-release-pre-merge-back* time window.
134
+ 1. Run [`./bump-candidate.sh`](../../scripts/bump-candidate.sh) to differentiate between the local version and the published version. For example, if the version in `lerna.json` is `1.67.0`, this script will result in a version `1.67.0-rc.0`. This is needed so that we can launch a verdaccio instance serving local tarballs without worrying about conflicts with the public npm uplink. This will help us avoid version quirks that might happen during the *post-release-pre-merge-back* time window.
135
135
 
136
136
  2. Run [`./align-version.sh`](../../scripts/align-version.sh) to configure the above version in all our packages.
137
137
 
package/README.md CHANGED
@@ -368,6 +368,7 @@ Hotswapping is currently supported for the following changes
368
368
  - Container asset changes of AWS ECS Services.
369
369
  - Website asset changes of AWS S3 Bucket Deployments.
370
370
  - Source and Environment changes of AWS CodeBuild Projects.
371
+ - VTL mapping template changes for AppSync Resolvers and Functions
371
372
 
372
373
  **⚠ Note #1**: This command deliberately introduces drift in CloudFormation stacks in order to speed up deployments.
373
374
  For this reason, only use it for development purposes.
@@ -549,8 +550,8 @@ Some of the interesting keys that can be used in the JSON configuration files:
549
550
  ```
550
551
 
551
552
  If specified, the command in the `build` key will be executed immediately before synthesis.
552
- This can be used to build Lambda Functions, CDK Application code, or other assets.
553
- `build` cannot be specified on the command line or in the User configuration,
553
+ This can be used to build Lambda Functions, CDK Application code, or other assets.
554
+ `build` cannot be specified on the command line or in the User configuration,
554
555
  and must be specified in the Project configuration. The command specified
555
556
  in `build` will be executed by the "watch" process before deployment.
556
557
 
package/bin/cdk.d.ts CHANGED
@@ -1,3 +1 @@
1
- #!/usr/bin/env node
2
- import 'source-map-support/register';
3
- import '@jsii/check-node/run';
1
+ export {};