@aws-cdk/toolkit-lib 0.1.4 → 0.1.5
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 +2 -2
- package/lib/actions/bootstrap/index.d.ts +1 -1
- package/lib/actions/bootstrap/index.js +1 -1
- package/lib/actions/bootstrap/private/helpers.d.ts +1 -1
- package/lib/actions/bootstrap/private/helpers.js +1 -1
- package/lib/actions/deploy/index.d.ts +4 -2
- package/lib/actions/deploy/index.js +4 -1
- package/lib/actions/deploy/private/deploy-options.d.ts +1 -1
- package/lib/actions/deploy/private/deploy-options.js +1 -1
- package/lib/actions/deploy/private/helpers.d.ts +3 -2
- package/lib/actions/deploy/private/helpers.js +1 -1
- package/lib/actions/diff/private/helpers.d.ts +5 -5
- package/lib/actions/diff/private/helpers.js +13 -11
- package/lib/actions/list/index.d.ts +0 -4
- package/lib/actions/list/index.js +1 -1
- package/lib/api/aws-cdk.d.ts +3 -4
- package/lib/api/aws-cdk.js +948 -548
- package/lib/api/aws-cdk.js.map +4 -4
- package/lib/api/cloud-assembly/index.d.ts +1 -1
- package/lib/api/cloud-assembly/index.js +2 -2
- package/lib/api/cloud-assembly/private/cached-source.d.ts +2 -2
- package/lib/api/cloud-assembly/private/cached-source.js +1 -1
- package/lib/api/cloud-assembly/private/context-aware-source.d.ts +4 -4
- package/lib/api/cloud-assembly/private/context-aware-source.js +11 -12
- package/lib/api/cloud-assembly/private/identity-source.d.ts +1 -1
- package/lib/api/cloud-assembly/private/identity-source.js +1 -1
- package/lib/api/cloud-assembly/private/prepare-source.d.ts +5 -5
- package/lib/api/cloud-assembly/private/prepare-source.js +8 -6
- package/lib/api/cloud-assembly/private/source-builder.d.ts +4 -4
- package/lib/api/cloud-assembly/private/source-builder.js +24 -12
- package/lib/api/cloud-assembly/private/stack-assembly.d.ts +3 -3
- package/lib/api/cloud-assembly/private/stack-assembly.js +1 -1
- package/lib/api/cloud-assembly/private/stack-selectors.d.ts +1 -1
- package/lib/api/cloud-assembly/private/stack-selectors.js +1 -1
- package/lib/api/cloud-assembly/source-builder.d.ts +36 -0
- package/lib/api/cloud-assembly/source-builder.js +1 -1
- package/lib/api/cloud-assembly/stack-selector.d.ts +2 -81
- package/lib/api/cloud-assembly/stack-selector.js +5 -62
- package/lib/api/io/private/index.d.ts +3 -5
- package/lib/api/io/private/index.js +7 -6
- package/lib/api/io/private/io-host-wrappers.d.ts +17 -0
- package/lib/api/io/private/io-host-wrappers.js +74 -0
- package/lib/api/io/private/sdk-logger.d.ts +3 -0
- package/lib/api/io/private/sdk-logger.js +124 -0
- package/lib/api/shared-private.js +655 -26
- package/lib/api/shared-private.js.map +4 -4
- package/lib/api/shared-public.d.ts +2365 -31
- package/lib/api/shared-public.js +78 -5
- package/lib/api/shared-public.js.map +4 -4
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -1
- package/lib/private/util.js +9 -4
- package/lib/private/util.js.map +2 -2
- package/lib/toolkit/index.d.ts +1 -1
- package/lib/toolkit/index.js +2 -2
- package/lib/toolkit/private/index.d.ts +4 -4
- package/lib/toolkit/private/index.js +1 -1
- package/lib/toolkit/toolkit.d.ts +6 -8
- package/lib/toolkit/toolkit.js +148 -122
- package/lib/util/concurrency.d.ts +1 -1
- package/lib/util/concurrency.js +2 -2
- package/package.json +5 -4
- package/CODE_REGISTRY.md +0 -38
- package/lib/api/cloud-assembly/context.d.ts +0 -9
- package/lib/api/cloud-assembly/context.js +0 -3
- package/lib/api/io/private/codes.d.ts +0 -47
- package/lib/api/io/private/codes.js +0 -175
- package/lib/api/io/private/level-priority.d.ts +0 -11
- package/lib/api/io/private/level-priority.js +0 -33
- package/lib/api/io/private/logger.d.ts +0 -31
- package/lib/api/io/private/logger.js +0 -190
- package/lib/api/io/private/messages.d.ts +0 -62
- package/lib/api/io/private/messages.js +0 -162
- package/lib/api/io/private/timer.d.ts +0 -29
- package/lib/api/io/private/timer.js +0 -55
- package/lib/toolkit/types.d.ts +0 -76
- package/lib/toolkit/types.js +0 -3
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,68 +17,695 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// lib/api/shared-private.ts
|
|
21
31
|
var shared_private_exports = {};
|
|
22
32
|
__export(shared_private_exports, {
|
|
33
|
+
IO: () => IO,
|
|
34
|
+
IoHelper: () => IoHelper,
|
|
35
|
+
SPAN: () => SPAN,
|
|
36
|
+
SpanMaker: () => SpanMaker,
|
|
37
|
+
asIoHelper: () => asIoHelper,
|
|
38
|
+
confirm: () => confirm,
|
|
23
39
|
debug: () => debug,
|
|
24
40
|
error: () => error,
|
|
25
41
|
info: () => info,
|
|
42
|
+
isMessageRelevantForLevel: () => isMessageRelevantForLevel,
|
|
26
43
|
result: () => result,
|
|
27
44
|
trace: () => trace,
|
|
28
|
-
warn: () => warn
|
|
29
|
-
withAction: () => withAction
|
|
45
|
+
warn: () => warn
|
|
30
46
|
});
|
|
31
47
|
module.exports = __toCommonJS(shared_private_exports);
|
|
32
48
|
|
|
33
|
-
// ../tmp-toolkit-helpers/src/api/io/private/
|
|
34
|
-
|
|
49
|
+
// ../tmp-toolkit-helpers/src/api/io/private/span.ts
|
|
50
|
+
var util = __toESM(require("node:util"));
|
|
51
|
+
var uuid = __toESM(require("uuid"));
|
|
52
|
+
|
|
53
|
+
// ../tmp-toolkit-helpers/src/util/archive.ts
|
|
54
|
+
var glob = __toESM(require("glob"));
|
|
55
|
+
var archiver = require("archiver");
|
|
56
|
+
|
|
57
|
+
// ../tmp-toolkit-helpers/src/api/toolkit-error.ts
|
|
58
|
+
var TOOLKIT_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.ToolkitError");
|
|
59
|
+
var AUTHENTICATION_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.AuthenticationError");
|
|
60
|
+
var ASSEMBLY_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.AssemblyError");
|
|
61
|
+
var CONTEXT_PROVIDER_ERROR_SYMBOL = Symbol.for("@aws-cdk/toolkit-lib.ContextProviderError");
|
|
62
|
+
|
|
63
|
+
// ../tmp-toolkit-helpers/src/util/types.ts
|
|
64
|
+
var isArray = Array.isArray;
|
|
65
|
+
|
|
66
|
+
// ../tmp-toolkit-helpers/src/util/yaml-cfn.ts
|
|
67
|
+
var yaml = __toESM(require("yaml"));
|
|
68
|
+
var yaml_types = __toESM(require("yaml/types"));
|
|
69
|
+
function makeTagForCfnIntrinsic(intrinsicName, addFnPrefix) {
|
|
35
70
|
return {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...msg,
|
|
39
|
-
action
|
|
40
|
-
});
|
|
71
|
+
identify(value) {
|
|
72
|
+
return typeof value === "string";
|
|
41
73
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
74
|
+
tag: `!${intrinsicName}`,
|
|
75
|
+
resolve: (_doc, cstNode) => {
|
|
76
|
+
const ret = {};
|
|
77
|
+
ret[addFnPrefix ? `Fn::${intrinsicName}` : intrinsicName] = // the +1 is to account for the ! the short form begins with
|
|
78
|
+
parseYamlStrWithCfnTags(cstNode.toString().substring(intrinsicName.length + 1));
|
|
79
|
+
return ret;
|
|
47
80
|
}
|
|
48
81
|
};
|
|
49
82
|
}
|
|
83
|
+
var shortForms = [
|
|
84
|
+
"Base64",
|
|
85
|
+
"Cidr",
|
|
86
|
+
"FindInMap",
|
|
87
|
+
"GetAZs",
|
|
88
|
+
"ImportValue",
|
|
89
|
+
"Join",
|
|
90
|
+
"Sub",
|
|
91
|
+
"Select",
|
|
92
|
+
"Split",
|
|
93
|
+
"Transform",
|
|
94
|
+
"And",
|
|
95
|
+
"Equals",
|
|
96
|
+
"If",
|
|
97
|
+
"Not",
|
|
98
|
+
"Or",
|
|
99
|
+
"GetAtt"
|
|
100
|
+
].map((name) => makeTagForCfnIntrinsic(name, true)).concat(
|
|
101
|
+
makeTagForCfnIntrinsic("Ref", false),
|
|
102
|
+
makeTagForCfnIntrinsic("Condition", false)
|
|
103
|
+
);
|
|
104
|
+
function parseYamlStrWithCfnTags(text) {
|
|
105
|
+
return yaml.parse(text, {
|
|
106
|
+
customTags: shortForms,
|
|
107
|
+
schema: "core"
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// ../tmp-toolkit-helpers/src/util/string-manipulation.ts
|
|
112
|
+
function formatTime(num) {
|
|
113
|
+
return roundPercentage(millisecondsToSeconds(num));
|
|
114
|
+
}
|
|
115
|
+
function roundPercentage(num) {
|
|
116
|
+
return Math.round(100 * num) / 100;
|
|
117
|
+
}
|
|
118
|
+
function millisecondsToSeconds(num) {
|
|
119
|
+
return num / 1e3;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// ../tmp-toolkit-helpers/src/util/version-range.ts
|
|
123
|
+
var semver = __toESM(require("semver"));
|
|
124
|
+
|
|
125
|
+
// ../tmp-toolkit-helpers/src/api/io/private/span.ts
|
|
126
|
+
var SpanMaker = class {
|
|
127
|
+
definition;
|
|
128
|
+
ioHelper;
|
|
129
|
+
constructor(ioHelper, definition) {
|
|
130
|
+
this.definition = definition;
|
|
131
|
+
this.ioHelper = ioHelper;
|
|
132
|
+
}
|
|
133
|
+
async begin(first, second) {
|
|
134
|
+
const spanId = uuid.v4();
|
|
135
|
+
const startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
136
|
+
const notify = (msg) => {
|
|
137
|
+
return this.ioHelper.notify(withSpanId(spanId, msg));
|
|
138
|
+
};
|
|
139
|
+
const startMsg = second ? first : "Starting %s ...";
|
|
140
|
+
const startPayload = second ?? first;
|
|
141
|
+
await notify(this.definition.start.msg(
|
|
142
|
+
util.format(startMsg, this.definition.name),
|
|
143
|
+
startPayload
|
|
144
|
+
));
|
|
145
|
+
const timingMsg = "\n\u2728 %s time: %ds\n";
|
|
146
|
+
const time = () => {
|
|
147
|
+
const elapsedTime = (/* @__PURE__ */ new Date()).getTime() - startTime;
|
|
148
|
+
return {
|
|
149
|
+
asMs: elapsedTime,
|
|
150
|
+
asSec: formatTime(elapsedTime)
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
elapsedTime: async (msg) => {
|
|
155
|
+
if (msg) {
|
|
156
|
+
await notify({
|
|
157
|
+
...msg,
|
|
158
|
+
data: msg.data
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
return time();
|
|
162
|
+
},
|
|
163
|
+
notify: async (msg) => {
|
|
164
|
+
await notify(msg);
|
|
165
|
+
},
|
|
166
|
+
timing: async (maker, message2) => {
|
|
167
|
+
const duration = time();
|
|
168
|
+
const endMsg = message2 ? message2 : timingMsg;
|
|
169
|
+
await notify(maker.msg(util.format(endMsg, this.definition.name, duration.asSec), {
|
|
170
|
+
duration: duration.asMs
|
|
171
|
+
}));
|
|
172
|
+
return duration;
|
|
173
|
+
},
|
|
174
|
+
end: async (a, b) => {
|
|
175
|
+
const duration = time();
|
|
176
|
+
const endMsg = b ? a : timingMsg;
|
|
177
|
+
const endPayload = b ?? a;
|
|
178
|
+
await notify(this.definition.end.msg(
|
|
179
|
+
util.format(endMsg, this.definition.name, duration.asSec),
|
|
180
|
+
{
|
|
181
|
+
duration: duration.asMs,
|
|
182
|
+
...endPayload
|
|
183
|
+
}
|
|
184
|
+
));
|
|
185
|
+
return duration;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
function withSpanId(span, message2) {
|
|
191
|
+
return {
|
|
192
|
+
...message2,
|
|
193
|
+
span
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ../tmp-toolkit-helpers/src/api/io/private/io-helper.ts
|
|
198
|
+
var IoHelper = class _IoHelper {
|
|
199
|
+
static fromIoHost(ioHost, action) {
|
|
200
|
+
return new _IoHelper(ioHost, action);
|
|
201
|
+
}
|
|
202
|
+
ioHost;
|
|
203
|
+
action;
|
|
204
|
+
constructor(ioHost, action) {
|
|
205
|
+
this.ioHost = ioHost;
|
|
206
|
+
this.action = action;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Forward a message to the IoHost, while injection the current action
|
|
210
|
+
*/
|
|
211
|
+
notify(msg) {
|
|
212
|
+
return this.ioHost.notify({
|
|
213
|
+
...msg,
|
|
214
|
+
action: this.action
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Forward a request to the IoHost, while injection the current action
|
|
219
|
+
*/
|
|
220
|
+
requestResponse(msg) {
|
|
221
|
+
return this.ioHost.requestResponse({
|
|
222
|
+
...msg,
|
|
223
|
+
action: this.action
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Create a new marker from a given registry entry
|
|
228
|
+
*/
|
|
229
|
+
span(definition) {
|
|
230
|
+
return new SpanMaker(this, definition);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
function asIoHelper(ioHost, action) {
|
|
234
|
+
return IoHelper.fromIoHost(ioHost, action);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// ../tmp-toolkit-helpers/src/api/io/private/level-priority.ts
|
|
238
|
+
var levels = [
|
|
239
|
+
"trace",
|
|
240
|
+
"debug",
|
|
241
|
+
"info",
|
|
242
|
+
"warn",
|
|
243
|
+
"result",
|
|
244
|
+
"error"
|
|
245
|
+
];
|
|
246
|
+
var orderedLevels = Object.fromEntries(Object.entries(levels).map((a) => a.reverse()));
|
|
247
|
+
function compareFn(a, b) {
|
|
248
|
+
return orderedLevels[a] - orderedLevels[b];
|
|
249
|
+
}
|
|
250
|
+
function isMessageRelevantForLevel(msg, level) {
|
|
251
|
+
return compareFn(msg.level, level) >= 0;
|
|
252
|
+
}
|
|
50
253
|
|
|
51
254
|
// ../tmp-toolkit-helpers/src/api/io/private/message-maker.ts
|
|
52
|
-
function
|
|
53
|
-
const
|
|
255
|
+
function message(level, details) {
|
|
256
|
+
const maker = (text, data) => ({
|
|
54
257
|
time: /* @__PURE__ */ new Date(),
|
|
55
258
|
level,
|
|
56
259
|
code: details.code,
|
|
57
|
-
message,
|
|
260
|
+
message: text,
|
|
58
261
|
data
|
|
59
262
|
});
|
|
60
263
|
return {
|
|
61
264
|
...details,
|
|
62
265
|
level,
|
|
63
|
-
msg
|
|
266
|
+
msg: maker,
|
|
267
|
+
is: (m) => m.code === details.code
|
|
64
268
|
};
|
|
65
269
|
}
|
|
66
|
-
var trace = (details) =>
|
|
67
|
-
var debug = (details) =>
|
|
68
|
-
var info = (details) =>
|
|
69
|
-
var warn = (details) =>
|
|
70
|
-
var error = (details) =>
|
|
71
|
-
var result = (details) =>
|
|
270
|
+
var trace = (details) => message("trace", details);
|
|
271
|
+
var debug = (details) => message("debug", details);
|
|
272
|
+
var info = (details) => message("info", details);
|
|
273
|
+
var warn = (details) => message("warn", details);
|
|
274
|
+
var error = (details) => message("error", details);
|
|
275
|
+
var result = (details) => message("result", details);
|
|
276
|
+
function request(level, details) {
|
|
277
|
+
const maker = (text, data) => ({
|
|
278
|
+
time: /* @__PURE__ */ new Date(),
|
|
279
|
+
level,
|
|
280
|
+
code: details.code,
|
|
281
|
+
message: text,
|
|
282
|
+
data,
|
|
283
|
+
defaultResponse: details.defaultResponse
|
|
284
|
+
});
|
|
285
|
+
return {
|
|
286
|
+
...details,
|
|
287
|
+
level,
|
|
288
|
+
req: maker
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
var confirm = (details) => request("info", {
|
|
292
|
+
...details,
|
|
293
|
+
defaultResponse: true
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
// ../tmp-toolkit-helpers/src/api/io/private/messages.ts
|
|
297
|
+
var IO = {
|
|
298
|
+
// Defaults
|
|
299
|
+
DEFAULT_TOOLKIT_INFO: info({
|
|
300
|
+
code: "CDK_TOOLKIT_I0000",
|
|
301
|
+
description: "Default info messages emitted from the Toolkit"
|
|
302
|
+
}),
|
|
303
|
+
DEFAULT_TOOLKIT_DEBUG: debug({
|
|
304
|
+
code: "CDK_TOOLKIT_I0000",
|
|
305
|
+
description: "Default debug messages emitted from the Toolkit"
|
|
306
|
+
}),
|
|
307
|
+
DEFAULT_TOOLKIT_WARN: warn({
|
|
308
|
+
code: "CDK_TOOLKIT_W0000",
|
|
309
|
+
description: "Default warning messages emitted from the Toolkit"
|
|
310
|
+
}),
|
|
311
|
+
// 1: Synth
|
|
312
|
+
CDK_TOOLKIT_I1000: info({
|
|
313
|
+
code: "CDK_TOOLKIT_I1000",
|
|
314
|
+
description: "Provides synthesis times.",
|
|
315
|
+
interface: "Duration"
|
|
316
|
+
}),
|
|
317
|
+
CDK_TOOLKIT_I1001: trace({
|
|
318
|
+
code: "CDK_TOOLKIT_I1001",
|
|
319
|
+
description: "Cloud Assembly synthesis is starting",
|
|
320
|
+
interface: "StackSelectionDetails"
|
|
321
|
+
}),
|
|
322
|
+
CDK_TOOLKIT_I1901: result({
|
|
323
|
+
code: "CDK_TOOLKIT_I1901",
|
|
324
|
+
description: "Provides stack data",
|
|
325
|
+
interface: "StackAndAssemblyData"
|
|
326
|
+
}),
|
|
327
|
+
CDK_TOOLKIT_I1902: result({
|
|
328
|
+
code: "CDK_TOOLKIT_I1902",
|
|
329
|
+
description: "Successfully deployed stacks",
|
|
330
|
+
interface: "AssemblyData"
|
|
331
|
+
}),
|
|
332
|
+
// 2: List
|
|
333
|
+
CDK_TOOLKIT_I2901: result({
|
|
334
|
+
code: "CDK_TOOLKIT_I2901",
|
|
335
|
+
description: "Provides details on the selected stacks and their dependencies",
|
|
336
|
+
interface: "StackDetailsPayload"
|
|
337
|
+
}),
|
|
338
|
+
// 3: Import & Migrate
|
|
339
|
+
CDK_TOOLKIT_E3900: error({
|
|
340
|
+
code: "CDK_TOOLKIT_E3900",
|
|
341
|
+
description: "Resource import failed"
|
|
342
|
+
}),
|
|
343
|
+
// 4: Diff
|
|
344
|
+
// 5: Deploy & Watch
|
|
345
|
+
CDK_TOOLKIT_I5000: info({
|
|
346
|
+
code: "CDK_TOOLKIT_I5000",
|
|
347
|
+
description: "Provides deployment times",
|
|
348
|
+
interface: "Duration"
|
|
349
|
+
}),
|
|
350
|
+
CDK_TOOLKIT_I5001: info({
|
|
351
|
+
code: "CDK_TOOLKIT_I5001",
|
|
352
|
+
description: "Provides total time in deploy action, including synth and rollback",
|
|
353
|
+
interface: "Duration"
|
|
354
|
+
}),
|
|
355
|
+
CDK_TOOLKIT_I5002: info({
|
|
356
|
+
code: "CDK_TOOLKIT_I5002",
|
|
357
|
+
description: "Provides time for resource migration"
|
|
358
|
+
}),
|
|
359
|
+
CDK_TOOLKIT_W5021: warn({
|
|
360
|
+
code: "CDK_TOOLKIT_W5021",
|
|
361
|
+
description: "Empty non-existent stack, deployment is skipped"
|
|
362
|
+
}),
|
|
363
|
+
CDK_TOOLKIT_W5022: warn({
|
|
364
|
+
code: "CDK_TOOLKIT_W5022",
|
|
365
|
+
description: "Empty existing stack, stack will be destroyed"
|
|
366
|
+
}),
|
|
367
|
+
CDK_TOOLKIT_I5031: info({
|
|
368
|
+
code: "CDK_TOOLKIT_I5031",
|
|
369
|
+
description: "Informs about any log groups that are traced as part of the deployment"
|
|
370
|
+
}),
|
|
371
|
+
CDK_TOOLKIT_I5032: debug({
|
|
372
|
+
code: "CDK_TOOLKIT_I5032",
|
|
373
|
+
description: "Start monitoring log groups",
|
|
374
|
+
interface: "CloudWatchLogMonitorControlEvent"
|
|
375
|
+
}),
|
|
376
|
+
CDK_TOOLKIT_I5033: info({
|
|
377
|
+
code: "CDK_TOOLKIT_I5033",
|
|
378
|
+
description: "A log event received from Cloud Watch",
|
|
379
|
+
interface: "CloudWatchLogEvent"
|
|
380
|
+
}),
|
|
381
|
+
CDK_TOOLKIT_I5034: debug({
|
|
382
|
+
code: "CDK_TOOLKIT_I5034",
|
|
383
|
+
description: "Stop monitoring log groups",
|
|
384
|
+
interface: "CloudWatchLogMonitorControlEvent"
|
|
385
|
+
}),
|
|
386
|
+
CDK_TOOLKIT_E5035: error({
|
|
387
|
+
code: "CDK_TOOLKIT_E5035",
|
|
388
|
+
description: "A log monitoring error",
|
|
389
|
+
interface: "ErrorPayload"
|
|
390
|
+
}),
|
|
391
|
+
CDK_TOOLKIT_I5050: confirm({
|
|
392
|
+
code: "CDK_TOOLKIT_I5050",
|
|
393
|
+
description: "Confirm rollback during deployment",
|
|
394
|
+
interface: "ConfirmationRequest"
|
|
395
|
+
}),
|
|
396
|
+
CDK_TOOLKIT_I5060: confirm({
|
|
397
|
+
code: "CDK_TOOLKIT_I5060",
|
|
398
|
+
description: "Confirm deploy security sensitive changes",
|
|
399
|
+
interface: "DeployConfirmationRequest"
|
|
400
|
+
}),
|
|
401
|
+
CDK_TOOLKIT_I5100: info({
|
|
402
|
+
code: "CDK_TOOLKIT_I5100",
|
|
403
|
+
description: "Stack deploy progress",
|
|
404
|
+
interface: "StackDeployProgress"
|
|
405
|
+
}),
|
|
406
|
+
// Assets
|
|
407
|
+
CDK_TOOLKIT_I5210: trace({
|
|
408
|
+
code: "CDK_TOOLKIT_I5210",
|
|
409
|
+
description: "Started building a specific asset",
|
|
410
|
+
interface: "BuildAsset"
|
|
411
|
+
}),
|
|
412
|
+
CDK_TOOLKIT_I5211: trace({
|
|
413
|
+
code: "CDK_TOOLKIT_I5211",
|
|
414
|
+
description: "Building the asset has completed",
|
|
415
|
+
interface: "Duration"
|
|
416
|
+
}),
|
|
417
|
+
CDK_TOOLKIT_I5220: trace({
|
|
418
|
+
code: "CDK_TOOLKIT_I5220",
|
|
419
|
+
description: "Started publishing a specific asset",
|
|
420
|
+
interface: "PublishAsset"
|
|
421
|
+
}),
|
|
422
|
+
CDK_TOOLKIT_I5221: trace({
|
|
423
|
+
code: "CDK_TOOLKIT_I5221",
|
|
424
|
+
description: "Publishing the asset has completed",
|
|
425
|
+
interface: "Duration"
|
|
426
|
+
}),
|
|
427
|
+
// Watch
|
|
428
|
+
CDK_TOOLKIT_I5310: debug({
|
|
429
|
+
code: "CDK_TOOLKIT_I5310",
|
|
430
|
+
description: "The computed settings used for file watching",
|
|
431
|
+
interface: "WatchSettings"
|
|
432
|
+
}),
|
|
433
|
+
CDK_TOOLKIT_I5311: info({
|
|
434
|
+
code: "CDK_TOOLKIT_I5311",
|
|
435
|
+
description: "File watching started",
|
|
436
|
+
interface: "FileWatchEvent"
|
|
437
|
+
}),
|
|
438
|
+
CDK_TOOLKIT_I5312: info({
|
|
439
|
+
code: "CDK_TOOLKIT_I5312",
|
|
440
|
+
description: "File event detected, starting deployment",
|
|
441
|
+
interface: "FileWatchEvent"
|
|
442
|
+
}),
|
|
443
|
+
CDK_TOOLKIT_I5313: info({
|
|
444
|
+
code: "CDK_TOOLKIT_I5313",
|
|
445
|
+
description: "File event detected during active deployment, changes are queued",
|
|
446
|
+
interface: "FileWatchEvent"
|
|
447
|
+
}),
|
|
448
|
+
CDK_TOOLKIT_I5314: info({
|
|
449
|
+
code: "CDK_TOOLKIT_I5314",
|
|
450
|
+
description: "Initial watch deployment started"
|
|
451
|
+
}),
|
|
452
|
+
CDK_TOOLKIT_I5315: info({
|
|
453
|
+
code: "CDK_TOOLKIT_I5315",
|
|
454
|
+
description: "Queued watch deployment started"
|
|
455
|
+
}),
|
|
456
|
+
// Stack Monitor
|
|
457
|
+
CDK_TOOLKIT_I5501: info({
|
|
458
|
+
code: "CDK_TOOLKIT_I5501",
|
|
459
|
+
description: "Stack Monitoring: Start monitoring of a single stack",
|
|
460
|
+
interface: "StackMonitoringControlEvent"
|
|
461
|
+
}),
|
|
462
|
+
CDK_TOOLKIT_I5502: info({
|
|
463
|
+
code: "CDK_TOOLKIT_I5502",
|
|
464
|
+
description: "Stack Monitoring: Activity event for a single stack",
|
|
465
|
+
interface: "StackActivity"
|
|
466
|
+
}),
|
|
467
|
+
CDK_TOOLKIT_I5503: info({
|
|
468
|
+
code: "CDK_TOOLKIT_I5503",
|
|
469
|
+
description: "Stack Monitoring: Finished monitoring of a single stack",
|
|
470
|
+
interface: "StackMonitoringControlEvent"
|
|
471
|
+
}),
|
|
472
|
+
// Success
|
|
473
|
+
CDK_TOOLKIT_I5900: result({
|
|
474
|
+
code: "CDK_TOOLKIT_I5900",
|
|
475
|
+
description: "Deployment results on success",
|
|
476
|
+
interface: "SuccessfulDeployStackResult"
|
|
477
|
+
}),
|
|
478
|
+
CDK_TOOLKIT_I5901: info({
|
|
479
|
+
code: "CDK_TOOLKIT_I5901",
|
|
480
|
+
description: "Generic deployment success messages"
|
|
481
|
+
}),
|
|
482
|
+
CDK_TOOLKIT_W5400: warn({
|
|
483
|
+
code: "CDK_TOOLKIT_W5400",
|
|
484
|
+
description: "Hotswap disclosure message"
|
|
485
|
+
}),
|
|
486
|
+
// errors
|
|
487
|
+
CDK_TOOLKIT_E5001: error({
|
|
488
|
+
code: "CDK_TOOLKIT_E5001",
|
|
489
|
+
description: "No stacks found"
|
|
490
|
+
}),
|
|
491
|
+
CDK_TOOLKIT_E5500: error({
|
|
492
|
+
code: "CDK_TOOLKIT_E5500",
|
|
493
|
+
description: "Stack Monitoring error",
|
|
494
|
+
interface: "ErrorPayload"
|
|
495
|
+
}),
|
|
496
|
+
// 6: Rollback
|
|
497
|
+
CDK_TOOLKIT_I6000: info({
|
|
498
|
+
code: "CDK_TOOLKIT_I6000",
|
|
499
|
+
description: "Provides rollback times",
|
|
500
|
+
interface: "Duration"
|
|
501
|
+
}),
|
|
502
|
+
CDK_TOOLKIT_I6100: info({
|
|
503
|
+
code: "CDK_TOOLKIT_I6100",
|
|
504
|
+
description: "Stack rollback progress",
|
|
505
|
+
interface: "StackRollbackProgress"
|
|
506
|
+
}),
|
|
507
|
+
CDK_TOOLKIT_E6001: error({
|
|
508
|
+
code: "CDK_TOOLKIT_E6001",
|
|
509
|
+
description: "No stacks found"
|
|
510
|
+
}),
|
|
511
|
+
CDK_TOOLKIT_E6900: error({
|
|
512
|
+
code: "CDK_TOOLKIT_E6900",
|
|
513
|
+
description: "Rollback failed",
|
|
514
|
+
interface: "ErrorPayload"
|
|
515
|
+
}),
|
|
516
|
+
// 7: Destroy
|
|
517
|
+
CDK_TOOLKIT_I7000: info({
|
|
518
|
+
code: "CDK_TOOLKIT_I7000",
|
|
519
|
+
description: "Provides destroy times",
|
|
520
|
+
interface: "Duration"
|
|
521
|
+
}),
|
|
522
|
+
CDK_TOOLKIT_I7001: trace({
|
|
523
|
+
code: "CDK_TOOLKIT_I7001",
|
|
524
|
+
description: "Provides destroy time for a single stack",
|
|
525
|
+
interface: "Duration"
|
|
526
|
+
}),
|
|
527
|
+
CDK_TOOLKIT_I7010: confirm({
|
|
528
|
+
code: "CDK_TOOLKIT_I7010",
|
|
529
|
+
description: "Confirm destroy stacks",
|
|
530
|
+
interface: "ConfirmationRequest"
|
|
531
|
+
}),
|
|
532
|
+
CDK_TOOLKIT_I7100: info({
|
|
533
|
+
code: "CDK_TOOLKIT_I7100",
|
|
534
|
+
description: "Stack destroy progress",
|
|
535
|
+
interface: "StackDestroyProgress"
|
|
536
|
+
}),
|
|
537
|
+
CDK_TOOLKIT_I7101: trace({
|
|
538
|
+
code: "CDK_TOOLKIT_I7101",
|
|
539
|
+
description: "Start stack destroying",
|
|
540
|
+
interface: "StackDestroy"
|
|
541
|
+
}),
|
|
542
|
+
CDK_TOOLKIT_I7900: result({
|
|
543
|
+
code: "CDK_TOOLKIT_I7900",
|
|
544
|
+
description: "Stack deletion succeeded",
|
|
545
|
+
interface: "cxapi.CloudFormationStackArtifact"
|
|
546
|
+
}),
|
|
547
|
+
CDK_TOOLKIT_E7010: error({
|
|
548
|
+
code: "CDK_TOOLKIT_E7010",
|
|
549
|
+
description: "Action was aborted due to negative confirmation of request"
|
|
550
|
+
}),
|
|
551
|
+
CDK_TOOLKIT_E7900: error({
|
|
552
|
+
code: "CDK_TOOLKIT_E7900",
|
|
553
|
+
description: "Stack deletion failed",
|
|
554
|
+
interface: "ErrorPayload"
|
|
555
|
+
}),
|
|
556
|
+
// 9: Bootstrap
|
|
557
|
+
CDK_TOOLKIT_I9000: info({
|
|
558
|
+
code: "CDK_TOOLKIT_I9000",
|
|
559
|
+
description: "Provides bootstrap times",
|
|
560
|
+
interface: "Duration"
|
|
561
|
+
}),
|
|
562
|
+
CDK_TOOLKIT_I9100: info({
|
|
563
|
+
code: "CDK_TOOLKIT_I9100",
|
|
564
|
+
description: "Bootstrap progress",
|
|
565
|
+
interface: "BootstrapEnvironmentProgress"
|
|
566
|
+
}),
|
|
567
|
+
CDK_TOOLKIT_I9900: result({
|
|
568
|
+
code: "CDK_TOOLKIT_I9900",
|
|
569
|
+
description: "Bootstrap results on success",
|
|
570
|
+
interface: "cxapi.Environment"
|
|
571
|
+
}),
|
|
572
|
+
CDK_TOOLKIT_E9900: error({
|
|
573
|
+
code: "CDK_TOOLKIT_E9900",
|
|
574
|
+
description: "Bootstrap failed",
|
|
575
|
+
interface: "ErrorPayload"
|
|
576
|
+
}),
|
|
577
|
+
// Assembly codes
|
|
578
|
+
CDK_ASSEMBLY_I0010: debug({
|
|
579
|
+
code: "CDK_ASSEMBLY_I0010",
|
|
580
|
+
description: "Generic environment preparation debug messages"
|
|
581
|
+
}),
|
|
582
|
+
CDK_ASSEMBLY_W0010: warn({
|
|
583
|
+
code: "CDK_ASSEMBLY_W0010",
|
|
584
|
+
description: "Emitted if the found framework version does not support context overflow"
|
|
585
|
+
}),
|
|
586
|
+
CDK_ASSEMBLY_I0042: debug({
|
|
587
|
+
code: "CDK_ASSEMBLY_I0042",
|
|
588
|
+
description: "Writing updated context",
|
|
589
|
+
interface: "UpdatedContext"
|
|
590
|
+
}),
|
|
591
|
+
CDK_ASSEMBLY_I0240: debug({
|
|
592
|
+
code: "CDK_ASSEMBLY_I0240",
|
|
593
|
+
description: "Context lookup was stopped as no further progress was made. ",
|
|
594
|
+
interface: "MissingContext"
|
|
595
|
+
}),
|
|
596
|
+
CDK_ASSEMBLY_I0241: debug({
|
|
597
|
+
code: "CDK_ASSEMBLY_I0241",
|
|
598
|
+
description: "Fetching missing context. This is an iterative message that may appear multiple times with different missing keys.",
|
|
599
|
+
interface: "MissingContext"
|
|
600
|
+
}),
|
|
601
|
+
CDK_ASSEMBLY_I1000: debug({
|
|
602
|
+
code: "CDK_ASSEMBLY_I1000",
|
|
603
|
+
description: "Cloud assembly output starts"
|
|
604
|
+
}),
|
|
605
|
+
CDK_ASSEMBLY_I1001: info({
|
|
606
|
+
code: "CDK_ASSEMBLY_I1001",
|
|
607
|
+
description: "Output lines emitted by the cloud assembly to stdout"
|
|
608
|
+
}),
|
|
609
|
+
CDK_ASSEMBLY_E1002: error({
|
|
610
|
+
code: "CDK_ASSEMBLY_E1002",
|
|
611
|
+
description: "Output lines emitted by the cloud assembly to stderr"
|
|
612
|
+
}),
|
|
613
|
+
CDK_ASSEMBLY_I1003: info({
|
|
614
|
+
code: "CDK_ASSEMBLY_I1003",
|
|
615
|
+
description: "Cloud assembly output finished"
|
|
616
|
+
}),
|
|
617
|
+
CDK_ASSEMBLY_E1111: error({
|
|
618
|
+
code: "CDK_ASSEMBLY_E1111",
|
|
619
|
+
description: "Incompatible CDK CLI version. Upgrade needed.",
|
|
620
|
+
interface: "ErrorPayload"
|
|
621
|
+
}),
|
|
622
|
+
CDK_ASSEMBLY_I0150: debug({
|
|
623
|
+
code: "CDK_ASSEMBLY_I0150",
|
|
624
|
+
description: "Indicates the use of a pre-synthesized cloud assembly directory"
|
|
625
|
+
}),
|
|
626
|
+
// Assembly Annotations
|
|
627
|
+
CDK_ASSEMBLY_I9999: info({
|
|
628
|
+
code: "CDK_ASSEMBLY_I9999",
|
|
629
|
+
description: "Annotations emitted by the cloud assembly",
|
|
630
|
+
interface: "cxapi.SynthesisMessage"
|
|
631
|
+
}),
|
|
632
|
+
CDK_ASSEMBLY_W9999: warn({
|
|
633
|
+
code: "CDK_ASSEMBLY_W9999",
|
|
634
|
+
description: "Warnings emitted by the cloud assembly",
|
|
635
|
+
interface: "cxapi.SynthesisMessage"
|
|
636
|
+
}),
|
|
637
|
+
CDK_ASSEMBLY_E9999: error({
|
|
638
|
+
code: "CDK_ASSEMBLY_E9999",
|
|
639
|
+
description: "Errors emitted by the cloud assembly",
|
|
640
|
+
interface: "cxapi.SynthesisMessage"
|
|
641
|
+
}),
|
|
642
|
+
// SDK codes
|
|
643
|
+
CDK_SDK_I0000: trace({
|
|
644
|
+
code: "CDK_SDK_I0000",
|
|
645
|
+
description: "An SDK message."
|
|
646
|
+
}),
|
|
647
|
+
CDK_SDK_I0100: trace({
|
|
648
|
+
code: "CDK_SDK_I0100",
|
|
649
|
+
description: "An SDK trace. SDK traces are emitted as traces to the IoHost, but contain the original SDK logging level.",
|
|
650
|
+
interface: "SdkTrace"
|
|
651
|
+
})
|
|
652
|
+
};
|
|
653
|
+
var SPAN = {
|
|
654
|
+
SYNTH_ASSEMBLY: {
|
|
655
|
+
name: "Synthesis",
|
|
656
|
+
start: IO.CDK_TOOLKIT_I1001,
|
|
657
|
+
end: IO.CDK_TOOLKIT_I1000
|
|
658
|
+
},
|
|
659
|
+
DEPLOY_STACK: {
|
|
660
|
+
name: "Deployment",
|
|
661
|
+
start: IO.CDK_TOOLKIT_I5100,
|
|
662
|
+
end: IO.CDK_TOOLKIT_I5001
|
|
663
|
+
},
|
|
664
|
+
ROLLBACK_STACK: {
|
|
665
|
+
name: "Rollback",
|
|
666
|
+
start: IO.CDK_TOOLKIT_I6100,
|
|
667
|
+
end: IO.CDK_TOOLKIT_I6000
|
|
668
|
+
},
|
|
669
|
+
DESTROY_STACK: {
|
|
670
|
+
name: "Destroy",
|
|
671
|
+
start: IO.CDK_TOOLKIT_I7100,
|
|
672
|
+
end: IO.CDK_TOOLKIT_I7001
|
|
673
|
+
},
|
|
674
|
+
DESTROY_ACTION: {
|
|
675
|
+
name: "Destroy",
|
|
676
|
+
start: IO.CDK_TOOLKIT_I7101,
|
|
677
|
+
end: IO.CDK_TOOLKIT_I7000
|
|
678
|
+
},
|
|
679
|
+
BOOTSTRAP_SINGLE: {
|
|
680
|
+
name: "Bootstrap",
|
|
681
|
+
start: IO.CDK_TOOLKIT_I9100,
|
|
682
|
+
end: IO.CDK_TOOLKIT_I9000
|
|
683
|
+
},
|
|
684
|
+
BUILD_ASSET: {
|
|
685
|
+
name: "Build Asset",
|
|
686
|
+
start: IO.CDK_TOOLKIT_I5210,
|
|
687
|
+
end: IO.CDK_TOOLKIT_I5211
|
|
688
|
+
},
|
|
689
|
+
PUBLISH_ASSET: {
|
|
690
|
+
name: "Publish Asset",
|
|
691
|
+
start: IO.CDK_TOOLKIT_I5220,
|
|
692
|
+
end: IO.CDK_TOOLKIT_I5221
|
|
693
|
+
}
|
|
694
|
+
};
|
|
72
695
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
696
|
0 && (module.exports = {
|
|
697
|
+
IO,
|
|
698
|
+
IoHelper,
|
|
699
|
+
SPAN,
|
|
700
|
+
SpanMaker,
|
|
701
|
+
asIoHelper,
|
|
702
|
+
confirm,
|
|
74
703
|
debug,
|
|
75
704
|
error,
|
|
76
705
|
info,
|
|
706
|
+
isMessageRelevantForLevel,
|
|
77
707
|
result,
|
|
78
708
|
trace,
|
|
79
|
-
warn
|
|
80
|
-
withAction
|
|
709
|
+
warn
|
|
81
710
|
});
|
|
82
711
|
//# sourceMappingURL=shared-private.js.map
|