aws-cdk 2.1006.0 → 3.0.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 (256) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_LICENSES +104 -86
  3. package/build-info.json +2 -2
  4. package/db.json.gz +0 -0
  5. package/lib/api/aws-auth.d.ts +1 -0
  6. package/lib/api/{logs/index.js → aws-auth.js} +2 -3
  7. package/lib/api/bootstrap.d.ts +1 -0
  8. package/lib/api/bootstrap.js +18 -0
  9. package/lib/api/cloud-assembly.d.ts +1 -0
  10. package/lib/api/cloud-assembly.js +18 -0
  11. package/lib/api/cloudformation.d.ts +1 -0
  12. package/lib/api/cloudformation.js +18 -0
  13. package/lib/api/context.d.ts +1 -40
  14. package/lib/api/context.js +16 -80
  15. package/lib/api/deployments.d.ts +1 -0
  16. package/lib/api/deployments.js +18 -0
  17. package/lib/api/environment.d.ts +1 -0
  18. package/lib/api/environment.js +18 -0
  19. package/lib/api/garbage-collection.d.ts +1 -0
  20. package/lib/api/garbage-collection.js +18 -0
  21. package/lib/api/hotswap.d.ts +1 -0
  22. package/lib/api/hotswap.js +18 -0
  23. package/lib/api/index.d.ts +5 -1
  24. package/lib/api/index.js +6 -2
  25. package/lib/api/logs-monitor.d.ts +1 -0
  26. package/lib/api/logs-monitor.js +18 -0
  27. package/lib/api/notices.d.ts +1 -0
  28. package/lib/api/notices.js +18 -0
  29. package/lib/api/plugin.d.ts +1 -0
  30. package/lib/api/{resource-import/index.js → plugin.js} +2 -3
  31. package/lib/api/resource-import.d.ts +1 -0
  32. package/lib/api/resource-import.js +18 -0
  33. package/lib/api/rwlock.d.ts +1 -0
  34. package/lib/api/{garbage-collection/index.js → rwlock.js} +2 -2
  35. package/lib/api/settings.d.ts +1 -26
  36. package/lib/api/settings.js +16 -103
  37. package/lib/api/stack-events.d.ts +1 -0
  38. package/lib/api/stack-events.js +18 -0
  39. package/lib/api/tags.d.ts +1 -9
  40. package/lib/api/tags.js +16 -8
  41. package/lib/api/toolkit-info.d.ts +1 -52
  42. package/lib/api/toolkit-info.js +16 -152
  43. package/lib/api/tree.d.ts +1 -31
  44. package/lib/api/tree.js +16 -35
  45. package/lib/api/work-graph.d.ts +1 -0
  46. package/lib/api/work-graph.js +18 -0
  47. package/lib/api-private.d.ts +3 -0
  48. package/lib/api-private.js +22 -0
  49. package/lib/cli/cdk-toolkit.d.ts +20 -16
  50. package/lib/cli/cdk-toolkit.js +102 -37
  51. package/lib/cli/cli-config.js +2 -2
  52. package/lib/cli/cli.d.ts +1 -1
  53. package/lib/cli/cli.js +22 -19
  54. package/lib/cli/io-host/cli-io-host.js +2 -2
  55. package/lib/cli/pretty-print-error.js +3 -1
  56. package/lib/cli/util/npm.d.ts +4 -1
  57. package/lib/cli/util/npm.js +25 -13
  58. package/lib/cli/version.d.ts +1 -1
  59. package/lib/cli/version.js +21 -25
  60. package/lib/commands/context.js +3 -2
  61. package/lib/commands/diff.d.ts +1 -50
  62. package/lib/commands/diff.js +5 -213
  63. package/lib/commands/init/init.js +3 -2
  64. package/lib/commands/list-stacks.js +4 -4
  65. package/lib/context-providers/ami.d.ts +1 -13
  66. package/lib/context-providers/ami.js +16 -48
  67. package/lib/context-providers/availability-zones.d.ts +1 -13
  68. package/lib/context-providers/availability-zones.js +16 -25
  69. package/lib/context-providers/cc-api-provider.d.ts +1 -30
  70. package/lib/context-providers/cc-api-provider.js +16 -136
  71. package/lib/context-providers/endpoint-service-availability-zones.d.ts +1 -13
  72. package/lib/context-providers/endpoint-service-availability-zones.js +16 -31
  73. package/lib/context-providers/hosted-zones.d.ts +1 -12
  74. package/lib/context-providers/hosted-zones.js +16 -65
  75. package/lib/context-providers/index.d.ts +1 -44
  76. package/lib/context-providers/index.js +15 -126
  77. package/lib/context-providers/keys.d.ts +1 -13
  78. package/lib/context-providers/keys.js +16 -50
  79. package/lib/context-providers/load-balancers.d.ts +1 -20
  80. package/lib/context-providers/load-balancers.js +16 -154
  81. package/lib/context-providers/security-groups.d.ts +1 -9
  82. package/lib/context-providers/security-groups.js +16 -66
  83. package/lib/context-providers/ssm-parameters.d.ts +1 -25
  84. package/lib/context-providers/ssm-parameters.js +16 -57
  85. package/lib/context-providers/vpcs.d.ts +1 -13
  86. package/lib/context-providers/vpcs.js +16 -285
  87. package/lib/{api/cxapp → cxapp}/cloud-assembly.d.ts +3 -59
  88. package/lib/cxapp/cloud-assembly.js +108 -0
  89. package/lib/{api/cxapp → cxapp}/cloud-executable.d.ts +10 -3
  90. package/lib/cxapp/cloud-executable.js +92 -0
  91. package/lib/{api/cxapp → cxapp}/environments.d.ts +1 -2
  92. package/lib/{api/cxapp → cxapp}/environments.js +2 -2
  93. package/lib/cxapp/exec.d.ts +14 -0
  94. package/lib/cxapp/exec.js +157 -0
  95. package/lib/cxapp/index.d.ts +4 -0
  96. package/lib/{api/bootstrap → cxapp}/index.js +5 -3
  97. package/lib/index.js +134493 -125222
  98. package/lib/init-templates/.init-version.json +1 -1
  99. package/lib/init-templates/.recommended-feature-flags.json +3 -1
  100. package/lib/legacy-aws-auth.d.ts +74 -0
  101. package/lib/legacy-aws-auth.js +40 -0
  102. package/lib/legacy-exports-source.d.ts +13 -18
  103. package/lib/legacy-exports-source.js +42 -49
  104. package/lib/legacy-exports.d.ts +3 -6
  105. package/lib/legacy-exports.js +5 -5
  106. package/lib/legacy-types.d.ts +31 -0
  107. package/lib/legacy-types.js +3 -0
  108. package/package.json +19 -18
  109. package/lib/api/aws-auth/account-cache.d.ts +0 -36
  110. package/lib/api/aws-auth/account-cache.js +0 -99
  111. package/lib/api/aws-auth/awscli-compatible.d.ts +0 -42
  112. package/lib/api/aws-auth/awscli-compatible.js +0 -263
  113. package/lib/api/aws-auth/cached.d.ts +0 -11
  114. package/lib/api/aws-auth/cached.js +0 -26
  115. package/lib/api/aws-auth/credential-plugins.d.ts +0 -36
  116. package/lib/api/aws-auth/credential-plugins.js +0 -152
  117. package/lib/api/aws-auth/index.d.ts +0 -3
  118. package/lib/api/aws-auth/index.js +0 -20
  119. package/lib/api/aws-auth/provider-caching.d.ts +0 -13
  120. package/lib/api/aws-auth/provider-caching.js +0 -24
  121. package/lib/api/aws-auth/sdk-logger.d.ts +0 -69
  122. package/lib/api/aws-auth/sdk-logger.js +0 -124
  123. package/lib/api/aws-auth/sdk-provider.d.ts +0 -207
  124. package/lib/api/aws-auth/sdk-provider.js +0 -357
  125. package/lib/api/aws-auth/sdk.d.ts +0 -229
  126. package/lib/api/aws-auth/sdk.js +0 -373
  127. package/lib/api/aws-auth/tracing.d.ts +0 -11
  128. package/lib/api/aws-auth/tracing.js +0 -60
  129. package/lib/api/aws-auth/user-agent.d.ts +0 -7
  130. package/lib/api/aws-auth/user-agent.js +0 -20
  131. package/lib/api/aws-auth/util.d.ts +0 -6
  132. package/lib/api/aws-auth/util.js +0 -23
  133. package/lib/api/bootstrap/bootstrap-environment.d.ts +0 -35
  134. package/lib/api/bootstrap/bootstrap-environment.js +0 -321
  135. package/lib/api/bootstrap/bootstrap-props.d.ts +0 -130
  136. package/lib/api/bootstrap/bootstrap-props.js +0 -14
  137. package/lib/api/bootstrap/deploy-bootstrap.d.ts +0 -39
  138. package/lib/api/bootstrap/deploy-bootstrap.js +0 -141
  139. package/lib/api/bootstrap/index.d.ts +0 -2
  140. package/lib/api/bootstrap/legacy-template.d.ts +0 -2
  141. package/lib/api/bootstrap/legacy-template.js +0 -82
  142. package/lib/api/cloudformation/evaluate-cloudformation-template.d.ts +0 -85
  143. package/lib/api/cloudformation/evaluate-cloudformation-template.js +0 -440
  144. package/lib/api/cloudformation/index.d.ts +0 -4
  145. package/lib/api/cloudformation/index.js +0 -21
  146. package/lib/api/cloudformation/nested-stack-helpers.d.ts +0 -25
  147. package/lib/api/cloudformation/nested-stack-helpers.js +0 -86
  148. package/lib/api/cloudformation/stack-helpers.d.ts +0 -96
  149. package/lib/api/cloudformation/stack-helpers.js +0 -158
  150. package/lib/api/cloudformation/template-body-parameter.d.ts +0 -22
  151. package/lib/api/cloudformation/template-body-parameter.js +0 -104
  152. package/lib/api/cxapp/cloud-assembly.js +0 -304
  153. package/lib/api/cxapp/cloud-executable.js +0 -89
  154. package/lib/api/cxapp/exec.d.ts +0 -56
  155. package/lib/api/cxapp/exec.js +0 -272
  156. package/lib/api/deployments/asset-manifest-builder.d.ts +0 -8
  157. package/lib/api/deployments/asset-manifest-builder.js +0 -35
  158. package/lib/api/deployments/asset-publishing.d.ts +0 -60
  159. package/lib/api/deployments/asset-publishing.js +0 -141
  160. package/lib/api/deployments/assets.d.ts +0 -11
  161. package/lib/api/deployments/assets.js +0 -109
  162. package/lib/api/deployments/cfn-api.d.ts +0 -138
  163. package/lib/api/deployments/cfn-api.js +0 -438
  164. package/lib/api/deployments/checks.d.ts +0 -9
  165. package/lib/api/deployments/checks.js +0 -72
  166. package/lib/api/deployments/deploy-stack.d.ts +0 -155
  167. package/lib/api/deployments/deploy-stack.js +0 -478
  168. package/lib/api/deployments/deployment-method.d.ts +0 -24
  169. package/lib/api/deployments/deployment-method.js +0 -3
  170. package/lib/api/deployments/deployment-result.d.ts +0 -21
  171. package/lib/api/deployments/deployment-result.js +0 -10
  172. package/lib/api/deployments/deployments.d.ts +0 -296
  173. package/lib/api/deployments/deployments.js +0 -331
  174. package/lib/api/deployments/hotswap-deployments.d.ts +0 -17
  175. package/lib/api/deployments/hotswap-deployments.js +0 -441
  176. package/lib/api/deployments/index.d.ts +0 -4
  177. package/lib/api/deployments/index.js +0 -21
  178. package/lib/api/environment/environment-access.d.ts +0 -140
  179. package/lib/api/environment/environment-access.js +0 -202
  180. package/lib/api/environment/environment-resources.d.ts +0 -75
  181. package/lib/api/environment/environment-resources.js +0 -207
  182. package/lib/api/environment/index.d.ts +0 -3
  183. package/lib/api/environment/index.js +0 -20
  184. package/lib/api/environment/placeholders.d.ts +0 -10
  185. package/lib/api/environment/placeholders.js +0 -23
  186. package/lib/api/garbage-collection/garbage-collector.d.ts +0 -158
  187. package/lib/api/garbage-collection/garbage-collector.js +0 -599
  188. package/lib/api/garbage-collection/index.d.ts +0 -1
  189. package/lib/api/garbage-collection/progress-printer.d.ts +0 -23
  190. package/lib/api/garbage-collection/progress-printer.js +0 -70
  191. package/lib/api/garbage-collection/stack-refresh.d.ts +0 -49
  192. package/lib/api/garbage-collection/stack-refresh.js +0 -151
  193. package/lib/api/hotswap/appsync-mapping-templates.d.ts +0 -4
  194. package/lib/api/hotswap/appsync-mapping-templates.js +0 -162
  195. package/lib/api/hotswap/code-build-projects.d.ts +0 -4
  196. package/lib/api/hotswap/code-build-projects.js +0 -62
  197. package/lib/api/hotswap/common.d.ts +0 -89
  198. package/lib/api/hotswap/common.js +0 -128
  199. package/lib/api/hotswap/ecs-services.d.ts +0 -4
  200. package/lib/api/hotswap/ecs-services.js +0 -159
  201. package/lib/api/hotswap/lambda-functions.d.ts +0 -4
  202. package/lib/api/hotswap/lambda-functions.js +0 -297
  203. package/lib/api/hotswap/s3-bucket-deployments.d.ts +0 -5
  204. package/lib/api/hotswap/s3-bucket-deployments.js +0 -117
  205. package/lib/api/hotswap/stepfunctions-state-machines.d.ts +0 -4
  206. package/lib/api/hotswap/stepfunctions-state-machines.js +0 -48
  207. package/lib/api/logs/find-cloudwatch-logs.d.ts +0 -25
  208. package/lib/api/logs/find-cloudwatch-logs.js +0 -95
  209. package/lib/api/logs/index.d.ts +0 -2
  210. package/lib/api/logs/logs-monitor.d.ts +0 -76
  211. package/lib/api/logs/logs-monitor.js +0 -187
  212. package/lib/api/plugin/context-provider-plugin.d.ts +0 -6
  213. package/lib/api/plugin/context-provider-plugin.js +0 -7
  214. package/lib/api/plugin/index.d.ts +0 -3
  215. package/lib/api/plugin/index.js +0 -20
  216. package/lib/api/plugin/mode.d.ts +0 -4
  217. package/lib/api/plugin/mode.js +0 -9
  218. package/lib/api/plugin/plugin.d.ts +0 -63
  219. package/lib/api/plugin/plugin.js +0 -102
  220. package/lib/api/resource-import/importer.d.ts +0 -220
  221. package/lib/api/resource-import/importer.js +0 -331
  222. package/lib/api/resource-import/index.d.ts +0 -2
  223. package/lib/api/resource-import/migrator.d.ts +0 -26
  224. package/lib/api/resource-import/migrator.js +0 -71
  225. package/lib/api/stack-events/index.d.ts +0 -3
  226. package/lib/api/stack-events/index.js +0 -20
  227. package/lib/api/stack-events/stack-activity-monitor.d.ts +0 -100
  228. package/lib/api/stack-events/stack-activity-monitor.js +0 -142
  229. package/lib/api/stack-events/stack-event-poller.d.ts +0 -69
  230. package/lib/api/stack-events/stack-event-poller.js +0 -128
  231. package/lib/api/stack-events/stack-progress-monitor.d.ts +0 -48
  232. package/lib/api/stack-events/stack-progress-monitor.js +0 -94
  233. package/lib/api/stack-events/stack-status.d.ts +0 -42
  234. package/lib/api/stack-events/stack-status.js +0 -88
  235. package/lib/api/util/rwlock.d.ts +0 -65
  236. package/lib/api/util/rwlock.js +0 -179
  237. package/lib/api/work-graph/index.d.ts +0 -3
  238. package/lib/api/work-graph/index.js +0 -20
  239. package/lib/api/work-graph/work-graph-builder.d.ts +0 -34
  240. package/lib/api/work-graph/work-graph-builder.js +0 -168
  241. package/lib/api/work-graph/work-graph-types.d.ts +0 -50
  242. package/lib/api/work-graph/work-graph-types.js +0 -13
  243. package/lib/api/work-graph/work-graph.d.ts +0 -72
  244. package/lib/api/work-graph/work-graph.js +0 -346
  245. package/lib/cli/activity-printer/base.d.ts +0 -50
  246. package/lib/cli/activity-printer/base.js +0 -114
  247. package/lib/cli/activity-printer/current.d.ts +0 -26
  248. package/lib/cli/activity-printer/current.js +0 -118
  249. package/lib/cli/activity-printer/display.d.ts +0 -13
  250. package/lib/cli/activity-printer/display.js +0 -80
  251. package/lib/cli/activity-printer/history.d.ts +0 -32
  252. package/lib/cli/activity-printer/history.js +0 -108
  253. package/lib/cli/activity-printer/index.d.ts +0 -3
  254. package/lib/cli/activity-printer/index.js +0 -20
  255. package/lib/notices.d.ts +0 -203
  256. package/lib/notices.js +0 -411
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwbG95bWVudC1tZXRob2QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXBsb3ltZW50LW1ldGhvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgRGVwbG95bWVudE1ldGhvZCA9IERpcmVjdERlcGxveW1lbnRNZXRob2QgfCBDaGFuZ2VTZXREZXBsb3ltZW50TWV0aG9kO1xuXG5leHBvcnQgaW50ZXJmYWNlIERpcmVjdERlcGxveW1lbnRNZXRob2Qge1xuICByZWFkb25seSBtZXRob2Q6ICdkaXJlY3QnO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIENoYW5nZVNldERlcGxveW1lbnRNZXRob2Qge1xuICByZWFkb25seSBtZXRob2Q6ICdjaGFuZ2Utc2V0JztcblxuICAvKipcbiAgICogV2hldGhlciB0byBleGVjdXRlIHRoZSBjaGFuZ2VzZXQgb3IgbGVhdmUgaXQgaW4gcmV2aWV3LlxuICAgKlxuICAgKiBAZGVmYXVsdCB0cnVlXG4gICAqL1xuICByZWFkb25seSBleGVjdXRlPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogT3B0aW9uYWwgbmFtZSB0byB1c2UgZm9yIHRoZSBDbG91ZEZvcm1hdGlvbiBjaGFuZ2Ugc2V0LlxuICAgKiBJZiBub3QgcHJvdmlkZWQsIGEgbmFtZSB3aWxsIGJlIGdlbmVyYXRlZCBhdXRvbWF0aWNhbGx5LlxuICAgKi9cbiAgcmVhZG9ubHkgY2hhbmdlU2V0TmFtZT86IHN0cmluZztcblxuICAvKipcbiAgICogSW5kaWNhdGVzIGlmIHRoZSBjaGFuZ2Ugc2V0IGltcG9ydHMgcmVzb3VyY2VzIHRoYXQgYWxyZWFkeSBleGlzdC5cbiAgICpcbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIHJlYWRvbmx5IGltcG9ydEV4aXN0aW5nUmVzb3VyY2VzPzogYm9vbGVhbjtcbn1cbiJdfQ==
@@ -1,21 +0,0 @@
1
- export type DeployStackResult = SuccessfulDeployStackResult | NeedRollbackFirstDeployStackResult | ReplacementRequiresRollbackStackResult;
2
- /** Successfully deployed a stack */
3
- export interface SuccessfulDeployStackResult {
4
- readonly type: 'did-deploy-stack';
5
- readonly noOp: boolean;
6
- readonly outputs: {
7
- [name: string]: string;
8
- };
9
- readonly stackArn: string;
10
- }
11
- /** The stack is currently in a failpaused state, and needs to be rolled back before the deployment */
12
- export interface NeedRollbackFirstDeployStackResult {
13
- readonly type: 'failpaused-need-rollback-first';
14
- readonly reason: 'not-norollback' | 'replacement';
15
- readonly status: string;
16
- }
17
- /** The upcoming change has a replacement, which requires deploying with --rollback */
18
- export interface ReplacementRequiresRollbackStackResult {
19
- readonly type: 'replacement-requires-rollback';
20
- }
21
- export declare function assertIsSuccessfulDeployStackResult(x: DeployStackResult): asserts x is SuccessfulDeployStackResult;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertIsSuccessfulDeployStackResult = assertIsSuccessfulDeployStackResult;
4
- const api_1 = require("../../../../@aws-cdk/tmp-toolkit-helpers/src/api");
5
- function assertIsSuccessfulDeployStackResult(x) {
6
- if (x.type !== 'did-deploy-stack') {
7
- throw new api_1.ToolkitError(`Unexpected deployStack result. This should not happen: ${JSON.stringify(x)}. If you are seeing this error, please report it at https://github.com/aws/aws-cdk/issues/new/choose.`);
8
- }
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwbG95bWVudC1yZXN1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXBsb3ltZW50LXJlc3VsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQTRCQSxrRkFJQztBQ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import * as cdk_assets from 'cdk-assets';
3
- import type { DeploymentMethod } from './deployment-method';
4
- import type { DeployStackResult } from './deployment-result';
5
- import { type IoHelper } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api/io/private';
6
- import type { SdkProvider } from '../aws-auth/sdk-provider';
7
- import type { Template, RootTemplateWithNestedStacks } from '../cloudformation';
8
- import { EnvironmentAccess } from '../environment';
9
- import type { HotswapMode, HotswapPropertyOverrides } from '../hotswap/common';
10
- import type { ResourceIdentifierSummaries, ResourcesToImport } from '../resource-import';
11
- import type { Tag } from '../tags';
12
- export interface DeployStackOptions {
13
- /**
14
- * Stack to deploy
15
- */
16
- readonly stack: cxapi.CloudFormationStackArtifact;
17
- /**
18
- * Execution role for the deployment (pass through to CloudFormation)
19
- *
20
- * @default - Current role
21
- */
22
- readonly roleArn?: string;
23
- /**
24
- * Topic ARNs to send a message when deployment finishes (pass through to CloudFormation)
25
- *
26
- * @default - No notifications
27
- */
28
- readonly notificationArns?: string[];
29
- /**
30
- * Override name under which stack will be deployed
31
- *
32
- * @default - Use artifact default
33
- */
34
- readonly deployName?: string;
35
- /**
36
- * Name of the toolkit stack, if not the default name
37
- *
38
- * @default 'CDKToolkit'
39
- */
40
- readonly toolkitStackName?: string;
41
- /**
42
- * List of asset IDs which should NOT be built or uploaded
43
- *
44
- * @default - Build all assets
45
- */
46
- readonly reuseAssets?: string[];
47
- /**
48
- * Stack tags (pass through to CloudFormation)
49
- */
50
- readonly tags?: Tag[];
51
- /**
52
- * Stage the change set but don't execute it
53
- *
54
- * @default - true
55
- * @deprecated Use 'deploymentMethod' instead
56
- */
57
- readonly execute?: boolean;
58
- /**
59
- * Optional name to use for the CloudFormation change set.
60
- * If not provided, a name will be generated automatically.
61
- *
62
- * @deprecated Use 'deploymentMethod' instead
63
- */
64
- readonly changeSetName?: string;
65
- /**
66
- * Select the deployment method (direct or using a change set)
67
- *
68
- * @default - Change set with default options
69
- */
70
- readonly deploymentMethod?: DeploymentMethod;
71
- /**
72
- * Force deployment, even if the deployed template is identical to the one we are about to deploy.
73
- * @default false deployment will be skipped if the template is identical
74
- */
75
- readonly force?: boolean;
76
- /**
77
- * Extra parameters for CloudFormation
78
- * @default - no additional parameters will be passed to the template
79
- */
80
- readonly parameters?: {
81
- [name: string]: string | undefined;
82
- };
83
- /**
84
- * Use previous values for unspecified parameters
85
- *
86
- * If not set, all parameters must be specified for every deployment.
87
- *
88
- * @default true
89
- */
90
- readonly usePreviousParameters?: boolean;
91
- /**
92
- * Rollback failed deployments
93
- *
94
- * @default true
95
- */
96
- readonly rollback?: boolean;
97
- readonly hotswap?: HotswapMode;
98
- /**
99
- * Properties that configure hotswap behavior
100
- */
101
- readonly hotswapPropertyOverrides?: HotswapPropertyOverrides;
102
- /**
103
- * The extra string to append to the User-Agent header when performing AWS SDK calls.
104
- *
105
- * @default - nothing extra is appended to the User-Agent header
106
- */
107
- readonly extraUserAgent?: string;
108
- /**
109
- * List of existing resources to be IMPORTED into the stack, instead of being CREATED
110
- */
111
- readonly resourcesToImport?: ResourcesToImport;
112
- /**
113
- * If present, use this given template instead of the stored one
114
- *
115
- * @default - Use the stored template
116
- */
117
- readonly overrideTemplate?: any;
118
- /**
119
- * Whether to build/publish assets in parallel
120
- *
121
- * @default true To remain backward compatible.
122
- */
123
- readonly assetParallelism?: boolean;
124
- /**
125
- * Whether to deploy if the app contains no stacks.
126
- *
127
- * @default false
128
- */
129
- ignoreNoStacks?: boolean;
130
- }
131
- export interface RollbackStackOptions {
132
- /**
133
- * Stack to roll back
134
- */
135
- readonly stack: cxapi.CloudFormationStackArtifact;
136
- /**
137
- * Execution role for the deployment (pass through to CloudFormation)
138
- *
139
- * @default - Current role
140
- */
141
- readonly roleArn?: string;
142
- /**
143
- * Don't show stack deployment events, just wait
144
- *
145
- * @default false
146
- */
147
- readonly quiet?: boolean;
148
- /**
149
- * Whether we are on a CI system
150
- *
151
- * @default false
152
- */
153
- readonly ci?: boolean;
154
- /**
155
- * Name of the toolkit stack, if not the default name
156
- *
157
- * @default 'CDKToolkit'
158
- */
159
- readonly toolkitStackName?: string;
160
- /**
161
- * Whether to force a rollback or not
162
- *
163
- * Forcing a rollback will orphan all undeletable resources.
164
- *
165
- * @default false
166
- */
167
- readonly force?: boolean;
168
- /**
169
- * Orphan the resources with the given logical IDs
170
- *
171
- * @default - No orphaning
172
- */
173
- readonly orphanLogicalIds?: string[];
174
- /**
175
- * Whether to validate the version of the bootstrap stack permissions
176
- *
177
- * @default true
178
- */
179
- readonly validateBootstrapStackVersion?: boolean;
180
- }
181
- export interface RollbackStackResult {
182
- readonly notInRollbackableState?: boolean;
183
- readonly success?: boolean;
184
- }
185
- interface AssetOptions {
186
- /**
187
- * Stack with assets to build.
188
- */
189
- readonly stack: cxapi.CloudFormationStackArtifact;
190
- /**
191
- * Execution role for the building.
192
- *
193
- * @default - Current role
194
- */
195
- readonly roleArn?: string;
196
- }
197
- export interface BuildStackAssetsOptions extends AssetOptions {
198
- /**
199
- * Stack name this asset is for
200
- */
201
- readonly stackName?: string;
202
- }
203
- interface PublishStackAssetsOptions extends AssetOptions {
204
- /**
205
- * Stack name this asset is for
206
- */
207
- readonly stackName?: string;
208
- /**
209
- * Always publish, even if it already exists
210
- *
211
- * @default false
212
- */
213
- readonly forcePublish?: boolean;
214
- }
215
- export interface DestroyStackOptions {
216
- stack: cxapi.CloudFormationStackArtifact;
217
- deployName?: string;
218
- roleArn?: string;
219
- }
220
- export interface StackExistsOptions {
221
- stack: cxapi.CloudFormationStackArtifact;
222
- deployName?: string;
223
- tryLookupRole?: boolean;
224
- }
225
- export interface DeploymentsProps {
226
- readonly sdkProvider: SdkProvider;
227
- readonly toolkitStackName?: string;
228
- readonly ioHelper: IoHelper;
229
- }
230
- /**
231
- * Scope for a single set of deployments from a set of Cloud Assembly Artifacts
232
- *
233
- * Manages lookup of SDKs, Bootstrap stacks, etc.
234
- */
235
- export declare class Deployments {
236
- private readonly props;
237
- readonly envs: EnvironmentAccess;
238
- /**
239
- * SDK provider for asset publishing (do not use for anything else).
240
- *
241
- * This SDK provider is only allowed to be used for that purpose, nothing else.
242
- *
243
- * It's not a different object, but the field name should imply that this
244
- * object should not be used directly, except to pass to asset handling routines.
245
- */
246
- private readonly assetSdkProvider;
247
- /**
248
- * SDK provider for passing to deployStack
249
- *
250
- * This SDK provider is only allowed to be used for that purpose, nothing else.
251
- *
252
- * It's not a different object, but the field name should imply that this
253
- * object should not be used directly, except to pass to `deployStack`.
254
- */
255
- private readonly deployStackSdkProvider;
256
- private readonly publisherCache;
257
- private _allowCrossAccountAssetPublishing;
258
- private readonly ioHelper;
259
- constructor(props: DeploymentsProps);
260
- /**
261
- * Resolves the environment for a stack.
262
- */
263
- resolveEnvironment(stack: cxapi.CloudFormationStackArtifact): Promise<cxapi.Environment>;
264
- readCurrentTemplateWithNestedStacks(rootStackArtifact: cxapi.CloudFormationStackArtifact, retrieveProcessedTemplate?: boolean): Promise<RootTemplateWithNestedStacks>;
265
- readCurrentTemplate(stackArtifact: cxapi.CloudFormationStackArtifact): Promise<Template>;
266
- resourceIdentifierSummaries(stackArtifact: cxapi.CloudFormationStackArtifact): Promise<ResourceIdentifierSummaries>;
267
- deployStack(options: DeployStackOptions): Promise<DeployStackResult>;
268
- rollbackStack(options: RollbackStackOptions): Promise<RollbackStackResult>;
269
- destroyStack(options: DestroyStackOptions): Promise<void>;
270
- stackExists(options: StackExistsOptions): Promise<boolean>;
271
- /**
272
- * Build a single asset from an asset manifest
273
- *
274
- * If an assert manifest artifact is given, the bootstrap stack version
275
- * will be validated according to the constraints in that manifest artifact.
276
- * If that is not necessary, `'no-version-validation'` can be passed.
277
- */
278
- buildSingleAsset(assetArtifact: cxapi.AssetManifestArtifact | 'no-version-validation', assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: BuildStackAssetsOptions): Promise<void>;
279
- /**
280
- * Publish a single asset from an asset manifest
281
- */
282
- publishSingleAsset(assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: PublishStackAssetsOptions): Promise<void>;
283
- private allowCrossAccountAssetPublishingForEnv;
284
- /**
285
- * Return whether a single asset has been published already
286
- */
287
- isSingleAssetPublished(assetManifest: cdk_assets.AssetManifest, asset: cdk_assets.IManifestEntry, options: PublishStackAssetsOptions): Promise<boolean>;
288
- /**
289
- * Validate that the bootstrap stack has the right version for this stack
290
- *
291
- * Call into envResources.validateVersion, but prepend the stack name in case of failure.
292
- */
293
- private validateBootstrapStackVersion;
294
- private cachedPublisher;
295
- }
296
- export {};