aws-cdk 2.1007.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 (253) hide show
  1. package/THIRD_PARTY_LICENSES +24 -6
  2. package/build-info.json +2 -2
  3. package/db.json.gz +0 -0
  4. package/lib/api/aws-auth.d.ts +1 -0
  5. package/lib/api/{logs/index.js → aws-auth.js} +2 -3
  6. package/lib/api/bootstrap.d.ts +1 -0
  7. package/lib/api/bootstrap.js +18 -0
  8. package/lib/api/cloud-assembly.d.ts +1 -0
  9. package/lib/api/cloud-assembly.js +18 -0
  10. package/lib/api/cloudformation.d.ts +1 -0
  11. package/lib/api/cloudformation.js +18 -0
  12. package/lib/api/context.d.ts +1 -40
  13. package/lib/api/context.js +16 -80
  14. package/lib/api/deployments.d.ts +1 -0
  15. package/lib/api/deployments.js +18 -0
  16. package/lib/api/environment.d.ts +1 -0
  17. package/lib/api/environment.js +18 -0
  18. package/lib/api/garbage-collection.d.ts +1 -0
  19. package/lib/api/garbage-collection.js +18 -0
  20. package/lib/api/hotswap.d.ts +1 -0
  21. package/lib/api/hotswap.js +18 -0
  22. package/lib/api/index.d.ts +5 -1
  23. package/lib/api/index.js +6 -2
  24. package/lib/api/logs-monitor.d.ts +1 -0
  25. package/lib/api/logs-monitor.js +18 -0
  26. package/lib/api/notices.d.ts +1 -0
  27. package/lib/api/notices.js +18 -0
  28. package/lib/api/plugin.d.ts +1 -0
  29. package/lib/api/{garbage-collection/index.js → plugin.js} +2 -2
  30. package/lib/api/resource-import.d.ts +1 -0
  31. package/lib/api/resource-import.js +18 -0
  32. package/lib/api/rwlock.d.ts +1 -0
  33. package/lib/api/{resource-import/index.js → rwlock.js} +2 -3
  34. package/lib/api/settings.d.ts +1 -26
  35. package/lib/api/settings.js +16 -103
  36. package/lib/api/stack-events.d.ts +1 -0
  37. package/lib/api/stack-events.js +18 -0
  38. package/lib/api/tags.d.ts +1 -9
  39. package/lib/api/tags.js +16 -8
  40. package/lib/api/toolkit-info.d.ts +1 -52
  41. package/lib/api/toolkit-info.js +16 -152
  42. package/lib/api/tree.d.ts +1 -31
  43. package/lib/api/tree.js +16 -35
  44. package/lib/api/work-graph.d.ts +1 -0
  45. package/lib/api/work-graph.js +18 -0
  46. package/lib/api-private.d.ts +3 -0
  47. package/lib/api-private.js +22 -0
  48. package/lib/cli/cdk-toolkit.d.ts +6 -5
  49. package/lib/cli/cdk-toolkit.js +74 -44
  50. package/lib/cli/cli.d.ts +1 -1
  51. package/lib/cli/cli.js +21 -19
  52. package/lib/cli/io-host/cli-io-host.js +2 -2
  53. package/lib/cli/pretty-print-error.js +3 -1
  54. package/lib/cli/util/npm.d.ts +4 -1
  55. package/lib/cli/util/npm.js +25 -13
  56. package/lib/cli/version.d.ts +1 -1
  57. package/lib/cli/version.js +21 -25
  58. package/lib/commands/context.js +3 -2
  59. package/lib/commands/init/init.js +3 -2
  60. package/lib/commands/list-stacks.js +4 -4
  61. package/lib/context-providers/ami.d.ts +1 -13
  62. package/lib/context-providers/ami.js +16 -48
  63. package/lib/context-providers/availability-zones.d.ts +1 -13
  64. package/lib/context-providers/availability-zones.js +16 -25
  65. package/lib/context-providers/cc-api-provider.d.ts +1 -30
  66. package/lib/context-providers/cc-api-provider.js +16 -142
  67. package/lib/context-providers/endpoint-service-availability-zones.d.ts +1 -13
  68. package/lib/context-providers/endpoint-service-availability-zones.js +16 -31
  69. package/lib/context-providers/hosted-zones.d.ts +1 -12
  70. package/lib/context-providers/hosted-zones.js +16 -65
  71. package/lib/context-providers/index.d.ts +1 -44
  72. package/lib/context-providers/index.js +15 -126
  73. package/lib/context-providers/keys.d.ts +1 -13
  74. package/lib/context-providers/keys.js +16 -50
  75. package/lib/context-providers/load-balancers.d.ts +1 -20
  76. package/lib/context-providers/load-balancers.js +16 -154
  77. package/lib/context-providers/security-groups.d.ts +1 -9
  78. package/lib/context-providers/security-groups.js +16 -66
  79. package/lib/context-providers/ssm-parameters.d.ts +1 -25
  80. package/lib/context-providers/ssm-parameters.js +16 -57
  81. package/lib/context-providers/vpcs.d.ts +1 -13
  82. package/lib/context-providers/vpcs.js +16 -285
  83. package/lib/cxapp/cloud-assembly.d.ts +79 -0
  84. package/lib/cxapp/cloud-assembly.js +108 -0
  85. package/lib/{api/cxapp → cxapp}/cloud-executable.d.ts +6 -4
  86. package/lib/cxapp/cloud-executable.js +92 -0
  87. package/lib/{api/cxapp → cxapp}/environments.d.ts +1 -2
  88. package/lib/{api/cxapp → cxapp}/environments.js +2 -2
  89. package/lib/cxapp/exec.d.ts +14 -0
  90. package/lib/cxapp/exec.js +157 -0
  91. package/lib/cxapp/index.d.ts +4 -0
  92. package/lib/{api/bootstrap → cxapp}/index.js +5 -3
  93. package/lib/index.js +133605 -124560
  94. package/lib/init-templates/.init-version.json +1 -1
  95. package/lib/init-templates/.recommended-feature-flags.json +2 -1
  96. package/lib/legacy-aws-auth.d.ts +74 -0
  97. package/lib/legacy-aws-auth.js +40 -0
  98. package/lib/legacy-exports-source.d.ts +13 -18
  99. package/lib/legacy-exports-source.js +42 -49
  100. package/lib/legacy-exports.d.ts +3 -6
  101. package/lib/legacy-exports.js +5 -5
  102. package/lib/legacy-types.d.ts +31 -0
  103. package/lib/legacy-types.js +3 -0
  104. package/package.json +8 -7
  105. package/lib/api/aws-auth/account-cache.d.ts +0 -36
  106. package/lib/api/aws-auth/account-cache.js +0 -99
  107. package/lib/api/aws-auth/awscli-compatible.d.ts +0 -42
  108. package/lib/api/aws-auth/awscli-compatible.js +0 -263
  109. package/lib/api/aws-auth/cached.d.ts +0 -11
  110. package/lib/api/aws-auth/cached.js +0 -26
  111. package/lib/api/aws-auth/credential-plugins.d.ts +0 -36
  112. package/lib/api/aws-auth/credential-plugins.js +0 -152
  113. package/lib/api/aws-auth/index.d.ts +0 -3
  114. package/lib/api/aws-auth/index.js +0 -20
  115. package/lib/api/aws-auth/provider-caching.d.ts +0 -13
  116. package/lib/api/aws-auth/provider-caching.js +0 -24
  117. package/lib/api/aws-auth/sdk-logger.d.ts +0 -69
  118. package/lib/api/aws-auth/sdk-logger.js +0 -124
  119. package/lib/api/aws-auth/sdk-provider.d.ts +0 -207
  120. package/lib/api/aws-auth/sdk-provider.js +0 -357
  121. package/lib/api/aws-auth/sdk.d.ts +0 -229
  122. package/lib/api/aws-auth/sdk.js +0 -373
  123. package/lib/api/aws-auth/tracing.d.ts +0 -11
  124. package/lib/api/aws-auth/tracing.js +0 -60
  125. package/lib/api/aws-auth/user-agent.d.ts +0 -7
  126. package/lib/api/aws-auth/user-agent.js +0 -20
  127. package/lib/api/aws-auth/util.d.ts +0 -6
  128. package/lib/api/aws-auth/util.js +0 -23
  129. package/lib/api/bootstrap/bootstrap-environment.d.ts +0 -35
  130. package/lib/api/bootstrap/bootstrap-environment.js +0 -321
  131. package/lib/api/bootstrap/bootstrap-props.d.ts +0 -130
  132. package/lib/api/bootstrap/bootstrap-props.js +0 -14
  133. package/lib/api/bootstrap/deploy-bootstrap.d.ts +0 -39
  134. package/lib/api/bootstrap/deploy-bootstrap.js +0 -141
  135. package/lib/api/bootstrap/index.d.ts +0 -2
  136. package/lib/api/bootstrap/legacy-template.d.ts +0 -2
  137. package/lib/api/bootstrap/legacy-template.js +0 -82
  138. package/lib/api/cloudformation/evaluate-cloudformation-template.d.ts +0 -85
  139. package/lib/api/cloudformation/evaluate-cloudformation-template.js +0 -440
  140. package/lib/api/cloudformation/index.d.ts +0 -4
  141. package/lib/api/cloudformation/index.js +0 -21
  142. package/lib/api/cloudformation/nested-stack-helpers.d.ts +0 -19
  143. package/lib/api/cloudformation/nested-stack-helpers.js +0 -86
  144. package/lib/api/cloudformation/stack-helpers.d.ts +0 -88
  145. package/lib/api/cloudformation/stack-helpers.js +0 -158
  146. package/lib/api/cloudformation/template-body-parameter.d.ts +0 -22
  147. package/lib/api/cloudformation/template-body-parameter.js +0 -104
  148. package/lib/api/cxapp/cloud-assembly.d.ts +0 -137
  149. package/lib/api/cxapp/cloud-assembly.js +0 -305
  150. package/lib/api/cxapp/cloud-executable.js +0 -89
  151. package/lib/api/cxapp/exec.d.ts +0 -57
  152. package/lib/api/cxapp/exec.js +0 -279
  153. package/lib/api/deployments/asset-manifest-builder.d.ts +0 -8
  154. package/lib/api/deployments/asset-manifest-builder.js +0 -35
  155. package/lib/api/deployments/asset-publishing.d.ts +0 -60
  156. package/lib/api/deployments/asset-publishing.js +0 -141
  157. package/lib/api/deployments/assets.d.ts +0 -11
  158. package/lib/api/deployments/assets.js +0 -109
  159. package/lib/api/deployments/cfn-api.d.ts +0 -138
  160. package/lib/api/deployments/cfn-api.js +0 -438
  161. package/lib/api/deployments/checks.d.ts +0 -9
  162. package/lib/api/deployments/checks.js +0 -72
  163. package/lib/api/deployments/deploy-stack.d.ts +0 -155
  164. package/lib/api/deployments/deploy-stack.js +0 -478
  165. package/lib/api/deployments/deployment-method.d.ts +0 -24
  166. package/lib/api/deployments/deployment-method.js +0 -3
  167. package/lib/api/deployments/deployment-result.d.ts +0 -21
  168. package/lib/api/deployments/deployment-result.js +0 -10
  169. package/lib/api/deployments/deployments.d.ts +0 -296
  170. package/lib/api/deployments/deployments.js +0 -331
  171. package/lib/api/deployments/hotswap-deployments.d.ts +0 -17
  172. package/lib/api/deployments/hotswap-deployments.js +0 -441
  173. package/lib/api/deployments/index.d.ts +0 -5
  174. package/lib/api/deployments/index.js +0 -22
  175. package/lib/api/environment/environment-access.d.ts +0 -140
  176. package/lib/api/environment/environment-access.js +0 -202
  177. package/lib/api/environment/environment-resources.d.ts +0 -75
  178. package/lib/api/environment/environment-resources.js +0 -207
  179. package/lib/api/environment/index.d.ts +0 -3
  180. package/lib/api/environment/index.js +0 -20
  181. package/lib/api/environment/placeholders.d.ts +0 -10
  182. package/lib/api/environment/placeholders.js +0 -23
  183. package/lib/api/garbage-collection/garbage-collector.d.ts +0 -158
  184. package/lib/api/garbage-collection/garbage-collector.js +0 -599
  185. package/lib/api/garbage-collection/index.d.ts +0 -1
  186. package/lib/api/garbage-collection/progress-printer.d.ts +0 -23
  187. package/lib/api/garbage-collection/progress-printer.js +0 -70
  188. package/lib/api/garbage-collection/stack-refresh.d.ts +0 -49
  189. package/lib/api/garbage-collection/stack-refresh.js +0 -151
  190. package/lib/api/hotswap/appsync-mapping-templates.d.ts +0 -4
  191. package/lib/api/hotswap/appsync-mapping-templates.js +0 -162
  192. package/lib/api/hotswap/code-build-projects.d.ts +0 -4
  193. package/lib/api/hotswap/code-build-projects.js +0 -62
  194. package/lib/api/hotswap/common.d.ts +0 -89
  195. package/lib/api/hotswap/common.js +0 -128
  196. package/lib/api/hotswap/ecs-services.d.ts +0 -4
  197. package/lib/api/hotswap/ecs-services.js +0 -159
  198. package/lib/api/hotswap/lambda-functions.d.ts +0 -4
  199. package/lib/api/hotswap/lambda-functions.js +0 -297
  200. package/lib/api/hotswap/s3-bucket-deployments.d.ts +0 -5
  201. package/lib/api/hotswap/s3-bucket-deployments.js +0 -117
  202. package/lib/api/hotswap/stepfunctions-state-machines.d.ts +0 -4
  203. package/lib/api/hotswap/stepfunctions-state-machines.js +0 -48
  204. package/lib/api/logs/find-cloudwatch-logs.d.ts +0 -25
  205. package/lib/api/logs/find-cloudwatch-logs.js +0 -95
  206. package/lib/api/logs/index.d.ts +0 -2
  207. package/lib/api/logs/logs-monitor.d.ts +0 -76
  208. package/lib/api/logs/logs-monitor.js +0 -187
  209. package/lib/api/plugin/context-provider-plugin.d.ts +0 -6
  210. package/lib/api/plugin/context-provider-plugin.js +0 -7
  211. package/lib/api/plugin/index.d.ts +0 -3
  212. package/lib/api/plugin/index.js +0 -20
  213. package/lib/api/plugin/mode.d.ts +0 -4
  214. package/lib/api/plugin/mode.js +0 -9
  215. package/lib/api/plugin/plugin.d.ts +0 -63
  216. package/lib/api/plugin/plugin.js +0 -102
  217. package/lib/api/resource-import/importer.d.ts +0 -215
  218. package/lib/api/resource-import/importer.js +0 -322
  219. package/lib/api/resource-import/index.d.ts +0 -2
  220. package/lib/api/resource-import/migrator.d.ts +0 -26
  221. package/lib/api/resource-import/migrator.js +0 -71
  222. package/lib/api/stack-events/index.d.ts +0 -3
  223. package/lib/api/stack-events/index.js +0 -20
  224. package/lib/api/stack-events/stack-activity-monitor.d.ts +0 -100
  225. package/lib/api/stack-events/stack-activity-monitor.js +0 -142
  226. package/lib/api/stack-events/stack-event-poller.d.ts +0 -69
  227. package/lib/api/stack-events/stack-event-poller.js +0 -128
  228. package/lib/api/stack-events/stack-progress-monitor.d.ts +0 -48
  229. package/lib/api/stack-events/stack-progress-monitor.js +0 -94
  230. package/lib/api/stack-events/stack-status.d.ts +0 -42
  231. package/lib/api/stack-events/stack-status.js +0 -88
  232. package/lib/api/util/rwlock.d.ts +0 -65
  233. package/lib/api/util/rwlock.js +0 -179
  234. package/lib/api/work-graph/index.d.ts +0 -3
  235. package/lib/api/work-graph/index.js +0 -20
  236. package/lib/api/work-graph/work-graph-builder.d.ts +0 -34
  237. package/lib/api/work-graph/work-graph-builder.js +0 -168
  238. package/lib/api/work-graph/work-graph-types.d.ts +0 -50
  239. package/lib/api/work-graph/work-graph-types.js +0 -13
  240. package/lib/api/work-graph/work-graph.d.ts +0 -72
  241. package/lib/api/work-graph/work-graph.js +0 -346
  242. package/lib/cli/activity-printer/base.d.ts +0 -50
  243. package/lib/cli/activity-printer/base.js +0 -114
  244. package/lib/cli/activity-printer/current.d.ts +0 -26
  245. package/lib/cli/activity-printer/current.js +0 -118
  246. package/lib/cli/activity-printer/display.d.ts +0 -13
  247. package/lib/cli/activity-printer/display.js +0 -80
  248. package/lib/cli/activity-printer/history.d.ts +0 -32
  249. package/lib/cli/activity-printer/history.js +0 -108
  250. package/lib/cli/activity-printer/index.d.ts +0 -3
  251. package/lib/cli/activity-printer/index.js +0 -20
  252. package/lib/notices.d.ts +0 -203
  253. 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,eyJ2ZXJzaW9uIjozL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2VzPzogYm9vbGVhbjtcbn1cbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwbG95bWVudC1yZXN1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXBsb3ltZW50LXJlc3VsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQTRCQSxrRkFJQztBQWhDRCwwRUFBZ0Y7QUE0QmhGLFNBQWdCLG1DQUFtQyxDQUFDLENBQW9CO0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XG4gIHJlYWRvbmx5IHR5cGU6ICdmYWlscGF1c2VkLW5lZWQtcm9sbGJhY2stZmlyc3QnO1xuICByZWFkb25seSByZWFzb246ICdub3Qtbm9yb2xsYmFjaycgfCAncmVwbGFjZW1lbnQnO1xuICByZWFkb25seSBzdGF0dXM6IHN0cmluZztcbn1cblxuLyoqIFRoZSB1cGNvbWluZyBjaGFuZ2UgaGFzIGEgcmVwbGFjZW1lbnQsIHdoaWNoIHJlcXVpcmVzIGRlcGxveWluZyB3aXRoIC0tcm9sbGJhY2sgKi9cbmV4cG9ydCBpbnRlcmZhY2UgUmVwbGFjZW1lbnRSZXF1aXJlc1JvbGxiYWNrU3RhY2tSZXN1bHQge1xuICByZWFkb25seSB0eXBlOiAncmVwbGFjZW1lbnQtcmVxdWlyZXMtcm9sbGJhY2snO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXNzZXJ0SXNTdWNjZXNzZnVsRGVwbG95U3RhY2tSZXN1bHQoeDogRGVwbG95U3RhY2tSZXN1bHQpOiBhc3NlcnRzIHggaXMgU3VjY2Vzc2Z1bERlcGxveVN0YWNrUmVzdWx0IHtcbiAgaWYgKHgudHlwZSAhPT0gJ2RpZC1kZXBsb3ktc3RhY2snKSB7XG4gICAgdGhyb3cgbmV3IFRvb2xraXRFcnJvcihgVW5leHBlY3RlZCBkZXBsb3lTdGFjayByZXN1bHQuIFRoaXMgc2hvdWxkIG5vdCBoYXBwZW46ICR7SlNPTi5zdHJpbmdpZnkoeCl9LiBJZiB5b3UgYXJlIHNlZWluZyB0aGlzIGVycm9yLCBwbGVhc2UgcmVwb3J0IGl0IGF0IGh0dHBzOi8vZ2l0aHViLmNvbS9hd3MvYXdzLWNkay9pc3N1ZXMvbmV3L2Nob29zZS5gKTtcbiAgfVxufVxuIl19
@@ -1,296 +0,0 @@
1
- import type * as cxapi from '@aws-cdk/cx-api';
2
- 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 {};