@aws-sdk/client-greengrassv2 3.137.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +399 -774
- package/dist-es/protocols/Aws_restJson1.js +507 -765
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { GreengrassV2ServiceException as __BaseException } from "../models/GreengrassV2ServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, RequestAlreadyInProgressException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -29,7 +29,7 @@ export var serializeAws_restJson1AssociateServiceRoleToAccountCommand = function
|
|
|
29
29
|
});
|
|
30
30
|
}); };
|
|
31
31
|
export var serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
32
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
32
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
33
33
|
return __generator(this, function (_c) {
|
|
34
34
|
switch (_c.label) {
|
|
35
35
|
case 0: return [4, context.endpoint()];
|
|
@@ -40,16 +40,7 @@ export var serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand
|
|
|
40
40
|
};
|
|
41
41
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
42
42
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices";
|
|
43
|
-
|
|
44
|
-
labelValue = input.coreDeviceThingName;
|
|
45
|
-
if (labelValue.length <= 0) {
|
|
46
|
-
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
47
|
-
}
|
|
48
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
52
|
-
}
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
53
44
|
body = JSON.stringify(__assign({}, (input.entries != null && {
|
|
54
45
|
entries: serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList(input.entries, context),
|
|
55
46
|
})));
|
|
@@ -66,7 +57,7 @@ export var serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand
|
|
|
66
57
|
});
|
|
67
58
|
}); };
|
|
68
59
|
export var serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
60
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
70
61
|
return __generator(this, function (_c) {
|
|
71
62
|
switch (_c.label) {
|
|
72
63
|
case 0: return [4, context.endpoint()];
|
|
@@ -77,16 +68,7 @@ export var serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceComm
|
|
|
77
68
|
};
|
|
78
69
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
79
70
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices";
|
|
80
|
-
|
|
81
|
-
labelValue = input.coreDeviceThingName;
|
|
82
|
-
if (labelValue.length <= 0) {
|
|
83
|
-
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
84
|
-
}
|
|
85
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
89
|
-
}
|
|
71
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
90
72
|
body = JSON.stringify(__assign({}, (input.entries != null && {
|
|
91
73
|
entries: serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntryList(input.entries, context),
|
|
92
74
|
})));
|
|
@@ -103,7 +85,7 @@ export var serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceComm
|
|
|
103
85
|
});
|
|
104
86
|
}); };
|
|
105
87
|
export var serializeAws_restJson1CancelDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
88
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
107
89
|
return __generator(this, function (_c) {
|
|
108
90
|
switch (_c.label) {
|
|
109
91
|
case 0: return [4, context.endpoint()];
|
|
@@ -112,16 +94,7 @@ export var serializeAws_restJson1CancelDeploymentCommand = function (input, cont
|
|
|
112
94
|
headers = {};
|
|
113
95
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
114
96
|
"/greengrass/v2/deployments/{deploymentId}/cancel";
|
|
115
|
-
|
|
116
|
-
labelValue = input.deploymentId;
|
|
117
|
-
if (labelValue.length <= 0) {
|
|
118
|
-
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
119
|
-
}
|
|
120
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", __extendedEncodeURIComponent(labelValue));
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
124
|
-
}
|
|
97
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "deploymentId", function () { return input.deploymentId; }, "{deploymentId}", false);
|
|
125
98
|
return [2, new __HttpRequest({
|
|
126
99
|
protocol: protocol,
|
|
127
100
|
hostname: hostname,
|
|
@@ -193,7 +166,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
193
166
|
});
|
|
194
167
|
}); };
|
|
195
168
|
export var serializeAws_restJson1DeleteComponentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
196
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
169
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
197
170
|
return __generator(this, function (_c) {
|
|
198
171
|
switch (_c.label) {
|
|
199
172
|
case 0: return [4, context.endpoint()];
|
|
@@ -201,16 +174,7 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
|
|
|
201
174
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
202
175
|
headers = {};
|
|
203
176
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/components/{arn}";
|
|
204
|
-
|
|
205
|
-
labelValue = input.arn;
|
|
206
|
-
if (labelValue.length <= 0) {
|
|
207
|
-
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
208
|
-
}
|
|
209
|
-
resolvedPath = resolvedPath.replace("{arn}", __extendedEncodeURIComponent(labelValue));
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
throw new Error("No value provided for input HTTP label: arn.");
|
|
213
|
-
}
|
|
177
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "arn", function () { return input.arn; }, "{arn}", false);
|
|
214
178
|
return [2, new __HttpRequest({
|
|
215
179
|
protocol: protocol,
|
|
216
180
|
hostname: hostname,
|
|
@@ -224,7 +188,7 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
|
|
|
224
188
|
});
|
|
225
189
|
}); };
|
|
226
190
|
export var serializeAws_restJson1DeleteCoreDeviceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
191
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
228
192
|
return __generator(this, function (_c) {
|
|
229
193
|
switch (_c.label) {
|
|
230
194
|
case 0: return [4, context.endpoint()];
|
|
@@ -233,16 +197,7 @@ export var serializeAws_restJson1DeleteCoreDeviceCommand = function (input, cont
|
|
|
233
197
|
headers = {};
|
|
234
198
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
235
199
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}";
|
|
236
|
-
|
|
237
|
-
labelValue = input.coreDeviceThingName;
|
|
238
|
-
if (labelValue.length <= 0) {
|
|
239
|
-
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
240
|
-
}
|
|
241
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
245
|
-
}
|
|
200
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
246
201
|
return [2, new __HttpRequest({
|
|
247
202
|
protocol: protocol,
|
|
248
203
|
hostname: hostname,
|
|
@@ -256,7 +211,7 @@ export var serializeAws_restJson1DeleteCoreDeviceCommand = function (input, cont
|
|
|
256
211
|
});
|
|
257
212
|
}); };
|
|
258
213
|
export var serializeAws_restJson1DeleteDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
214
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
260
215
|
return __generator(this, function (_c) {
|
|
261
216
|
switch (_c.label) {
|
|
262
217
|
case 0: return [4, context.endpoint()];
|
|
@@ -264,16 +219,7 @@ export var serializeAws_restJson1DeleteDeploymentCommand = function (input, cont
|
|
|
264
219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
265
220
|
headers = {};
|
|
266
221
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/deployments/{deploymentId}";
|
|
267
|
-
|
|
268
|
-
labelValue = input.deploymentId;
|
|
269
|
-
if (labelValue.length <= 0) {
|
|
270
|
-
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
271
|
-
}
|
|
272
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", __extendedEncodeURIComponent(labelValue));
|
|
273
|
-
}
|
|
274
|
-
else {
|
|
275
|
-
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
276
|
-
}
|
|
222
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "deploymentId", function () { return input.deploymentId; }, "{deploymentId}", false);
|
|
277
223
|
return [2, new __HttpRequest({
|
|
278
224
|
protocol: protocol,
|
|
279
225
|
hostname: hostname,
|
|
@@ -287,7 +233,7 @@ export var serializeAws_restJson1DeleteDeploymentCommand = function (input, cont
|
|
|
287
233
|
});
|
|
288
234
|
}); };
|
|
289
235
|
export var serializeAws_restJson1DescribeComponentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
290
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
236
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
291
237
|
return __generator(this, function (_c) {
|
|
292
238
|
switch (_c.label) {
|
|
293
239
|
case 0: return [4, context.endpoint()];
|
|
@@ -295,16 +241,7 @@ export var serializeAws_restJson1DescribeComponentCommand = function (input, con
|
|
|
295
241
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
296
242
|
headers = {};
|
|
297
243
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/components/{arn}/metadata";
|
|
298
|
-
|
|
299
|
-
labelValue = input.arn;
|
|
300
|
-
if (labelValue.length <= 0) {
|
|
301
|
-
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
302
|
-
}
|
|
303
|
-
resolvedPath = resolvedPath.replace("{arn}", __extendedEncodeURIComponent(labelValue));
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
throw new Error("No value provided for input HTTP label: arn.");
|
|
307
|
-
}
|
|
244
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "arn", function () { return input.arn; }, "{arn}", false);
|
|
308
245
|
return [2, new __HttpRequest({
|
|
309
246
|
protocol: protocol,
|
|
310
247
|
hostname: hostname,
|
|
@@ -342,7 +279,7 @@ export var serializeAws_restJson1DisassociateServiceRoleFromAccountCommand = fun
|
|
|
342
279
|
});
|
|
343
280
|
}); };
|
|
344
281
|
export var serializeAws_restJson1GetComponentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
345
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
282
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
346
283
|
return __generator(this, function (_c) {
|
|
347
284
|
switch (_c.label) {
|
|
348
285
|
case 0: return [4, context.endpoint()];
|
|
@@ -350,17 +287,10 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
|
|
|
350
287
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
351
288
|
headers = {};
|
|
352
289
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/components/{arn}";
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
resolvedPath = resolvedPath.replace("{arn}", __extendedEncodeURIComponent(labelValue));
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
throw new Error("No value provided for input HTTP label: arn.");
|
|
362
|
-
}
|
|
363
|
-
query = __assign({}, (input.recipeOutputFormat !== undefined && { recipeOutputFormat: input.recipeOutputFormat }));
|
|
290
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "arn", function () { return input.arn; }, "{arn}", false);
|
|
291
|
+
query = map({
|
|
292
|
+
recipeOutputFormat: [, input.recipeOutputFormat],
|
|
293
|
+
});
|
|
364
294
|
return [2, new __HttpRequest({
|
|
365
295
|
protocol: protocol,
|
|
366
296
|
hostname: hostname,
|
|
@@ -375,7 +305,7 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
|
|
|
375
305
|
});
|
|
376
306
|
}); };
|
|
377
307
|
export var serializeAws_restJson1GetComponentVersionArtifactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
378
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
308
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
379
309
|
return __generator(this, function (_c) {
|
|
380
310
|
switch (_c.label) {
|
|
381
311
|
case 0: return [4, context.endpoint()];
|
|
@@ -384,29 +314,8 @@ export var serializeAws_restJson1GetComponentVersionArtifactCommand = function (
|
|
|
384
314
|
headers = {};
|
|
385
315
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
386
316
|
"/greengrass/v2/components/{arn}/artifacts/{artifactName+}";
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (labelValue.length <= 0) {
|
|
390
|
-
throw new Error("Empty value provided for input HTTP label: arn.");
|
|
391
|
-
}
|
|
392
|
-
resolvedPath = resolvedPath.replace("{arn}", __extendedEncodeURIComponent(labelValue));
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
throw new Error("No value provided for input HTTP label: arn.");
|
|
396
|
-
}
|
|
397
|
-
if (input.artifactName !== undefined) {
|
|
398
|
-
labelValue = input.artifactName;
|
|
399
|
-
if (labelValue.length <= 0) {
|
|
400
|
-
throw new Error("Empty value provided for input HTTP label: artifactName.");
|
|
401
|
-
}
|
|
402
|
-
resolvedPath = resolvedPath.replace("{artifactName+}", labelValue
|
|
403
|
-
.split("/")
|
|
404
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
405
|
-
.join("/"));
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
throw new Error("No value provided for input HTTP label: artifactName.");
|
|
409
|
-
}
|
|
317
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "arn", function () { return input.arn; }, "{arn}", false);
|
|
318
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "artifactName", function () { return input.artifactName; }, "{artifactName+}", true);
|
|
410
319
|
return [2, new __HttpRequest({
|
|
411
320
|
protocol: protocol,
|
|
412
321
|
hostname: hostname,
|
|
@@ -420,7 +329,7 @@ export var serializeAws_restJson1GetComponentVersionArtifactCommand = function (
|
|
|
420
329
|
});
|
|
421
330
|
}); };
|
|
422
331
|
export var serializeAws_restJson1GetConnectivityInfoCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
423
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
332
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
424
333
|
return __generator(this, function (_c) {
|
|
425
334
|
switch (_c.label) {
|
|
426
335
|
case 0: return [4, context.endpoint()];
|
|
@@ -429,16 +338,7 @@ export var serializeAws_restJson1GetConnectivityInfoCommand = function (input, c
|
|
|
429
338
|
headers = {};
|
|
430
339
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
431
340
|
"/greengrass/things/{thingName}/connectivityInfo";
|
|
432
|
-
|
|
433
|
-
labelValue = input.thingName;
|
|
434
|
-
if (labelValue.length <= 0) {
|
|
435
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
436
|
-
}
|
|
437
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
441
|
-
}
|
|
341
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
442
342
|
return [2, new __HttpRequest({
|
|
443
343
|
protocol: protocol,
|
|
444
344
|
hostname: hostname,
|
|
@@ -452,7 +352,7 @@ export var serializeAws_restJson1GetConnectivityInfoCommand = function (input, c
|
|
|
452
352
|
});
|
|
453
353
|
}); };
|
|
454
354
|
export var serializeAws_restJson1GetCoreDeviceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
455
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
355
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
456
356
|
return __generator(this, function (_c) {
|
|
457
357
|
switch (_c.label) {
|
|
458
358
|
case 0: return [4, context.endpoint()];
|
|
@@ -461,16 +361,7 @@ export var serializeAws_restJson1GetCoreDeviceCommand = function (input, context
|
|
|
461
361
|
headers = {};
|
|
462
362
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
463
363
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}";
|
|
464
|
-
|
|
465
|
-
labelValue = input.coreDeviceThingName;
|
|
466
|
-
if (labelValue.length <= 0) {
|
|
467
|
-
throw new Error("Empty value provided for input HTTP label: coreDeviceThingName.");
|
|
468
|
-
}
|
|
469
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
473
|
-
}
|
|
364
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
474
365
|
return [2, new __HttpRequest({
|
|
475
366
|
protocol: protocol,
|
|
476
367
|
hostname: hostname,
|
|
@@ -484,7 +375,7 @@ export var serializeAws_restJson1GetCoreDeviceCommand = function (input, context
|
|
|
484
375
|
});
|
|
485
376
|
}); };
|
|
486
377
|
export var serializeAws_restJson1GetDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
378
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
488
379
|
return __generator(this, function (_c) {
|
|
489
380
|
switch (_c.label) {
|
|
490
381
|
case 0: return [4, context.endpoint()];
|
|
@@ -492,16 +383,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
|
|
|
492
383
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
384
|
headers = {};
|
|
494
385
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/deployments/{deploymentId}";
|
|
495
|
-
|
|
496
|
-
labelValue = input.deploymentId;
|
|
497
|
-
if (labelValue.length <= 0) {
|
|
498
|
-
throw new Error("Empty value provided for input HTTP label: deploymentId.");
|
|
499
|
-
}
|
|
500
|
-
resolvedPath = resolvedPath.replace("{deploymentId}", __extendedEncodeURIComponent(labelValue));
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
throw new Error("No value provided for input HTTP label: deploymentId.");
|
|
504
|
-
}
|
|
386
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "deploymentId", function () { return input.deploymentId; }, "{deploymentId}", false);
|
|
505
387
|
return [2, new __HttpRequest({
|
|
506
388
|
protocol: protocol,
|
|
507
389
|
hostname: hostname,
|
|
@@ -539,7 +421,7 @@ export var serializeAws_restJson1GetServiceRoleForAccountCommand = function (inp
|
|
|
539
421
|
});
|
|
540
422
|
}); };
|
|
541
423
|
export var serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
542
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
424
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
543
425
|
return __generator(this, function (_c) {
|
|
544
426
|
switch (_c.label) {
|
|
545
427
|
case 0: return [4, context.endpoint()];
|
|
@@ -548,17 +430,11 @@ export var serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceComman
|
|
|
548
430
|
headers = {};
|
|
549
431
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
550
432
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices";
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
559
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
560
|
-
}
|
|
561
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
433
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
434
|
+
query = map({
|
|
435
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
436
|
+
nextToken: [, input.nextToken],
|
|
437
|
+
});
|
|
562
438
|
return [2, new __HttpRequest({
|
|
563
439
|
protocol: protocol,
|
|
564
440
|
hostname: hostname,
|
|
@@ -581,7 +457,11 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
581
457
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
582
458
|
headers = {};
|
|
583
459
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/components";
|
|
584
|
-
query =
|
|
460
|
+
query = map({
|
|
461
|
+
scope: [, input.scope],
|
|
462
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
463
|
+
nextToken: [, input.nextToken],
|
|
464
|
+
});
|
|
585
465
|
return [2, new __HttpRequest({
|
|
586
466
|
protocol: protocol,
|
|
587
467
|
hostname: hostname,
|
|
@@ -596,7 +476,7 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
596
476
|
});
|
|
597
477
|
}); };
|
|
598
478
|
export var serializeAws_restJson1ListComponentVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
599
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
479
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
600
480
|
return __generator(this, function (_c) {
|
|
601
481
|
switch (_c.label) {
|
|
602
482
|
case 0: return [4, context.endpoint()];
|
|
@@ -604,17 +484,11 @@ export var serializeAws_restJson1ListComponentVersionsCommand = function (input,
|
|
|
604
484
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
605
485
|
headers = {};
|
|
606
486
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/components/{arn}/versions";
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
resolvedPath = resolvedPath.replace("{arn}", __extendedEncodeURIComponent(labelValue));
|
|
613
|
-
}
|
|
614
|
-
else {
|
|
615
|
-
throw new Error("No value provided for input HTTP label: arn.");
|
|
616
|
-
}
|
|
617
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
487
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "arn", function () { return input.arn; }, "{arn}", false);
|
|
488
|
+
query = map({
|
|
489
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
490
|
+
nextToken: [, input.nextToken],
|
|
491
|
+
});
|
|
618
492
|
return [2, new __HttpRequest({
|
|
619
493
|
protocol: protocol,
|
|
620
494
|
hostname: hostname,
|
|
@@ -637,7 +511,12 @@ export var serializeAws_restJson1ListCoreDevicesCommand = function (input, conte
|
|
|
637
511
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
638
512
|
headers = {};
|
|
639
513
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/coreDevices";
|
|
640
|
-
query =
|
|
514
|
+
query = map({
|
|
515
|
+
thingGroupArn: [, input.thingGroupArn],
|
|
516
|
+
status: [, input.status],
|
|
517
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
518
|
+
nextToken: [, input.nextToken],
|
|
519
|
+
});
|
|
641
520
|
return [2, new __HttpRequest({
|
|
642
521
|
protocol: protocol,
|
|
643
522
|
hostname: hostname,
|
|
@@ -660,7 +539,12 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
|
|
|
660
539
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
661
540
|
headers = {};
|
|
662
541
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/greengrass/v2/deployments";
|
|
663
|
-
query =
|
|
542
|
+
query = map({
|
|
543
|
+
targetArn: [, input.targetArn],
|
|
544
|
+
historyFilter: [, input.historyFilter],
|
|
545
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
546
|
+
nextToken: [, input.nextToken],
|
|
547
|
+
});
|
|
664
548
|
return [2, new __HttpRequest({
|
|
665
549
|
protocol: protocol,
|
|
666
550
|
hostname: hostname,
|
|
@@ -675,7 +559,7 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
|
|
|
675
559
|
});
|
|
676
560
|
}); };
|
|
677
561
|
export var serializeAws_restJson1ListEffectiveDeploymentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
678
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
562
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
679
563
|
return __generator(this, function (_c) {
|
|
680
564
|
switch (_c.label) {
|
|
681
565
|
case 0: return [4, context.endpoint()];
|
|
@@ -684,17 +568,11 @@ export var serializeAws_restJson1ListEffectiveDeploymentsCommand = function (inp
|
|
|
684
568
|
headers = {};
|
|
685
569
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
686
570
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments";
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
696
|
-
}
|
|
697
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
571
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
572
|
+
query = map({
|
|
573
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
574
|
+
nextToken: [, input.nextToken],
|
|
575
|
+
});
|
|
698
576
|
return [2, new __HttpRequest({
|
|
699
577
|
protocol: protocol,
|
|
700
578
|
hostname: hostname,
|
|
@@ -709,7 +587,7 @@ export var serializeAws_restJson1ListEffectiveDeploymentsCommand = function (inp
|
|
|
709
587
|
});
|
|
710
588
|
}); };
|
|
711
589
|
export var serializeAws_restJson1ListInstalledComponentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
712
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
590
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
713
591
|
return __generator(this, function (_c) {
|
|
714
592
|
switch (_c.label) {
|
|
715
593
|
case 0: return [4, context.endpoint()];
|
|
@@ -718,17 +596,11 @@ export var serializeAws_restJson1ListInstalledComponentsCommand = function (inpu
|
|
|
718
596
|
headers = {};
|
|
719
597
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
720
598
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents";
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
resolvedPath = resolvedPath.replace("{coreDeviceThingName}", __extendedEncodeURIComponent(labelValue));
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
throw new Error("No value provided for input HTTP label: coreDeviceThingName.");
|
|
730
|
-
}
|
|
731
|
-
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
599
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "coreDeviceThingName", function () { return input.coreDeviceThingName; }, "{coreDeviceThingName}", false);
|
|
600
|
+
query = map({
|
|
601
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
602
|
+
nextToken: [, input.nextToken],
|
|
603
|
+
});
|
|
732
604
|
return [2, new __HttpRequest({
|
|
733
605
|
protocol: protocol,
|
|
734
606
|
hostname: hostname,
|
|
@@ -743,7 +615,7 @@ export var serializeAws_restJson1ListInstalledComponentsCommand = function (inpu
|
|
|
743
615
|
});
|
|
744
616
|
}); };
|
|
745
617
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
746
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
618
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
747
619
|
return __generator(this, function (_c) {
|
|
748
620
|
switch (_c.label) {
|
|
749
621
|
case 0: return [4, context.endpoint()];
|
|
@@ -751,16 +623,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
751
623
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
752
624
|
headers = {};
|
|
753
625
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
754
|
-
|
|
755
|
-
labelValue = input.resourceArn;
|
|
756
|
-
if (labelValue.length <= 0) {
|
|
757
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
758
|
-
}
|
|
759
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
763
|
-
}
|
|
626
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
764
627
|
return [2, new __HttpRequest({
|
|
765
628
|
protocol: protocol,
|
|
766
629
|
hostname: hostname,
|
|
@@ -800,7 +663,7 @@ export var serializeAws_restJson1ResolveComponentCandidatesCommand = function (i
|
|
|
800
663
|
});
|
|
801
664
|
}); };
|
|
802
665
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
803
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
666
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
804
667
|
return __generator(this, function (_c) {
|
|
805
668
|
switch (_c.label) {
|
|
806
669
|
case 0: return [4, context.endpoint()];
|
|
@@ -810,16 +673,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
810
673
|
"content-type": "application/json",
|
|
811
674
|
};
|
|
812
675
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
813
|
-
|
|
814
|
-
labelValue = input.resourceArn;
|
|
815
|
-
if (labelValue.length <= 0) {
|
|
816
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
817
|
-
}
|
|
818
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
819
|
-
}
|
|
820
|
-
else {
|
|
821
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
822
|
-
}
|
|
676
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
823
677
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
824
678
|
return [2, new __HttpRequest({
|
|
825
679
|
protocol: protocol,
|
|
@@ -834,7 +688,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
834
688
|
});
|
|
835
689
|
}); };
|
|
836
690
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
837
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
691
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
838
692
|
return __generator(this, function (_c) {
|
|
839
693
|
switch (_c.label) {
|
|
840
694
|
case 0: return [4, context.endpoint()];
|
|
@@ -842,17 +696,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
842
696
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
843
697
|
headers = {};
|
|
844
698
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
850
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
854
|
-
}
|
|
855
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
699
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
700
|
+
query = map({
|
|
701
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
702
|
+
});
|
|
856
703
|
return [2, new __HttpRequest({
|
|
857
704
|
protocol: protocol,
|
|
858
705
|
hostname: hostname,
|
|
@@ -867,7 +714,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
867
714
|
});
|
|
868
715
|
}); };
|
|
869
716
|
export var serializeAws_restJson1UpdateConnectivityInfoCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
870
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
717
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
871
718
|
return __generator(this, function (_c) {
|
|
872
719
|
switch (_c.label) {
|
|
873
720
|
case 0: return [4, context.endpoint()];
|
|
@@ -878,16 +725,7 @@ export var serializeAws_restJson1UpdateConnectivityInfoCommand = function (input
|
|
|
878
725
|
};
|
|
879
726
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
880
727
|
"/greengrass/things/{thingName}/connectivityInfo";
|
|
881
|
-
|
|
882
|
-
labelValue = input.thingName;
|
|
883
|
-
if (labelValue.length <= 0) {
|
|
884
|
-
throw new Error("Empty value provided for input HTTP label: thingName.");
|
|
885
|
-
}
|
|
886
|
-
resolvedPath = resolvedPath.replace("{thingName}", __extendedEncodeURIComponent(labelValue));
|
|
887
|
-
}
|
|
888
|
-
else {
|
|
889
|
-
throw new Error("No value provided for input HTTP label: thingName.");
|
|
890
|
-
}
|
|
728
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "thingName", function () { return input.thingName; }, "{thingName}", false);
|
|
891
729
|
body = JSON.stringify(__assign({}, (input.connectivityInfo != null && {
|
|
892
730
|
ConnectivityInfo: serializeAws_restJson1connectivityInfoList(input.connectivityInfo, context),
|
|
893
731
|
})));
|
|
@@ -911,24 +749,23 @@ export var deserializeAws_restJson1AssociateServiceRoleToAccountCommand = functi
|
|
|
911
749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
912
750
|
return [2, deserializeAws_restJson1AssociateServiceRoleToAccountCommandError(output, context)];
|
|
913
751
|
}
|
|
914
|
-
contents = {
|
|
752
|
+
contents = map({
|
|
915
753
|
$metadata: deserializeMetadata(output),
|
|
916
|
-
|
|
917
|
-
};
|
|
754
|
+
});
|
|
918
755
|
_a = __expectNonNull;
|
|
919
756
|
_b = __expectObject;
|
|
920
757
|
return [4, parseBody(output.body, context)];
|
|
921
758
|
case 1:
|
|
922
759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
923
|
-
if (data.AssociatedAt
|
|
760
|
+
if (data.AssociatedAt != null) {
|
|
924
761
|
contents.associatedAt = __expectString(data.AssociatedAt);
|
|
925
762
|
}
|
|
926
|
-
return [2,
|
|
763
|
+
return [2, contents];
|
|
927
764
|
}
|
|
928
765
|
});
|
|
929
766
|
}); };
|
|
930
767
|
var deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
931
|
-
var parsedOutput, _a,
|
|
768
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
932
769
|
var _c;
|
|
933
770
|
return __generator(this, function (_d) {
|
|
934
771
|
switch (_d.label) {
|
|
@@ -953,14 +790,14 @@ var deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = function
|
|
|
953
790
|
case 5: throw _d.sent();
|
|
954
791
|
case 6:
|
|
955
792
|
parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
$metadata: $metadata,
|
|
793
|
+
throwDefaultError({
|
|
794
|
+
output: output,
|
|
795
|
+
parsedBody: parsedBody,
|
|
796
|
+
exceptionCtor: __BaseException,
|
|
797
|
+
errorCode: errorCode,
|
|
962
798
|
});
|
|
963
|
-
|
|
799
|
+
_d.label = 7;
|
|
800
|
+
case 7: return [2];
|
|
964
801
|
}
|
|
965
802
|
});
|
|
966
803
|
}); };
|
|
@@ -972,24 +809,23 @@ export var deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceComma
|
|
|
972
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
810
|
return [2, deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandError(output, context)];
|
|
974
811
|
}
|
|
975
|
-
contents = {
|
|
812
|
+
contents = map({
|
|
976
813
|
$metadata: deserializeMetadata(output),
|
|
977
|
-
|
|
978
|
-
};
|
|
814
|
+
});
|
|
979
815
|
_a = __expectNonNull;
|
|
980
816
|
_b = __expectObject;
|
|
981
817
|
return [4, parseBody(output.body, context)];
|
|
982
818
|
case 1:
|
|
983
819
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
984
|
-
if (data.errorEntries
|
|
820
|
+
if (data.errorEntries != null) {
|
|
985
821
|
contents.errorEntries = deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList(data.errorEntries, context);
|
|
986
822
|
}
|
|
987
|
-
return [2,
|
|
823
|
+
return [2, contents];
|
|
988
824
|
}
|
|
989
825
|
});
|
|
990
826
|
}); };
|
|
991
827
|
var deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
992
|
-
var parsedOutput, _a,
|
|
828
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
993
829
|
var _c;
|
|
994
830
|
return __generator(this, function (_d) {
|
|
995
831
|
switch (_d.label) {
|
|
@@ -1026,14 +862,14 @@ var deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandError
|
|
|
1026
862
|
case 11: throw _d.sent();
|
|
1027
863
|
case 12:
|
|
1028
864
|
parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
$metadata: $metadata,
|
|
865
|
+
throwDefaultError({
|
|
866
|
+
output: output,
|
|
867
|
+
parsedBody: parsedBody,
|
|
868
|
+
exceptionCtor: __BaseException,
|
|
869
|
+
errorCode: errorCode,
|
|
1035
870
|
});
|
|
1036
|
-
|
|
871
|
+
_d.label = 13;
|
|
872
|
+
case 13: return [2];
|
|
1037
873
|
}
|
|
1038
874
|
});
|
|
1039
875
|
}); };
|
|
@@ -1045,24 +881,23 @@ export var deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCo
|
|
|
1045
881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
882
|
return [2, deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommandError(output, context)];
|
|
1047
883
|
}
|
|
1048
|
-
contents = {
|
|
884
|
+
contents = map({
|
|
1049
885
|
$metadata: deserializeMetadata(output),
|
|
1050
|
-
|
|
1051
|
-
};
|
|
886
|
+
});
|
|
1052
887
|
_a = __expectNonNull;
|
|
1053
888
|
_b = __expectObject;
|
|
1054
889
|
return [4, parseBody(output.body, context)];
|
|
1055
890
|
case 1:
|
|
1056
891
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1057
|
-
if (data.errorEntries
|
|
892
|
+
if (data.errorEntries != null) {
|
|
1058
893
|
contents.errorEntries = deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList(data.errorEntries, context);
|
|
1059
894
|
}
|
|
1060
|
-
return [2,
|
|
895
|
+
return [2, contents];
|
|
1061
896
|
}
|
|
1062
897
|
});
|
|
1063
898
|
}); };
|
|
1064
899
|
var deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1065
|
-
var parsedOutput, _a,
|
|
900
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1066
901
|
var _c;
|
|
1067
902
|
return __generator(this, function (_d) {
|
|
1068
903
|
switch (_d.label) {
|
|
@@ -1099,14 +934,14 @@ var deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommandEr
|
|
|
1099
934
|
case 11: throw _d.sent();
|
|
1100
935
|
case 12:
|
|
1101
936
|
parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
$metadata: $metadata,
|
|
937
|
+
throwDefaultError({
|
|
938
|
+
output: output,
|
|
939
|
+
parsedBody: parsedBody,
|
|
940
|
+
exceptionCtor: __BaseException,
|
|
941
|
+
errorCode: errorCode,
|
|
1108
942
|
});
|
|
1109
|
-
|
|
943
|
+
_d.label = 13;
|
|
944
|
+
case 13: return [2];
|
|
1110
945
|
}
|
|
1111
946
|
});
|
|
1112
947
|
}); };
|
|
@@ -1118,24 +953,23 @@ export var deserializeAws_restJson1CancelDeploymentCommand = function (output, c
|
|
|
1118
953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
954
|
return [2, deserializeAws_restJson1CancelDeploymentCommandError(output, context)];
|
|
1120
955
|
}
|
|
1121
|
-
contents = {
|
|
956
|
+
contents = map({
|
|
1122
957
|
$metadata: deserializeMetadata(output),
|
|
1123
|
-
|
|
1124
|
-
};
|
|
958
|
+
});
|
|
1125
959
|
_a = __expectNonNull;
|
|
1126
960
|
_b = __expectObject;
|
|
1127
961
|
return [4, parseBody(output.body, context)];
|
|
1128
962
|
case 1:
|
|
1129
963
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1130
|
-
if (data.message
|
|
964
|
+
if (data.message != null) {
|
|
1131
965
|
contents.message = __expectString(data.message);
|
|
1132
966
|
}
|
|
1133
|
-
return [2,
|
|
967
|
+
return [2, contents];
|
|
1134
968
|
}
|
|
1135
969
|
});
|
|
1136
970
|
}); };
|
|
1137
971
|
var deserializeAws_restJson1CancelDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1138
|
-
var parsedOutput, _a,
|
|
972
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1139
973
|
var _c;
|
|
1140
974
|
return __generator(this, function (_d) {
|
|
1141
975
|
switch (_d.label) {
|
|
@@ -1176,14 +1010,14 @@ var deserializeAws_restJson1CancelDeploymentCommandError = function (output, con
|
|
|
1176
1010
|
case 13: throw _d.sent();
|
|
1177
1011
|
case 14:
|
|
1178
1012
|
parsedBody = parsedOutput.body;
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
$metadata: $metadata,
|
|
1013
|
+
throwDefaultError({
|
|
1014
|
+
output: output,
|
|
1015
|
+
parsedBody: parsedBody,
|
|
1016
|
+
exceptionCtor: __BaseException,
|
|
1017
|
+
errorCode: errorCode,
|
|
1185
1018
|
});
|
|
1186
|
-
|
|
1019
|
+
_d.label = 15;
|
|
1020
|
+
case 15: return [2];
|
|
1187
1021
|
}
|
|
1188
1022
|
});
|
|
1189
1023
|
}); };
|
|
@@ -1195,40 +1029,35 @@ export var deserializeAws_restJson1CreateComponentVersionCommand = function (out
|
|
|
1195
1029
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1196
1030
|
return [2, deserializeAws_restJson1CreateComponentVersionCommandError(output, context)];
|
|
1197
1031
|
}
|
|
1198
|
-
contents = {
|
|
1032
|
+
contents = map({
|
|
1199
1033
|
$metadata: deserializeMetadata(output),
|
|
1200
|
-
|
|
1201
|
-
componentName: undefined,
|
|
1202
|
-
componentVersion: undefined,
|
|
1203
|
-
creationTimestamp: undefined,
|
|
1204
|
-
status: undefined,
|
|
1205
|
-
};
|
|
1034
|
+
});
|
|
1206
1035
|
_a = __expectNonNull;
|
|
1207
1036
|
_b = __expectObject;
|
|
1208
1037
|
return [4, parseBody(output.body, context)];
|
|
1209
1038
|
case 1:
|
|
1210
1039
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1211
|
-
if (data.arn
|
|
1040
|
+
if (data.arn != null) {
|
|
1212
1041
|
contents.arn = __expectString(data.arn);
|
|
1213
1042
|
}
|
|
1214
|
-
if (data.componentName
|
|
1043
|
+
if (data.componentName != null) {
|
|
1215
1044
|
contents.componentName = __expectString(data.componentName);
|
|
1216
1045
|
}
|
|
1217
|
-
if (data.componentVersion
|
|
1046
|
+
if (data.componentVersion != null) {
|
|
1218
1047
|
contents.componentVersion = __expectString(data.componentVersion);
|
|
1219
1048
|
}
|
|
1220
|
-
if (data.creationTimestamp
|
|
1049
|
+
if (data.creationTimestamp != null) {
|
|
1221
1050
|
contents.creationTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTimestamp)));
|
|
1222
1051
|
}
|
|
1223
|
-
if (data.status
|
|
1052
|
+
if (data.status != null) {
|
|
1224
1053
|
contents.status = deserializeAws_restJson1CloudComponentStatus(data.status, context);
|
|
1225
1054
|
}
|
|
1226
|
-
return [2,
|
|
1055
|
+
return [2, contents];
|
|
1227
1056
|
}
|
|
1228
1057
|
});
|
|
1229
1058
|
}); };
|
|
1230
1059
|
var deserializeAws_restJson1CreateComponentVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1231
|
-
var parsedOutput, _a,
|
|
1060
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1232
1061
|
var _c;
|
|
1233
1062
|
return __generator(this, function (_d) {
|
|
1234
1063
|
switch (_d.label) {
|
|
@@ -1273,14 +1102,14 @@ var deserializeAws_restJson1CreateComponentVersionCommandError = function (outpu
|
|
|
1273
1102
|
case 15: throw _d.sent();
|
|
1274
1103
|
case 16:
|
|
1275
1104
|
parsedBody = parsedOutput.body;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
$metadata: $metadata,
|
|
1105
|
+
throwDefaultError({
|
|
1106
|
+
output: output,
|
|
1107
|
+
parsedBody: parsedBody,
|
|
1108
|
+
exceptionCtor: __BaseException,
|
|
1109
|
+
errorCode: errorCode,
|
|
1282
1110
|
});
|
|
1283
|
-
|
|
1111
|
+
_d.label = 17;
|
|
1112
|
+
case 17: return [2];
|
|
1284
1113
|
}
|
|
1285
1114
|
});
|
|
1286
1115
|
}); };
|
|
@@ -1292,32 +1121,29 @@ export var deserializeAws_restJson1CreateDeploymentCommand = function (output, c
|
|
|
1292
1121
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1293
1122
|
return [2, deserializeAws_restJson1CreateDeploymentCommandError(output, context)];
|
|
1294
1123
|
}
|
|
1295
|
-
contents = {
|
|
1124
|
+
contents = map({
|
|
1296
1125
|
$metadata: deserializeMetadata(output),
|
|
1297
|
-
|
|
1298
|
-
iotJobArn: undefined,
|
|
1299
|
-
iotJobId: undefined,
|
|
1300
|
-
};
|
|
1126
|
+
});
|
|
1301
1127
|
_a = __expectNonNull;
|
|
1302
1128
|
_b = __expectObject;
|
|
1303
1129
|
return [4, parseBody(output.body, context)];
|
|
1304
1130
|
case 1:
|
|
1305
1131
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1306
|
-
if (data.deploymentId
|
|
1132
|
+
if (data.deploymentId != null) {
|
|
1307
1133
|
contents.deploymentId = __expectString(data.deploymentId);
|
|
1308
1134
|
}
|
|
1309
|
-
if (data.iotJobArn
|
|
1135
|
+
if (data.iotJobArn != null) {
|
|
1310
1136
|
contents.iotJobArn = __expectString(data.iotJobArn);
|
|
1311
1137
|
}
|
|
1312
|
-
if (data.iotJobId
|
|
1138
|
+
if (data.iotJobId != null) {
|
|
1313
1139
|
contents.iotJobId = __expectString(data.iotJobId);
|
|
1314
1140
|
}
|
|
1315
|
-
return [2,
|
|
1141
|
+
return [2, contents];
|
|
1316
1142
|
}
|
|
1317
1143
|
});
|
|
1318
1144
|
}); };
|
|
1319
1145
|
var deserializeAws_restJson1CreateDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1320
|
-
var parsedOutput, _a,
|
|
1146
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1321
1147
|
var _c;
|
|
1322
1148
|
return __generator(this, function (_d) {
|
|
1323
1149
|
switch (_d.label) {
|
|
@@ -1362,14 +1188,14 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
|
|
|
1362
1188
|
case 15: throw _d.sent();
|
|
1363
1189
|
case 16:
|
|
1364
1190
|
parsedBody = parsedOutput.body;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
$metadata: $metadata,
|
|
1191
|
+
throwDefaultError({
|
|
1192
|
+
output: output,
|
|
1193
|
+
parsedBody: parsedBody,
|
|
1194
|
+
exceptionCtor: __BaseException,
|
|
1195
|
+
errorCode: errorCode,
|
|
1371
1196
|
});
|
|
1372
|
-
|
|
1197
|
+
_d.label = 17;
|
|
1198
|
+
case 17: return [2];
|
|
1373
1199
|
}
|
|
1374
1200
|
});
|
|
1375
1201
|
}); };
|
|
@@ -1381,18 +1207,18 @@ export var deserializeAws_restJson1DeleteComponentCommand = function (output, co
|
|
|
1381
1207
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1382
1208
|
return [2, deserializeAws_restJson1DeleteComponentCommandError(output, context)];
|
|
1383
1209
|
}
|
|
1384
|
-
contents = {
|
|
1210
|
+
contents = map({
|
|
1385
1211
|
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1212
|
+
});
|
|
1387
1213
|
return [4, collectBody(output.body, context)];
|
|
1388
1214
|
case 1:
|
|
1389
1215
|
_a.sent();
|
|
1390
|
-
return [2,
|
|
1216
|
+
return [2, contents];
|
|
1391
1217
|
}
|
|
1392
1218
|
});
|
|
1393
1219
|
}); };
|
|
1394
1220
|
var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1395
|
-
var parsedOutput, _a,
|
|
1221
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1396
1222
|
var _c;
|
|
1397
1223
|
return __generator(this, function (_d) {
|
|
1398
1224
|
switch (_d.label) {
|
|
@@ -1433,14 +1259,14 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
1433
1259
|
case 13: throw _d.sent();
|
|
1434
1260
|
case 14:
|
|
1435
1261
|
parsedBody = parsedOutput.body;
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
$metadata: $metadata,
|
|
1262
|
+
throwDefaultError({
|
|
1263
|
+
output: output,
|
|
1264
|
+
parsedBody: parsedBody,
|
|
1265
|
+
exceptionCtor: __BaseException,
|
|
1266
|
+
errorCode: errorCode,
|
|
1442
1267
|
});
|
|
1443
|
-
|
|
1268
|
+
_d.label = 15;
|
|
1269
|
+
case 15: return [2];
|
|
1444
1270
|
}
|
|
1445
1271
|
});
|
|
1446
1272
|
}); };
|
|
@@ -1452,18 +1278,18 @@ export var deserializeAws_restJson1DeleteCoreDeviceCommand = function (output, c
|
|
|
1452
1278
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1453
1279
|
return [2, deserializeAws_restJson1DeleteCoreDeviceCommandError(output, context)];
|
|
1454
1280
|
}
|
|
1455
|
-
contents = {
|
|
1281
|
+
contents = map({
|
|
1456
1282
|
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1283
|
+
});
|
|
1458
1284
|
return [4, collectBody(output.body, context)];
|
|
1459
1285
|
case 1:
|
|
1460
1286
|
_a.sent();
|
|
1461
|
-
return [2,
|
|
1287
|
+
return [2, contents];
|
|
1462
1288
|
}
|
|
1463
1289
|
});
|
|
1464
1290
|
}); };
|
|
1465
1291
|
var deserializeAws_restJson1DeleteCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1466
|
-
var parsedOutput, _a,
|
|
1292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1467
1293
|
var _c;
|
|
1468
1294
|
return __generator(this, function (_d) {
|
|
1469
1295
|
switch (_d.label) {
|
|
@@ -1504,14 +1330,14 @@ var deserializeAws_restJson1DeleteCoreDeviceCommandError = function (output, con
|
|
|
1504
1330
|
case 13: throw _d.sent();
|
|
1505
1331
|
case 14:
|
|
1506
1332
|
parsedBody = parsedOutput.body;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
$metadata: $metadata,
|
|
1333
|
+
throwDefaultError({
|
|
1334
|
+
output: output,
|
|
1335
|
+
parsedBody: parsedBody,
|
|
1336
|
+
exceptionCtor: __BaseException,
|
|
1337
|
+
errorCode: errorCode,
|
|
1513
1338
|
});
|
|
1514
|
-
|
|
1339
|
+
_d.label = 15;
|
|
1340
|
+
case 15: return [2];
|
|
1515
1341
|
}
|
|
1516
1342
|
});
|
|
1517
1343
|
}); };
|
|
@@ -1523,18 +1349,18 @@ export var deserializeAws_restJson1DeleteDeploymentCommand = function (output, c
|
|
|
1523
1349
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1524
1350
|
return [2, deserializeAws_restJson1DeleteDeploymentCommandError(output, context)];
|
|
1525
1351
|
}
|
|
1526
|
-
contents = {
|
|
1352
|
+
contents = map({
|
|
1527
1353
|
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1354
|
+
});
|
|
1529
1355
|
return [4, collectBody(output.body, context)];
|
|
1530
1356
|
case 1:
|
|
1531
1357
|
_a.sent();
|
|
1532
|
-
return [2,
|
|
1358
|
+
return [2, contents];
|
|
1533
1359
|
}
|
|
1534
1360
|
});
|
|
1535
1361
|
}); };
|
|
1536
1362
|
var deserializeAws_restJson1DeleteDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1537
|
-
var parsedOutput, _a,
|
|
1363
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1538
1364
|
var _c;
|
|
1539
1365
|
return __generator(this, function (_d) {
|
|
1540
1366
|
switch (_d.label) {
|
|
@@ -1575,14 +1401,14 @@ var deserializeAws_restJson1DeleteDeploymentCommandError = function (output, con
|
|
|
1575
1401
|
case 13: throw _d.sent();
|
|
1576
1402
|
case 14:
|
|
1577
1403
|
parsedBody = parsedOutput.body;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
$metadata: $metadata,
|
|
1404
|
+
throwDefaultError({
|
|
1405
|
+
output: output,
|
|
1406
|
+
parsedBody: parsedBody,
|
|
1407
|
+
exceptionCtor: __BaseException,
|
|
1408
|
+
errorCode: errorCode,
|
|
1584
1409
|
});
|
|
1585
|
-
|
|
1410
|
+
_d.label = 15;
|
|
1411
|
+
case 15: return [2];
|
|
1586
1412
|
}
|
|
1587
1413
|
});
|
|
1588
1414
|
}); };
|
|
@@ -1594,56 +1420,47 @@ export var deserializeAws_restJson1DescribeComponentCommand = function (output,
|
|
|
1594
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
1421
|
return [2, deserializeAws_restJson1DescribeComponentCommandError(output, context)];
|
|
1596
1422
|
}
|
|
1597
|
-
contents = {
|
|
1423
|
+
contents = map({
|
|
1598
1424
|
$metadata: deserializeMetadata(output),
|
|
1599
|
-
|
|
1600
|
-
componentName: undefined,
|
|
1601
|
-
componentVersion: undefined,
|
|
1602
|
-
creationTimestamp: undefined,
|
|
1603
|
-
description: undefined,
|
|
1604
|
-
platforms: undefined,
|
|
1605
|
-
publisher: undefined,
|
|
1606
|
-
status: undefined,
|
|
1607
|
-
tags: undefined,
|
|
1608
|
-
};
|
|
1425
|
+
});
|
|
1609
1426
|
_a = __expectNonNull;
|
|
1610
1427
|
_b = __expectObject;
|
|
1611
1428
|
return [4, parseBody(output.body, context)];
|
|
1612
1429
|
case 1:
|
|
1613
1430
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1614
|
-
if (data.arn
|
|
1431
|
+
if (data.arn != null) {
|
|
1615
1432
|
contents.arn = __expectString(data.arn);
|
|
1616
1433
|
}
|
|
1617
|
-
if (data.componentName
|
|
1434
|
+
if (data.componentName != null) {
|
|
1618
1435
|
contents.componentName = __expectString(data.componentName);
|
|
1619
1436
|
}
|
|
1620
|
-
if (data.componentVersion
|
|
1437
|
+
if (data.componentVersion != null) {
|
|
1621
1438
|
contents.componentVersion = __expectString(data.componentVersion);
|
|
1622
1439
|
}
|
|
1623
|
-
if (data.creationTimestamp
|
|
1440
|
+
if (data.creationTimestamp != null) {
|
|
1624
1441
|
contents.creationTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTimestamp)));
|
|
1625
1442
|
}
|
|
1626
|
-
if (data.description
|
|
1443
|
+
if (data.description != null) {
|
|
1627
1444
|
contents.description = __expectString(data.description);
|
|
1628
1445
|
}
|
|
1629
|
-
if (data.platforms
|
|
1446
|
+
if (data.platforms != null) {
|
|
1630
1447
|
contents.platforms = deserializeAws_restJson1ComponentPlatformList(data.platforms, context);
|
|
1631
1448
|
}
|
|
1632
|
-
if (data.publisher
|
|
1449
|
+
if (data.publisher != null) {
|
|
1633
1450
|
contents.publisher = __expectString(data.publisher);
|
|
1634
1451
|
}
|
|
1635
|
-
if (data.status
|
|
1452
|
+
if (data.status != null) {
|
|
1636
1453
|
contents.status = deserializeAws_restJson1CloudComponentStatus(data.status, context);
|
|
1637
1454
|
}
|
|
1638
|
-
if (data.tags
|
|
1455
|
+
if (data.tags != null) {
|
|
1639
1456
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1640
1457
|
}
|
|
1641
|
-
return [2,
|
|
1458
|
+
return [2, contents];
|
|
1642
1459
|
}
|
|
1643
1460
|
});
|
|
1644
1461
|
}); };
|
|
1645
1462
|
var deserializeAws_restJson1DescribeComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1646
|
-
var parsedOutput, _a,
|
|
1463
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1647
1464
|
var _c;
|
|
1648
1465
|
return __generator(this, function (_d) {
|
|
1649
1466
|
switch (_d.label) {
|
|
@@ -1680,14 +1497,14 @@ var deserializeAws_restJson1DescribeComponentCommandError = function (output, co
|
|
|
1680
1497
|
case 11: throw _d.sent();
|
|
1681
1498
|
case 12:
|
|
1682
1499
|
parsedBody = parsedOutput.body;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
$metadata: $metadata,
|
|
1500
|
+
throwDefaultError({
|
|
1501
|
+
output: output,
|
|
1502
|
+
parsedBody: parsedBody,
|
|
1503
|
+
exceptionCtor: __BaseException,
|
|
1504
|
+
errorCode: errorCode,
|
|
1689
1505
|
});
|
|
1690
|
-
|
|
1506
|
+
_d.label = 13;
|
|
1507
|
+
case 13: return [2];
|
|
1691
1508
|
}
|
|
1692
1509
|
});
|
|
1693
1510
|
}); };
|
|
@@ -1699,24 +1516,23 @@ export var deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = f
|
|
|
1699
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
1517
|
return [2, deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError(output, context)];
|
|
1701
1518
|
}
|
|
1702
|
-
contents = {
|
|
1519
|
+
contents = map({
|
|
1703
1520
|
$metadata: deserializeMetadata(output),
|
|
1704
|
-
|
|
1705
|
-
};
|
|
1521
|
+
});
|
|
1706
1522
|
_a = __expectNonNull;
|
|
1707
1523
|
_b = __expectObject;
|
|
1708
1524
|
return [4, parseBody(output.body, context)];
|
|
1709
1525
|
case 1:
|
|
1710
1526
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1711
|
-
if (data.DisassociatedAt
|
|
1527
|
+
if (data.DisassociatedAt != null) {
|
|
1712
1528
|
contents.disassociatedAt = __expectString(data.DisassociatedAt);
|
|
1713
1529
|
}
|
|
1714
|
-
return [2,
|
|
1530
|
+
return [2, contents];
|
|
1715
1531
|
}
|
|
1716
1532
|
});
|
|
1717
1533
|
}); };
|
|
1718
1534
|
var deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1719
|
-
var parsedOutput, _a,
|
|
1535
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1720
1536
|
var _c;
|
|
1721
1537
|
return __generator(this, function (_d) {
|
|
1722
1538
|
switch (_d.label) {
|
|
@@ -1737,14 +1553,14 @@ var deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = fun
|
|
|
1737
1553
|
case 3: throw _d.sent();
|
|
1738
1554
|
case 4:
|
|
1739
1555
|
parsedBody = parsedOutput.body;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
$metadata: $metadata,
|
|
1556
|
+
throwDefaultError({
|
|
1557
|
+
output: output,
|
|
1558
|
+
parsedBody: parsedBody,
|
|
1559
|
+
exceptionCtor: __BaseException,
|
|
1560
|
+
errorCode: errorCode,
|
|
1746
1561
|
});
|
|
1747
|
-
|
|
1562
|
+
_d.label = 5;
|
|
1563
|
+
case 5: return [2];
|
|
1748
1564
|
}
|
|
1749
1565
|
});
|
|
1750
1566
|
}); };
|
|
@@ -1756,32 +1572,29 @@ export var deserializeAws_restJson1GetComponentCommand = function (output, conte
|
|
|
1756
1572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1757
1573
|
return [2, deserializeAws_restJson1GetComponentCommandError(output, context)];
|
|
1758
1574
|
}
|
|
1759
|
-
contents = {
|
|
1575
|
+
contents = map({
|
|
1760
1576
|
$metadata: deserializeMetadata(output),
|
|
1761
|
-
|
|
1762
|
-
recipeOutputFormat: undefined,
|
|
1763
|
-
tags: undefined,
|
|
1764
|
-
};
|
|
1577
|
+
});
|
|
1765
1578
|
_a = __expectNonNull;
|
|
1766
1579
|
_b = __expectObject;
|
|
1767
1580
|
return [4, parseBody(output.body, context)];
|
|
1768
1581
|
case 1:
|
|
1769
1582
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1770
|
-
if (data.recipe
|
|
1583
|
+
if (data.recipe != null) {
|
|
1771
1584
|
contents.recipe = context.base64Decoder(data.recipe);
|
|
1772
1585
|
}
|
|
1773
|
-
if (data.recipeOutputFormat
|
|
1586
|
+
if (data.recipeOutputFormat != null) {
|
|
1774
1587
|
contents.recipeOutputFormat = __expectString(data.recipeOutputFormat);
|
|
1775
1588
|
}
|
|
1776
|
-
if (data.tags
|
|
1589
|
+
if (data.tags != null) {
|
|
1777
1590
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1778
1591
|
}
|
|
1779
|
-
return [2,
|
|
1592
|
+
return [2, contents];
|
|
1780
1593
|
}
|
|
1781
1594
|
});
|
|
1782
1595
|
}); };
|
|
1783
1596
|
var deserializeAws_restJson1GetComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1784
|
-
var parsedOutput, _a,
|
|
1597
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1785
1598
|
var _c;
|
|
1786
1599
|
return __generator(this, function (_d) {
|
|
1787
1600
|
switch (_d.label) {
|
|
@@ -1818,14 +1631,14 @@ var deserializeAws_restJson1GetComponentCommandError = function (output, context
|
|
|
1818
1631
|
case 11: throw _d.sent();
|
|
1819
1632
|
case 12:
|
|
1820
1633
|
parsedBody = parsedOutput.body;
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
$metadata: $metadata,
|
|
1634
|
+
throwDefaultError({
|
|
1635
|
+
output: output,
|
|
1636
|
+
parsedBody: parsedBody,
|
|
1637
|
+
exceptionCtor: __BaseException,
|
|
1638
|
+
errorCode: errorCode,
|
|
1827
1639
|
});
|
|
1828
|
-
|
|
1640
|
+
_d.label = 13;
|
|
1641
|
+
case 13: return [2];
|
|
1829
1642
|
}
|
|
1830
1643
|
});
|
|
1831
1644
|
}); };
|
|
@@ -1837,24 +1650,23 @@ export var deserializeAws_restJson1GetComponentVersionArtifactCommand = function
|
|
|
1837
1650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1838
1651
|
return [2, deserializeAws_restJson1GetComponentVersionArtifactCommandError(output, context)];
|
|
1839
1652
|
}
|
|
1840
|
-
contents = {
|
|
1653
|
+
contents = map({
|
|
1841
1654
|
$metadata: deserializeMetadata(output),
|
|
1842
|
-
|
|
1843
|
-
};
|
|
1655
|
+
});
|
|
1844
1656
|
_a = __expectNonNull;
|
|
1845
1657
|
_b = __expectObject;
|
|
1846
1658
|
return [4, parseBody(output.body, context)];
|
|
1847
1659
|
case 1:
|
|
1848
1660
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1849
|
-
if (data.preSignedUrl
|
|
1661
|
+
if (data.preSignedUrl != null) {
|
|
1850
1662
|
contents.preSignedUrl = __expectString(data.preSignedUrl);
|
|
1851
1663
|
}
|
|
1852
|
-
return [2,
|
|
1664
|
+
return [2, contents];
|
|
1853
1665
|
}
|
|
1854
1666
|
});
|
|
1855
1667
|
}); };
|
|
1856
1668
|
var deserializeAws_restJson1GetComponentVersionArtifactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1857
|
-
var parsedOutput, _a,
|
|
1669
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1858
1670
|
var _c;
|
|
1859
1671
|
return __generator(this, function (_d) {
|
|
1860
1672
|
switch (_d.label) {
|
|
@@ -1891,14 +1703,14 @@ var deserializeAws_restJson1GetComponentVersionArtifactCommandError = function (
|
|
|
1891
1703
|
case 11: throw _d.sent();
|
|
1892
1704
|
case 12:
|
|
1893
1705
|
parsedBody = parsedOutput.body;
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
$metadata: $metadata,
|
|
1706
|
+
throwDefaultError({
|
|
1707
|
+
output: output,
|
|
1708
|
+
parsedBody: parsedBody,
|
|
1709
|
+
exceptionCtor: __BaseException,
|
|
1710
|
+
errorCode: errorCode,
|
|
1900
1711
|
});
|
|
1901
|
-
|
|
1712
|
+
_d.label = 13;
|
|
1713
|
+
case 13: return [2];
|
|
1902
1714
|
}
|
|
1903
1715
|
});
|
|
1904
1716
|
}); };
|
|
@@ -1910,28 +1722,26 @@ export var deserializeAws_restJson1GetConnectivityInfoCommand = function (output
|
|
|
1910
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1911
1723
|
return [2, deserializeAws_restJson1GetConnectivityInfoCommandError(output, context)];
|
|
1912
1724
|
}
|
|
1913
|
-
contents = {
|
|
1725
|
+
contents = map({
|
|
1914
1726
|
$metadata: deserializeMetadata(output),
|
|
1915
|
-
|
|
1916
|
-
message: undefined,
|
|
1917
|
-
};
|
|
1727
|
+
});
|
|
1918
1728
|
_a = __expectNonNull;
|
|
1919
1729
|
_b = __expectObject;
|
|
1920
1730
|
return [4, parseBody(output.body, context)];
|
|
1921
1731
|
case 1:
|
|
1922
1732
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1923
|
-
if (data.ConnectivityInfo
|
|
1733
|
+
if (data.ConnectivityInfo != null) {
|
|
1924
1734
|
contents.connectivityInfo = deserializeAws_restJson1connectivityInfoList(data.ConnectivityInfo, context);
|
|
1925
1735
|
}
|
|
1926
|
-
if (data.Message
|
|
1736
|
+
if (data.Message != null) {
|
|
1927
1737
|
contents.message = __expectString(data.Message);
|
|
1928
1738
|
}
|
|
1929
|
-
return [2,
|
|
1739
|
+
return [2, contents];
|
|
1930
1740
|
}
|
|
1931
1741
|
});
|
|
1932
1742
|
}); };
|
|
1933
1743
|
var deserializeAws_restJson1GetConnectivityInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1934
|
-
var parsedOutput, _a,
|
|
1744
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1935
1745
|
var _c;
|
|
1936
1746
|
return __generator(this, function (_d) {
|
|
1937
1747
|
switch (_d.label) {
|
|
@@ -1956,14 +1766,14 @@ var deserializeAws_restJson1GetConnectivityInfoCommandError = function (output,
|
|
|
1956
1766
|
case 5: throw _d.sent();
|
|
1957
1767
|
case 6:
|
|
1958
1768
|
parsedBody = parsedOutput.body;
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
$metadata: $metadata,
|
|
1769
|
+
throwDefaultError({
|
|
1770
|
+
output: output,
|
|
1771
|
+
parsedBody: parsedBody,
|
|
1772
|
+
exceptionCtor: __BaseException,
|
|
1773
|
+
errorCode: errorCode,
|
|
1965
1774
|
});
|
|
1966
|
-
|
|
1775
|
+
_d.label = 7;
|
|
1776
|
+
case 7: return [2];
|
|
1967
1777
|
}
|
|
1968
1778
|
});
|
|
1969
1779
|
}); };
|
|
@@ -1975,48 +1785,41 @@ export var deserializeAws_restJson1GetCoreDeviceCommand = function (output, cont
|
|
|
1975
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
1786
|
return [2, deserializeAws_restJson1GetCoreDeviceCommandError(output, context)];
|
|
1977
1787
|
}
|
|
1978
|
-
contents = {
|
|
1788
|
+
contents = map({
|
|
1979
1789
|
$metadata: deserializeMetadata(output),
|
|
1980
|
-
|
|
1981
|
-
coreDeviceThingName: undefined,
|
|
1982
|
-
coreVersion: undefined,
|
|
1983
|
-
lastStatusUpdateTimestamp: undefined,
|
|
1984
|
-
platform: undefined,
|
|
1985
|
-
status: undefined,
|
|
1986
|
-
tags: undefined,
|
|
1987
|
-
};
|
|
1790
|
+
});
|
|
1988
1791
|
_a = __expectNonNull;
|
|
1989
1792
|
_b = __expectObject;
|
|
1990
1793
|
return [4, parseBody(output.body, context)];
|
|
1991
1794
|
case 1:
|
|
1992
1795
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1993
|
-
if (data.architecture
|
|
1796
|
+
if (data.architecture != null) {
|
|
1994
1797
|
contents.architecture = __expectString(data.architecture);
|
|
1995
1798
|
}
|
|
1996
|
-
if (data.coreDeviceThingName
|
|
1799
|
+
if (data.coreDeviceThingName != null) {
|
|
1997
1800
|
contents.coreDeviceThingName = __expectString(data.coreDeviceThingName);
|
|
1998
1801
|
}
|
|
1999
|
-
if (data.coreVersion
|
|
1802
|
+
if (data.coreVersion != null) {
|
|
2000
1803
|
contents.coreVersion = __expectString(data.coreVersion);
|
|
2001
1804
|
}
|
|
2002
|
-
if (data.lastStatusUpdateTimestamp
|
|
1805
|
+
if (data.lastStatusUpdateTimestamp != null) {
|
|
2003
1806
|
contents.lastStatusUpdateTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastStatusUpdateTimestamp)));
|
|
2004
1807
|
}
|
|
2005
|
-
if (data.platform
|
|
1808
|
+
if (data.platform != null) {
|
|
2006
1809
|
contents.platform = __expectString(data.platform);
|
|
2007
1810
|
}
|
|
2008
|
-
if (data.status
|
|
1811
|
+
if (data.status != null) {
|
|
2009
1812
|
contents.status = __expectString(data.status);
|
|
2010
1813
|
}
|
|
2011
|
-
if (data.tags
|
|
1814
|
+
if (data.tags != null) {
|
|
2012
1815
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2013
1816
|
}
|
|
2014
|
-
return [2,
|
|
1817
|
+
return [2, contents];
|
|
2015
1818
|
}
|
|
2016
1819
|
});
|
|
2017
1820
|
}); };
|
|
2018
1821
|
var deserializeAws_restJson1GetCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2019
|
-
var parsedOutput, _a,
|
|
1822
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2020
1823
|
var _c;
|
|
2021
1824
|
return __generator(this, function (_d) {
|
|
2022
1825
|
switch (_d.label) {
|
|
@@ -2053,14 +1856,14 @@ var deserializeAws_restJson1GetCoreDeviceCommandError = function (output, contex
|
|
|
2053
1856
|
case 11: throw _d.sent();
|
|
2054
1857
|
case 12:
|
|
2055
1858
|
parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
$metadata: $metadata,
|
|
1859
|
+
throwDefaultError({
|
|
1860
|
+
output: output,
|
|
1861
|
+
parsedBody: parsedBody,
|
|
1862
|
+
exceptionCtor: __BaseException,
|
|
1863
|
+
errorCode: errorCode,
|
|
2062
1864
|
});
|
|
2063
|
-
|
|
1865
|
+
_d.label = 13;
|
|
1866
|
+
case 13: return [2];
|
|
2064
1867
|
}
|
|
2065
1868
|
});
|
|
2066
1869
|
}); };
|
|
@@ -2072,72 +1875,59 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
|
|
|
2072
1875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
1876
|
return [2, deserializeAws_restJson1GetDeploymentCommandError(output, context)];
|
|
2074
1877
|
}
|
|
2075
|
-
contents = {
|
|
1878
|
+
contents = map({
|
|
2076
1879
|
$metadata: deserializeMetadata(output),
|
|
2077
|
-
|
|
2078
|
-
creationTimestamp: undefined,
|
|
2079
|
-
deploymentId: undefined,
|
|
2080
|
-
deploymentName: undefined,
|
|
2081
|
-
deploymentPolicies: undefined,
|
|
2082
|
-
deploymentStatus: undefined,
|
|
2083
|
-
iotJobArn: undefined,
|
|
2084
|
-
iotJobConfiguration: undefined,
|
|
2085
|
-
iotJobId: undefined,
|
|
2086
|
-
isLatestForTarget: undefined,
|
|
2087
|
-
revisionId: undefined,
|
|
2088
|
-
tags: undefined,
|
|
2089
|
-
targetArn: undefined,
|
|
2090
|
-
};
|
|
1880
|
+
});
|
|
2091
1881
|
_a = __expectNonNull;
|
|
2092
1882
|
_b = __expectObject;
|
|
2093
1883
|
return [4, parseBody(output.body, context)];
|
|
2094
1884
|
case 1:
|
|
2095
1885
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2096
|
-
if (data.components
|
|
1886
|
+
if (data.components != null) {
|
|
2097
1887
|
contents.components = deserializeAws_restJson1ComponentDeploymentSpecifications(data.components, context);
|
|
2098
1888
|
}
|
|
2099
|
-
if (data.creationTimestamp
|
|
1889
|
+
if (data.creationTimestamp != null) {
|
|
2100
1890
|
contents.creationTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.creationTimestamp)));
|
|
2101
1891
|
}
|
|
2102
|
-
if (data.deploymentId
|
|
1892
|
+
if (data.deploymentId != null) {
|
|
2103
1893
|
contents.deploymentId = __expectString(data.deploymentId);
|
|
2104
1894
|
}
|
|
2105
|
-
if (data.deploymentName
|
|
1895
|
+
if (data.deploymentName != null) {
|
|
2106
1896
|
contents.deploymentName = __expectString(data.deploymentName);
|
|
2107
1897
|
}
|
|
2108
|
-
if (data.deploymentPolicies
|
|
1898
|
+
if (data.deploymentPolicies != null) {
|
|
2109
1899
|
contents.deploymentPolicies = deserializeAws_restJson1DeploymentPolicies(data.deploymentPolicies, context);
|
|
2110
1900
|
}
|
|
2111
|
-
if (data.deploymentStatus
|
|
1901
|
+
if (data.deploymentStatus != null) {
|
|
2112
1902
|
contents.deploymentStatus = __expectString(data.deploymentStatus);
|
|
2113
1903
|
}
|
|
2114
|
-
if (data.iotJobArn
|
|
1904
|
+
if (data.iotJobArn != null) {
|
|
2115
1905
|
contents.iotJobArn = __expectString(data.iotJobArn);
|
|
2116
1906
|
}
|
|
2117
|
-
if (data.iotJobConfiguration
|
|
1907
|
+
if (data.iotJobConfiguration != null) {
|
|
2118
1908
|
contents.iotJobConfiguration = deserializeAws_restJson1DeploymentIoTJobConfiguration(data.iotJobConfiguration, context);
|
|
2119
1909
|
}
|
|
2120
|
-
if (data.iotJobId
|
|
1910
|
+
if (data.iotJobId != null) {
|
|
2121
1911
|
contents.iotJobId = __expectString(data.iotJobId);
|
|
2122
1912
|
}
|
|
2123
|
-
if (data.isLatestForTarget
|
|
1913
|
+
if (data.isLatestForTarget != null) {
|
|
2124
1914
|
contents.isLatestForTarget = __expectBoolean(data.isLatestForTarget);
|
|
2125
1915
|
}
|
|
2126
|
-
if (data.revisionId
|
|
1916
|
+
if (data.revisionId != null) {
|
|
2127
1917
|
contents.revisionId = __expectString(data.revisionId);
|
|
2128
1918
|
}
|
|
2129
|
-
if (data.tags
|
|
1919
|
+
if (data.tags != null) {
|
|
2130
1920
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2131
1921
|
}
|
|
2132
|
-
if (data.targetArn
|
|
1922
|
+
if (data.targetArn != null) {
|
|
2133
1923
|
contents.targetArn = __expectString(data.targetArn);
|
|
2134
1924
|
}
|
|
2135
|
-
return [2,
|
|
1925
|
+
return [2, contents];
|
|
2136
1926
|
}
|
|
2137
1927
|
});
|
|
2138
1928
|
}); };
|
|
2139
1929
|
var deserializeAws_restJson1GetDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2140
|
-
var parsedOutput, _a,
|
|
1930
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2141
1931
|
var _c;
|
|
2142
1932
|
return __generator(this, function (_d) {
|
|
2143
1933
|
switch (_d.label) {
|
|
@@ -2174,14 +1964,14 @@ var deserializeAws_restJson1GetDeploymentCommandError = function (output, contex
|
|
|
2174
1964
|
case 11: throw _d.sent();
|
|
2175
1965
|
case 12:
|
|
2176
1966
|
parsedBody = parsedOutput.body;
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
$metadata: $metadata,
|
|
1967
|
+
throwDefaultError({
|
|
1968
|
+
output: output,
|
|
1969
|
+
parsedBody: parsedBody,
|
|
1970
|
+
exceptionCtor: __BaseException,
|
|
1971
|
+
errorCode: errorCode,
|
|
2183
1972
|
});
|
|
2184
|
-
|
|
1973
|
+
_d.label = 13;
|
|
1974
|
+
case 13: return [2];
|
|
2185
1975
|
}
|
|
2186
1976
|
});
|
|
2187
1977
|
}); };
|
|
@@ -2193,28 +1983,26 @@ export var deserializeAws_restJson1GetServiceRoleForAccountCommand = function (o
|
|
|
2193
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
1984
|
return [2, deserializeAws_restJson1GetServiceRoleForAccountCommandError(output, context)];
|
|
2195
1985
|
}
|
|
2196
|
-
contents = {
|
|
1986
|
+
contents = map({
|
|
2197
1987
|
$metadata: deserializeMetadata(output),
|
|
2198
|
-
|
|
2199
|
-
roleArn: undefined,
|
|
2200
|
-
};
|
|
1988
|
+
});
|
|
2201
1989
|
_a = __expectNonNull;
|
|
2202
1990
|
_b = __expectObject;
|
|
2203
1991
|
return [4, parseBody(output.body, context)];
|
|
2204
1992
|
case 1:
|
|
2205
1993
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2206
|
-
if (data.AssociatedAt
|
|
1994
|
+
if (data.AssociatedAt != null) {
|
|
2207
1995
|
contents.associatedAt = __expectString(data.AssociatedAt);
|
|
2208
1996
|
}
|
|
2209
|
-
if (data.RoleArn
|
|
1997
|
+
if (data.RoleArn != null) {
|
|
2210
1998
|
contents.roleArn = __expectString(data.RoleArn);
|
|
2211
1999
|
}
|
|
2212
|
-
return [2,
|
|
2000
|
+
return [2, contents];
|
|
2213
2001
|
}
|
|
2214
2002
|
});
|
|
2215
2003
|
}); };
|
|
2216
2004
|
var deserializeAws_restJson1GetServiceRoleForAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2217
|
-
var parsedOutput, _a,
|
|
2005
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2218
2006
|
var _c;
|
|
2219
2007
|
return __generator(this, function (_d) {
|
|
2220
2008
|
switch (_d.label) {
|
|
@@ -2235,14 +2023,14 @@ var deserializeAws_restJson1GetServiceRoleForAccountCommandError = function (out
|
|
|
2235
2023
|
case 3: throw _d.sent();
|
|
2236
2024
|
case 4:
|
|
2237
2025
|
parsedBody = parsedOutput.body;
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
$metadata: $metadata,
|
|
2026
|
+
throwDefaultError({
|
|
2027
|
+
output: output,
|
|
2028
|
+
parsedBody: parsedBody,
|
|
2029
|
+
exceptionCtor: __BaseException,
|
|
2030
|
+
errorCode: errorCode,
|
|
2244
2031
|
});
|
|
2245
|
-
|
|
2032
|
+
_d.label = 5;
|
|
2033
|
+
case 5: return [2];
|
|
2246
2034
|
}
|
|
2247
2035
|
});
|
|
2248
2036
|
}); };
|
|
@@ -2254,28 +2042,26 @@ export var deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceComm
|
|
|
2254
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2255
2043
|
return [2, deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandError(output, context)];
|
|
2256
2044
|
}
|
|
2257
|
-
contents = {
|
|
2045
|
+
contents = map({
|
|
2258
2046
|
$metadata: deserializeMetadata(output),
|
|
2259
|
-
|
|
2260
|
-
nextToken: undefined,
|
|
2261
|
-
};
|
|
2047
|
+
});
|
|
2262
2048
|
_a = __expectNonNull;
|
|
2263
2049
|
_b = __expectObject;
|
|
2264
2050
|
return [4, parseBody(output.body, context)];
|
|
2265
2051
|
case 1:
|
|
2266
2052
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2267
|
-
if (data.associatedClientDevices
|
|
2053
|
+
if (data.associatedClientDevices != null) {
|
|
2268
2054
|
contents.associatedClientDevices = deserializeAws_restJson1AssociatedClientDeviceList(data.associatedClientDevices, context);
|
|
2269
2055
|
}
|
|
2270
|
-
if (data.nextToken
|
|
2056
|
+
if (data.nextToken != null) {
|
|
2271
2057
|
contents.nextToken = __expectString(data.nextToken);
|
|
2272
2058
|
}
|
|
2273
|
-
return [2,
|
|
2059
|
+
return [2, contents];
|
|
2274
2060
|
}
|
|
2275
2061
|
});
|
|
2276
2062
|
}); };
|
|
2277
2063
|
var deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2278
|
-
var parsedOutput, _a,
|
|
2064
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2279
2065
|
var _c;
|
|
2280
2066
|
return __generator(this, function (_d) {
|
|
2281
2067
|
switch (_d.label) {
|
|
@@ -2312,14 +2098,14 @@ var deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandErro
|
|
|
2312
2098
|
case 11: throw _d.sent();
|
|
2313
2099
|
case 12:
|
|
2314
2100
|
parsedBody = parsedOutput.body;
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
$metadata: $metadata,
|
|
2101
|
+
throwDefaultError({
|
|
2102
|
+
output: output,
|
|
2103
|
+
parsedBody: parsedBody,
|
|
2104
|
+
exceptionCtor: __BaseException,
|
|
2105
|
+
errorCode: errorCode,
|
|
2321
2106
|
});
|
|
2322
|
-
|
|
2107
|
+
_d.label = 13;
|
|
2108
|
+
case 13: return [2];
|
|
2323
2109
|
}
|
|
2324
2110
|
});
|
|
2325
2111
|
}); };
|
|
@@ -2331,28 +2117,26 @@ export var deserializeAws_restJson1ListComponentsCommand = function (output, con
|
|
|
2331
2117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2332
2118
|
return [2, deserializeAws_restJson1ListComponentsCommandError(output, context)];
|
|
2333
2119
|
}
|
|
2334
|
-
contents = {
|
|
2120
|
+
contents = map({
|
|
2335
2121
|
$metadata: deserializeMetadata(output),
|
|
2336
|
-
|
|
2337
|
-
nextToken: undefined,
|
|
2338
|
-
};
|
|
2122
|
+
});
|
|
2339
2123
|
_a = __expectNonNull;
|
|
2340
2124
|
_b = __expectObject;
|
|
2341
2125
|
return [4, parseBody(output.body, context)];
|
|
2342
2126
|
case 1:
|
|
2343
2127
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2344
|
-
if (data.components
|
|
2128
|
+
if (data.components != null) {
|
|
2345
2129
|
contents.components = deserializeAws_restJson1ComponentList(data.components, context);
|
|
2346
2130
|
}
|
|
2347
|
-
if (data.nextToken
|
|
2131
|
+
if (data.nextToken != null) {
|
|
2348
2132
|
contents.nextToken = __expectString(data.nextToken);
|
|
2349
2133
|
}
|
|
2350
|
-
return [2,
|
|
2134
|
+
return [2, contents];
|
|
2351
2135
|
}
|
|
2352
2136
|
});
|
|
2353
2137
|
}); };
|
|
2354
2138
|
var deserializeAws_restJson1ListComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2355
|
-
var parsedOutput, _a,
|
|
2139
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2356
2140
|
var _c;
|
|
2357
2141
|
return __generator(this, function (_d) {
|
|
2358
2142
|
switch (_d.label) {
|
|
@@ -2389,14 +2173,14 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
|
|
|
2389
2173
|
case 11: throw _d.sent();
|
|
2390
2174
|
case 12:
|
|
2391
2175
|
parsedBody = parsedOutput.body;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
$metadata: $metadata,
|
|
2176
|
+
throwDefaultError({
|
|
2177
|
+
output: output,
|
|
2178
|
+
parsedBody: parsedBody,
|
|
2179
|
+
exceptionCtor: __BaseException,
|
|
2180
|
+
errorCode: errorCode,
|
|
2398
2181
|
});
|
|
2399
|
-
|
|
2182
|
+
_d.label = 13;
|
|
2183
|
+
case 13: return [2];
|
|
2400
2184
|
}
|
|
2401
2185
|
});
|
|
2402
2186
|
}); };
|
|
@@ -2408,28 +2192,26 @@ export var deserializeAws_restJson1ListComponentVersionsCommand = function (outp
|
|
|
2408
2192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2409
2193
|
return [2, deserializeAws_restJson1ListComponentVersionsCommandError(output, context)];
|
|
2410
2194
|
}
|
|
2411
|
-
contents = {
|
|
2195
|
+
contents = map({
|
|
2412
2196
|
$metadata: deserializeMetadata(output),
|
|
2413
|
-
|
|
2414
|
-
nextToken: undefined,
|
|
2415
|
-
};
|
|
2197
|
+
});
|
|
2416
2198
|
_a = __expectNonNull;
|
|
2417
2199
|
_b = __expectObject;
|
|
2418
2200
|
return [4, parseBody(output.body, context)];
|
|
2419
2201
|
case 1:
|
|
2420
2202
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2421
|
-
if (data.componentVersions
|
|
2203
|
+
if (data.componentVersions != null) {
|
|
2422
2204
|
contents.componentVersions = deserializeAws_restJson1ComponentVersionList(data.componentVersions, context);
|
|
2423
2205
|
}
|
|
2424
|
-
if (data.nextToken
|
|
2206
|
+
if (data.nextToken != null) {
|
|
2425
2207
|
contents.nextToken = __expectString(data.nextToken);
|
|
2426
2208
|
}
|
|
2427
|
-
return [2,
|
|
2209
|
+
return [2, contents];
|
|
2428
2210
|
}
|
|
2429
2211
|
});
|
|
2430
2212
|
}); };
|
|
2431
2213
|
var deserializeAws_restJson1ListComponentVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2432
|
-
var parsedOutput, _a,
|
|
2214
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2433
2215
|
var _c;
|
|
2434
2216
|
return __generator(this, function (_d) {
|
|
2435
2217
|
switch (_d.label) {
|
|
@@ -2466,14 +2248,14 @@ var deserializeAws_restJson1ListComponentVersionsCommandError = function (output
|
|
|
2466
2248
|
case 11: throw _d.sent();
|
|
2467
2249
|
case 12:
|
|
2468
2250
|
parsedBody = parsedOutput.body;
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
$metadata: $metadata,
|
|
2251
|
+
throwDefaultError({
|
|
2252
|
+
output: output,
|
|
2253
|
+
parsedBody: parsedBody,
|
|
2254
|
+
exceptionCtor: __BaseException,
|
|
2255
|
+
errorCode: errorCode,
|
|
2475
2256
|
});
|
|
2476
|
-
|
|
2257
|
+
_d.label = 13;
|
|
2258
|
+
case 13: return [2];
|
|
2477
2259
|
}
|
|
2478
2260
|
});
|
|
2479
2261
|
}); };
|
|
@@ -2485,28 +2267,26 @@ export var deserializeAws_restJson1ListCoreDevicesCommand = function (output, co
|
|
|
2485
2267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2486
2268
|
return [2, deserializeAws_restJson1ListCoreDevicesCommandError(output, context)];
|
|
2487
2269
|
}
|
|
2488
|
-
contents = {
|
|
2270
|
+
contents = map({
|
|
2489
2271
|
$metadata: deserializeMetadata(output),
|
|
2490
|
-
|
|
2491
|
-
nextToken: undefined,
|
|
2492
|
-
};
|
|
2272
|
+
});
|
|
2493
2273
|
_a = __expectNonNull;
|
|
2494
2274
|
_b = __expectObject;
|
|
2495
2275
|
return [4, parseBody(output.body, context)];
|
|
2496
2276
|
case 1:
|
|
2497
2277
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2498
|
-
if (data.coreDevices
|
|
2278
|
+
if (data.coreDevices != null) {
|
|
2499
2279
|
contents.coreDevices = deserializeAws_restJson1CoreDevicesList(data.coreDevices, context);
|
|
2500
2280
|
}
|
|
2501
|
-
if (data.nextToken
|
|
2281
|
+
if (data.nextToken != null) {
|
|
2502
2282
|
contents.nextToken = __expectString(data.nextToken);
|
|
2503
2283
|
}
|
|
2504
|
-
return [2,
|
|
2284
|
+
return [2, contents];
|
|
2505
2285
|
}
|
|
2506
2286
|
});
|
|
2507
2287
|
}); };
|
|
2508
2288
|
var deserializeAws_restJson1ListCoreDevicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2509
|
-
var parsedOutput, _a,
|
|
2289
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2510
2290
|
var _c;
|
|
2511
2291
|
return __generator(this, function (_d) {
|
|
2512
2292
|
switch (_d.label) {
|
|
@@ -2539,14 +2319,14 @@ var deserializeAws_restJson1ListCoreDevicesCommandError = function (output, cont
|
|
|
2539
2319
|
case 9: throw _d.sent();
|
|
2540
2320
|
case 10:
|
|
2541
2321
|
parsedBody = parsedOutput.body;
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
$metadata: $metadata,
|
|
2322
|
+
throwDefaultError({
|
|
2323
|
+
output: output,
|
|
2324
|
+
parsedBody: parsedBody,
|
|
2325
|
+
exceptionCtor: __BaseException,
|
|
2326
|
+
errorCode: errorCode,
|
|
2548
2327
|
});
|
|
2549
|
-
|
|
2328
|
+
_d.label = 11;
|
|
2329
|
+
case 11: return [2];
|
|
2550
2330
|
}
|
|
2551
2331
|
});
|
|
2552
2332
|
}); };
|
|
@@ -2558,28 +2338,26 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
2558
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2559
2339
|
return [2, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
|
|
2560
2340
|
}
|
|
2561
|
-
contents = {
|
|
2341
|
+
contents = map({
|
|
2562
2342
|
$metadata: deserializeMetadata(output),
|
|
2563
|
-
|
|
2564
|
-
nextToken: undefined,
|
|
2565
|
-
};
|
|
2343
|
+
});
|
|
2566
2344
|
_a = __expectNonNull;
|
|
2567
2345
|
_b = __expectObject;
|
|
2568
2346
|
return [4, parseBody(output.body, context)];
|
|
2569
2347
|
case 1:
|
|
2570
2348
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2571
|
-
if (data.deployments
|
|
2349
|
+
if (data.deployments != null) {
|
|
2572
2350
|
contents.deployments = deserializeAws_restJson1DeploymentList(data.deployments, context);
|
|
2573
2351
|
}
|
|
2574
|
-
if (data.nextToken
|
|
2352
|
+
if (data.nextToken != null) {
|
|
2575
2353
|
contents.nextToken = __expectString(data.nextToken);
|
|
2576
2354
|
}
|
|
2577
|
-
return [2,
|
|
2355
|
+
return [2, contents];
|
|
2578
2356
|
}
|
|
2579
2357
|
});
|
|
2580
2358
|
}); };
|
|
2581
2359
|
var deserializeAws_restJson1ListDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2582
|
-
var parsedOutput, _a,
|
|
2360
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2583
2361
|
var _c;
|
|
2584
2362
|
return __generator(this, function (_d) {
|
|
2585
2363
|
switch (_d.label) {
|
|
@@ -2612,14 +2390,14 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
|
|
|
2612
2390
|
case 9: throw _d.sent();
|
|
2613
2391
|
case 10:
|
|
2614
2392
|
parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
$metadata: $metadata,
|
|
2393
|
+
throwDefaultError({
|
|
2394
|
+
output: output,
|
|
2395
|
+
parsedBody: parsedBody,
|
|
2396
|
+
exceptionCtor: __BaseException,
|
|
2397
|
+
errorCode: errorCode,
|
|
2621
2398
|
});
|
|
2622
|
-
|
|
2399
|
+
_d.label = 11;
|
|
2400
|
+
case 11: return [2];
|
|
2623
2401
|
}
|
|
2624
2402
|
});
|
|
2625
2403
|
}); };
|
|
@@ -2631,28 +2409,26 @@ export var deserializeAws_restJson1ListEffectiveDeploymentsCommand = function (o
|
|
|
2631
2409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2632
2410
|
return [2, deserializeAws_restJson1ListEffectiveDeploymentsCommandError(output, context)];
|
|
2633
2411
|
}
|
|
2634
|
-
contents = {
|
|
2412
|
+
contents = map({
|
|
2635
2413
|
$metadata: deserializeMetadata(output),
|
|
2636
|
-
|
|
2637
|
-
nextToken: undefined,
|
|
2638
|
-
};
|
|
2414
|
+
});
|
|
2639
2415
|
_a = __expectNonNull;
|
|
2640
2416
|
_b = __expectObject;
|
|
2641
2417
|
return [4, parseBody(output.body, context)];
|
|
2642
2418
|
case 1:
|
|
2643
2419
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2644
|
-
if (data.effectiveDeployments
|
|
2420
|
+
if (data.effectiveDeployments != null) {
|
|
2645
2421
|
contents.effectiveDeployments = deserializeAws_restJson1EffectiveDeploymentsList(data.effectiveDeployments, context);
|
|
2646
2422
|
}
|
|
2647
|
-
if (data.nextToken
|
|
2423
|
+
if (data.nextToken != null) {
|
|
2648
2424
|
contents.nextToken = __expectString(data.nextToken);
|
|
2649
2425
|
}
|
|
2650
|
-
return [2,
|
|
2426
|
+
return [2, contents];
|
|
2651
2427
|
}
|
|
2652
2428
|
});
|
|
2653
2429
|
}); };
|
|
2654
2430
|
var deserializeAws_restJson1ListEffectiveDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2655
|
-
var parsedOutput, _a,
|
|
2431
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2656
2432
|
var _c;
|
|
2657
2433
|
return __generator(this, function (_d) {
|
|
2658
2434
|
switch (_d.label) {
|
|
@@ -2689,14 +2465,14 @@ var deserializeAws_restJson1ListEffectiveDeploymentsCommandError = function (out
|
|
|
2689
2465
|
case 11: throw _d.sent();
|
|
2690
2466
|
case 12:
|
|
2691
2467
|
parsedBody = parsedOutput.body;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
$metadata: $metadata,
|
|
2468
|
+
throwDefaultError({
|
|
2469
|
+
output: output,
|
|
2470
|
+
parsedBody: parsedBody,
|
|
2471
|
+
exceptionCtor: __BaseException,
|
|
2472
|
+
errorCode: errorCode,
|
|
2698
2473
|
});
|
|
2699
|
-
|
|
2474
|
+
_d.label = 13;
|
|
2475
|
+
case 13: return [2];
|
|
2700
2476
|
}
|
|
2701
2477
|
});
|
|
2702
2478
|
}); };
|
|
@@ -2708,28 +2484,26 @@ export var deserializeAws_restJson1ListInstalledComponentsCommand = function (ou
|
|
|
2708
2484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2709
2485
|
return [2, deserializeAws_restJson1ListInstalledComponentsCommandError(output, context)];
|
|
2710
2486
|
}
|
|
2711
|
-
contents = {
|
|
2487
|
+
contents = map({
|
|
2712
2488
|
$metadata: deserializeMetadata(output),
|
|
2713
|
-
|
|
2714
|
-
nextToken: undefined,
|
|
2715
|
-
};
|
|
2489
|
+
});
|
|
2716
2490
|
_a = __expectNonNull;
|
|
2717
2491
|
_b = __expectObject;
|
|
2718
2492
|
return [4, parseBody(output.body, context)];
|
|
2719
2493
|
case 1:
|
|
2720
2494
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2721
|
-
if (data.installedComponents
|
|
2495
|
+
if (data.installedComponents != null) {
|
|
2722
2496
|
contents.installedComponents = deserializeAws_restJson1InstalledComponentList(data.installedComponents, context);
|
|
2723
2497
|
}
|
|
2724
|
-
if (data.nextToken
|
|
2498
|
+
if (data.nextToken != null) {
|
|
2725
2499
|
contents.nextToken = __expectString(data.nextToken);
|
|
2726
2500
|
}
|
|
2727
|
-
return [2,
|
|
2501
|
+
return [2, contents];
|
|
2728
2502
|
}
|
|
2729
2503
|
});
|
|
2730
2504
|
}); };
|
|
2731
2505
|
var deserializeAws_restJson1ListInstalledComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2732
|
-
var parsedOutput, _a,
|
|
2506
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2733
2507
|
var _c;
|
|
2734
2508
|
return __generator(this, function (_d) {
|
|
2735
2509
|
switch (_d.label) {
|
|
@@ -2766,14 +2540,14 @@ var deserializeAws_restJson1ListInstalledComponentsCommandError = function (outp
|
|
|
2766
2540
|
case 11: throw _d.sent();
|
|
2767
2541
|
case 12:
|
|
2768
2542
|
parsedBody = parsedOutput.body;
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
$metadata: $metadata,
|
|
2543
|
+
throwDefaultError({
|
|
2544
|
+
output: output,
|
|
2545
|
+
parsedBody: parsedBody,
|
|
2546
|
+
exceptionCtor: __BaseException,
|
|
2547
|
+
errorCode: errorCode,
|
|
2775
2548
|
});
|
|
2776
|
-
|
|
2549
|
+
_d.label = 13;
|
|
2550
|
+
case 13: return [2];
|
|
2777
2551
|
}
|
|
2778
2552
|
});
|
|
2779
2553
|
}); };
|
|
@@ -2785,24 +2559,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2785
2559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2786
2560
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2787
2561
|
}
|
|
2788
|
-
contents = {
|
|
2562
|
+
contents = map({
|
|
2789
2563
|
$metadata: deserializeMetadata(output),
|
|
2790
|
-
|
|
2791
|
-
};
|
|
2564
|
+
});
|
|
2792
2565
|
_a = __expectNonNull;
|
|
2793
2566
|
_b = __expectObject;
|
|
2794
2567
|
return [4, parseBody(output.body, context)];
|
|
2795
2568
|
case 1:
|
|
2796
2569
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2797
|
-
if (data.tags
|
|
2570
|
+
if (data.tags != null) {
|
|
2798
2571
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2799
2572
|
}
|
|
2800
|
-
return [2,
|
|
2573
|
+
return [2, contents];
|
|
2801
2574
|
}
|
|
2802
2575
|
});
|
|
2803
2576
|
}); };
|
|
2804
2577
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2805
|
-
var parsedOutput, _a,
|
|
2578
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2806
2579
|
var _c;
|
|
2807
2580
|
return __generator(this, function (_d) {
|
|
2808
2581
|
switch (_d.label) {
|
|
@@ -2831,14 +2604,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2831
2604
|
case 7: throw _d.sent();
|
|
2832
2605
|
case 8:
|
|
2833
2606
|
parsedBody = parsedOutput.body;
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
$metadata: $metadata,
|
|
2607
|
+
throwDefaultError({
|
|
2608
|
+
output: output,
|
|
2609
|
+
parsedBody: parsedBody,
|
|
2610
|
+
exceptionCtor: __BaseException,
|
|
2611
|
+
errorCode: errorCode,
|
|
2840
2612
|
});
|
|
2841
|
-
|
|
2613
|
+
_d.label = 9;
|
|
2614
|
+
case 9: return [2];
|
|
2842
2615
|
}
|
|
2843
2616
|
});
|
|
2844
2617
|
}); };
|
|
@@ -2850,24 +2623,23 @@ export var deserializeAws_restJson1ResolveComponentCandidatesCommand = function
|
|
|
2850
2623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2851
2624
|
return [2, deserializeAws_restJson1ResolveComponentCandidatesCommandError(output, context)];
|
|
2852
2625
|
}
|
|
2853
|
-
contents = {
|
|
2626
|
+
contents = map({
|
|
2854
2627
|
$metadata: deserializeMetadata(output),
|
|
2855
|
-
|
|
2856
|
-
};
|
|
2628
|
+
});
|
|
2857
2629
|
_a = __expectNonNull;
|
|
2858
2630
|
_b = __expectObject;
|
|
2859
2631
|
return [4, parseBody(output.body, context)];
|
|
2860
2632
|
case 1:
|
|
2861
2633
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2862
|
-
if (data.resolvedComponentVersions
|
|
2634
|
+
if (data.resolvedComponentVersions != null) {
|
|
2863
2635
|
contents.resolvedComponentVersions = deserializeAws_restJson1ResolvedComponentVersionsList(data.resolvedComponentVersions, context);
|
|
2864
2636
|
}
|
|
2865
|
-
return [2,
|
|
2637
|
+
return [2, contents];
|
|
2866
2638
|
}
|
|
2867
2639
|
});
|
|
2868
2640
|
}); };
|
|
2869
2641
|
var deserializeAws_restJson1ResolveComponentCandidatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2870
|
-
var parsedOutput, _a,
|
|
2642
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2871
2643
|
var _c;
|
|
2872
2644
|
return __generator(this, function (_d) {
|
|
2873
2645
|
switch (_d.label) {
|
|
@@ -2908,14 +2680,14 @@ var deserializeAws_restJson1ResolveComponentCandidatesCommandError = function (o
|
|
|
2908
2680
|
case 13: throw _d.sent();
|
|
2909
2681
|
case 14:
|
|
2910
2682
|
parsedBody = parsedOutput.body;
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
$metadata: $metadata,
|
|
2683
|
+
throwDefaultError({
|
|
2684
|
+
output: output,
|
|
2685
|
+
parsedBody: parsedBody,
|
|
2686
|
+
exceptionCtor: __BaseException,
|
|
2687
|
+
errorCode: errorCode,
|
|
2917
2688
|
});
|
|
2918
|
-
|
|
2689
|
+
_d.label = 15;
|
|
2690
|
+
case 15: return [2];
|
|
2919
2691
|
}
|
|
2920
2692
|
});
|
|
2921
2693
|
}); };
|
|
@@ -2927,18 +2699,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2927
2699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2928
2700
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2929
2701
|
}
|
|
2930
|
-
contents = {
|
|
2702
|
+
contents = map({
|
|
2931
2703
|
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2704
|
+
});
|
|
2933
2705
|
return [4, collectBody(output.body, context)];
|
|
2934
2706
|
case 1:
|
|
2935
2707
|
_a.sent();
|
|
2936
|
-
return [2,
|
|
2708
|
+
return [2, contents];
|
|
2937
2709
|
}
|
|
2938
2710
|
});
|
|
2939
2711
|
}); };
|
|
2940
2712
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2941
|
-
var parsedOutput, _a,
|
|
2713
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2942
2714
|
var _c;
|
|
2943
2715
|
return __generator(this, function (_d) {
|
|
2944
2716
|
switch (_d.label) {
|
|
@@ -2967,14 +2739,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2967
2739
|
case 7: throw _d.sent();
|
|
2968
2740
|
case 8:
|
|
2969
2741
|
parsedBody = parsedOutput.body;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
$metadata: $metadata,
|
|
2742
|
+
throwDefaultError({
|
|
2743
|
+
output: output,
|
|
2744
|
+
parsedBody: parsedBody,
|
|
2745
|
+
exceptionCtor: __BaseException,
|
|
2746
|
+
errorCode: errorCode,
|
|
2976
2747
|
});
|
|
2977
|
-
|
|
2748
|
+
_d.label = 9;
|
|
2749
|
+
case 9: return [2];
|
|
2978
2750
|
}
|
|
2979
2751
|
});
|
|
2980
2752
|
}); };
|
|
@@ -2986,18 +2758,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2986
2758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2987
2759
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2988
2760
|
}
|
|
2989
|
-
contents = {
|
|
2761
|
+
contents = map({
|
|
2990
2762
|
$metadata: deserializeMetadata(output),
|
|
2991
|
-
};
|
|
2763
|
+
});
|
|
2992
2764
|
return [4, collectBody(output.body, context)];
|
|
2993
2765
|
case 1:
|
|
2994
2766
|
_a.sent();
|
|
2995
|
-
return [2,
|
|
2767
|
+
return [2, contents];
|
|
2996
2768
|
}
|
|
2997
2769
|
});
|
|
2998
2770
|
}); };
|
|
2999
2771
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3000
|
-
var parsedOutput, _a,
|
|
2772
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3001
2773
|
var _c;
|
|
3002
2774
|
return __generator(this, function (_d) {
|
|
3003
2775
|
switch (_d.label) {
|
|
@@ -3026,14 +2798,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3026
2798
|
case 7: throw _d.sent();
|
|
3027
2799
|
case 8:
|
|
3028
2800
|
parsedBody = parsedOutput.body;
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
$metadata: $metadata,
|
|
2801
|
+
throwDefaultError({
|
|
2802
|
+
output: output,
|
|
2803
|
+
parsedBody: parsedBody,
|
|
2804
|
+
exceptionCtor: __BaseException,
|
|
2805
|
+
errorCode: errorCode,
|
|
3035
2806
|
});
|
|
3036
|
-
|
|
2807
|
+
_d.label = 9;
|
|
2808
|
+
case 9: return [2];
|
|
3037
2809
|
}
|
|
3038
2810
|
});
|
|
3039
2811
|
}); };
|
|
@@ -3045,28 +2817,26 @@ export var deserializeAws_restJson1UpdateConnectivityInfoCommand = function (out
|
|
|
3045
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3046
2818
|
return [2, deserializeAws_restJson1UpdateConnectivityInfoCommandError(output, context)];
|
|
3047
2819
|
}
|
|
3048
|
-
contents = {
|
|
2820
|
+
contents = map({
|
|
3049
2821
|
$metadata: deserializeMetadata(output),
|
|
3050
|
-
|
|
3051
|
-
version: undefined,
|
|
3052
|
-
};
|
|
2822
|
+
});
|
|
3053
2823
|
_a = __expectNonNull;
|
|
3054
2824
|
_b = __expectObject;
|
|
3055
2825
|
return [4, parseBody(output.body, context)];
|
|
3056
2826
|
case 1:
|
|
3057
2827
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3058
|
-
if (data.Message
|
|
2828
|
+
if (data.Message != null) {
|
|
3059
2829
|
contents.message = __expectString(data.Message);
|
|
3060
2830
|
}
|
|
3061
|
-
if (data.Version
|
|
2831
|
+
if (data.Version != null) {
|
|
3062
2832
|
contents.version = __expectString(data.Version);
|
|
3063
2833
|
}
|
|
3064
|
-
return [2,
|
|
2834
|
+
return [2, contents];
|
|
3065
2835
|
}
|
|
3066
2836
|
});
|
|
3067
2837
|
}); };
|
|
3068
2838
|
var deserializeAws_restJson1UpdateConnectivityInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3069
|
-
var parsedOutput, _a,
|
|
2839
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3070
2840
|
var _c;
|
|
3071
2841
|
return __generator(this, function (_d) {
|
|
3072
2842
|
switch (_d.label) {
|
|
@@ -3091,23 +2861,24 @@ var deserializeAws_restJson1UpdateConnectivityInfoCommandError = function (outpu
|
|
|
3091
2861
|
case 5: throw _d.sent();
|
|
3092
2862
|
case 6:
|
|
3093
2863
|
parsedBody = parsedOutput.body;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
$metadata: $metadata,
|
|
2864
|
+
throwDefaultError({
|
|
2865
|
+
output: output,
|
|
2866
|
+
parsedBody: parsedBody,
|
|
2867
|
+
exceptionCtor: __BaseException,
|
|
2868
|
+
errorCode: errorCode,
|
|
3100
2869
|
});
|
|
3101
|
-
|
|
2870
|
+
_d.label = 7;
|
|
2871
|
+
case 7: return [2];
|
|
3102
2872
|
}
|
|
3103
2873
|
});
|
|
3104
2874
|
}); };
|
|
2875
|
+
var map = __map;
|
|
3105
2876
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3106
2877
|
var contents, data, exception;
|
|
3107
2878
|
return __generator(this, function (_a) {
|
|
3108
|
-
contents = {};
|
|
2879
|
+
contents = map({});
|
|
3109
2880
|
data = parsedOutput.body;
|
|
3110
|
-
if (data.message
|
|
2881
|
+
if (data.message != null) {
|
|
3111
2882
|
contents.message = __expectString(data.message);
|
|
3112
2883
|
}
|
|
3113
2884
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3117,15 +2888,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3117
2888
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3118
2889
|
var contents, data, exception;
|
|
3119
2890
|
return __generator(this, function (_a) {
|
|
3120
|
-
contents = {};
|
|
2891
|
+
contents = map({});
|
|
3121
2892
|
data = parsedOutput.body;
|
|
3122
|
-
if (data.message
|
|
2893
|
+
if (data.message != null) {
|
|
3123
2894
|
contents.message = __expectString(data.message);
|
|
3124
2895
|
}
|
|
3125
|
-
if (data.resourceId
|
|
2896
|
+
if (data.resourceId != null) {
|
|
3126
2897
|
contents.resourceId = __expectString(data.resourceId);
|
|
3127
2898
|
}
|
|
3128
|
-
if (data.resourceType
|
|
2899
|
+
if (data.resourceType != null) {
|
|
3129
2900
|
contents.resourceType = __expectString(data.resourceType);
|
|
3130
2901
|
}
|
|
3131
2902
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3135,12 +2906,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3135
2906
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3136
2907
|
var contents, data, exception;
|
|
3137
2908
|
return __generator(this, function (_a) {
|
|
3138
|
-
contents = {
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
2909
|
+
contents = map({
|
|
2910
|
+
retryAfterSeconds: [
|
|
2911
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
2912
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
2913
|
+
],
|
|
2914
|
+
});
|
|
3142
2915
|
data = parsedOutput.body;
|
|
3143
|
-
if (data.message
|
|
2916
|
+
if (data.message != null) {
|
|
3144
2917
|
contents.message = __expectString(data.message);
|
|
3145
2918
|
}
|
|
3146
2919
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3150,9 +2923,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3150
2923
|
var deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3151
2924
|
var contents, data, exception;
|
|
3152
2925
|
return __generator(this, function (_a) {
|
|
3153
|
-
contents = {};
|
|
2926
|
+
contents = map({});
|
|
3154
2927
|
data = parsedOutput.body;
|
|
3155
|
-
if (data.message
|
|
2928
|
+
if (data.message != null) {
|
|
3156
2929
|
contents.message = __expectString(data.message);
|
|
3157
2930
|
}
|
|
3158
2931
|
exception = new RequestAlreadyInProgressException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3162,15 +2935,15 @@ var deserializeAws_restJson1RequestAlreadyInProgressExceptionResponse = function
|
|
|
3162
2935
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3163
2936
|
var contents, data, exception;
|
|
3164
2937
|
return __generator(this, function (_a) {
|
|
3165
|
-
contents = {};
|
|
2938
|
+
contents = map({});
|
|
3166
2939
|
data = parsedOutput.body;
|
|
3167
|
-
if (data.message
|
|
2940
|
+
if (data.message != null) {
|
|
3168
2941
|
contents.message = __expectString(data.message);
|
|
3169
2942
|
}
|
|
3170
|
-
if (data.resourceId
|
|
2943
|
+
if (data.resourceId != null) {
|
|
3171
2944
|
contents.resourceId = __expectString(data.resourceId);
|
|
3172
2945
|
}
|
|
3173
|
-
if (data.resourceType
|
|
2946
|
+
if (data.resourceType != null) {
|
|
3174
2947
|
contents.resourceType = __expectString(data.resourceType);
|
|
3175
2948
|
}
|
|
3176
2949
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3180,21 +2953,21 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3180
2953
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3181
2954
|
var contents, data, exception;
|
|
3182
2955
|
return __generator(this, function (_a) {
|
|
3183
|
-
contents = {};
|
|
2956
|
+
contents = map({});
|
|
3184
2957
|
data = parsedOutput.body;
|
|
3185
|
-
if (data.message
|
|
2958
|
+
if (data.message != null) {
|
|
3186
2959
|
contents.message = __expectString(data.message);
|
|
3187
2960
|
}
|
|
3188
|
-
if (data.quotaCode
|
|
2961
|
+
if (data.quotaCode != null) {
|
|
3189
2962
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
3190
2963
|
}
|
|
3191
|
-
if (data.resourceId
|
|
2964
|
+
if (data.resourceId != null) {
|
|
3192
2965
|
contents.resourceId = __expectString(data.resourceId);
|
|
3193
2966
|
}
|
|
3194
|
-
if (data.resourceType
|
|
2967
|
+
if (data.resourceType != null) {
|
|
3195
2968
|
contents.resourceType = __expectString(data.resourceType);
|
|
3196
2969
|
}
|
|
3197
|
-
if (data.serviceCode
|
|
2970
|
+
if (data.serviceCode != null) {
|
|
3198
2971
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3199
2972
|
}
|
|
3200
2973
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3204,18 +2977,20 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3204
2977
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3205
2978
|
var contents, data, exception;
|
|
3206
2979
|
return __generator(this, function (_a) {
|
|
3207
|
-
contents = {
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
2980
|
+
contents = map({
|
|
2981
|
+
retryAfterSeconds: [
|
|
2982
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
2983
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
2984
|
+
],
|
|
2985
|
+
});
|
|
3211
2986
|
data = parsedOutput.body;
|
|
3212
|
-
if (data.message
|
|
2987
|
+
if (data.message != null) {
|
|
3213
2988
|
contents.message = __expectString(data.message);
|
|
3214
2989
|
}
|
|
3215
|
-
if (data.quotaCode
|
|
2990
|
+
if (data.quotaCode != null) {
|
|
3216
2991
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
3217
2992
|
}
|
|
3218
|
-
if (data.serviceCode
|
|
2993
|
+
if (data.serviceCode != null) {
|
|
3219
2994
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
3220
2995
|
}
|
|
3221
2996
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3225,15 +3000,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3225
3000
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3226
3001
|
var contents, data, exception;
|
|
3227
3002
|
return __generator(this, function (_a) {
|
|
3228
|
-
contents = {};
|
|
3003
|
+
contents = map({});
|
|
3229
3004
|
data = parsedOutput.body;
|
|
3230
|
-
if (data.fields
|
|
3005
|
+
if (data.fields != null) {
|
|
3231
3006
|
contents.fields = deserializeAws_restJson1ValidationExceptionFieldList(data.fields, context);
|
|
3232
3007
|
}
|
|
3233
|
-
if (data.message
|
|
3008
|
+
if (data.message != null) {
|
|
3234
3009
|
contents.message = __expectString(data.message);
|
|
3235
3010
|
}
|
|
3236
|
-
if (data.reason
|
|
3011
|
+
if (data.reason != null) {
|
|
3237
3012
|
contents.reason = __expectString(data.reason);
|
|
3238
3013
|
}
|
|
3239
3014
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3247,9 +3022,6 @@ var serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList = functio
|
|
|
3247
3022
|
return input
|
|
3248
3023
|
.filter(function (e) { return e != null; })
|
|
3249
3024
|
.map(function (entry) {
|
|
3250
|
-
if (entry === null) {
|
|
3251
|
-
return null;
|
|
3252
|
-
}
|
|
3253
3025
|
return serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntry(entry, context);
|
|
3254
3026
|
});
|
|
3255
3027
|
};
|
|
@@ -3262,9 +3034,6 @@ var serializeAws_restJson1ComponentCandidateList = function (input, context) {
|
|
|
3262
3034
|
return input
|
|
3263
3035
|
.filter(function (e) { return e != null; })
|
|
3264
3036
|
.map(function (entry) {
|
|
3265
|
-
if (entry === null) {
|
|
3266
|
-
return null;
|
|
3267
|
-
}
|
|
3268
3037
|
return serializeAws_restJson1ComponentCandidate(entry, context);
|
|
3269
3038
|
});
|
|
3270
3039
|
};
|
|
@@ -3272,9 +3041,6 @@ var serializeAws_restJson1ComponentConfigurationPathList = function (input, cont
|
|
|
3272
3041
|
return input
|
|
3273
3042
|
.filter(function (e) { return e != null; })
|
|
3274
3043
|
.map(function (entry) {
|
|
3275
|
-
if (entry === null) {
|
|
3276
|
-
return null;
|
|
3277
|
-
}
|
|
3278
3044
|
return entry;
|
|
3279
3045
|
});
|
|
3280
3046
|
};
|
|
@@ -3318,9 +3084,6 @@ var serializeAws_restJson1ComponentPlatformList = function (input, context) {
|
|
|
3318
3084
|
return input
|
|
3319
3085
|
.filter(function (e) { return e != null; })
|
|
3320
3086
|
.map(function (entry) {
|
|
3321
|
-
if (entry === null) {
|
|
3322
|
-
return null;
|
|
3323
|
-
}
|
|
3324
3087
|
return serializeAws_restJson1ComponentPlatform(entry, context);
|
|
3325
3088
|
});
|
|
3326
3089
|
};
|
|
@@ -3346,9 +3109,6 @@ var serializeAws_restJson1connectivityInfoList = function (input, context) {
|
|
|
3346
3109
|
return input
|
|
3347
3110
|
.filter(function (e) { return e != null; })
|
|
3348
3111
|
.map(function (entry) {
|
|
3349
|
-
if (entry === null) {
|
|
3350
|
-
return null;
|
|
3351
|
-
}
|
|
3352
3112
|
return serializeAws_restJson1ConnectivityInfo(entry, context);
|
|
3353
3113
|
});
|
|
3354
3114
|
};
|
|
@@ -3381,9 +3141,6 @@ var serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntryList = func
|
|
|
3381
3141
|
return input
|
|
3382
3142
|
.filter(function (e) { return e != null; })
|
|
3383
3143
|
.map(function (entry) {
|
|
3384
|
-
if (entry === null) {
|
|
3385
|
-
return null;
|
|
3386
|
-
}
|
|
3387
3144
|
return serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntry(entry, context);
|
|
3388
3145
|
});
|
|
3389
3146
|
};
|
|
@@ -3399,9 +3156,6 @@ var serializeAws_restJson1IoTJobAbortCriteriaList = function (input, context) {
|
|
|
3399
3156
|
return input
|
|
3400
3157
|
.filter(function (e) { return e != null; })
|
|
3401
3158
|
.map(function (entry) {
|
|
3402
|
-
if (entry === null) {
|
|
3403
|
-
return null;
|
|
3404
|
-
}
|
|
3405
3159
|
return serializeAws_restJson1IoTJobAbortCriteria(entry, context);
|
|
3406
3160
|
});
|
|
3407
3161
|
};
|
|
@@ -3428,9 +3182,6 @@ var serializeAws_restJson1LambdaDeviceList = function (input, context) {
|
|
|
3428
3182
|
return input
|
|
3429
3183
|
.filter(function (e) { return e != null; })
|
|
3430
3184
|
.map(function (entry) {
|
|
3431
|
-
if (entry === null) {
|
|
3432
|
-
return null;
|
|
3433
|
-
}
|
|
3434
3185
|
return serializeAws_restJson1LambdaDeviceMount(entry, context);
|
|
3435
3186
|
});
|
|
3436
3187
|
};
|
|
@@ -3454,9 +3205,6 @@ var serializeAws_restJson1LambdaEventSourceList = function (input, context) {
|
|
|
3454
3205
|
return input
|
|
3455
3206
|
.filter(function (e) { return e != null; })
|
|
3456
3207
|
.map(function (entry) {
|
|
3457
|
-
if (entry === null) {
|
|
3458
|
-
return null;
|
|
3459
|
-
}
|
|
3460
3208
|
return serializeAws_restJson1LambdaEventSource(entry, context);
|
|
3461
3209
|
});
|
|
3462
3210
|
};
|
|
@@ -3464,9 +3212,6 @@ var serializeAws_restJson1LambdaExecArgsList = function (input, context) {
|
|
|
3464
3212
|
return input
|
|
3465
3213
|
.filter(function (e) { return e != null; })
|
|
3466
3214
|
.map(function (entry) {
|
|
3467
|
-
if (entry === null) {
|
|
3468
|
-
return null;
|
|
3469
|
-
}
|
|
3470
3215
|
return entry;
|
|
3471
3216
|
});
|
|
3472
3217
|
};
|
|
@@ -3497,9 +3242,6 @@ var serializeAws_restJson1LambdaVolumeList = function (input, context) {
|
|
|
3497
3242
|
return input
|
|
3498
3243
|
.filter(function (e) { return e != null; })
|
|
3499
3244
|
.map(function (entry) {
|
|
3500
|
-
if (entry === null) {
|
|
3501
|
-
return null;
|
|
3502
|
-
}
|
|
3503
3245
|
return serializeAws_restJson1LambdaVolumeMount(entry, context);
|
|
3504
3246
|
});
|
|
3505
3247
|
};
|