@aws-sdk/client-imagebuilder 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +615 -971
- package/dist-es/protocols/Aws_restJson1.js +769 -937
- package/package.json +6 -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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ImagebuilderServiceException as __BaseException } from "../models/ImagebuilderServiceException";
|
|
6
6
|
import { CallRateLimitExceededException, ClientException, ForbiddenException, IdempotentParameterMismatchException, InvalidPaginationTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidParameterValueException, InvalidRequestException, InvalidVersionNumberException, ResourceAlreadyExistsException, ResourceDependencyException, ResourceInUseException, ResourceNotFoundException, ServiceException, ServiceQuotaExceededException, ServiceUnavailableException, } from "../models/models_0";
|
|
@@ -253,7 +253,9 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
|
|
|
253
253
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
254
254
|
headers = {};
|
|
255
255
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteComponent";
|
|
256
|
-
query =
|
|
256
|
+
query = map({
|
|
257
|
+
componentBuildVersionArn: [, input.componentBuildVersionArn],
|
|
258
|
+
});
|
|
257
259
|
return [2, new __HttpRequest({
|
|
258
260
|
protocol: protocol,
|
|
259
261
|
hostname: hostname,
|
|
@@ -276,7 +278,9 @@ export var serializeAws_restJson1DeleteContainerRecipeCommand = function (input,
|
|
|
276
278
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
277
279
|
headers = {};
|
|
278
280
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteContainerRecipe";
|
|
279
|
-
query =
|
|
281
|
+
query = map({
|
|
282
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
283
|
+
});
|
|
280
284
|
return [2, new __HttpRequest({
|
|
281
285
|
protocol: protocol,
|
|
282
286
|
hostname: hostname,
|
|
@@ -299,9 +303,9 @@ export var serializeAws_restJson1DeleteDistributionConfigurationCommand = functi
|
|
|
299
303
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
300
304
|
headers = {};
|
|
301
305
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteDistributionConfiguration";
|
|
302
|
-
query =
|
|
303
|
-
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
304
|
-
})
|
|
306
|
+
query = map({
|
|
307
|
+
distributionConfigurationArn: [, input.distributionConfigurationArn],
|
|
308
|
+
});
|
|
305
309
|
return [2, new __HttpRequest({
|
|
306
310
|
protocol: protocol,
|
|
307
311
|
hostname: hostname,
|
|
@@ -324,7 +328,9 @@ export var serializeAws_restJson1DeleteImageCommand = function (input, context)
|
|
|
324
328
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
325
329
|
headers = {};
|
|
326
330
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImage";
|
|
327
|
-
query =
|
|
331
|
+
query = map({
|
|
332
|
+
imageBuildVersionArn: [, input.imageBuildVersionArn],
|
|
333
|
+
});
|
|
328
334
|
return [2, new __HttpRequest({
|
|
329
335
|
protocol: protocol,
|
|
330
336
|
hostname: hostname,
|
|
@@ -347,7 +353,9 @@ export var serializeAws_restJson1DeleteImagePipelineCommand = function (input, c
|
|
|
347
353
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
348
354
|
headers = {};
|
|
349
355
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImagePipeline";
|
|
350
|
-
query =
|
|
356
|
+
query = map({
|
|
357
|
+
imagePipelineArn: [, input.imagePipelineArn],
|
|
358
|
+
});
|
|
351
359
|
return [2, new __HttpRequest({
|
|
352
360
|
protocol: protocol,
|
|
353
361
|
hostname: hostname,
|
|
@@ -370,7 +378,9 @@ export var serializeAws_restJson1DeleteImageRecipeCommand = function (input, con
|
|
|
370
378
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
379
|
headers = {};
|
|
372
380
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImageRecipe";
|
|
373
|
-
query =
|
|
381
|
+
query = map({
|
|
382
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
383
|
+
});
|
|
374
384
|
return [2, new __HttpRequest({
|
|
375
385
|
protocol: protocol,
|
|
376
386
|
hostname: hostname,
|
|
@@ -393,9 +403,9 @@ export var serializeAws_restJson1DeleteInfrastructureConfigurationCommand = func
|
|
|
393
403
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
394
404
|
headers = {};
|
|
395
405
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteInfrastructureConfiguration";
|
|
396
|
-
query =
|
|
397
|
-
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
398
|
-
})
|
|
406
|
+
query = map({
|
|
407
|
+
infrastructureConfigurationArn: [, input.infrastructureConfigurationArn],
|
|
408
|
+
});
|
|
399
409
|
return [2, new __HttpRequest({
|
|
400
410
|
protocol: protocol,
|
|
401
411
|
hostname: hostname,
|
|
@@ -418,7 +428,9 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
|
|
|
418
428
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
419
429
|
headers = {};
|
|
420
430
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponent";
|
|
421
|
-
query =
|
|
431
|
+
query = map({
|
|
432
|
+
componentBuildVersionArn: [, input.componentBuildVersionArn],
|
|
433
|
+
});
|
|
422
434
|
return [2, new __HttpRequest({
|
|
423
435
|
protocol: protocol,
|
|
424
436
|
hostname: hostname,
|
|
@@ -441,7 +453,9 @@ export var serializeAws_restJson1GetComponentPolicyCommand = function (input, co
|
|
|
441
453
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
442
454
|
headers = {};
|
|
443
455
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponentPolicy";
|
|
444
|
-
query =
|
|
456
|
+
query = map({
|
|
457
|
+
componentArn: [, input.componentArn],
|
|
458
|
+
});
|
|
445
459
|
return [2, new __HttpRequest({
|
|
446
460
|
protocol: protocol,
|
|
447
461
|
hostname: hostname,
|
|
@@ -464,7 +478,9 @@ export var serializeAws_restJson1GetContainerRecipeCommand = function (input, co
|
|
|
464
478
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
465
479
|
headers = {};
|
|
466
480
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipe";
|
|
467
|
-
query =
|
|
481
|
+
query = map({
|
|
482
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
483
|
+
});
|
|
468
484
|
return [2, new __HttpRequest({
|
|
469
485
|
protocol: protocol,
|
|
470
486
|
hostname: hostname,
|
|
@@ -487,7 +503,9 @@ export var serializeAws_restJson1GetContainerRecipePolicyCommand = function (inp
|
|
|
487
503
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
488
504
|
headers = {};
|
|
489
505
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipePolicy";
|
|
490
|
-
query =
|
|
506
|
+
query = map({
|
|
507
|
+
containerRecipeArn: [, input.containerRecipeArn],
|
|
508
|
+
});
|
|
491
509
|
return [2, new __HttpRequest({
|
|
492
510
|
protocol: protocol,
|
|
493
511
|
hostname: hostname,
|
|
@@ -510,9 +528,9 @@ export var serializeAws_restJson1GetDistributionConfigurationCommand = function
|
|
|
510
528
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
511
529
|
headers = {};
|
|
512
530
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetDistributionConfiguration";
|
|
513
|
-
query =
|
|
514
|
-
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
515
|
-
})
|
|
531
|
+
query = map({
|
|
532
|
+
distributionConfigurationArn: [, input.distributionConfigurationArn],
|
|
533
|
+
});
|
|
516
534
|
return [2, new __HttpRequest({
|
|
517
535
|
protocol: protocol,
|
|
518
536
|
hostname: hostname,
|
|
@@ -535,7 +553,9 @@ export var serializeAws_restJson1GetImageCommand = function (input, context) { r
|
|
|
535
553
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
536
554
|
headers = {};
|
|
537
555
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImage";
|
|
538
|
-
query =
|
|
556
|
+
query = map({
|
|
557
|
+
imageBuildVersionArn: [, input.imageBuildVersionArn],
|
|
558
|
+
});
|
|
539
559
|
return [2, new __HttpRequest({
|
|
540
560
|
protocol: protocol,
|
|
541
561
|
hostname: hostname,
|
|
@@ -558,7 +578,9 @@ export var serializeAws_restJson1GetImagePipelineCommand = function (input, cont
|
|
|
558
578
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
559
579
|
headers = {};
|
|
560
580
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePipeline";
|
|
561
|
-
query =
|
|
581
|
+
query = map({
|
|
582
|
+
imagePipelineArn: [, input.imagePipelineArn],
|
|
583
|
+
});
|
|
562
584
|
return [2, new __HttpRequest({
|
|
563
585
|
protocol: protocol,
|
|
564
586
|
hostname: hostname,
|
|
@@ -581,7 +603,9 @@ export var serializeAws_restJson1GetImagePolicyCommand = function (input, contex
|
|
|
581
603
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
582
604
|
headers = {};
|
|
583
605
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePolicy";
|
|
584
|
-
query =
|
|
606
|
+
query = map({
|
|
607
|
+
imageArn: [, input.imageArn],
|
|
608
|
+
});
|
|
585
609
|
return [2, new __HttpRequest({
|
|
586
610
|
protocol: protocol,
|
|
587
611
|
hostname: hostname,
|
|
@@ -604,7 +628,9 @@ export var serializeAws_restJson1GetImageRecipeCommand = function (input, contex
|
|
|
604
628
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
605
629
|
headers = {};
|
|
606
630
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipe";
|
|
607
|
-
query =
|
|
631
|
+
query = map({
|
|
632
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
633
|
+
});
|
|
608
634
|
return [2, new __HttpRequest({
|
|
609
635
|
protocol: protocol,
|
|
610
636
|
hostname: hostname,
|
|
@@ -627,7 +653,9 @@ export var serializeAws_restJson1GetImageRecipePolicyCommand = function (input,
|
|
|
627
653
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
628
654
|
headers = {};
|
|
629
655
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipePolicy";
|
|
630
|
-
query =
|
|
656
|
+
query = map({
|
|
657
|
+
imageRecipeArn: [, input.imageRecipeArn],
|
|
658
|
+
});
|
|
631
659
|
return [2, new __HttpRequest({
|
|
632
660
|
protocol: protocol,
|
|
633
661
|
hostname: hostname,
|
|
@@ -650,9 +678,9 @@ export var serializeAws_restJson1GetInfrastructureConfigurationCommand = functio
|
|
|
650
678
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
651
679
|
headers = {};
|
|
652
680
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetInfrastructureConfiguration";
|
|
653
|
-
query =
|
|
654
|
-
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
655
|
-
})
|
|
681
|
+
query = map({
|
|
682
|
+
infrastructureConfigurationArn: [, input.infrastructureConfigurationArn],
|
|
683
|
+
});
|
|
656
684
|
return [2, new __HttpRequest({
|
|
657
685
|
protocol: protocol,
|
|
658
686
|
hostname: hostname,
|
|
@@ -981,7 +1009,7 @@ export var serializeAws_restJson1ListInfrastructureConfigurationsCommand = funct
|
|
|
981
1009
|
});
|
|
982
1010
|
}); };
|
|
983
1011
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1012
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
985
1013
|
return __generator(this, function (_c) {
|
|
986
1014
|
switch (_c.label) {
|
|
987
1015
|
case 0: return [4, context.endpoint()];
|
|
@@ -989,16 +1017,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
989
1017
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
990
1018
|
headers = {};
|
|
991
1019
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
992
|
-
|
|
993
|
-
labelValue = input.resourceArn;
|
|
994
|
-
if (labelValue.length <= 0) {
|
|
995
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
996
|
-
}
|
|
997
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
998
|
-
}
|
|
999
|
-
else {
|
|
1000
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1001
|
-
}
|
|
1020
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1002
1021
|
return [2, new __HttpRequest({
|
|
1003
1022
|
protocol: protocol,
|
|
1004
1023
|
hostname: hostname,
|
|
@@ -1133,7 +1152,7 @@ export var serializeAws_restJson1StartImagePipelineExecutionCommand = function (
|
|
|
1133
1152
|
});
|
|
1134
1153
|
}); };
|
|
1135
1154
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1136
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1155
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1137
1156
|
return __generator(this, function (_c) {
|
|
1138
1157
|
switch (_c.label) {
|
|
1139
1158
|
case 0: return [4, context.endpoint()];
|
|
@@ -1143,16 +1162,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1143
1162
|
"content-type": "application/json",
|
|
1144
1163
|
};
|
|
1145
1164
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1146
|
-
|
|
1147
|
-
labelValue = input.resourceArn;
|
|
1148
|
-
if (labelValue.length <= 0) {
|
|
1149
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1150
|
-
}
|
|
1151
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1152
|
-
}
|
|
1153
|
-
else {
|
|
1154
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1155
|
-
}
|
|
1165
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1156
1166
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1157
1167
|
return [2, new __HttpRequest({
|
|
1158
1168
|
protocol: protocol,
|
|
@@ -1167,7 +1177,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1167
1177
|
});
|
|
1168
1178
|
}); };
|
|
1169
1179
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1170
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1180
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1171
1181
|
return __generator(this, function (_c) {
|
|
1172
1182
|
switch (_c.label) {
|
|
1173
1183
|
case 0: return [4, context.endpoint()];
|
|
@@ -1175,17 +1185,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1175
1185
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1176
1186
|
headers = {};
|
|
1177
1187
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}
|
|
1183
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1184
|
-
}
|
|
1185
|
-
else {
|
|
1186
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1187
|
-
}
|
|
1188
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1188
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1189
|
+
query = map({
|
|
1190
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
1191
|
+
});
|
|
1189
1192
|
return [2, new __HttpRequest({
|
|
1190
1193
|
protocol: protocol,
|
|
1191
1194
|
hostname: hostname,
|
|
@@ -1304,32 +1307,29 @@ export var deserializeAws_restJson1CancelImageCreationCommand = function (output
|
|
|
1304
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1305
1308
|
return [2, deserializeAws_restJson1CancelImageCreationCommandError(output, context)];
|
|
1306
1309
|
}
|
|
1307
|
-
contents = {
|
|
1310
|
+
contents = map({
|
|
1308
1311
|
$metadata: deserializeMetadata(output),
|
|
1309
|
-
|
|
1310
|
-
imageBuildVersionArn: undefined,
|
|
1311
|
-
requestId: undefined,
|
|
1312
|
-
};
|
|
1312
|
+
});
|
|
1313
1313
|
_a = __expectNonNull;
|
|
1314
1314
|
_b = __expectObject;
|
|
1315
1315
|
return [4, parseBody(output.body, context)];
|
|
1316
1316
|
case 1:
|
|
1317
1317
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1318
|
-
if (data.clientToken
|
|
1318
|
+
if (data.clientToken != null) {
|
|
1319
1319
|
contents.clientToken = __expectString(data.clientToken);
|
|
1320
1320
|
}
|
|
1321
|
-
if (data.imageBuildVersionArn
|
|
1321
|
+
if (data.imageBuildVersionArn != null) {
|
|
1322
1322
|
contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
|
|
1323
1323
|
}
|
|
1324
|
-
if (data.requestId
|
|
1324
|
+
if (data.requestId != null) {
|
|
1325
1325
|
contents.requestId = __expectString(data.requestId);
|
|
1326
1326
|
}
|
|
1327
|
-
return [2,
|
|
1327
|
+
return [2, contents];
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
1330
1330
|
}); };
|
|
1331
1331
|
var deserializeAws_restJson1CancelImageCreationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1332
|
-
var parsedOutput, _a,
|
|
1332
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1333
1333
|
var _c;
|
|
1334
1334
|
return __generator(this, function (_d) {
|
|
1335
1335
|
switch (_d.label) {
|
|
@@ -1378,14 +1378,14 @@ var deserializeAws_restJson1CancelImageCreationCommandError = function (output,
|
|
|
1378
1378
|
case 17: throw _d.sent();
|
|
1379
1379
|
case 18:
|
|
1380
1380
|
parsedBody = parsedOutput.body;
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
$metadata: $metadata,
|
|
1381
|
+
throwDefaultError({
|
|
1382
|
+
output: output,
|
|
1383
|
+
parsedBody: parsedBody,
|
|
1384
|
+
exceptionCtor: __BaseException,
|
|
1385
|
+
errorCode: errorCode,
|
|
1387
1386
|
});
|
|
1388
|
-
|
|
1387
|
+
_d.label = 19;
|
|
1388
|
+
case 19: return [2];
|
|
1389
1389
|
}
|
|
1390
1390
|
});
|
|
1391
1391
|
}); };
|
|
@@ -1397,32 +1397,29 @@ export var deserializeAws_restJson1CreateComponentCommand = function (output, co
|
|
|
1397
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
1398
|
return [2, deserializeAws_restJson1CreateComponentCommandError(output, context)];
|
|
1399
1399
|
}
|
|
1400
|
-
contents = {
|
|
1400
|
+
contents = map({
|
|
1401
1401
|
$metadata: deserializeMetadata(output),
|
|
1402
|
-
|
|
1403
|
-
componentBuildVersionArn: undefined,
|
|
1404
|
-
requestId: undefined,
|
|
1405
|
-
};
|
|
1402
|
+
});
|
|
1406
1403
|
_a = __expectNonNull;
|
|
1407
1404
|
_b = __expectObject;
|
|
1408
1405
|
return [4, parseBody(output.body, context)];
|
|
1409
1406
|
case 1:
|
|
1410
1407
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1411
|
-
if (data.clientToken
|
|
1408
|
+
if (data.clientToken != null) {
|
|
1412
1409
|
contents.clientToken = __expectString(data.clientToken);
|
|
1413
1410
|
}
|
|
1414
|
-
if (data.componentBuildVersionArn
|
|
1411
|
+
if (data.componentBuildVersionArn != null) {
|
|
1415
1412
|
contents.componentBuildVersionArn = __expectString(data.componentBuildVersionArn);
|
|
1416
1413
|
}
|
|
1417
|
-
if (data.requestId
|
|
1414
|
+
if (data.requestId != null) {
|
|
1418
1415
|
contents.requestId = __expectString(data.requestId);
|
|
1419
1416
|
}
|
|
1420
|
-
return [2,
|
|
1417
|
+
return [2, contents];
|
|
1421
1418
|
}
|
|
1422
1419
|
});
|
|
1423
1420
|
}); };
|
|
1424
1421
|
var deserializeAws_restJson1CreateComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1425
|
-
var parsedOutput, _a,
|
|
1422
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1426
1423
|
var _c;
|
|
1427
1424
|
return __generator(this, function (_d) {
|
|
1428
1425
|
switch (_d.label) {
|
|
@@ -1483,14 +1480,14 @@ var deserializeAws_restJson1CreateComponentCommandError = function (output, cont
|
|
|
1483
1480
|
case 23: throw _d.sent();
|
|
1484
1481
|
case 24:
|
|
1485
1482
|
parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
$metadata: $metadata,
|
|
1483
|
+
throwDefaultError({
|
|
1484
|
+
output: output,
|
|
1485
|
+
parsedBody: parsedBody,
|
|
1486
|
+
exceptionCtor: __BaseException,
|
|
1487
|
+
errorCode: errorCode,
|
|
1492
1488
|
});
|
|
1493
|
-
|
|
1489
|
+
_d.label = 25;
|
|
1490
|
+
case 25: return [2];
|
|
1494
1491
|
}
|
|
1495
1492
|
});
|
|
1496
1493
|
}); };
|
|
@@ -1502,32 +1499,29 @@ export var deserializeAws_restJson1CreateContainerRecipeCommand = function (outp
|
|
|
1502
1499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
1500
|
return [2, deserializeAws_restJson1CreateContainerRecipeCommandError(output, context)];
|
|
1504
1501
|
}
|
|
1505
|
-
contents = {
|
|
1502
|
+
contents = map({
|
|
1506
1503
|
$metadata: deserializeMetadata(output),
|
|
1507
|
-
|
|
1508
|
-
containerRecipeArn: undefined,
|
|
1509
|
-
requestId: undefined,
|
|
1510
|
-
};
|
|
1504
|
+
});
|
|
1511
1505
|
_a = __expectNonNull;
|
|
1512
1506
|
_b = __expectObject;
|
|
1513
1507
|
return [4, parseBody(output.body, context)];
|
|
1514
1508
|
case 1:
|
|
1515
1509
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1516
|
-
if (data.clientToken
|
|
1510
|
+
if (data.clientToken != null) {
|
|
1517
1511
|
contents.clientToken = __expectString(data.clientToken);
|
|
1518
1512
|
}
|
|
1519
|
-
if (data.containerRecipeArn
|
|
1513
|
+
if (data.containerRecipeArn != null) {
|
|
1520
1514
|
contents.containerRecipeArn = __expectString(data.containerRecipeArn);
|
|
1521
1515
|
}
|
|
1522
|
-
if (data.requestId
|
|
1516
|
+
if (data.requestId != null) {
|
|
1523
1517
|
contents.requestId = __expectString(data.requestId);
|
|
1524
1518
|
}
|
|
1525
|
-
return [2,
|
|
1519
|
+
return [2, contents];
|
|
1526
1520
|
}
|
|
1527
1521
|
});
|
|
1528
1522
|
}); };
|
|
1529
1523
|
var deserializeAws_restJson1CreateContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1530
|
-
var parsedOutput, _a,
|
|
1524
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1531
1525
|
var _c;
|
|
1532
1526
|
return __generator(this, function (_d) {
|
|
1533
1527
|
switch (_d.label) {
|
|
@@ -1588,14 +1582,14 @@ var deserializeAws_restJson1CreateContainerRecipeCommandError = function (output
|
|
|
1588
1582
|
case 23: throw _d.sent();
|
|
1589
1583
|
case 24:
|
|
1590
1584
|
parsedBody = parsedOutput.body;
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
$metadata: $metadata,
|
|
1585
|
+
throwDefaultError({
|
|
1586
|
+
output: output,
|
|
1587
|
+
parsedBody: parsedBody,
|
|
1588
|
+
exceptionCtor: __BaseException,
|
|
1589
|
+
errorCode: errorCode,
|
|
1597
1590
|
});
|
|
1598
|
-
|
|
1591
|
+
_d.label = 25;
|
|
1592
|
+
case 25: return [2];
|
|
1599
1593
|
}
|
|
1600
1594
|
});
|
|
1601
1595
|
}); };
|
|
@@ -1607,32 +1601,29 @@ export var deserializeAws_restJson1CreateDistributionConfigurationCommand = func
|
|
|
1607
1601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
1602
|
return [2, deserializeAws_restJson1CreateDistributionConfigurationCommandError(output, context)];
|
|
1609
1603
|
}
|
|
1610
|
-
contents = {
|
|
1604
|
+
contents = map({
|
|
1611
1605
|
$metadata: deserializeMetadata(output),
|
|
1612
|
-
|
|
1613
|
-
distributionConfigurationArn: undefined,
|
|
1614
|
-
requestId: undefined,
|
|
1615
|
-
};
|
|
1606
|
+
});
|
|
1616
1607
|
_a = __expectNonNull;
|
|
1617
1608
|
_b = __expectObject;
|
|
1618
1609
|
return [4, parseBody(output.body, context)];
|
|
1619
1610
|
case 1:
|
|
1620
1611
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1621
|
-
if (data.clientToken
|
|
1612
|
+
if (data.clientToken != null) {
|
|
1622
1613
|
contents.clientToken = __expectString(data.clientToken);
|
|
1623
1614
|
}
|
|
1624
|
-
if (data.distributionConfigurationArn
|
|
1615
|
+
if (data.distributionConfigurationArn != null) {
|
|
1625
1616
|
contents.distributionConfigurationArn = __expectString(data.distributionConfigurationArn);
|
|
1626
1617
|
}
|
|
1627
|
-
if (data.requestId
|
|
1618
|
+
if (data.requestId != null) {
|
|
1628
1619
|
contents.requestId = __expectString(data.requestId);
|
|
1629
1620
|
}
|
|
1630
|
-
return [2,
|
|
1621
|
+
return [2, contents];
|
|
1631
1622
|
}
|
|
1632
1623
|
});
|
|
1633
1624
|
}); };
|
|
1634
1625
|
var deserializeAws_restJson1CreateDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1635
|
-
var parsedOutput, _a,
|
|
1626
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1636
1627
|
var _c;
|
|
1637
1628
|
return __generator(this, function (_d) {
|
|
1638
1629
|
switch (_d.label) {
|
|
@@ -1693,14 +1684,14 @@ var deserializeAws_restJson1CreateDistributionConfigurationCommandError = functi
|
|
|
1693
1684
|
case 23: throw _d.sent();
|
|
1694
1685
|
case 24:
|
|
1695
1686
|
parsedBody = parsedOutput.body;
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
$metadata: $metadata,
|
|
1687
|
+
throwDefaultError({
|
|
1688
|
+
output: output,
|
|
1689
|
+
parsedBody: parsedBody,
|
|
1690
|
+
exceptionCtor: __BaseException,
|
|
1691
|
+
errorCode: errorCode,
|
|
1702
1692
|
});
|
|
1703
|
-
|
|
1693
|
+
_d.label = 25;
|
|
1694
|
+
case 25: return [2];
|
|
1704
1695
|
}
|
|
1705
1696
|
});
|
|
1706
1697
|
}); };
|
|
@@ -1712,32 +1703,29 @@ export var deserializeAws_restJson1CreateImageCommand = function (output, contex
|
|
|
1712
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1713
1704
|
return [2, deserializeAws_restJson1CreateImageCommandError(output, context)];
|
|
1714
1705
|
}
|
|
1715
|
-
contents = {
|
|
1706
|
+
contents = map({
|
|
1716
1707
|
$metadata: deserializeMetadata(output),
|
|
1717
|
-
|
|
1718
|
-
imageBuildVersionArn: undefined,
|
|
1719
|
-
requestId: undefined,
|
|
1720
|
-
};
|
|
1708
|
+
});
|
|
1721
1709
|
_a = __expectNonNull;
|
|
1722
1710
|
_b = __expectObject;
|
|
1723
1711
|
return [4, parseBody(output.body, context)];
|
|
1724
1712
|
case 1:
|
|
1725
1713
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1726
|
-
if (data.clientToken
|
|
1714
|
+
if (data.clientToken != null) {
|
|
1727
1715
|
contents.clientToken = __expectString(data.clientToken);
|
|
1728
1716
|
}
|
|
1729
|
-
if (data.imageBuildVersionArn
|
|
1717
|
+
if (data.imageBuildVersionArn != null) {
|
|
1730
1718
|
contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
|
|
1731
1719
|
}
|
|
1732
|
-
if (data.requestId
|
|
1720
|
+
if (data.requestId != null) {
|
|
1733
1721
|
contents.requestId = __expectString(data.requestId);
|
|
1734
1722
|
}
|
|
1735
|
-
return [2,
|
|
1723
|
+
return [2, contents];
|
|
1736
1724
|
}
|
|
1737
1725
|
});
|
|
1738
1726
|
}); };
|
|
1739
1727
|
var deserializeAws_restJson1CreateImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1740
|
-
var parsedOutput, _a,
|
|
1728
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1741
1729
|
var _c;
|
|
1742
1730
|
return __generator(this, function (_d) {
|
|
1743
1731
|
switch (_d.label) {
|
|
@@ -1790,14 +1778,14 @@ var deserializeAws_restJson1CreateImageCommandError = function (output, context)
|
|
|
1790
1778
|
case 19: throw _d.sent();
|
|
1791
1779
|
case 20:
|
|
1792
1780
|
parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
$metadata: $metadata,
|
|
1781
|
+
throwDefaultError({
|
|
1782
|
+
output: output,
|
|
1783
|
+
parsedBody: parsedBody,
|
|
1784
|
+
exceptionCtor: __BaseException,
|
|
1785
|
+
errorCode: errorCode,
|
|
1799
1786
|
});
|
|
1800
|
-
|
|
1787
|
+
_d.label = 21;
|
|
1788
|
+
case 21: return [2];
|
|
1801
1789
|
}
|
|
1802
1790
|
});
|
|
1803
1791
|
}); };
|
|
@@ -1809,32 +1797,29 @@ export var deserializeAws_restJson1CreateImagePipelineCommand = function (output
|
|
|
1809
1797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1810
1798
|
return [2, deserializeAws_restJson1CreateImagePipelineCommandError(output, context)];
|
|
1811
1799
|
}
|
|
1812
|
-
contents = {
|
|
1800
|
+
contents = map({
|
|
1813
1801
|
$metadata: deserializeMetadata(output),
|
|
1814
|
-
|
|
1815
|
-
imagePipelineArn: undefined,
|
|
1816
|
-
requestId: undefined,
|
|
1817
|
-
};
|
|
1802
|
+
});
|
|
1818
1803
|
_a = __expectNonNull;
|
|
1819
1804
|
_b = __expectObject;
|
|
1820
1805
|
return [4, parseBody(output.body, context)];
|
|
1821
1806
|
case 1:
|
|
1822
1807
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1823
|
-
if (data.clientToken
|
|
1808
|
+
if (data.clientToken != null) {
|
|
1824
1809
|
contents.clientToken = __expectString(data.clientToken);
|
|
1825
1810
|
}
|
|
1826
|
-
if (data.imagePipelineArn
|
|
1811
|
+
if (data.imagePipelineArn != null) {
|
|
1827
1812
|
contents.imagePipelineArn = __expectString(data.imagePipelineArn);
|
|
1828
1813
|
}
|
|
1829
|
-
if (data.requestId
|
|
1814
|
+
if (data.requestId != null) {
|
|
1830
1815
|
contents.requestId = __expectString(data.requestId);
|
|
1831
1816
|
}
|
|
1832
|
-
return [2,
|
|
1817
|
+
return [2, contents];
|
|
1833
1818
|
}
|
|
1834
1819
|
});
|
|
1835
1820
|
}); };
|
|
1836
1821
|
var deserializeAws_restJson1CreateImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1837
|
-
var parsedOutput, _a,
|
|
1822
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1838
1823
|
var _c;
|
|
1839
1824
|
return __generator(this, function (_d) {
|
|
1840
1825
|
switch (_d.label) {
|
|
@@ -1891,14 +1876,14 @@ var deserializeAws_restJson1CreateImagePipelineCommandError = function (output,
|
|
|
1891
1876
|
case 21: throw _d.sent();
|
|
1892
1877
|
case 22:
|
|
1893
1878
|
parsedBody = parsedOutput.body;
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
$metadata: $metadata,
|
|
1879
|
+
throwDefaultError({
|
|
1880
|
+
output: output,
|
|
1881
|
+
parsedBody: parsedBody,
|
|
1882
|
+
exceptionCtor: __BaseException,
|
|
1883
|
+
errorCode: errorCode,
|
|
1900
1884
|
});
|
|
1901
|
-
|
|
1885
|
+
_d.label = 23;
|
|
1886
|
+
case 23: return [2];
|
|
1902
1887
|
}
|
|
1903
1888
|
});
|
|
1904
1889
|
}); };
|
|
@@ -1910,32 +1895,29 @@ export var deserializeAws_restJson1CreateImageRecipeCommand = function (output,
|
|
|
1910
1895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1911
1896
|
return [2, deserializeAws_restJson1CreateImageRecipeCommandError(output, context)];
|
|
1912
1897
|
}
|
|
1913
|
-
contents = {
|
|
1898
|
+
contents = map({
|
|
1914
1899
|
$metadata: deserializeMetadata(output),
|
|
1915
|
-
|
|
1916
|
-
imageRecipeArn: undefined,
|
|
1917
|
-
requestId: undefined,
|
|
1918
|
-
};
|
|
1900
|
+
});
|
|
1919
1901
|
_a = __expectNonNull;
|
|
1920
1902
|
_b = __expectObject;
|
|
1921
1903
|
return [4, parseBody(output.body, context)];
|
|
1922
1904
|
case 1:
|
|
1923
1905
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1924
|
-
if (data.clientToken
|
|
1906
|
+
if (data.clientToken != null) {
|
|
1925
1907
|
contents.clientToken = __expectString(data.clientToken);
|
|
1926
1908
|
}
|
|
1927
|
-
if (data.imageRecipeArn
|
|
1909
|
+
if (data.imageRecipeArn != null) {
|
|
1928
1910
|
contents.imageRecipeArn = __expectString(data.imageRecipeArn);
|
|
1929
1911
|
}
|
|
1930
|
-
if (data.requestId
|
|
1912
|
+
if (data.requestId != null) {
|
|
1931
1913
|
contents.requestId = __expectString(data.requestId);
|
|
1932
1914
|
}
|
|
1933
|
-
return [2,
|
|
1915
|
+
return [2, contents];
|
|
1934
1916
|
}
|
|
1935
1917
|
});
|
|
1936
1918
|
}); };
|
|
1937
1919
|
var deserializeAws_restJson1CreateImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1938
|
-
var parsedOutput, _a,
|
|
1920
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1939
1921
|
var _c;
|
|
1940
1922
|
return __generator(this, function (_d) {
|
|
1941
1923
|
switch (_d.label) {
|
|
@@ -1996,14 +1978,14 @@ var deserializeAws_restJson1CreateImageRecipeCommandError = function (output, co
|
|
|
1996
1978
|
case 23: throw _d.sent();
|
|
1997
1979
|
case 24:
|
|
1998
1980
|
parsedBody = parsedOutput.body;
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
$metadata: $metadata,
|
|
1981
|
+
throwDefaultError({
|
|
1982
|
+
output: output,
|
|
1983
|
+
parsedBody: parsedBody,
|
|
1984
|
+
exceptionCtor: __BaseException,
|
|
1985
|
+
errorCode: errorCode,
|
|
2005
1986
|
});
|
|
2006
|
-
|
|
1987
|
+
_d.label = 25;
|
|
1988
|
+
case 25: return [2];
|
|
2007
1989
|
}
|
|
2008
1990
|
});
|
|
2009
1991
|
}); };
|
|
@@ -2015,32 +1997,29 @@ export var deserializeAws_restJson1CreateInfrastructureConfigurationCommand = fu
|
|
|
2015
1997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2016
1998
|
return [2, deserializeAws_restJson1CreateInfrastructureConfigurationCommandError(output, context)];
|
|
2017
1999
|
}
|
|
2018
|
-
contents = {
|
|
2000
|
+
contents = map({
|
|
2019
2001
|
$metadata: deserializeMetadata(output),
|
|
2020
|
-
|
|
2021
|
-
infrastructureConfigurationArn: undefined,
|
|
2022
|
-
requestId: undefined,
|
|
2023
|
-
};
|
|
2002
|
+
});
|
|
2024
2003
|
_a = __expectNonNull;
|
|
2025
2004
|
_b = __expectObject;
|
|
2026
2005
|
return [4, parseBody(output.body, context)];
|
|
2027
2006
|
case 1:
|
|
2028
2007
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2029
|
-
if (data.clientToken
|
|
2008
|
+
if (data.clientToken != null) {
|
|
2030
2009
|
contents.clientToken = __expectString(data.clientToken);
|
|
2031
2010
|
}
|
|
2032
|
-
if (data.infrastructureConfigurationArn
|
|
2011
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
2033
2012
|
contents.infrastructureConfigurationArn = __expectString(data.infrastructureConfigurationArn);
|
|
2034
2013
|
}
|
|
2035
|
-
if (data.requestId
|
|
2014
|
+
if (data.requestId != null) {
|
|
2036
2015
|
contents.requestId = __expectString(data.requestId);
|
|
2037
2016
|
}
|
|
2038
|
-
return [2,
|
|
2017
|
+
return [2, contents];
|
|
2039
2018
|
}
|
|
2040
2019
|
});
|
|
2041
2020
|
}); };
|
|
2042
2021
|
var deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2043
|
-
var parsedOutput, _a,
|
|
2022
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2044
2023
|
var _c;
|
|
2045
2024
|
return __generator(this, function (_d) {
|
|
2046
2025
|
switch (_d.label) {
|
|
@@ -2097,14 +2076,14 @@ var deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = func
|
|
|
2097
2076
|
case 21: throw _d.sent();
|
|
2098
2077
|
case 22:
|
|
2099
2078
|
parsedBody = parsedOutput.body;
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
$metadata: $metadata,
|
|
2079
|
+
throwDefaultError({
|
|
2080
|
+
output: output,
|
|
2081
|
+
parsedBody: parsedBody,
|
|
2082
|
+
exceptionCtor: __BaseException,
|
|
2083
|
+
errorCode: errorCode,
|
|
2106
2084
|
});
|
|
2107
|
-
|
|
2085
|
+
_d.label = 23;
|
|
2086
|
+
case 23: return [2];
|
|
2108
2087
|
}
|
|
2109
2088
|
});
|
|
2110
2089
|
}); };
|
|
@@ -2116,28 +2095,26 @@ export var deserializeAws_restJson1DeleteComponentCommand = function (output, co
|
|
|
2116
2095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
2096
|
return [2, deserializeAws_restJson1DeleteComponentCommandError(output, context)];
|
|
2118
2097
|
}
|
|
2119
|
-
contents = {
|
|
2098
|
+
contents = map({
|
|
2120
2099
|
$metadata: deserializeMetadata(output),
|
|
2121
|
-
|
|
2122
|
-
requestId: undefined,
|
|
2123
|
-
};
|
|
2100
|
+
});
|
|
2124
2101
|
_a = __expectNonNull;
|
|
2125
2102
|
_b = __expectObject;
|
|
2126
2103
|
return [4, parseBody(output.body, context)];
|
|
2127
2104
|
case 1:
|
|
2128
2105
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2129
|
-
if (data.componentBuildVersionArn
|
|
2106
|
+
if (data.componentBuildVersionArn != null) {
|
|
2130
2107
|
contents.componentBuildVersionArn = __expectString(data.componentBuildVersionArn);
|
|
2131
2108
|
}
|
|
2132
|
-
if (data.requestId
|
|
2109
|
+
if (data.requestId != null) {
|
|
2133
2110
|
contents.requestId = __expectString(data.requestId);
|
|
2134
2111
|
}
|
|
2135
|
-
return [2,
|
|
2112
|
+
return [2, contents];
|
|
2136
2113
|
}
|
|
2137
2114
|
});
|
|
2138
2115
|
}); };
|
|
2139
2116
|
var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2140
|
-
var parsedOutput, _a,
|
|
2117
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2141
2118
|
var _c;
|
|
2142
2119
|
return __generator(this, function (_d) {
|
|
2143
2120
|
switch (_d.label) {
|
|
@@ -2182,14 +2159,14 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
2182
2159
|
case 15: throw _d.sent();
|
|
2183
2160
|
case 16:
|
|
2184
2161
|
parsedBody = parsedOutput.body;
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
$metadata: $metadata,
|
|
2162
|
+
throwDefaultError({
|
|
2163
|
+
output: output,
|
|
2164
|
+
parsedBody: parsedBody,
|
|
2165
|
+
exceptionCtor: __BaseException,
|
|
2166
|
+
errorCode: errorCode,
|
|
2191
2167
|
});
|
|
2192
|
-
|
|
2168
|
+
_d.label = 17;
|
|
2169
|
+
case 17: return [2];
|
|
2193
2170
|
}
|
|
2194
2171
|
});
|
|
2195
2172
|
}); };
|
|
@@ -2201,28 +2178,26 @@ export var deserializeAws_restJson1DeleteContainerRecipeCommand = function (outp
|
|
|
2201
2178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2202
2179
|
return [2, deserializeAws_restJson1DeleteContainerRecipeCommandError(output, context)];
|
|
2203
2180
|
}
|
|
2204
|
-
contents = {
|
|
2181
|
+
contents = map({
|
|
2205
2182
|
$metadata: deserializeMetadata(output),
|
|
2206
|
-
|
|
2207
|
-
requestId: undefined,
|
|
2208
|
-
};
|
|
2183
|
+
});
|
|
2209
2184
|
_a = __expectNonNull;
|
|
2210
2185
|
_b = __expectObject;
|
|
2211
2186
|
return [4, parseBody(output.body, context)];
|
|
2212
2187
|
case 1:
|
|
2213
2188
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2214
|
-
if (data.containerRecipeArn
|
|
2189
|
+
if (data.containerRecipeArn != null) {
|
|
2215
2190
|
contents.containerRecipeArn = __expectString(data.containerRecipeArn);
|
|
2216
2191
|
}
|
|
2217
|
-
if (data.requestId
|
|
2192
|
+
if (data.requestId != null) {
|
|
2218
2193
|
contents.requestId = __expectString(data.requestId);
|
|
2219
2194
|
}
|
|
2220
|
-
return [2,
|
|
2195
|
+
return [2, contents];
|
|
2221
2196
|
}
|
|
2222
2197
|
});
|
|
2223
2198
|
}); };
|
|
2224
2199
|
var deserializeAws_restJson1DeleteContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2225
|
-
var parsedOutput, _a,
|
|
2200
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2226
2201
|
var _c;
|
|
2227
2202
|
return __generator(this, function (_d) {
|
|
2228
2203
|
switch (_d.label) {
|
|
@@ -2267,14 +2242,14 @@ var deserializeAws_restJson1DeleteContainerRecipeCommandError = function (output
|
|
|
2267
2242
|
case 15: throw _d.sent();
|
|
2268
2243
|
case 16:
|
|
2269
2244
|
parsedBody = parsedOutput.body;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
$metadata: $metadata,
|
|
2245
|
+
throwDefaultError({
|
|
2246
|
+
output: output,
|
|
2247
|
+
parsedBody: parsedBody,
|
|
2248
|
+
exceptionCtor: __BaseException,
|
|
2249
|
+
errorCode: errorCode,
|
|
2276
2250
|
});
|
|
2277
|
-
|
|
2251
|
+
_d.label = 17;
|
|
2252
|
+
case 17: return [2];
|
|
2278
2253
|
}
|
|
2279
2254
|
});
|
|
2280
2255
|
}); };
|
|
@@ -2286,28 +2261,26 @@ export var deserializeAws_restJson1DeleteDistributionConfigurationCommand = func
|
|
|
2286
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
2262
|
return [2, deserializeAws_restJson1DeleteDistributionConfigurationCommandError(output, context)];
|
|
2288
2263
|
}
|
|
2289
|
-
contents = {
|
|
2264
|
+
contents = map({
|
|
2290
2265
|
$metadata: deserializeMetadata(output),
|
|
2291
|
-
|
|
2292
|
-
requestId: undefined,
|
|
2293
|
-
};
|
|
2266
|
+
});
|
|
2294
2267
|
_a = __expectNonNull;
|
|
2295
2268
|
_b = __expectObject;
|
|
2296
2269
|
return [4, parseBody(output.body, context)];
|
|
2297
2270
|
case 1:
|
|
2298
2271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2299
|
-
if (data.distributionConfigurationArn
|
|
2272
|
+
if (data.distributionConfigurationArn != null) {
|
|
2300
2273
|
contents.distributionConfigurationArn = __expectString(data.distributionConfigurationArn);
|
|
2301
2274
|
}
|
|
2302
|
-
if (data.requestId
|
|
2275
|
+
if (data.requestId != null) {
|
|
2303
2276
|
contents.requestId = __expectString(data.requestId);
|
|
2304
2277
|
}
|
|
2305
|
-
return [2,
|
|
2278
|
+
return [2, contents];
|
|
2306
2279
|
}
|
|
2307
2280
|
});
|
|
2308
2281
|
}); };
|
|
2309
2282
|
var deserializeAws_restJson1DeleteDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2310
|
-
var parsedOutput, _a,
|
|
2283
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2311
2284
|
var _c;
|
|
2312
2285
|
return __generator(this, function (_d) {
|
|
2313
2286
|
switch (_d.label) {
|
|
@@ -2352,14 +2325,14 @@ var deserializeAws_restJson1DeleteDistributionConfigurationCommandError = functi
|
|
|
2352
2325
|
case 15: throw _d.sent();
|
|
2353
2326
|
case 16:
|
|
2354
2327
|
parsedBody = parsedOutput.body;
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
$metadata: $metadata,
|
|
2328
|
+
throwDefaultError({
|
|
2329
|
+
output: output,
|
|
2330
|
+
parsedBody: parsedBody,
|
|
2331
|
+
exceptionCtor: __BaseException,
|
|
2332
|
+
errorCode: errorCode,
|
|
2361
2333
|
});
|
|
2362
|
-
|
|
2334
|
+
_d.label = 17;
|
|
2335
|
+
case 17: return [2];
|
|
2363
2336
|
}
|
|
2364
2337
|
});
|
|
2365
2338
|
}); };
|
|
@@ -2371,28 +2344,26 @@ export var deserializeAws_restJson1DeleteImageCommand = function (output, contex
|
|
|
2371
2344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2372
2345
|
return [2, deserializeAws_restJson1DeleteImageCommandError(output, context)];
|
|
2373
2346
|
}
|
|
2374
|
-
contents = {
|
|
2347
|
+
contents = map({
|
|
2375
2348
|
$metadata: deserializeMetadata(output),
|
|
2376
|
-
|
|
2377
|
-
requestId: undefined,
|
|
2378
|
-
};
|
|
2349
|
+
});
|
|
2379
2350
|
_a = __expectNonNull;
|
|
2380
2351
|
_b = __expectObject;
|
|
2381
2352
|
return [4, parseBody(output.body, context)];
|
|
2382
2353
|
case 1:
|
|
2383
2354
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2384
|
-
if (data.imageBuildVersionArn
|
|
2355
|
+
if (data.imageBuildVersionArn != null) {
|
|
2385
2356
|
contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
|
|
2386
2357
|
}
|
|
2387
|
-
if (data.requestId
|
|
2358
|
+
if (data.requestId != null) {
|
|
2388
2359
|
contents.requestId = __expectString(data.requestId);
|
|
2389
2360
|
}
|
|
2390
|
-
return [2,
|
|
2361
|
+
return [2, contents];
|
|
2391
2362
|
}
|
|
2392
2363
|
});
|
|
2393
2364
|
}); };
|
|
2394
2365
|
var deserializeAws_restJson1DeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2395
|
-
var parsedOutput, _a,
|
|
2366
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2396
2367
|
var _c;
|
|
2397
2368
|
return __generator(this, function (_d) {
|
|
2398
2369
|
switch (_d.label) {
|
|
@@ -2437,14 +2408,14 @@ var deserializeAws_restJson1DeleteImageCommandError = function (output, context)
|
|
|
2437
2408
|
case 15: throw _d.sent();
|
|
2438
2409
|
case 16:
|
|
2439
2410
|
parsedBody = parsedOutput.body;
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
$metadata: $metadata,
|
|
2411
|
+
throwDefaultError({
|
|
2412
|
+
output: output,
|
|
2413
|
+
parsedBody: parsedBody,
|
|
2414
|
+
exceptionCtor: __BaseException,
|
|
2415
|
+
errorCode: errorCode,
|
|
2446
2416
|
});
|
|
2447
|
-
|
|
2417
|
+
_d.label = 17;
|
|
2418
|
+
case 17: return [2];
|
|
2448
2419
|
}
|
|
2449
2420
|
});
|
|
2450
2421
|
}); };
|
|
@@ -2456,28 +2427,26 @@ export var deserializeAws_restJson1DeleteImagePipelineCommand = function (output
|
|
|
2456
2427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2457
2428
|
return [2, deserializeAws_restJson1DeleteImagePipelineCommandError(output, context)];
|
|
2458
2429
|
}
|
|
2459
|
-
contents = {
|
|
2430
|
+
contents = map({
|
|
2460
2431
|
$metadata: deserializeMetadata(output),
|
|
2461
|
-
|
|
2462
|
-
requestId: undefined,
|
|
2463
|
-
};
|
|
2432
|
+
});
|
|
2464
2433
|
_a = __expectNonNull;
|
|
2465
2434
|
_b = __expectObject;
|
|
2466
2435
|
return [4, parseBody(output.body, context)];
|
|
2467
2436
|
case 1:
|
|
2468
2437
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2469
|
-
if (data.imagePipelineArn
|
|
2438
|
+
if (data.imagePipelineArn != null) {
|
|
2470
2439
|
contents.imagePipelineArn = __expectString(data.imagePipelineArn);
|
|
2471
2440
|
}
|
|
2472
|
-
if (data.requestId
|
|
2441
|
+
if (data.requestId != null) {
|
|
2473
2442
|
contents.requestId = __expectString(data.requestId);
|
|
2474
2443
|
}
|
|
2475
|
-
return [2,
|
|
2444
|
+
return [2, contents];
|
|
2476
2445
|
}
|
|
2477
2446
|
});
|
|
2478
2447
|
}); };
|
|
2479
2448
|
var deserializeAws_restJson1DeleteImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2480
|
-
var parsedOutput, _a,
|
|
2449
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2481
2450
|
var _c;
|
|
2482
2451
|
return __generator(this, function (_d) {
|
|
2483
2452
|
switch (_d.label) {
|
|
@@ -2522,14 +2491,14 @@ var deserializeAws_restJson1DeleteImagePipelineCommandError = function (output,
|
|
|
2522
2491
|
case 15: throw _d.sent();
|
|
2523
2492
|
case 16:
|
|
2524
2493
|
parsedBody = parsedOutput.body;
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
$metadata: $metadata,
|
|
2494
|
+
throwDefaultError({
|
|
2495
|
+
output: output,
|
|
2496
|
+
parsedBody: parsedBody,
|
|
2497
|
+
exceptionCtor: __BaseException,
|
|
2498
|
+
errorCode: errorCode,
|
|
2531
2499
|
});
|
|
2532
|
-
|
|
2500
|
+
_d.label = 17;
|
|
2501
|
+
case 17: return [2];
|
|
2533
2502
|
}
|
|
2534
2503
|
});
|
|
2535
2504
|
}); };
|
|
@@ -2541,28 +2510,26 @@ export var deserializeAws_restJson1DeleteImageRecipeCommand = function (output,
|
|
|
2541
2510
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
2511
|
return [2, deserializeAws_restJson1DeleteImageRecipeCommandError(output, context)];
|
|
2543
2512
|
}
|
|
2544
|
-
contents = {
|
|
2513
|
+
contents = map({
|
|
2545
2514
|
$metadata: deserializeMetadata(output),
|
|
2546
|
-
|
|
2547
|
-
requestId: undefined,
|
|
2548
|
-
};
|
|
2515
|
+
});
|
|
2549
2516
|
_a = __expectNonNull;
|
|
2550
2517
|
_b = __expectObject;
|
|
2551
2518
|
return [4, parseBody(output.body, context)];
|
|
2552
2519
|
case 1:
|
|
2553
2520
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2554
|
-
if (data.imageRecipeArn
|
|
2521
|
+
if (data.imageRecipeArn != null) {
|
|
2555
2522
|
contents.imageRecipeArn = __expectString(data.imageRecipeArn);
|
|
2556
2523
|
}
|
|
2557
|
-
if (data.requestId
|
|
2524
|
+
if (data.requestId != null) {
|
|
2558
2525
|
contents.requestId = __expectString(data.requestId);
|
|
2559
2526
|
}
|
|
2560
|
-
return [2,
|
|
2527
|
+
return [2, contents];
|
|
2561
2528
|
}
|
|
2562
2529
|
});
|
|
2563
2530
|
}); };
|
|
2564
2531
|
var deserializeAws_restJson1DeleteImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2565
|
-
var parsedOutput, _a,
|
|
2532
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2566
2533
|
var _c;
|
|
2567
2534
|
return __generator(this, function (_d) {
|
|
2568
2535
|
switch (_d.label) {
|
|
@@ -2607,14 +2574,14 @@ var deserializeAws_restJson1DeleteImageRecipeCommandError = function (output, co
|
|
|
2607
2574
|
case 15: throw _d.sent();
|
|
2608
2575
|
case 16:
|
|
2609
2576
|
parsedBody = parsedOutput.body;
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
$metadata: $metadata,
|
|
2577
|
+
throwDefaultError({
|
|
2578
|
+
output: output,
|
|
2579
|
+
parsedBody: parsedBody,
|
|
2580
|
+
exceptionCtor: __BaseException,
|
|
2581
|
+
errorCode: errorCode,
|
|
2616
2582
|
});
|
|
2617
|
-
|
|
2583
|
+
_d.label = 17;
|
|
2584
|
+
case 17: return [2];
|
|
2618
2585
|
}
|
|
2619
2586
|
});
|
|
2620
2587
|
}); };
|
|
@@ -2626,28 +2593,26 @@ export var deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = fu
|
|
|
2626
2593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2627
2594
|
return [2, deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError(output, context)];
|
|
2628
2595
|
}
|
|
2629
|
-
contents = {
|
|
2596
|
+
contents = map({
|
|
2630
2597
|
$metadata: deserializeMetadata(output),
|
|
2631
|
-
|
|
2632
|
-
requestId: undefined,
|
|
2633
|
-
};
|
|
2598
|
+
});
|
|
2634
2599
|
_a = __expectNonNull;
|
|
2635
2600
|
_b = __expectObject;
|
|
2636
2601
|
return [4, parseBody(output.body, context)];
|
|
2637
2602
|
case 1:
|
|
2638
2603
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2639
|
-
if (data.infrastructureConfigurationArn
|
|
2604
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
2640
2605
|
contents.infrastructureConfigurationArn = __expectString(data.infrastructureConfigurationArn);
|
|
2641
2606
|
}
|
|
2642
|
-
if (data.requestId
|
|
2607
|
+
if (data.requestId != null) {
|
|
2643
2608
|
contents.requestId = __expectString(data.requestId);
|
|
2644
2609
|
}
|
|
2645
|
-
return [2,
|
|
2610
|
+
return [2, contents];
|
|
2646
2611
|
}
|
|
2647
2612
|
});
|
|
2648
2613
|
}); };
|
|
2649
2614
|
var deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2650
|
-
var parsedOutput, _a,
|
|
2615
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2651
2616
|
var _c;
|
|
2652
2617
|
return __generator(this, function (_d) {
|
|
2653
2618
|
switch (_d.label) {
|
|
@@ -2692,14 +2657,14 @@ var deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = func
|
|
|
2692
2657
|
case 15: throw _d.sent();
|
|
2693
2658
|
case 16:
|
|
2694
2659
|
parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
$metadata: $metadata,
|
|
2660
|
+
throwDefaultError({
|
|
2661
|
+
output: output,
|
|
2662
|
+
parsedBody: parsedBody,
|
|
2663
|
+
exceptionCtor: __BaseException,
|
|
2664
|
+
errorCode: errorCode,
|
|
2701
2665
|
});
|
|
2702
|
-
|
|
2666
|
+
_d.label = 17;
|
|
2667
|
+
case 17: return [2];
|
|
2703
2668
|
}
|
|
2704
2669
|
});
|
|
2705
2670
|
}); };
|
|
@@ -2711,28 +2676,26 @@ export var deserializeAws_restJson1GetComponentCommand = function (output, conte
|
|
|
2711
2676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2712
2677
|
return [2, deserializeAws_restJson1GetComponentCommandError(output, context)];
|
|
2713
2678
|
}
|
|
2714
|
-
contents = {
|
|
2679
|
+
contents = map({
|
|
2715
2680
|
$metadata: deserializeMetadata(output),
|
|
2716
|
-
|
|
2717
|
-
requestId: undefined,
|
|
2718
|
-
};
|
|
2681
|
+
});
|
|
2719
2682
|
_a = __expectNonNull;
|
|
2720
2683
|
_b = __expectObject;
|
|
2721
2684
|
return [4, parseBody(output.body, context)];
|
|
2722
2685
|
case 1:
|
|
2723
2686
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2724
|
-
if (data.component
|
|
2687
|
+
if (data.component != null) {
|
|
2725
2688
|
contents.component = deserializeAws_restJson1Component(data.component, context);
|
|
2726
2689
|
}
|
|
2727
|
-
if (data.requestId
|
|
2690
|
+
if (data.requestId != null) {
|
|
2728
2691
|
contents.requestId = __expectString(data.requestId);
|
|
2729
2692
|
}
|
|
2730
|
-
return [2,
|
|
2693
|
+
return [2, contents];
|
|
2731
2694
|
}
|
|
2732
2695
|
});
|
|
2733
2696
|
}); };
|
|
2734
2697
|
var deserializeAws_restJson1GetComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2735
|
-
var parsedOutput, _a,
|
|
2698
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2736
2699
|
var _c;
|
|
2737
2700
|
return __generator(this, function (_d) {
|
|
2738
2701
|
switch (_d.label) {
|
|
@@ -2773,14 +2736,14 @@ var deserializeAws_restJson1GetComponentCommandError = function (output, context
|
|
|
2773
2736
|
case 13: throw _d.sent();
|
|
2774
2737
|
case 14:
|
|
2775
2738
|
parsedBody = parsedOutput.body;
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
$metadata: $metadata,
|
|
2739
|
+
throwDefaultError({
|
|
2740
|
+
output: output,
|
|
2741
|
+
parsedBody: parsedBody,
|
|
2742
|
+
exceptionCtor: __BaseException,
|
|
2743
|
+
errorCode: errorCode,
|
|
2782
2744
|
});
|
|
2783
|
-
|
|
2745
|
+
_d.label = 15;
|
|
2746
|
+
case 15: return [2];
|
|
2784
2747
|
}
|
|
2785
2748
|
});
|
|
2786
2749
|
}); };
|
|
@@ -2792,28 +2755,26 @@ export var deserializeAws_restJson1GetComponentPolicyCommand = function (output,
|
|
|
2792
2755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2793
2756
|
return [2, deserializeAws_restJson1GetComponentPolicyCommandError(output, context)];
|
|
2794
2757
|
}
|
|
2795
|
-
contents = {
|
|
2758
|
+
contents = map({
|
|
2796
2759
|
$metadata: deserializeMetadata(output),
|
|
2797
|
-
|
|
2798
|
-
requestId: undefined,
|
|
2799
|
-
};
|
|
2760
|
+
});
|
|
2800
2761
|
_a = __expectNonNull;
|
|
2801
2762
|
_b = __expectObject;
|
|
2802
2763
|
return [4, parseBody(output.body, context)];
|
|
2803
2764
|
case 1:
|
|
2804
2765
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2805
|
-
if (data.policy
|
|
2766
|
+
if (data.policy != null) {
|
|
2806
2767
|
contents.policy = __expectString(data.policy);
|
|
2807
2768
|
}
|
|
2808
|
-
if (data.requestId
|
|
2769
|
+
if (data.requestId != null) {
|
|
2809
2770
|
contents.requestId = __expectString(data.requestId);
|
|
2810
2771
|
}
|
|
2811
|
-
return [2,
|
|
2772
|
+
return [2, contents];
|
|
2812
2773
|
}
|
|
2813
2774
|
});
|
|
2814
2775
|
}); };
|
|
2815
2776
|
var deserializeAws_restJson1GetComponentPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2816
|
-
var parsedOutput, _a,
|
|
2777
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2817
2778
|
var _c;
|
|
2818
2779
|
return __generator(this, function (_d) {
|
|
2819
2780
|
switch (_d.label) {
|
|
@@ -2854,14 +2815,14 @@ var deserializeAws_restJson1GetComponentPolicyCommandError = function (output, c
|
|
|
2854
2815
|
case 13: throw _d.sent();
|
|
2855
2816
|
case 14:
|
|
2856
2817
|
parsedBody = parsedOutput.body;
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
$metadata: $metadata,
|
|
2818
|
+
throwDefaultError({
|
|
2819
|
+
output: output,
|
|
2820
|
+
parsedBody: parsedBody,
|
|
2821
|
+
exceptionCtor: __BaseException,
|
|
2822
|
+
errorCode: errorCode,
|
|
2863
2823
|
});
|
|
2864
|
-
|
|
2824
|
+
_d.label = 15;
|
|
2825
|
+
case 15: return [2];
|
|
2865
2826
|
}
|
|
2866
2827
|
});
|
|
2867
2828
|
}); };
|
|
@@ -2873,28 +2834,26 @@ export var deserializeAws_restJson1GetContainerRecipeCommand = function (output,
|
|
|
2873
2834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
2835
|
return [2, deserializeAws_restJson1GetContainerRecipeCommandError(output, context)];
|
|
2875
2836
|
}
|
|
2876
|
-
contents = {
|
|
2837
|
+
contents = map({
|
|
2877
2838
|
$metadata: deserializeMetadata(output),
|
|
2878
|
-
|
|
2879
|
-
requestId: undefined,
|
|
2880
|
-
};
|
|
2839
|
+
});
|
|
2881
2840
|
_a = __expectNonNull;
|
|
2882
2841
|
_b = __expectObject;
|
|
2883
2842
|
return [4, parseBody(output.body, context)];
|
|
2884
2843
|
case 1:
|
|
2885
2844
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2886
|
-
if (data.containerRecipe
|
|
2845
|
+
if (data.containerRecipe != null) {
|
|
2887
2846
|
contents.containerRecipe = deserializeAws_restJson1ContainerRecipe(data.containerRecipe, context);
|
|
2888
2847
|
}
|
|
2889
|
-
if (data.requestId
|
|
2848
|
+
if (data.requestId != null) {
|
|
2890
2849
|
contents.requestId = __expectString(data.requestId);
|
|
2891
2850
|
}
|
|
2892
|
-
return [2,
|
|
2851
|
+
return [2, contents];
|
|
2893
2852
|
}
|
|
2894
2853
|
});
|
|
2895
2854
|
}); };
|
|
2896
2855
|
var deserializeAws_restJson1GetContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2897
|
-
var parsedOutput, _a,
|
|
2856
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2898
2857
|
var _c;
|
|
2899
2858
|
return __generator(this, function (_d) {
|
|
2900
2859
|
switch (_d.label) {
|
|
@@ -2935,14 +2894,14 @@ var deserializeAws_restJson1GetContainerRecipeCommandError = function (output, c
|
|
|
2935
2894
|
case 13: throw _d.sent();
|
|
2936
2895
|
case 14:
|
|
2937
2896
|
parsedBody = parsedOutput.body;
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
$metadata: $metadata,
|
|
2897
|
+
throwDefaultError({
|
|
2898
|
+
output: output,
|
|
2899
|
+
parsedBody: parsedBody,
|
|
2900
|
+
exceptionCtor: __BaseException,
|
|
2901
|
+
errorCode: errorCode,
|
|
2944
2902
|
});
|
|
2945
|
-
|
|
2903
|
+
_d.label = 15;
|
|
2904
|
+
case 15: return [2];
|
|
2946
2905
|
}
|
|
2947
2906
|
});
|
|
2948
2907
|
}); };
|
|
@@ -2954,28 +2913,26 @@ export var deserializeAws_restJson1GetContainerRecipePolicyCommand = function (o
|
|
|
2954
2913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2955
2914
|
return [2, deserializeAws_restJson1GetContainerRecipePolicyCommandError(output, context)];
|
|
2956
2915
|
}
|
|
2957
|
-
contents = {
|
|
2916
|
+
contents = map({
|
|
2958
2917
|
$metadata: deserializeMetadata(output),
|
|
2959
|
-
|
|
2960
|
-
requestId: undefined,
|
|
2961
|
-
};
|
|
2918
|
+
});
|
|
2962
2919
|
_a = __expectNonNull;
|
|
2963
2920
|
_b = __expectObject;
|
|
2964
2921
|
return [4, parseBody(output.body, context)];
|
|
2965
2922
|
case 1:
|
|
2966
2923
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2967
|
-
if (data.policy
|
|
2924
|
+
if (data.policy != null) {
|
|
2968
2925
|
contents.policy = __expectString(data.policy);
|
|
2969
2926
|
}
|
|
2970
|
-
if (data.requestId
|
|
2927
|
+
if (data.requestId != null) {
|
|
2971
2928
|
contents.requestId = __expectString(data.requestId);
|
|
2972
2929
|
}
|
|
2973
|
-
return [2,
|
|
2930
|
+
return [2, contents];
|
|
2974
2931
|
}
|
|
2975
2932
|
});
|
|
2976
2933
|
}); };
|
|
2977
2934
|
var deserializeAws_restJson1GetContainerRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2978
|
-
var parsedOutput, _a,
|
|
2935
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2979
2936
|
var _c;
|
|
2980
2937
|
return __generator(this, function (_d) {
|
|
2981
2938
|
switch (_d.label) {
|
|
@@ -3016,14 +2973,14 @@ var deserializeAws_restJson1GetContainerRecipePolicyCommandError = function (out
|
|
|
3016
2973
|
case 13: throw _d.sent();
|
|
3017
2974
|
case 14:
|
|
3018
2975
|
parsedBody = parsedOutput.body;
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
$metadata: $metadata,
|
|
2976
|
+
throwDefaultError({
|
|
2977
|
+
output: output,
|
|
2978
|
+
parsedBody: parsedBody,
|
|
2979
|
+
exceptionCtor: __BaseException,
|
|
2980
|
+
errorCode: errorCode,
|
|
3025
2981
|
});
|
|
3026
|
-
|
|
2982
|
+
_d.label = 15;
|
|
2983
|
+
case 15: return [2];
|
|
3027
2984
|
}
|
|
3028
2985
|
});
|
|
3029
2986
|
}); };
|
|
@@ -3035,28 +2992,26 @@ export var deserializeAws_restJson1GetDistributionConfigurationCommand = functio
|
|
|
3035
2992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3036
2993
|
return [2, deserializeAws_restJson1GetDistributionConfigurationCommandError(output, context)];
|
|
3037
2994
|
}
|
|
3038
|
-
contents = {
|
|
2995
|
+
contents = map({
|
|
3039
2996
|
$metadata: deserializeMetadata(output),
|
|
3040
|
-
|
|
3041
|
-
requestId: undefined,
|
|
3042
|
-
};
|
|
2997
|
+
});
|
|
3043
2998
|
_a = __expectNonNull;
|
|
3044
2999
|
_b = __expectObject;
|
|
3045
3000
|
return [4, parseBody(output.body, context)];
|
|
3046
3001
|
case 1:
|
|
3047
3002
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3048
|
-
if (data.distributionConfiguration
|
|
3003
|
+
if (data.distributionConfiguration != null) {
|
|
3049
3004
|
contents.distributionConfiguration = deserializeAws_restJson1DistributionConfiguration(data.distributionConfiguration, context);
|
|
3050
3005
|
}
|
|
3051
|
-
if (data.requestId
|
|
3006
|
+
if (data.requestId != null) {
|
|
3052
3007
|
contents.requestId = __expectString(data.requestId);
|
|
3053
3008
|
}
|
|
3054
|
-
return [2,
|
|
3009
|
+
return [2, contents];
|
|
3055
3010
|
}
|
|
3056
3011
|
});
|
|
3057
3012
|
}); };
|
|
3058
3013
|
var deserializeAws_restJson1GetDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3059
|
-
var parsedOutput, _a,
|
|
3014
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3060
3015
|
var _c;
|
|
3061
3016
|
return __generator(this, function (_d) {
|
|
3062
3017
|
switch (_d.label) {
|
|
@@ -3097,14 +3052,14 @@ var deserializeAws_restJson1GetDistributionConfigurationCommandError = function
|
|
|
3097
3052
|
case 13: throw _d.sent();
|
|
3098
3053
|
case 14:
|
|
3099
3054
|
parsedBody = parsedOutput.body;
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
$metadata: $metadata,
|
|
3055
|
+
throwDefaultError({
|
|
3056
|
+
output: output,
|
|
3057
|
+
parsedBody: parsedBody,
|
|
3058
|
+
exceptionCtor: __BaseException,
|
|
3059
|
+
errorCode: errorCode,
|
|
3106
3060
|
});
|
|
3107
|
-
|
|
3061
|
+
_d.label = 15;
|
|
3062
|
+
case 15: return [2];
|
|
3108
3063
|
}
|
|
3109
3064
|
});
|
|
3110
3065
|
}); };
|
|
@@ -3116,28 +3071,26 @@ export var deserializeAws_restJson1GetImageCommand = function (output, context)
|
|
|
3116
3071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3117
3072
|
return [2, deserializeAws_restJson1GetImageCommandError(output, context)];
|
|
3118
3073
|
}
|
|
3119
|
-
contents = {
|
|
3074
|
+
contents = map({
|
|
3120
3075
|
$metadata: deserializeMetadata(output),
|
|
3121
|
-
|
|
3122
|
-
requestId: undefined,
|
|
3123
|
-
};
|
|
3076
|
+
});
|
|
3124
3077
|
_a = __expectNonNull;
|
|
3125
3078
|
_b = __expectObject;
|
|
3126
3079
|
return [4, parseBody(output.body, context)];
|
|
3127
3080
|
case 1:
|
|
3128
3081
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3129
|
-
if (data.image
|
|
3082
|
+
if (data.image != null) {
|
|
3130
3083
|
contents.image = deserializeAws_restJson1Image(data.image, context);
|
|
3131
3084
|
}
|
|
3132
|
-
if (data.requestId
|
|
3085
|
+
if (data.requestId != null) {
|
|
3133
3086
|
contents.requestId = __expectString(data.requestId);
|
|
3134
3087
|
}
|
|
3135
|
-
return [2,
|
|
3088
|
+
return [2, contents];
|
|
3136
3089
|
}
|
|
3137
3090
|
});
|
|
3138
3091
|
}); };
|
|
3139
3092
|
var deserializeAws_restJson1GetImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3140
|
-
var parsedOutput, _a,
|
|
3093
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3141
3094
|
var _c;
|
|
3142
3095
|
return __generator(this, function (_d) {
|
|
3143
3096
|
switch (_d.label) {
|
|
@@ -3178,14 +3131,14 @@ var deserializeAws_restJson1GetImageCommandError = function (output, context) {
|
|
|
3178
3131
|
case 13: throw _d.sent();
|
|
3179
3132
|
case 14:
|
|
3180
3133
|
parsedBody = parsedOutput.body;
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
$metadata: $metadata,
|
|
3134
|
+
throwDefaultError({
|
|
3135
|
+
output: output,
|
|
3136
|
+
parsedBody: parsedBody,
|
|
3137
|
+
exceptionCtor: __BaseException,
|
|
3138
|
+
errorCode: errorCode,
|
|
3187
3139
|
});
|
|
3188
|
-
|
|
3140
|
+
_d.label = 15;
|
|
3141
|
+
case 15: return [2];
|
|
3189
3142
|
}
|
|
3190
3143
|
});
|
|
3191
3144
|
}); };
|
|
@@ -3197,28 +3150,26 @@ export var deserializeAws_restJson1GetImagePipelineCommand = function (output, c
|
|
|
3197
3150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3198
3151
|
return [2, deserializeAws_restJson1GetImagePipelineCommandError(output, context)];
|
|
3199
3152
|
}
|
|
3200
|
-
contents = {
|
|
3153
|
+
contents = map({
|
|
3201
3154
|
$metadata: deserializeMetadata(output),
|
|
3202
|
-
|
|
3203
|
-
requestId: undefined,
|
|
3204
|
-
};
|
|
3155
|
+
});
|
|
3205
3156
|
_a = __expectNonNull;
|
|
3206
3157
|
_b = __expectObject;
|
|
3207
3158
|
return [4, parseBody(output.body, context)];
|
|
3208
3159
|
case 1:
|
|
3209
3160
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3210
|
-
if (data.imagePipeline
|
|
3161
|
+
if (data.imagePipeline != null) {
|
|
3211
3162
|
contents.imagePipeline = deserializeAws_restJson1ImagePipeline(data.imagePipeline, context);
|
|
3212
3163
|
}
|
|
3213
|
-
if (data.requestId
|
|
3164
|
+
if (data.requestId != null) {
|
|
3214
3165
|
contents.requestId = __expectString(data.requestId);
|
|
3215
3166
|
}
|
|
3216
|
-
return [2,
|
|
3167
|
+
return [2, contents];
|
|
3217
3168
|
}
|
|
3218
3169
|
});
|
|
3219
3170
|
}); };
|
|
3220
3171
|
var deserializeAws_restJson1GetImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3221
|
-
var parsedOutput, _a,
|
|
3172
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3222
3173
|
var _c;
|
|
3223
3174
|
return __generator(this, function (_d) {
|
|
3224
3175
|
switch (_d.label) {
|
|
@@ -3259,14 +3210,14 @@ var deserializeAws_restJson1GetImagePipelineCommandError = function (output, con
|
|
|
3259
3210
|
case 13: throw _d.sent();
|
|
3260
3211
|
case 14:
|
|
3261
3212
|
parsedBody = parsedOutput.body;
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
$metadata: $metadata,
|
|
3213
|
+
throwDefaultError({
|
|
3214
|
+
output: output,
|
|
3215
|
+
parsedBody: parsedBody,
|
|
3216
|
+
exceptionCtor: __BaseException,
|
|
3217
|
+
errorCode: errorCode,
|
|
3268
3218
|
});
|
|
3269
|
-
|
|
3219
|
+
_d.label = 15;
|
|
3220
|
+
case 15: return [2];
|
|
3270
3221
|
}
|
|
3271
3222
|
});
|
|
3272
3223
|
}); };
|
|
@@ -3278,28 +3229,26 @@ export var deserializeAws_restJson1GetImagePolicyCommand = function (output, con
|
|
|
3278
3229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3279
3230
|
return [2, deserializeAws_restJson1GetImagePolicyCommandError(output, context)];
|
|
3280
3231
|
}
|
|
3281
|
-
contents = {
|
|
3232
|
+
contents = map({
|
|
3282
3233
|
$metadata: deserializeMetadata(output),
|
|
3283
|
-
|
|
3284
|
-
requestId: undefined,
|
|
3285
|
-
};
|
|
3234
|
+
});
|
|
3286
3235
|
_a = __expectNonNull;
|
|
3287
3236
|
_b = __expectObject;
|
|
3288
3237
|
return [4, parseBody(output.body, context)];
|
|
3289
3238
|
case 1:
|
|
3290
3239
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3291
|
-
if (data.policy
|
|
3240
|
+
if (data.policy != null) {
|
|
3292
3241
|
contents.policy = __expectString(data.policy);
|
|
3293
3242
|
}
|
|
3294
|
-
if (data.requestId
|
|
3243
|
+
if (data.requestId != null) {
|
|
3295
3244
|
contents.requestId = __expectString(data.requestId);
|
|
3296
3245
|
}
|
|
3297
|
-
return [2,
|
|
3246
|
+
return [2, contents];
|
|
3298
3247
|
}
|
|
3299
3248
|
});
|
|
3300
3249
|
}); };
|
|
3301
3250
|
var deserializeAws_restJson1GetImagePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3302
|
-
var parsedOutput, _a,
|
|
3251
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3303
3252
|
var _c;
|
|
3304
3253
|
return __generator(this, function (_d) {
|
|
3305
3254
|
switch (_d.label) {
|
|
@@ -3340,14 +3289,14 @@ var deserializeAws_restJson1GetImagePolicyCommandError = function (output, conte
|
|
|
3340
3289
|
case 13: throw _d.sent();
|
|
3341
3290
|
case 14:
|
|
3342
3291
|
parsedBody = parsedOutput.body;
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
$metadata: $metadata,
|
|
3292
|
+
throwDefaultError({
|
|
3293
|
+
output: output,
|
|
3294
|
+
parsedBody: parsedBody,
|
|
3295
|
+
exceptionCtor: __BaseException,
|
|
3296
|
+
errorCode: errorCode,
|
|
3349
3297
|
});
|
|
3350
|
-
|
|
3298
|
+
_d.label = 15;
|
|
3299
|
+
case 15: return [2];
|
|
3351
3300
|
}
|
|
3352
3301
|
});
|
|
3353
3302
|
}); };
|
|
@@ -3359,28 +3308,26 @@ export var deserializeAws_restJson1GetImageRecipeCommand = function (output, con
|
|
|
3359
3308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3360
3309
|
return [2, deserializeAws_restJson1GetImageRecipeCommandError(output, context)];
|
|
3361
3310
|
}
|
|
3362
|
-
contents = {
|
|
3311
|
+
contents = map({
|
|
3363
3312
|
$metadata: deserializeMetadata(output),
|
|
3364
|
-
|
|
3365
|
-
requestId: undefined,
|
|
3366
|
-
};
|
|
3313
|
+
});
|
|
3367
3314
|
_a = __expectNonNull;
|
|
3368
3315
|
_b = __expectObject;
|
|
3369
3316
|
return [4, parseBody(output.body, context)];
|
|
3370
3317
|
case 1:
|
|
3371
3318
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3372
|
-
if (data.imageRecipe
|
|
3319
|
+
if (data.imageRecipe != null) {
|
|
3373
3320
|
contents.imageRecipe = deserializeAws_restJson1ImageRecipe(data.imageRecipe, context);
|
|
3374
3321
|
}
|
|
3375
|
-
if (data.requestId
|
|
3322
|
+
if (data.requestId != null) {
|
|
3376
3323
|
contents.requestId = __expectString(data.requestId);
|
|
3377
3324
|
}
|
|
3378
|
-
return [2,
|
|
3325
|
+
return [2, contents];
|
|
3379
3326
|
}
|
|
3380
3327
|
});
|
|
3381
3328
|
}); };
|
|
3382
3329
|
var deserializeAws_restJson1GetImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3383
|
-
var parsedOutput, _a,
|
|
3330
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3384
3331
|
var _c;
|
|
3385
3332
|
return __generator(this, function (_d) {
|
|
3386
3333
|
switch (_d.label) {
|
|
@@ -3421,14 +3368,14 @@ var deserializeAws_restJson1GetImageRecipeCommandError = function (output, conte
|
|
|
3421
3368
|
case 13: throw _d.sent();
|
|
3422
3369
|
case 14:
|
|
3423
3370
|
parsedBody = parsedOutput.body;
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
$metadata: $metadata,
|
|
3371
|
+
throwDefaultError({
|
|
3372
|
+
output: output,
|
|
3373
|
+
parsedBody: parsedBody,
|
|
3374
|
+
exceptionCtor: __BaseException,
|
|
3375
|
+
errorCode: errorCode,
|
|
3430
3376
|
});
|
|
3431
|
-
|
|
3377
|
+
_d.label = 15;
|
|
3378
|
+
case 15: return [2];
|
|
3432
3379
|
}
|
|
3433
3380
|
});
|
|
3434
3381
|
}); };
|
|
@@ -3440,28 +3387,26 @@ export var deserializeAws_restJson1GetImageRecipePolicyCommand = function (outpu
|
|
|
3440
3387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3441
3388
|
return [2, deserializeAws_restJson1GetImageRecipePolicyCommandError(output, context)];
|
|
3442
3389
|
}
|
|
3443
|
-
contents = {
|
|
3390
|
+
contents = map({
|
|
3444
3391
|
$metadata: deserializeMetadata(output),
|
|
3445
|
-
|
|
3446
|
-
requestId: undefined,
|
|
3447
|
-
};
|
|
3392
|
+
});
|
|
3448
3393
|
_a = __expectNonNull;
|
|
3449
3394
|
_b = __expectObject;
|
|
3450
3395
|
return [4, parseBody(output.body, context)];
|
|
3451
3396
|
case 1:
|
|
3452
3397
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3453
|
-
if (data.policy
|
|
3398
|
+
if (data.policy != null) {
|
|
3454
3399
|
contents.policy = __expectString(data.policy);
|
|
3455
3400
|
}
|
|
3456
|
-
if (data.requestId
|
|
3401
|
+
if (data.requestId != null) {
|
|
3457
3402
|
contents.requestId = __expectString(data.requestId);
|
|
3458
3403
|
}
|
|
3459
|
-
return [2,
|
|
3404
|
+
return [2, contents];
|
|
3460
3405
|
}
|
|
3461
3406
|
});
|
|
3462
3407
|
}); };
|
|
3463
3408
|
var deserializeAws_restJson1GetImageRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3464
|
-
var parsedOutput, _a,
|
|
3409
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3465
3410
|
var _c;
|
|
3466
3411
|
return __generator(this, function (_d) {
|
|
3467
3412
|
switch (_d.label) {
|
|
@@ -3502,14 +3447,14 @@ var deserializeAws_restJson1GetImageRecipePolicyCommandError = function (output,
|
|
|
3502
3447
|
case 13: throw _d.sent();
|
|
3503
3448
|
case 14:
|
|
3504
3449
|
parsedBody = parsedOutput.body;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
$metadata: $metadata,
|
|
3450
|
+
throwDefaultError({
|
|
3451
|
+
output: output,
|
|
3452
|
+
parsedBody: parsedBody,
|
|
3453
|
+
exceptionCtor: __BaseException,
|
|
3454
|
+
errorCode: errorCode,
|
|
3511
3455
|
});
|
|
3512
|
-
|
|
3456
|
+
_d.label = 15;
|
|
3457
|
+
case 15: return [2];
|
|
3513
3458
|
}
|
|
3514
3459
|
});
|
|
3515
3460
|
}); };
|
|
@@ -3521,28 +3466,26 @@ export var deserializeAws_restJson1GetInfrastructureConfigurationCommand = funct
|
|
|
3521
3466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3522
3467
|
return [2, deserializeAws_restJson1GetInfrastructureConfigurationCommandError(output, context)];
|
|
3523
3468
|
}
|
|
3524
|
-
contents = {
|
|
3469
|
+
contents = map({
|
|
3525
3470
|
$metadata: deserializeMetadata(output),
|
|
3526
|
-
|
|
3527
|
-
requestId: undefined,
|
|
3528
|
-
};
|
|
3471
|
+
});
|
|
3529
3472
|
_a = __expectNonNull;
|
|
3530
3473
|
_b = __expectObject;
|
|
3531
3474
|
return [4, parseBody(output.body, context)];
|
|
3532
3475
|
case 1:
|
|
3533
3476
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3534
|
-
if (data.infrastructureConfiguration
|
|
3477
|
+
if (data.infrastructureConfiguration != null) {
|
|
3535
3478
|
contents.infrastructureConfiguration = deserializeAws_restJson1InfrastructureConfiguration(data.infrastructureConfiguration, context);
|
|
3536
3479
|
}
|
|
3537
|
-
if (data.requestId
|
|
3480
|
+
if (data.requestId != null) {
|
|
3538
3481
|
contents.requestId = __expectString(data.requestId);
|
|
3539
3482
|
}
|
|
3540
|
-
return [2,
|
|
3483
|
+
return [2, contents];
|
|
3541
3484
|
}
|
|
3542
3485
|
});
|
|
3543
3486
|
}); };
|
|
3544
3487
|
var deserializeAws_restJson1GetInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3545
|
-
var parsedOutput, _a,
|
|
3488
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3546
3489
|
var _c;
|
|
3547
3490
|
return __generator(this, function (_d) {
|
|
3548
3491
|
switch (_d.label) {
|
|
@@ -3583,14 +3526,14 @@ var deserializeAws_restJson1GetInfrastructureConfigurationCommandError = functio
|
|
|
3583
3526
|
case 13: throw _d.sent();
|
|
3584
3527
|
case 14:
|
|
3585
3528
|
parsedBody = parsedOutput.body;
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
$metadata: $metadata,
|
|
3529
|
+
throwDefaultError({
|
|
3530
|
+
output: output,
|
|
3531
|
+
parsedBody: parsedBody,
|
|
3532
|
+
exceptionCtor: __BaseException,
|
|
3533
|
+
errorCode: errorCode,
|
|
3592
3534
|
});
|
|
3593
|
-
|
|
3535
|
+
_d.label = 15;
|
|
3536
|
+
case 15: return [2];
|
|
3594
3537
|
}
|
|
3595
3538
|
});
|
|
3596
3539
|
}); };
|
|
@@ -3602,32 +3545,29 @@ export var deserializeAws_restJson1ImportComponentCommand = function (output, co
|
|
|
3602
3545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3603
3546
|
return [2, deserializeAws_restJson1ImportComponentCommandError(output, context)];
|
|
3604
3547
|
}
|
|
3605
|
-
contents = {
|
|
3548
|
+
contents = map({
|
|
3606
3549
|
$metadata: deserializeMetadata(output),
|
|
3607
|
-
|
|
3608
|
-
componentBuildVersionArn: undefined,
|
|
3609
|
-
requestId: undefined,
|
|
3610
|
-
};
|
|
3550
|
+
});
|
|
3611
3551
|
_a = __expectNonNull;
|
|
3612
3552
|
_b = __expectObject;
|
|
3613
3553
|
return [4, parseBody(output.body, context)];
|
|
3614
3554
|
case 1:
|
|
3615
3555
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3616
|
-
if (data.clientToken
|
|
3556
|
+
if (data.clientToken != null) {
|
|
3617
3557
|
contents.clientToken = __expectString(data.clientToken);
|
|
3618
3558
|
}
|
|
3619
|
-
if (data.componentBuildVersionArn
|
|
3559
|
+
if (data.componentBuildVersionArn != null) {
|
|
3620
3560
|
contents.componentBuildVersionArn = __expectString(data.componentBuildVersionArn);
|
|
3621
3561
|
}
|
|
3622
|
-
if (data.requestId
|
|
3562
|
+
if (data.requestId != null) {
|
|
3623
3563
|
contents.requestId = __expectString(data.requestId);
|
|
3624
3564
|
}
|
|
3625
|
-
return [2,
|
|
3565
|
+
return [2, contents];
|
|
3626
3566
|
}
|
|
3627
3567
|
});
|
|
3628
3568
|
}); };
|
|
3629
3569
|
var deserializeAws_restJson1ImportComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3630
|
-
var parsedOutput, _a,
|
|
3570
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3631
3571
|
var _c;
|
|
3632
3572
|
return __generator(this, function (_d) {
|
|
3633
3573
|
switch (_d.label) {
|
|
@@ -3684,14 +3624,14 @@ var deserializeAws_restJson1ImportComponentCommandError = function (output, cont
|
|
|
3684
3624
|
case 21: throw _d.sent();
|
|
3685
3625
|
case 22:
|
|
3686
3626
|
parsedBody = parsedOutput.body;
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
$metadata: $metadata,
|
|
3627
|
+
throwDefaultError({
|
|
3628
|
+
output: output,
|
|
3629
|
+
parsedBody: parsedBody,
|
|
3630
|
+
exceptionCtor: __BaseException,
|
|
3631
|
+
errorCode: errorCode,
|
|
3693
3632
|
});
|
|
3694
|
-
|
|
3633
|
+
_d.label = 23;
|
|
3634
|
+
case 23: return [2];
|
|
3695
3635
|
}
|
|
3696
3636
|
});
|
|
3697
3637
|
}); };
|
|
@@ -3703,32 +3643,29 @@ export var deserializeAws_restJson1ImportVmImageCommand = function (output, cont
|
|
|
3703
3643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3704
3644
|
return [2, deserializeAws_restJson1ImportVmImageCommandError(output, context)];
|
|
3705
3645
|
}
|
|
3706
|
-
contents = {
|
|
3646
|
+
contents = map({
|
|
3707
3647
|
$metadata: deserializeMetadata(output),
|
|
3708
|
-
|
|
3709
|
-
imageArn: undefined,
|
|
3710
|
-
requestId: undefined,
|
|
3711
|
-
};
|
|
3648
|
+
});
|
|
3712
3649
|
_a = __expectNonNull;
|
|
3713
3650
|
_b = __expectObject;
|
|
3714
3651
|
return [4, parseBody(output.body, context)];
|
|
3715
3652
|
case 1:
|
|
3716
3653
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3717
|
-
if (data.clientToken
|
|
3654
|
+
if (data.clientToken != null) {
|
|
3718
3655
|
contents.clientToken = __expectString(data.clientToken);
|
|
3719
3656
|
}
|
|
3720
|
-
if (data.imageArn
|
|
3657
|
+
if (data.imageArn != null) {
|
|
3721
3658
|
contents.imageArn = __expectString(data.imageArn);
|
|
3722
3659
|
}
|
|
3723
|
-
if (data.requestId
|
|
3660
|
+
if (data.requestId != null) {
|
|
3724
3661
|
contents.requestId = __expectString(data.requestId);
|
|
3725
3662
|
}
|
|
3726
|
-
return [2,
|
|
3663
|
+
return [2, contents];
|
|
3727
3664
|
}
|
|
3728
3665
|
});
|
|
3729
3666
|
}); };
|
|
3730
3667
|
var deserializeAws_restJson1ImportVmImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3731
|
-
var parsedOutput, _a,
|
|
3668
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3732
3669
|
var _c;
|
|
3733
3670
|
return __generator(this, function (_d) {
|
|
3734
3671
|
switch (_d.label) {
|
|
@@ -3757,14 +3694,14 @@ var deserializeAws_restJson1ImportVmImageCommandError = function (output, contex
|
|
|
3757
3694
|
case 7: throw _d.sent();
|
|
3758
3695
|
case 8:
|
|
3759
3696
|
parsedBody = parsedOutput.body;
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
$metadata: $metadata,
|
|
3697
|
+
throwDefaultError({
|
|
3698
|
+
output: output,
|
|
3699
|
+
parsedBody: parsedBody,
|
|
3700
|
+
exceptionCtor: __BaseException,
|
|
3701
|
+
errorCode: errorCode,
|
|
3766
3702
|
});
|
|
3767
|
-
|
|
3703
|
+
_d.label = 9;
|
|
3704
|
+
case 9: return [2];
|
|
3768
3705
|
}
|
|
3769
3706
|
});
|
|
3770
3707
|
}); };
|
|
@@ -3776,32 +3713,29 @@ export var deserializeAws_restJson1ListComponentBuildVersionsCommand = function
|
|
|
3776
3713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3777
3714
|
return [2, deserializeAws_restJson1ListComponentBuildVersionsCommandError(output, context)];
|
|
3778
3715
|
}
|
|
3779
|
-
contents = {
|
|
3716
|
+
contents = map({
|
|
3780
3717
|
$metadata: deserializeMetadata(output),
|
|
3781
|
-
|
|
3782
|
-
nextToken: undefined,
|
|
3783
|
-
requestId: undefined,
|
|
3784
|
-
};
|
|
3718
|
+
});
|
|
3785
3719
|
_a = __expectNonNull;
|
|
3786
3720
|
_b = __expectObject;
|
|
3787
3721
|
return [4, parseBody(output.body, context)];
|
|
3788
3722
|
case 1:
|
|
3789
3723
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3790
|
-
if (data.componentSummaryList
|
|
3724
|
+
if (data.componentSummaryList != null) {
|
|
3791
3725
|
contents.componentSummaryList = deserializeAws_restJson1ComponentSummaryList(data.componentSummaryList, context);
|
|
3792
3726
|
}
|
|
3793
|
-
if (data.nextToken
|
|
3727
|
+
if (data.nextToken != null) {
|
|
3794
3728
|
contents.nextToken = __expectString(data.nextToken);
|
|
3795
3729
|
}
|
|
3796
|
-
if (data.requestId
|
|
3730
|
+
if (data.requestId != null) {
|
|
3797
3731
|
contents.requestId = __expectString(data.requestId);
|
|
3798
3732
|
}
|
|
3799
|
-
return [2,
|
|
3733
|
+
return [2, contents];
|
|
3800
3734
|
}
|
|
3801
3735
|
});
|
|
3802
3736
|
}); };
|
|
3803
3737
|
var deserializeAws_restJson1ListComponentBuildVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3804
|
-
var parsedOutput, _a,
|
|
3738
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3805
3739
|
var _c;
|
|
3806
3740
|
return __generator(this, function (_d) {
|
|
3807
3741
|
switch (_d.label) {
|
|
@@ -3846,14 +3780,14 @@ var deserializeAws_restJson1ListComponentBuildVersionsCommandError = function (o
|
|
|
3846
3780
|
case 15: throw _d.sent();
|
|
3847
3781
|
case 16:
|
|
3848
3782
|
parsedBody = parsedOutput.body;
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
$metadata: $metadata,
|
|
3783
|
+
throwDefaultError({
|
|
3784
|
+
output: output,
|
|
3785
|
+
parsedBody: parsedBody,
|
|
3786
|
+
exceptionCtor: __BaseException,
|
|
3787
|
+
errorCode: errorCode,
|
|
3855
3788
|
});
|
|
3856
|
-
|
|
3789
|
+
_d.label = 17;
|
|
3790
|
+
case 17: return [2];
|
|
3857
3791
|
}
|
|
3858
3792
|
});
|
|
3859
3793
|
}); };
|
|
@@ -3865,32 +3799,29 @@ export var deserializeAws_restJson1ListComponentsCommand = function (output, con
|
|
|
3865
3799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3866
3800
|
return [2, deserializeAws_restJson1ListComponentsCommandError(output, context)];
|
|
3867
3801
|
}
|
|
3868
|
-
contents = {
|
|
3802
|
+
contents = map({
|
|
3869
3803
|
$metadata: deserializeMetadata(output),
|
|
3870
|
-
|
|
3871
|
-
nextToken: undefined,
|
|
3872
|
-
requestId: undefined,
|
|
3873
|
-
};
|
|
3804
|
+
});
|
|
3874
3805
|
_a = __expectNonNull;
|
|
3875
3806
|
_b = __expectObject;
|
|
3876
3807
|
return [4, parseBody(output.body, context)];
|
|
3877
3808
|
case 1:
|
|
3878
3809
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3879
|
-
if (data.componentVersionList
|
|
3810
|
+
if (data.componentVersionList != null) {
|
|
3880
3811
|
contents.componentVersionList = deserializeAws_restJson1ComponentVersionList(data.componentVersionList, context);
|
|
3881
3812
|
}
|
|
3882
|
-
if (data.nextToken
|
|
3813
|
+
if (data.nextToken != null) {
|
|
3883
3814
|
contents.nextToken = __expectString(data.nextToken);
|
|
3884
3815
|
}
|
|
3885
|
-
if (data.requestId
|
|
3816
|
+
if (data.requestId != null) {
|
|
3886
3817
|
contents.requestId = __expectString(data.requestId);
|
|
3887
3818
|
}
|
|
3888
|
-
return [2,
|
|
3819
|
+
return [2, contents];
|
|
3889
3820
|
}
|
|
3890
3821
|
});
|
|
3891
3822
|
}); };
|
|
3892
3823
|
var deserializeAws_restJson1ListComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3893
|
-
var parsedOutput, _a,
|
|
3824
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3894
3825
|
var _c;
|
|
3895
3826
|
return __generator(this, function (_d) {
|
|
3896
3827
|
switch (_d.label) {
|
|
@@ -3935,14 +3866,14 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
|
|
|
3935
3866
|
case 15: throw _d.sent();
|
|
3936
3867
|
case 16:
|
|
3937
3868
|
parsedBody = parsedOutput.body;
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
$metadata: $metadata,
|
|
3869
|
+
throwDefaultError({
|
|
3870
|
+
output: output,
|
|
3871
|
+
parsedBody: parsedBody,
|
|
3872
|
+
exceptionCtor: __BaseException,
|
|
3873
|
+
errorCode: errorCode,
|
|
3944
3874
|
});
|
|
3945
|
-
|
|
3875
|
+
_d.label = 17;
|
|
3876
|
+
case 17: return [2];
|
|
3946
3877
|
}
|
|
3947
3878
|
});
|
|
3948
3879
|
}); };
|
|
@@ -3954,32 +3885,29 @@ export var deserializeAws_restJson1ListContainerRecipesCommand = function (outpu
|
|
|
3954
3885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3955
3886
|
return [2, deserializeAws_restJson1ListContainerRecipesCommandError(output, context)];
|
|
3956
3887
|
}
|
|
3957
|
-
contents = {
|
|
3888
|
+
contents = map({
|
|
3958
3889
|
$metadata: deserializeMetadata(output),
|
|
3959
|
-
|
|
3960
|
-
nextToken: undefined,
|
|
3961
|
-
requestId: undefined,
|
|
3962
|
-
};
|
|
3890
|
+
});
|
|
3963
3891
|
_a = __expectNonNull;
|
|
3964
3892
|
_b = __expectObject;
|
|
3965
3893
|
return [4, parseBody(output.body, context)];
|
|
3966
3894
|
case 1:
|
|
3967
3895
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3968
|
-
if (data.containerRecipeSummaryList
|
|
3896
|
+
if (data.containerRecipeSummaryList != null) {
|
|
3969
3897
|
contents.containerRecipeSummaryList = deserializeAws_restJson1ContainerRecipeSummaryList(data.containerRecipeSummaryList, context);
|
|
3970
3898
|
}
|
|
3971
|
-
if (data.nextToken
|
|
3899
|
+
if (data.nextToken != null) {
|
|
3972
3900
|
contents.nextToken = __expectString(data.nextToken);
|
|
3973
3901
|
}
|
|
3974
|
-
if (data.requestId
|
|
3902
|
+
if (data.requestId != null) {
|
|
3975
3903
|
contents.requestId = __expectString(data.requestId);
|
|
3976
3904
|
}
|
|
3977
|
-
return [2,
|
|
3905
|
+
return [2, contents];
|
|
3978
3906
|
}
|
|
3979
3907
|
});
|
|
3980
3908
|
}); };
|
|
3981
3909
|
var deserializeAws_restJson1ListContainerRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3982
|
-
var parsedOutput, _a,
|
|
3910
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3983
3911
|
var _c;
|
|
3984
3912
|
return __generator(this, function (_d) {
|
|
3985
3913
|
switch (_d.label) {
|
|
@@ -4024,14 +3952,14 @@ var deserializeAws_restJson1ListContainerRecipesCommandError = function (output,
|
|
|
4024
3952
|
case 15: throw _d.sent();
|
|
4025
3953
|
case 16:
|
|
4026
3954
|
parsedBody = parsedOutput.body;
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
$metadata: $metadata,
|
|
3955
|
+
throwDefaultError({
|
|
3956
|
+
output: output,
|
|
3957
|
+
parsedBody: parsedBody,
|
|
3958
|
+
exceptionCtor: __BaseException,
|
|
3959
|
+
errorCode: errorCode,
|
|
4033
3960
|
});
|
|
4034
|
-
|
|
3961
|
+
_d.label = 17;
|
|
3962
|
+
case 17: return [2];
|
|
4035
3963
|
}
|
|
4036
3964
|
});
|
|
4037
3965
|
}); };
|
|
@@ -4043,32 +3971,29 @@ export var deserializeAws_restJson1ListDistributionConfigurationsCommand = funct
|
|
|
4043
3971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
3972
|
return [2, deserializeAws_restJson1ListDistributionConfigurationsCommandError(output, context)];
|
|
4045
3973
|
}
|
|
4046
|
-
contents = {
|
|
3974
|
+
contents = map({
|
|
4047
3975
|
$metadata: deserializeMetadata(output),
|
|
4048
|
-
|
|
4049
|
-
nextToken: undefined,
|
|
4050
|
-
requestId: undefined,
|
|
4051
|
-
};
|
|
3976
|
+
});
|
|
4052
3977
|
_a = __expectNonNull;
|
|
4053
3978
|
_b = __expectObject;
|
|
4054
3979
|
return [4, parseBody(output.body, context)];
|
|
4055
3980
|
case 1:
|
|
4056
3981
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4057
|
-
if (data.distributionConfigurationSummaryList
|
|
3982
|
+
if (data.distributionConfigurationSummaryList != null) {
|
|
4058
3983
|
contents.distributionConfigurationSummaryList = deserializeAws_restJson1DistributionConfigurationSummaryList(data.distributionConfigurationSummaryList, context);
|
|
4059
3984
|
}
|
|
4060
|
-
if (data.nextToken
|
|
3985
|
+
if (data.nextToken != null) {
|
|
4061
3986
|
contents.nextToken = __expectString(data.nextToken);
|
|
4062
3987
|
}
|
|
4063
|
-
if (data.requestId
|
|
3988
|
+
if (data.requestId != null) {
|
|
4064
3989
|
contents.requestId = __expectString(data.requestId);
|
|
4065
3990
|
}
|
|
4066
|
-
return [2,
|
|
3991
|
+
return [2, contents];
|
|
4067
3992
|
}
|
|
4068
3993
|
});
|
|
4069
3994
|
}); };
|
|
4070
3995
|
var deserializeAws_restJson1ListDistributionConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4071
|
-
var parsedOutput, _a,
|
|
3996
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4072
3997
|
var _c;
|
|
4073
3998
|
return __generator(this, function (_d) {
|
|
4074
3999
|
switch (_d.label) {
|
|
@@ -4113,14 +4038,14 @@ var deserializeAws_restJson1ListDistributionConfigurationsCommandError = functio
|
|
|
4113
4038
|
case 15: throw _d.sent();
|
|
4114
4039
|
case 16:
|
|
4115
4040
|
parsedBody = parsedOutput.body;
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
$metadata: $metadata,
|
|
4041
|
+
throwDefaultError({
|
|
4042
|
+
output: output,
|
|
4043
|
+
parsedBody: parsedBody,
|
|
4044
|
+
exceptionCtor: __BaseException,
|
|
4045
|
+
errorCode: errorCode,
|
|
4122
4046
|
});
|
|
4123
|
-
|
|
4047
|
+
_d.label = 17;
|
|
4048
|
+
case 17: return [2];
|
|
4124
4049
|
}
|
|
4125
4050
|
});
|
|
4126
4051
|
}); };
|
|
@@ -4132,32 +4057,29 @@ export var deserializeAws_restJson1ListImageBuildVersionsCommand = function (out
|
|
|
4132
4057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4133
4058
|
return [2, deserializeAws_restJson1ListImageBuildVersionsCommandError(output, context)];
|
|
4134
4059
|
}
|
|
4135
|
-
contents = {
|
|
4060
|
+
contents = map({
|
|
4136
4061
|
$metadata: deserializeMetadata(output),
|
|
4137
|
-
|
|
4138
|
-
nextToken: undefined,
|
|
4139
|
-
requestId: undefined,
|
|
4140
|
-
};
|
|
4062
|
+
});
|
|
4141
4063
|
_a = __expectNonNull;
|
|
4142
4064
|
_b = __expectObject;
|
|
4143
4065
|
return [4, parseBody(output.body, context)];
|
|
4144
4066
|
case 1:
|
|
4145
4067
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4146
|
-
if (data.imageSummaryList
|
|
4068
|
+
if (data.imageSummaryList != null) {
|
|
4147
4069
|
contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
|
|
4148
4070
|
}
|
|
4149
|
-
if (data.nextToken
|
|
4071
|
+
if (data.nextToken != null) {
|
|
4150
4072
|
contents.nextToken = __expectString(data.nextToken);
|
|
4151
4073
|
}
|
|
4152
|
-
if (data.requestId
|
|
4074
|
+
if (data.requestId != null) {
|
|
4153
4075
|
contents.requestId = __expectString(data.requestId);
|
|
4154
4076
|
}
|
|
4155
|
-
return [2,
|
|
4077
|
+
return [2, contents];
|
|
4156
4078
|
}
|
|
4157
4079
|
});
|
|
4158
4080
|
}); };
|
|
4159
4081
|
var deserializeAws_restJson1ListImageBuildVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4160
|
-
var parsedOutput, _a,
|
|
4082
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4161
4083
|
var _c;
|
|
4162
4084
|
return __generator(this, function (_d) {
|
|
4163
4085
|
switch (_d.label) {
|
|
@@ -4202,14 +4124,14 @@ var deserializeAws_restJson1ListImageBuildVersionsCommandError = function (outpu
|
|
|
4202
4124
|
case 15: throw _d.sent();
|
|
4203
4125
|
case 16:
|
|
4204
4126
|
parsedBody = parsedOutput.body;
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
$metadata: $metadata,
|
|
4127
|
+
throwDefaultError({
|
|
4128
|
+
output: output,
|
|
4129
|
+
parsedBody: parsedBody,
|
|
4130
|
+
exceptionCtor: __BaseException,
|
|
4131
|
+
errorCode: errorCode,
|
|
4211
4132
|
});
|
|
4212
|
-
|
|
4133
|
+
_d.label = 17;
|
|
4134
|
+
case 17: return [2];
|
|
4213
4135
|
}
|
|
4214
4136
|
});
|
|
4215
4137
|
}); };
|
|
@@ -4221,32 +4143,29 @@ export var deserializeAws_restJson1ListImagePackagesCommand = function (output,
|
|
|
4221
4143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4222
4144
|
return [2, deserializeAws_restJson1ListImagePackagesCommandError(output, context)];
|
|
4223
4145
|
}
|
|
4224
|
-
contents = {
|
|
4146
|
+
contents = map({
|
|
4225
4147
|
$metadata: deserializeMetadata(output),
|
|
4226
|
-
|
|
4227
|
-
nextToken: undefined,
|
|
4228
|
-
requestId: undefined,
|
|
4229
|
-
};
|
|
4148
|
+
});
|
|
4230
4149
|
_a = __expectNonNull;
|
|
4231
4150
|
_b = __expectObject;
|
|
4232
4151
|
return [4, parseBody(output.body, context)];
|
|
4233
4152
|
case 1:
|
|
4234
4153
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4235
|
-
if (data.imagePackageList
|
|
4154
|
+
if (data.imagePackageList != null) {
|
|
4236
4155
|
contents.imagePackageList = deserializeAws_restJson1ImagePackageList(data.imagePackageList, context);
|
|
4237
4156
|
}
|
|
4238
|
-
if (data.nextToken
|
|
4157
|
+
if (data.nextToken != null) {
|
|
4239
4158
|
contents.nextToken = __expectString(data.nextToken);
|
|
4240
4159
|
}
|
|
4241
|
-
if (data.requestId
|
|
4160
|
+
if (data.requestId != null) {
|
|
4242
4161
|
contents.requestId = __expectString(data.requestId);
|
|
4243
4162
|
}
|
|
4244
|
-
return [2,
|
|
4163
|
+
return [2, contents];
|
|
4245
4164
|
}
|
|
4246
4165
|
});
|
|
4247
4166
|
}); };
|
|
4248
4167
|
var deserializeAws_restJson1ListImagePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4249
|
-
var parsedOutput, _a,
|
|
4168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4250
4169
|
var _c;
|
|
4251
4170
|
return __generator(this, function (_d) {
|
|
4252
4171
|
switch (_d.label) {
|
|
@@ -4295,14 +4214,14 @@ var deserializeAws_restJson1ListImagePackagesCommandError = function (output, co
|
|
|
4295
4214
|
case 17: throw _d.sent();
|
|
4296
4215
|
case 18:
|
|
4297
4216
|
parsedBody = parsedOutput.body;
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
$metadata: $metadata,
|
|
4217
|
+
throwDefaultError({
|
|
4218
|
+
output: output,
|
|
4219
|
+
parsedBody: parsedBody,
|
|
4220
|
+
exceptionCtor: __BaseException,
|
|
4221
|
+
errorCode: errorCode,
|
|
4304
4222
|
});
|
|
4305
|
-
|
|
4223
|
+
_d.label = 19;
|
|
4224
|
+
case 19: return [2];
|
|
4306
4225
|
}
|
|
4307
4226
|
});
|
|
4308
4227
|
}); };
|
|
@@ -4314,32 +4233,29 @@ export var deserializeAws_restJson1ListImagePipelineImagesCommand = function (ou
|
|
|
4314
4233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4315
4234
|
return [2, deserializeAws_restJson1ListImagePipelineImagesCommandError(output, context)];
|
|
4316
4235
|
}
|
|
4317
|
-
contents = {
|
|
4236
|
+
contents = map({
|
|
4318
4237
|
$metadata: deserializeMetadata(output),
|
|
4319
|
-
|
|
4320
|
-
nextToken: undefined,
|
|
4321
|
-
requestId: undefined,
|
|
4322
|
-
};
|
|
4238
|
+
});
|
|
4323
4239
|
_a = __expectNonNull;
|
|
4324
4240
|
_b = __expectObject;
|
|
4325
4241
|
return [4, parseBody(output.body, context)];
|
|
4326
4242
|
case 1:
|
|
4327
4243
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4328
|
-
if (data.imageSummaryList
|
|
4244
|
+
if (data.imageSummaryList != null) {
|
|
4329
4245
|
contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
|
|
4330
4246
|
}
|
|
4331
|
-
if (data.nextToken
|
|
4247
|
+
if (data.nextToken != null) {
|
|
4332
4248
|
contents.nextToken = __expectString(data.nextToken);
|
|
4333
4249
|
}
|
|
4334
|
-
if (data.requestId
|
|
4250
|
+
if (data.requestId != null) {
|
|
4335
4251
|
contents.requestId = __expectString(data.requestId);
|
|
4336
4252
|
}
|
|
4337
|
-
return [2,
|
|
4253
|
+
return [2, contents];
|
|
4338
4254
|
}
|
|
4339
4255
|
});
|
|
4340
4256
|
}); };
|
|
4341
4257
|
var deserializeAws_restJson1ListImagePipelineImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4342
|
-
var parsedOutput, _a,
|
|
4258
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4343
4259
|
var _c;
|
|
4344
4260
|
return __generator(this, function (_d) {
|
|
4345
4261
|
switch (_d.label) {
|
|
@@ -4388,14 +4304,14 @@ var deserializeAws_restJson1ListImagePipelineImagesCommandError = function (outp
|
|
|
4388
4304
|
case 17: throw _d.sent();
|
|
4389
4305
|
case 18:
|
|
4390
4306
|
parsedBody = parsedOutput.body;
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
$metadata: $metadata,
|
|
4307
|
+
throwDefaultError({
|
|
4308
|
+
output: output,
|
|
4309
|
+
parsedBody: parsedBody,
|
|
4310
|
+
exceptionCtor: __BaseException,
|
|
4311
|
+
errorCode: errorCode,
|
|
4397
4312
|
});
|
|
4398
|
-
|
|
4313
|
+
_d.label = 19;
|
|
4314
|
+
case 19: return [2];
|
|
4399
4315
|
}
|
|
4400
4316
|
});
|
|
4401
4317
|
}); };
|
|
@@ -4407,32 +4323,29 @@ export var deserializeAws_restJson1ListImagePipelinesCommand = function (output,
|
|
|
4407
4323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4408
4324
|
return [2, deserializeAws_restJson1ListImagePipelinesCommandError(output, context)];
|
|
4409
4325
|
}
|
|
4410
|
-
contents = {
|
|
4326
|
+
contents = map({
|
|
4411
4327
|
$metadata: deserializeMetadata(output),
|
|
4412
|
-
|
|
4413
|
-
nextToken: undefined,
|
|
4414
|
-
requestId: undefined,
|
|
4415
|
-
};
|
|
4328
|
+
});
|
|
4416
4329
|
_a = __expectNonNull;
|
|
4417
4330
|
_b = __expectObject;
|
|
4418
4331
|
return [4, parseBody(output.body, context)];
|
|
4419
4332
|
case 1:
|
|
4420
4333
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4421
|
-
if (data.imagePipelineList
|
|
4334
|
+
if (data.imagePipelineList != null) {
|
|
4422
4335
|
contents.imagePipelineList = deserializeAws_restJson1ImagePipelineList(data.imagePipelineList, context);
|
|
4423
4336
|
}
|
|
4424
|
-
if (data.nextToken
|
|
4337
|
+
if (data.nextToken != null) {
|
|
4425
4338
|
contents.nextToken = __expectString(data.nextToken);
|
|
4426
4339
|
}
|
|
4427
|
-
if (data.requestId
|
|
4340
|
+
if (data.requestId != null) {
|
|
4428
4341
|
contents.requestId = __expectString(data.requestId);
|
|
4429
4342
|
}
|
|
4430
|
-
return [2,
|
|
4343
|
+
return [2, contents];
|
|
4431
4344
|
}
|
|
4432
4345
|
});
|
|
4433
4346
|
}); };
|
|
4434
4347
|
var deserializeAws_restJson1ListImagePipelinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4435
|
-
var parsedOutput, _a,
|
|
4348
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4436
4349
|
var _c;
|
|
4437
4350
|
return __generator(this, function (_d) {
|
|
4438
4351
|
switch (_d.label) {
|
|
@@ -4477,14 +4390,14 @@ var deserializeAws_restJson1ListImagePipelinesCommandError = function (output, c
|
|
|
4477
4390
|
case 15: throw _d.sent();
|
|
4478
4391
|
case 16:
|
|
4479
4392
|
parsedBody = parsedOutput.body;
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
$metadata: $metadata,
|
|
4393
|
+
throwDefaultError({
|
|
4394
|
+
output: output,
|
|
4395
|
+
parsedBody: parsedBody,
|
|
4396
|
+
exceptionCtor: __BaseException,
|
|
4397
|
+
errorCode: errorCode,
|
|
4486
4398
|
});
|
|
4487
|
-
|
|
4399
|
+
_d.label = 17;
|
|
4400
|
+
case 17: return [2];
|
|
4488
4401
|
}
|
|
4489
4402
|
});
|
|
4490
4403
|
}); };
|
|
@@ -4496,32 +4409,29 @@ export var deserializeAws_restJson1ListImageRecipesCommand = function (output, c
|
|
|
4496
4409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4497
4410
|
return [2, deserializeAws_restJson1ListImageRecipesCommandError(output, context)];
|
|
4498
4411
|
}
|
|
4499
|
-
contents = {
|
|
4412
|
+
contents = map({
|
|
4500
4413
|
$metadata: deserializeMetadata(output),
|
|
4501
|
-
|
|
4502
|
-
nextToken: undefined,
|
|
4503
|
-
requestId: undefined,
|
|
4504
|
-
};
|
|
4414
|
+
});
|
|
4505
4415
|
_a = __expectNonNull;
|
|
4506
4416
|
_b = __expectObject;
|
|
4507
4417
|
return [4, parseBody(output.body, context)];
|
|
4508
4418
|
case 1:
|
|
4509
4419
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4510
|
-
if (data.imageRecipeSummaryList
|
|
4420
|
+
if (data.imageRecipeSummaryList != null) {
|
|
4511
4421
|
contents.imageRecipeSummaryList = deserializeAws_restJson1ImageRecipeSummaryList(data.imageRecipeSummaryList, context);
|
|
4512
4422
|
}
|
|
4513
|
-
if (data.nextToken
|
|
4423
|
+
if (data.nextToken != null) {
|
|
4514
4424
|
contents.nextToken = __expectString(data.nextToken);
|
|
4515
4425
|
}
|
|
4516
|
-
if (data.requestId
|
|
4426
|
+
if (data.requestId != null) {
|
|
4517
4427
|
contents.requestId = __expectString(data.requestId);
|
|
4518
4428
|
}
|
|
4519
|
-
return [2,
|
|
4429
|
+
return [2, contents];
|
|
4520
4430
|
}
|
|
4521
4431
|
});
|
|
4522
4432
|
}); };
|
|
4523
4433
|
var deserializeAws_restJson1ListImageRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4524
|
-
var parsedOutput, _a,
|
|
4434
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4525
4435
|
var _c;
|
|
4526
4436
|
return __generator(this, function (_d) {
|
|
4527
4437
|
switch (_d.label) {
|
|
@@ -4566,14 +4476,14 @@ var deserializeAws_restJson1ListImageRecipesCommandError = function (output, con
|
|
|
4566
4476
|
case 15: throw _d.sent();
|
|
4567
4477
|
case 16:
|
|
4568
4478
|
parsedBody = parsedOutput.body;
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
$metadata: $metadata,
|
|
4479
|
+
throwDefaultError({
|
|
4480
|
+
output: output,
|
|
4481
|
+
parsedBody: parsedBody,
|
|
4482
|
+
exceptionCtor: __BaseException,
|
|
4483
|
+
errorCode: errorCode,
|
|
4575
4484
|
});
|
|
4576
|
-
|
|
4485
|
+
_d.label = 17;
|
|
4486
|
+
case 17: return [2];
|
|
4577
4487
|
}
|
|
4578
4488
|
});
|
|
4579
4489
|
}); };
|
|
@@ -4585,32 +4495,29 @@ export var deserializeAws_restJson1ListImagesCommand = function (output, context
|
|
|
4585
4495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4586
4496
|
return [2, deserializeAws_restJson1ListImagesCommandError(output, context)];
|
|
4587
4497
|
}
|
|
4588
|
-
contents = {
|
|
4498
|
+
contents = map({
|
|
4589
4499
|
$metadata: deserializeMetadata(output),
|
|
4590
|
-
|
|
4591
|
-
nextToken: undefined,
|
|
4592
|
-
requestId: undefined,
|
|
4593
|
-
};
|
|
4500
|
+
});
|
|
4594
4501
|
_a = __expectNonNull;
|
|
4595
4502
|
_b = __expectObject;
|
|
4596
4503
|
return [4, parseBody(output.body, context)];
|
|
4597
4504
|
case 1:
|
|
4598
4505
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4599
|
-
if (data.imageVersionList
|
|
4506
|
+
if (data.imageVersionList != null) {
|
|
4600
4507
|
contents.imageVersionList = deserializeAws_restJson1ImageVersionList(data.imageVersionList, context);
|
|
4601
4508
|
}
|
|
4602
|
-
if (data.nextToken
|
|
4509
|
+
if (data.nextToken != null) {
|
|
4603
4510
|
contents.nextToken = __expectString(data.nextToken);
|
|
4604
4511
|
}
|
|
4605
|
-
if (data.requestId
|
|
4512
|
+
if (data.requestId != null) {
|
|
4606
4513
|
contents.requestId = __expectString(data.requestId);
|
|
4607
4514
|
}
|
|
4608
|
-
return [2,
|
|
4515
|
+
return [2, contents];
|
|
4609
4516
|
}
|
|
4610
4517
|
});
|
|
4611
4518
|
}); };
|
|
4612
4519
|
var deserializeAws_restJson1ListImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4613
|
-
var parsedOutput, _a,
|
|
4520
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4614
4521
|
var _c;
|
|
4615
4522
|
return __generator(this, function (_d) {
|
|
4616
4523
|
switch (_d.label) {
|
|
@@ -4655,14 +4562,14 @@ var deserializeAws_restJson1ListImagesCommandError = function (output, context)
|
|
|
4655
4562
|
case 15: throw _d.sent();
|
|
4656
4563
|
case 16:
|
|
4657
4564
|
parsedBody = parsedOutput.body;
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
$metadata: $metadata,
|
|
4565
|
+
throwDefaultError({
|
|
4566
|
+
output: output,
|
|
4567
|
+
parsedBody: parsedBody,
|
|
4568
|
+
exceptionCtor: __BaseException,
|
|
4569
|
+
errorCode: errorCode,
|
|
4664
4570
|
});
|
|
4665
|
-
|
|
4571
|
+
_d.label = 17;
|
|
4572
|
+
case 17: return [2];
|
|
4666
4573
|
}
|
|
4667
4574
|
});
|
|
4668
4575
|
}); };
|
|
@@ -4674,33 +4581,29 @@ export var deserializeAws_restJson1ListInfrastructureConfigurationsCommand = fun
|
|
|
4674
4581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4675
4582
|
return [2, deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context)];
|
|
4676
4583
|
}
|
|
4677
|
-
contents = {
|
|
4584
|
+
contents = map({
|
|
4678
4585
|
$metadata: deserializeMetadata(output),
|
|
4679
|
-
|
|
4680
|
-
nextToken: undefined,
|
|
4681
|
-
requestId: undefined,
|
|
4682
|
-
};
|
|
4586
|
+
});
|
|
4683
4587
|
_a = __expectNonNull;
|
|
4684
4588
|
_b = __expectObject;
|
|
4685
4589
|
return [4, parseBody(output.body, context)];
|
|
4686
4590
|
case 1:
|
|
4687
4591
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4688
|
-
if (data.infrastructureConfigurationSummaryList
|
|
4689
|
-
data.infrastructureConfigurationSummaryList !== null) {
|
|
4592
|
+
if (data.infrastructureConfigurationSummaryList != null) {
|
|
4690
4593
|
contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
|
|
4691
4594
|
}
|
|
4692
|
-
if (data.nextToken
|
|
4595
|
+
if (data.nextToken != null) {
|
|
4693
4596
|
contents.nextToken = __expectString(data.nextToken);
|
|
4694
4597
|
}
|
|
4695
|
-
if (data.requestId
|
|
4598
|
+
if (data.requestId != null) {
|
|
4696
4599
|
contents.requestId = __expectString(data.requestId);
|
|
4697
4600
|
}
|
|
4698
|
-
return [2,
|
|
4601
|
+
return [2, contents];
|
|
4699
4602
|
}
|
|
4700
4603
|
});
|
|
4701
4604
|
}); };
|
|
4702
4605
|
var deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4703
|
-
var parsedOutput, _a,
|
|
4606
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4704
4607
|
var _c;
|
|
4705
4608
|
return __generator(this, function (_d) {
|
|
4706
4609
|
switch (_d.label) {
|
|
@@ -4745,14 +4648,14 @@ var deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = funct
|
|
|
4745
4648
|
case 15: throw _d.sent();
|
|
4746
4649
|
case 16:
|
|
4747
4650
|
parsedBody = parsedOutput.body;
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
$metadata: $metadata,
|
|
4651
|
+
throwDefaultError({
|
|
4652
|
+
output: output,
|
|
4653
|
+
parsedBody: parsedBody,
|
|
4654
|
+
exceptionCtor: __BaseException,
|
|
4655
|
+
errorCode: errorCode,
|
|
4754
4656
|
});
|
|
4755
|
-
|
|
4657
|
+
_d.label = 17;
|
|
4658
|
+
case 17: return [2];
|
|
4756
4659
|
}
|
|
4757
4660
|
});
|
|
4758
4661
|
}); };
|
|
@@ -4764,24 +4667,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4764
4667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4765
4668
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
4766
4669
|
}
|
|
4767
|
-
contents = {
|
|
4670
|
+
contents = map({
|
|
4768
4671
|
$metadata: deserializeMetadata(output),
|
|
4769
|
-
|
|
4770
|
-
};
|
|
4672
|
+
});
|
|
4771
4673
|
_a = __expectNonNull;
|
|
4772
4674
|
_b = __expectObject;
|
|
4773
4675
|
return [4, parseBody(output.body, context)];
|
|
4774
4676
|
case 1:
|
|
4775
4677
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4776
|
-
if (data.tags
|
|
4678
|
+
if (data.tags != null) {
|
|
4777
4679
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4778
4680
|
}
|
|
4779
|
-
return [2,
|
|
4681
|
+
return [2, contents];
|
|
4780
4682
|
}
|
|
4781
4683
|
});
|
|
4782
4684
|
}); };
|
|
4783
4685
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4784
|
-
var parsedOutput, _a,
|
|
4686
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4785
4687
|
var _c;
|
|
4786
4688
|
return __generator(this, function (_d) {
|
|
4787
4689
|
switch (_d.label) {
|
|
@@ -4810,14 +4712,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4810
4712
|
case 7: throw _d.sent();
|
|
4811
4713
|
case 8:
|
|
4812
4714
|
parsedBody = parsedOutput.body;
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
$metadata: $metadata,
|
|
4715
|
+
throwDefaultError({
|
|
4716
|
+
output: output,
|
|
4717
|
+
parsedBody: parsedBody,
|
|
4718
|
+
exceptionCtor: __BaseException,
|
|
4719
|
+
errorCode: errorCode,
|
|
4819
4720
|
});
|
|
4820
|
-
|
|
4721
|
+
_d.label = 9;
|
|
4722
|
+
case 9: return [2];
|
|
4821
4723
|
}
|
|
4822
4724
|
});
|
|
4823
4725
|
}); };
|
|
@@ -4829,28 +4731,26 @@ export var deserializeAws_restJson1PutComponentPolicyCommand = function (output,
|
|
|
4829
4731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4830
4732
|
return [2, deserializeAws_restJson1PutComponentPolicyCommandError(output, context)];
|
|
4831
4733
|
}
|
|
4832
|
-
contents = {
|
|
4734
|
+
contents = map({
|
|
4833
4735
|
$metadata: deserializeMetadata(output),
|
|
4834
|
-
|
|
4835
|
-
requestId: undefined,
|
|
4836
|
-
};
|
|
4736
|
+
});
|
|
4837
4737
|
_a = __expectNonNull;
|
|
4838
4738
|
_b = __expectObject;
|
|
4839
4739
|
return [4, parseBody(output.body, context)];
|
|
4840
4740
|
case 1:
|
|
4841
4741
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4842
|
-
if (data.componentArn
|
|
4742
|
+
if (data.componentArn != null) {
|
|
4843
4743
|
contents.componentArn = __expectString(data.componentArn);
|
|
4844
4744
|
}
|
|
4845
|
-
if (data.requestId
|
|
4745
|
+
if (data.requestId != null) {
|
|
4846
4746
|
contents.requestId = __expectString(data.requestId);
|
|
4847
4747
|
}
|
|
4848
|
-
return [2,
|
|
4748
|
+
return [2, contents];
|
|
4849
4749
|
}
|
|
4850
4750
|
});
|
|
4851
4751
|
}); };
|
|
4852
4752
|
var deserializeAws_restJson1PutComponentPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
|
-
var parsedOutput, _a,
|
|
4753
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4854
4754
|
var _c;
|
|
4855
4755
|
return __generator(this, function (_d) {
|
|
4856
4756
|
switch (_d.label) {
|
|
@@ -4899,14 +4799,14 @@ var deserializeAws_restJson1PutComponentPolicyCommandError = function (output, c
|
|
|
4899
4799
|
case 17: throw _d.sent();
|
|
4900
4800
|
case 18:
|
|
4901
4801
|
parsedBody = parsedOutput.body;
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
$metadata: $metadata,
|
|
4802
|
+
throwDefaultError({
|
|
4803
|
+
output: output,
|
|
4804
|
+
parsedBody: parsedBody,
|
|
4805
|
+
exceptionCtor: __BaseException,
|
|
4806
|
+
errorCode: errorCode,
|
|
4908
4807
|
});
|
|
4909
|
-
|
|
4808
|
+
_d.label = 19;
|
|
4809
|
+
case 19: return [2];
|
|
4910
4810
|
}
|
|
4911
4811
|
});
|
|
4912
4812
|
}); };
|
|
@@ -4918,28 +4818,26 @@ export var deserializeAws_restJson1PutContainerRecipePolicyCommand = function (o
|
|
|
4918
4818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4919
4819
|
return [2, deserializeAws_restJson1PutContainerRecipePolicyCommandError(output, context)];
|
|
4920
4820
|
}
|
|
4921
|
-
contents = {
|
|
4821
|
+
contents = map({
|
|
4922
4822
|
$metadata: deserializeMetadata(output),
|
|
4923
|
-
|
|
4924
|
-
requestId: undefined,
|
|
4925
|
-
};
|
|
4823
|
+
});
|
|
4926
4824
|
_a = __expectNonNull;
|
|
4927
4825
|
_b = __expectObject;
|
|
4928
4826
|
return [4, parseBody(output.body, context)];
|
|
4929
4827
|
case 1:
|
|
4930
4828
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4931
|
-
if (data.containerRecipeArn
|
|
4829
|
+
if (data.containerRecipeArn != null) {
|
|
4932
4830
|
contents.containerRecipeArn = __expectString(data.containerRecipeArn);
|
|
4933
4831
|
}
|
|
4934
|
-
if (data.requestId
|
|
4832
|
+
if (data.requestId != null) {
|
|
4935
4833
|
contents.requestId = __expectString(data.requestId);
|
|
4936
4834
|
}
|
|
4937
|
-
return [2,
|
|
4835
|
+
return [2, contents];
|
|
4938
4836
|
}
|
|
4939
4837
|
});
|
|
4940
4838
|
}); };
|
|
4941
4839
|
var deserializeAws_restJson1PutContainerRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4942
|
-
var parsedOutput, _a,
|
|
4840
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4943
4841
|
var _c;
|
|
4944
4842
|
return __generator(this, function (_d) {
|
|
4945
4843
|
switch (_d.label) {
|
|
@@ -4988,14 +4886,14 @@ var deserializeAws_restJson1PutContainerRecipePolicyCommandError = function (out
|
|
|
4988
4886
|
case 17: throw _d.sent();
|
|
4989
4887
|
case 18:
|
|
4990
4888
|
parsedBody = parsedOutput.body;
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
$metadata: $metadata,
|
|
4889
|
+
throwDefaultError({
|
|
4890
|
+
output: output,
|
|
4891
|
+
parsedBody: parsedBody,
|
|
4892
|
+
exceptionCtor: __BaseException,
|
|
4893
|
+
errorCode: errorCode,
|
|
4997
4894
|
});
|
|
4998
|
-
|
|
4895
|
+
_d.label = 19;
|
|
4896
|
+
case 19: return [2];
|
|
4999
4897
|
}
|
|
5000
4898
|
});
|
|
5001
4899
|
}); };
|
|
@@ -5007,28 +4905,26 @@ export var deserializeAws_restJson1PutImagePolicyCommand = function (output, con
|
|
|
5007
4905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5008
4906
|
return [2, deserializeAws_restJson1PutImagePolicyCommandError(output, context)];
|
|
5009
4907
|
}
|
|
5010
|
-
contents = {
|
|
4908
|
+
contents = map({
|
|
5011
4909
|
$metadata: deserializeMetadata(output),
|
|
5012
|
-
|
|
5013
|
-
requestId: undefined,
|
|
5014
|
-
};
|
|
4910
|
+
});
|
|
5015
4911
|
_a = __expectNonNull;
|
|
5016
4912
|
_b = __expectObject;
|
|
5017
4913
|
return [4, parseBody(output.body, context)];
|
|
5018
4914
|
case 1:
|
|
5019
4915
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5020
|
-
if (data.imageArn
|
|
4916
|
+
if (data.imageArn != null) {
|
|
5021
4917
|
contents.imageArn = __expectString(data.imageArn);
|
|
5022
4918
|
}
|
|
5023
|
-
if (data.requestId
|
|
4919
|
+
if (data.requestId != null) {
|
|
5024
4920
|
contents.requestId = __expectString(data.requestId);
|
|
5025
4921
|
}
|
|
5026
|
-
return [2,
|
|
4922
|
+
return [2, contents];
|
|
5027
4923
|
}
|
|
5028
4924
|
});
|
|
5029
4925
|
}); };
|
|
5030
4926
|
var deserializeAws_restJson1PutImagePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5031
|
-
var parsedOutput, _a,
|
|
4927
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5032
4928
|
var _c;
|
|
5033
4929
|
return __generator(this, function (_d) {
|
|
5034
4930
|
switch (_d.label) {
|
|
@@ -5077,14 +4973,14 @@ var deserializeAws_restJson1PutImagePolicyCommandError = function (output, conte
|
|
|
5077
4973
|
case 17: throw _d.sent();
|
|
5078
4974
|
case 18:
|
|
5079
4975
|
parsedBody = parsedOutput.body;
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
$metadata: $metadata,
|
|
4976
|
+
throwDefaultError({
|
|
4977
|
+
output: output,
|
|
4978
|
+
parsedBody: parsedBody,
|
|
4979
|
+
exceptionCtor: __BaseException,
|
|
4980
|
+
errorCode: errorCode,
|
|
5086
4981
|
});
|
|
5087
|
-
|
|
4982
|
+
_d.label = 19;
|
|
4983
|
+
case 19: return [2];
|
|
5088
4984
|
}
|
|
5089
4985
|
});
|
|
5090
4986
|
}); };
|
|
@@ -5096,28 +4992,26 @@ export var deserializeAws_restJson1PutImageRecipePolicyCommand = function (outpu
|
|
|
5096
4992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5097
4993
|
return [2, deserializeAws_restJson1PutImageRecipePolicyCommandError(output, context)];
|
|
5098
4994
|
}
|
|
5099
|
-
contents = {
|
|
4995
|
+
contents = map({
|
|
5100
4996
|
$metadata: deserializeMetadata(output),
|
|
5101
|
-
|
|
5102
|
-
requestId: undefined,
|
|
5103
|
-
};
|
|
4997
|
+
});
|
|
5104
4998
|
_a = __expectNonNull;
|
|
5105
4999
|
_b = __expectObject;
|
|
5106
5000
|
return [4, parseBody(output.body, context)];
|
|
5107
5001
|
case 1:
|
|
5108
5002
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5109
|
-
if (data.imageRecipeArn
|
|
5003
|
+
if (data.imageRecipeArn != null) {
|
|
5110
5004
|
contents.imageRecipeArn = __expectString(data.imageRecipeArn);
|
|
5111
5005
|
}
|
|
5112
|
-
if (data.requestId
|
|
5006
|
+
if (data.requestId != null) {
|
|
5113
5007
|
contents.requestId = __expectString(data.requestId);
|
|
5114
5008
|
}
|
|
5115
|
-
return [2,
|
|
5009
|
+
return [2, contents];
|
|
5116
5010
|
}
|
|
5117
5011
|
});
|
|
5118
5012
|
}); };
|
|
5119
5013
|
var deserializeAws_restJson1PutImageRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5120
|
-
var parsedOutput, _a,
|
|
5014
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5121
5015
|
var _c;
|
|
5122
5016
|
return __generator(this, function (_d) {
|
|
5123
5017
|
switch (_d.label) {
|
|
@@ -5166,14 +5060,14 @@ var deserializeAws_restJson1PutImageRecipePolicyCommandError = function (output,
|
|
|
5166
5060
|
case 17: throw _d.sent();
|
|
5167
5061
|
case 18:
|
|
5168
5062
|
parsedBody = parsedOutput.body;
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
$metadata: $metadata,
|
|
5063
|
+
throwDefaultError({
|
|
5064
|
+
output: output,
|
|
5065
|
+
parsedBody: parsedBody,
|
|
5066
|
+
exceptionCtor: __BaseException,
|
|
5067
|
+
errorCode: errorCode,
|
|
5175
5068
|
});
|
|
5176
|
-
|
|
5069
|
+
_d.label = 19;
|
|
5070
|
+
case 19: return [2];
|
|
5177
5071
|
}
|
|
5178
5072
|
});
|
|
5179
5073
|
}); };
|
|
@@ -5185,32 +5079,29 @@ export var deserializeAws_restJson1StartImagePipelineExecutionCommand = function
|
|
|
5185
5079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5186
5080
|
return [2, deserializeAws_restJson1StartImagePipelineExecutionCommandError(output, context)];
|
|
5187
5081
|
}
|
|
5188
|
-
contents = {
|
|
5082
|
+
contents = map({
|
|
5189
5083
|
$metadata: deserializeMetadata(output),
|
|
5190
|
-
|
|
5191
|
-
imageBuildVersionArn: undefined,
|
|
5192
|
-
requestId: undefined,
|
|
5193
|
-
};
|
|
5084
|
+
});
|
|
5194
5085
|
_a = __expectNonNull;
|
|
5195
5086
|
_b = __expectObject;
|
|
5196
5087
|
return [4, parseBody(output.body, context)];
|
|
5197
5088
|
case 1:
|
|
5198
5089
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5199
|
-
if (data.clientToken
|
|
5090
|
+
if (data.clientToken != null) {
|
|
5200
5091
|
contents.clientToken = __expectString(data.clientToken);
|
|
5201
5092
|
}
|
|
5202
|
-
if (data.imageBuildVersionArn
|
|
5093
|
+
if (data.imageBuildVersionArn != null) {
|
|
5203
5094
|
contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
|
|
5204
5095
|
}
|
|
5205
|
-
if (data.requestId
|
|
5096
|
+
if (data.requestId != null) {
|
|
5206
5097
|
contents.requestId = __expectString(data.requestId);
|
|
5207
5098
|
}
|
|
5208
|
-
return [2,
|
|
5099
|
+
return [2, contents];
|
|
5209
5100
|
}
|
|
5210
5101
|
});
|
|
5211
5102
|
}); };
|
|
5212
5103
|
var deserializeAws_restJson1StartImagePipelineExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5213
|
-
var parsedOutput, _a,
|
|
5104
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5214
5105
|
var _c;
|
|
5215
5106
|
return __generator(this, function (_d) {
|
|
5216
5107
|
switch (_d.label) {
|
|
@@ -5263,14 +5154,14 @@ var deserializeAws_restJson1StartImagePipelineExecutionCommandError = function (
|
|
|
5263
5154
|
case 19: throw _d.sent();
|
|
5264
5155
|
case 20:
|
|
5265
5156
|
parsedBody = parsedOutput.body;
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
$metadata: $metadata,
|
|
5157
|
+
throwDefaultError({
|
|
5158
|
+
output: output,
|
|
5159
|
+
parsedBody: parsedBody,
|
|
5160
|
+
exceptionCtor: __BaseException,
|
|
5161
|
+
errorCode: errorCode,
|
|
5272
5162
|
});
|
|
5273
|
-
|
|
5163
|
+
_d.label = 21;
|
|
5164
|
+
case 21: return [2];
|
|
5274
5165
|
}
|
|
5275
5166
|
});
|
|
5276
5167
|
}); };
|
|
@@ -5282,18 +5173,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
5282
5173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5283
5174
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
5284
5175
|
}
|
|
5285
|
-
contents = {
|
|
5176
|
+
contents = map({
|
|
5286
5177
|
$metadata: deserializeMetadata(output),
|
|
5287
|
-
};
|
|
5178
|
+
});
|
|
5288
5179
|
return [4, collectBody(output.body, context)];
|
|
5289
5180
|
case 1:
|
|
5290
5181
|
_a.sent();
|
|
5291
|
-
return [2,
|
|
5182
|
+
return [2, contents];
|
|
5292
5183
|
}
|
|
5293
5184
|
});
|
|
5294
5185
|
}); };
|
|
5295
5186
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5296
|
-
var parsedOutput, _a,
|
|
5187
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5297
5188
|
var _c;
|
|
5298
5189
|
return __generator(this, function (_d) {
|
|
5299
5190
|
switch (_d.label) {
|
|
@@ -5322,14 +5213,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5322
5213
|
case 7: throw _d.sent();
|
|
5323
5214
|
case 8:
|
|
5324
5215
|
parsedBody = parsedOutput.body;
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
$metadata: $metadata,
|
|
5216
|
+
throwDefaultError({
|
|
5217
|
+
output: output,
|
|
5218
|
+
parsedBody: parsedBody,
|
|
5219
|
+
exceptionCtor: __BaseException,
|
|
5220
|
+
errorCode: errorCode,
|
|
5331
5221
|
});
|
|
5332
|
-
|
|
5222
|
+
_d.label = 9;
|
|
5223
|
+
case 9: return [2];
|
|
5333
5224
|
}
|
|
5334
5225
|
});
|
|
5335
5226
|
}); };
|
|
@@ -5341,18 +5232,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
5341
5232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5342
5233
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
5343
5234
|
}
|
|
5344
|
-
contents = {
|
|
5235
|
+
contents = map({
|
|
5345
5236
|
$metadata: deserializeMetadata(output),
|
|
5346
|
-
};
|
|
5237
|
+
});
|
|
5347
5238
|
return [4, collectBody(output.body, context)];
|
|
5348
5239
|
case 1:
|
|
5349
5240
|
_a.sent();
|
|
5350
|
-
return [2,
|
|
5241
|
+
return [2, contents];
|
|
5351
5242
|
}
|
|
5352
5243
|
});
|
|
5353
5244
|
}); };
|
|
5354
5245
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5355
|
-
var parsedOutput, _a,
|
|
5246
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5356
5247
|
var _c;
|
|
5357
5248
|
return __generator(this, function (_d) {
|
|
5358
5249
|
switch (_d.label) {
|
|
@@ -5381,14 +5272,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5381
5272
|
case 7: throw _d.sent();
|
|
5382
5273
|
case 8:
|
|
5383
5274
|
parsedBody = parsedOutput.body;
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
$metadata: $metadata,
|
|
5275
|
+
throwDefaultError({
|
|
5276
|
+
output: output,
|
|
5277
|
+
parsedBody: parsedBody,
|
|
5278
|
+
exceptionCtor: __BaseException,
|
|
5279
|
+
errorCode: errorCode,
|
|
5390
5280
|
});
|
|
5391
|
-
|
|
5281
|
+
_d.label = 9;
|
|
5282
|
+
case 9: return [2];
|
|
5392
5283
|
}
|
|
5393
5284
|
});
|
|
5394
5285
|
}); };
|
|
@@ -5400,32 +5291,29 @@ export var deserializeAws_restJson1UpdateDistributionConfigurationCommand = func
|
|
|
5400
5291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5401
5292
|
return [2, deserializeAws_restJson1UpdateDistributionConfigurationCommandError(output, context)];
|
|
5402
5293
|
}
|
|
5403
|
-
contents = {
|
|
5294
|
+
contents = map({
|
|
5404
5295
|
$metadata: deserializeMetadata(output),
|
|
5405
|
-
|
|
5406
|
-
distributionConfigurationArn: undefined,
|
|
5407
|
-
requestId: undefined,
|
|
5408
|
-
};
|
|
5296
|
+
});
|
|
5409
5297
|
_a = __expectNonNull;
|
|
5410
5298
|
_b = __expectObject;
|
|
5411
5299
|
return [4, parseBody(output.body, context)];
|
|
5412
5300
|
case 1:
|
|
5413
5301
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5414
|
-
if (data.clientToken
|
|
5302
|
+
if (data.clientToken != null) {
|
|
5415
5303
|
contents.clientToken = __expectString(data.clientToken);
|
|
5416
5304
|
}
|
|
5417
|
-
if (data.distributionConfigurationArn
|
|
5305
|
+
if (data.distributionConfigurationArn != null) {
|
|
5418
5306
|
contents.distributionConfigurationArn = __expectString(data.distributionConfigurationArn);
|
|
5419
5307
|
}
|
|
5420
|
-
if (data.requestId
|
|
5308
|
+
if (data.requestId != null) {
|
|
5421
5309
|
contents.requestId = __expectString(data.requestId);
|
|
5422
5310
|
}
|
|
5423
|
-
return [2,
|
|
5311
|
+
return [2, contents];
|
|
5424
5312
|
}
|
|
5425
5313
|
});
|
|
5426
5314
|
}); };
|
|
5427
5315
|
var deserializeAws_restJson1UpdateDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5428
|
-
var parsedOutput, _a,
|
|
5316
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5429
5317
|
var _c;
|
|
5430
5318
|
return __generator(this, function (_d) {
|
|
5431
5319
|
switch (_d.label) {
|
|
@@ -5478,14 +5366,14 @@ var deserializeAws_restJson1UpdateDistributionConfigurationCommandError = functi
|
|
|
5478
5366
|
case 19: throw _d.sent();
|
|
5479
5367
|
case 20:
|
|
5480
5368
|
parsedBody = parsedOutput.body;
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
$metadata: $metadata,
|
|
5369
|
+
throwDefaultError({
|
|
5370
|
+
output: output,
|
|
5371
|
+
parsedBody: parsedBody,
|
|
5372
|
+
exceptionCtor: __BaseException,
|
|
5373
|
+
errorCode: errorCode,
|
|
5487
5374
|
});
|
|
5488
|
-
|
|
5375
|
+
_d.label = 21;
|
|
5376
|
+
case 21: return [2];
|
|
5489
5377
|
}
|
|
5490
5378
|
});
|
|
5491
5379
|
}); };
|
|
@@ -5497,32 +5385,29 @@ export var deserializeAws_restJson1UpdateImagePipelineCommand = function (output
|
|
|
5497
5385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5498
5386
|
return [2, deserializeAws_restJson1UpdateImagePipelineCommandError(output, context)];
|
|
5499
5387
|
}
|
|
5500
|
-
contents = {
|
|
5388
|
+
contents = map({
|
|
5501
5389
|
$metadata: deserializeMetadata(output),
|
|
5502
|
-
|
|
5503
|
-
imagePipelineArn: undefined,
|
|
5504
|
-
requestId: undefined,
|
|
5505
|
-
};
|
|
5390
|
+
});
|
|
5506
5391
|
_a = __expectNonNull;
|
|
5507
5392
|
_b = __expectObject;
|
|
5508
5393
|
return [4, parseBody(output.body, context)];
|
|
5509
5394
|
case 1:
|
|
5510
5395
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5511
|
-
if (data.clientToken
|
|
5396
|
+
if (data.clientToken != null) {
|
|
5512
5397
|
contents.clientToken = __expectString(data.clientToken);
|
|
5513
5398
|
}
|
|
5514
|
-
if (data.imagePipelineArn
|
|
5399
|
+
if (data.imagePipelineArn != null) {
|
|
5515
5400
|
contents.imagePipelineArn = __expectString(data.imagePipelineArn);
|
|
5516
5401
|
}
|
|
5517
|
-
if (data.requestId
|
|
5402
|
+
if (data.requestId != null) {
|
|
5518
5403
|
contents.requestId = __expectString(data.requestId);
|
|
5519
5404
|
}
|
|
5520
|
-
return [2,
|
|
5405
|
+
return [2, contents];
|
|
5521
5406
|
}
|
|
5522
5407
|
});
|
|
5523
5408
|
}); };
|
|
5524
5409
|
var deserializeAws_restJson1UpdateImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5525
|
-
var parsedOutput, _a,
|
|
5410
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5526
5411
|
var _c;
|
|
5527
5412
|
return __generator(this, function (_d) {
|
|
5528
5413
|
switch (_d.label) {
|
|
@@ -5571,14 +5456,14 @@ var deserializeAws_restJson1UpdateImagePipelineCommandError = function (output,
|
|
|
5571
5456
|
case 17: throw _d.sent();
|
|
5572
5457
|
case 18:
|
|
5573
5458
|
parsedBody = parsedOutput.body;
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
$metadata: $metadata,
|
|
5459
|
+
throwDefaultError({
|
|
5460
|
+
output: output,
|
|
5461
|
+
parsedBody: parsedBody,
|
|
5462
|
+
exceptionCtor: __BaseException,
|
|
5463
|
+
errorCode: errorCode,
|
|
5580
5464
|
});
|
|
5581
|
-
|
|
5465
|
+
_d.label = 19;
|
|
5466
|
+
case 19: return [2];
|
|
5582
5467
|
}
|
|
5583
5468
|
});
|
|
5584
5469
|
}); };
|
|
@@ -5590,32 +5475,29 @@ export var deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = fu
|
|
|
5590
5475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5591
5476
|
return [2, deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError(output, context)];
|
|
5592
5477
|
}
|
|
5593
|
-
contents = {
|
|
5478
|
+
contents = map({
|
|
5594
5479
|
$metadata: deserializeMetadata(output),
|
|
5595
|
-
|
|
5596
|
-
infrastructureConfigurationArn: undefined,
|
|
5597
|
-
requestId: undefined,
|
|
5598
|
-
};
|
|
5480
|
+
});
|
|
5599
5481
|
_a = __expectNonNull;
|
|
5600
5482
|
_b = __expectObject;
|
|
5601
5483
|
return [4, parseBody(output.body, context)];
|
|
5602
5484
|
case 1:
|
|
5603
5485
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5604
|
-
if (data.clientToken
|
|
5486
|
+
if (data.clientToken != null) {
|
|
5605
5487
|
contents.clientToken = __expectString(data.clientToken);
|
|
5606
5488
|
}
|
|
5607
|
-
if (data.infrastructureConfigurationArn
|
|
5489
|
+
if (data.infrastructureConfigurationArn != null) {
|
|
5608
5490
|
contents.infrastructureConfigurationArn = __expectString(data.infrastructureConfigurationArn);
|
|
5609
5491
|
}
|
|
5610
|
-
if (data.requestId
|
|
5492
|
+
if (data.requestId != null) {
|
|
5611
5493
|
contents.requestId = __expectString(data.requestId);
|
|
5612
5494
|
}
|
|
5613
|
-
return [2,
|
|
5495
|
+
return [2, contents];
|
|
5614
5496
|
}
|
|
5615
5497
|
});
|
|
5616
5498
|
}); };
|
|
5617
5499
|
var deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5618
|
-
var parsedOutput, _a,
|
|
5500
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5619
5501
|
var _c;
|
|
5620
5502
|
return __generator(this, function (_d) {
|
|
5621
5503
|
switch (_d.label) {
|
|
@@ -5664,23 +5546,24 @@ var deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = func
|
|
|
5664
5546
|
case 17: throw _d.sent();
|
|
5665
5547
|
case 18:
|
|
5666
5548
|
parsedBody = parsedOutput.body;
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
$metadata: $metadata,
|
|
5549
|
+
throwDefaultError({
|
|
5550
|
+
output: output,
|
|
5551
|
+
parsedBody: parsedBody,
|
|
5552
|
+
exceptionCtor: __BaseException,
|
|
5553
|
+
errorCode: errorCode,
|
|
5673
5554
|
});
|
|
5674
|
-
|
|
5555
|
+
_d.label = 19;
|
|
5556
|
+
case 19: return [2];
|
|
5675
5557
|
}
|
|
5676
5558
|
});
|
|
5677
5559
|
}); };
|
|
5560
|
+
var map = __map;
|
|
5678
5561
|
var deserializeAws_restJson1CallRateLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5679
5562
|
var contents, data, exception;
|
|
5680
5563
|
return __generator(this, function (_a) {
|
|
5681
|
-
contents = {};
|
|
5564
|
+
contents = map({});
|
|
5682
5565
|
data = parsedOutput.body;
|
|
5683
|
-
if (data.message
|
|
5566
|
+
if (data.message != null) {
|
|
5684
5567
|
contents.message = __expectString(data.message);
|
|
5685
5568
|
}
|
|
5686
5569
|
exception = new CallRateLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5690,9 +5573,9 @@ var deserializeAws_restJson1CallRateLimitExceededExceptionResponse = function (p
|
|
|
5690
5573
|
var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5691
5574
|
var contents, data, exception;
|
|
5692
5575
|
return __generator(this, function (_a) {
|
|
5693
|
-
contents = {};
|
|
5576
|
+
contents = map({});
|
|
5694
5577
|
data = parsedOutput.body;
|
|
5695
|
-
if (data.message
|
|
5578
|
+
if (data.message != null) {
|
|
5696
5579
|
contents.message = __expectString(data.message);
|
|
5697
5580
|
}
|
|
5698
5581
|
exception = new ClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5702,9 +5585,9 @@ var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, co
|
|
|
5702
5585
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5703
5586
|
var contents, data, exception;
|
|
5704
5587
|
return __generator(this, function (_a) {
|
|
5705
|
-
contents = {};
|
|
5588
|
+
contents = map({});
|
|
5706
5589
|
data = parsedOutput.body;
|
|
5707
|
-
if (data.message
|
|
5590
|
+
if (data.message != null) {
|
|
5708
5591
|
contents.message = __expectString(data.message);
|
|
5709
5592
|
}
|
|
5710
5593
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5714,9 +5597,9 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
5714
5597
|
var deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5715
5598
|
var contents, data, exception;
|
|
5716
5599
|
return __generator(this, function (_a) {
|
|
5717
|
-
contents = {};
|
|
5600
|
+
contents = map({});
|
|
5718
5601
|
data = parsedOutput.body;
|
|
5719
|
-
if (data.message
|
|
5602
|
+
if (data.message != null) {
|
|
5720
5603
|
contents.message = __expectString(data.message);
|
|
5721
5604
|
}
|
|
5722
5605
|
exception = new IdempotentParameterMismatchException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5726,9 +5609,9 @@ var deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = funct
|
|
|
5726
5609
|
var deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5727
5610
|
var contents, data, exception;
|
|
5728
5611
|
return __generator(this, function (_a) {
|
|
5729
|
-
contents = {};
|
|
5612
|
+
contents = map({});
|
|
5730
5613
|
data = parsedOutput.body;
|
|
5731
|
-
if (data.message
|
|
5614
|
+
if (data.message != null) {
|
|
5732
5615
|
contents.message = __expectString(data.message);
|
|
5733
5616
|
}
|
|
5734
5617
|
exception = new InvalidPaginationTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5738,9 +5621,9 @@ var deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = function (
|
|
|
5738
5621
|
var deserializeAws_restJson1InvalidParameterCombinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5739
5622
|
var contents, data, exception;
|
|
5740
5623
|
return __generator(this, function (_a) {
|
|
5741
|
-
contents = {};
|
|
5624
|
+
contents = map({});
|
|
5742
5625
|
data = parsedOutput.body;
|
|
5743
|
-
if (data.message
|
|
5626
|
+
if (data.message != null) {
|
|
5744
5627
|
contents.message = __expectString(data.message);
|
|
5745
5628
|
}
|
|
5746
5629
|
exception = new InvalidParameterCombinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5750,9 +5633,9 @@ var deserializeAws_restJson1InvalidParameterCombinationExceptionResponse = funct
|
|
|
5750
5633
|
var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5751
5634
|
var contents, data, exception;
|
|
5752
5635
|
return __generator(this, function (_a) {
|
|
5753
|
-
contents = {};
|
|
5636
|
+
contents = map({});
|
|
5754
5637
|
data = parsedOutput.body;
|
|
5755
|
-
if (data.message
|
|
5638
|
+
if (data.message != null) {
|
|
5756
5639
|
contents.message = __expectString(data.message);
|
|
5757
5640
|
}
|
|
5758
5641
|
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5762,9 +5645,9 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
|
|
|
5762
5645
|
var deserializeAws_restJson1InvalidParameterValueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5763
5646
|
var contents, data, exception;
|
|
5764
5647
|
return __generator(this, function (_a) {
|
|
5765
|
-
contents = {};
|
|
5648
|
+
contents = map({});
|
|
5766
5649
|
data = parsedOutput.body;
|
|
5767
|
-
if (data.message
|
|
5650
|
+
if (data.message != null) {
|
|
5768
5651
|
contents.message = __expectString(data.message);
|
|
5769
5652
|
}
|
|
5770
5653
|
exception = new InvalidParameterValueException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5774,9 +5657,9 @@ var deserializeAws_restJson1InvalidParameterValueExceptionResponse = function (p
|
|
|
5774
5657
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5775
5658
|
var contents, data, exception;
|
|
5776
5659
|
return __generator(this, function (_a) {
|
|
5777
|
-
contents = {};
|
|
5660
|
+
contents = map({});
|
|
5778
5661
|
data = parsedOutput.body;
|
|
5779
|
-
if (data.message
|
|
5662
|
+
if (data.message != null) {
|
|
5780
5663
|
contents.message = __expectString(data.message);
|
|
5781
5664
|
}
|
|
5782
5665
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5786,9 +5669,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
5786
5669
|
var deserializeAws_restJson1InvalidVersionNumberExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5787
5670
|
var contents, data, exception;
|
|
5788
5671
|
return __generator(this, function (_a) {
|
|
5789
|
-
contents = {};
|
|
5672
|
+
contents = map({});
|
|
5790
5673
|
data = parsedOutput.body;
|
|
5791
|
-
if (data.message
|
|
5674
|
+
if (data.message != null) {
|
|
5792
5675
|
contents.message = __expectString(data.message);
|
|
5793
5676
|
}
|
|
5794
5677
|
exception = new InvalidVersionNumberException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5798,9 +5681,9 @@ var deserializeAws_restJson1InvalidVersionNumberExceptionResponse = function (pa
|
|
|
5798
5681
|
var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5799
5682
|
var contents, data, exception;
|
|
5800
5683
|
return __generator(this, function (_a) {
|
|
5801
|
-
contents = {};
|
|
5684
|
+
contents = map({});
|
|
5802
5685
|
data = parsedOutput.body;
|
|
5803
|
-
if (data.message
|
|
5686
|
+
if (data.message != null) {
|
|
5804
5687
|
contents.message = __expectString(data.message);
|
|
5805
5688
|
}
|
|
5806
5689
|
exception = new ResourceAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5810,9 +5693,9 @@ var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (p
|
|
|
5810
5693
|
var deserializeAws_restJson1ResourceDependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5811
5694
|
var contents, data, exception;
|
|
5812
5695
|
return __generator(this, function (_a) {
|
|
5813
|
-
contents = {};
|
|
5696
|
+
contents = map({});
|
|
5814
5697
|
data = parsedOutput.body;
|
|
5815
|
-
if (data.message
|
|
5698
|
+
if (data.message != null) {
|
|
5816
5699
|
contents.message = __expectString(data.message);
|
|
5817
5700
|
}
|
|
5818
5701
|
exception = new ResourceDependencyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5822,9 +5705,9 @@ var deserializeAws_restJson1ResourceDependencyExceptionResponse = function (pars
|
|
|
5822
5705
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5823
5706
|
var contents, data, exception;
|
|
5824
5707
|
return __generator(this, function (_a) {
|
|
5825
|
-
contents = {};
|
|
5708
|
+
contents = map({});
|
|
5826
5709
|
data = parsedOutput.body;
|
|
5827
|
-
if (data.message
|
|
5710
|
+
if (data.message != null) {
|
|
5828
5711
|
contents.message = __expectString(data.message);
|
|
5829
5712
|
}
|
|
5830
5713
|
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5834,9 +5717,9 @@ var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOut
|
|
|
5834
5717
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5835
5718
|
var contents, data, exception;
|
|
5836
5719
|
return __generator(this, function (_a) {
|
|
5837
|
-
contents = {};
|
|
5720
|
+
contents = map({});
|
|
5838
5721
|
data = parsedOutput.body;
|
|
5839
|
-
if (data.message
|
|
5722
|
+
if (data.message != null) {
|
|
5840
5723
|
contents.message = __expectString(data.message);
|
|
5841
5724
|
}
|
|
5842
5725
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5846,9 +5729,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
5846
5729
|
var deserializeAws_restJson1ServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5847
5730
|
var contents, data, exception;
|
|
5848
5731
|
return __generator(this, function (_a) {
|
|
5849
|
-
contents = {};
|
|
5732
|
+
contents = map({});
|
|
5850
5733
|
data = parsedOutput.body;
|
|
5851
|
-
if (data.message
|
|
5734
|
+
if (data.message != null) {
|
|
5852
5735
|
contents.message = __expectString(data.message);
|
|
5853
5736
|
}
|
|
5854
5737
|
exception = new ServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5858,9 +5741,9 @@ var deserializeAws_restJson1ServiceExceptionResponse = function (parsedOutput, c
|
|
|
5858
5741
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5859
5742
|
var contents, data, exception;
|
|
5860
5743
|
return __generator(this, function (_a) {
|
|
5861
|
-
contents = {};
|
|
5744
|
+
contents = map({});
|
|
5862
5745
|
data = parsedOutput.body;
|
|
5863
|
-
if (data.message
|
|
5746
|
+
if (data.message != null) {
|
|
5864
5747
|
contents.message = __expectString(data.message);
|
|
5865
5748
|
}
|
|
5866
5749
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5870,9 +5753,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
5870
5753
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5871
5754
|
var contents, data, exception;
|
|
5872
5755
|
return __generator(this, function (_a) {
|
|
5873
|
-
contents = {};
|
|
5756
|
+
contents = map({});
|
|
5874
5757
|
data = parsedOutput.body;
|
|
5875
|
-
if (data.message
|
|
5758
|
+
if (data.message != null) {
|
|
5876
5759
|
contents.message = __expectString(data.message);
|
|
5877
5760
|
}
|
|
5878
5761
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5883,9 +5766,6 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
5883
5766
|
return input
|
|
5884
5767
|
.filter(function (e) { return e != null; })
|
|
5885
5768
|
.map(function (entry) {
|
|
5886
|
-
if (entry === null) {
|
|
5887
|
-
return null;
|
|
5888
|
-
}
|
|
5889
5769
|
return entry;
|
|
5890
5770
|
});
|
|
5891
5771
|
};
|
|
@@ -5910,9 +5790,6 @@ var serializeAws_restJson1ComponentConfigurationList = function (input, context)
|
|
|
5910
5790
|
return input
|
|
5911
5791
|
.filter(function (e) { return e != null; })
|
|
5912
5792
|
.map(function (entry) {
|
|
5913
|
-
if (entry === null) {
|
|
5914
|
-
return null;
|
|
5915
|
-
}
|
|
5916
5793
|
return serializeAws_restJson1ComponentConfiguration(entry, context);
|
|
5917
5794
|
});
|
|
5918
5795
|
};
|
|
@@ -5923,9 +5800,6 @@ var serializeAws_restJson1ComponentParameterList = function (input, context) {
|
|
|
5923
5800
|
return input
|
|
5924
5801
|
.filter(function (e) { return e != null; })
|
|
5925
5802
|
.map(function (entry) {
|
|
5926
|
-
if (entry === null) {
|
|
5927
|
-
return null;
|
|
5928
|
-
}
|
|
5929
5803
|
return serializeAws_restJson1ComponentParameter(entry, context);
|
|
5930
5804
|
});
|
|
5931
5805
|
};
|
|
@@ -5933,9 +5807,6 @@ var serializeAws_restJson1ComponentParameterValueList = function (input, context
|
|
|
5933
5807
|
return input
|
|
5934
5808
|
.filter(function (e) { return e != null; })
|
|
5935
5809
|
.map(function (entry) {
|
|
5936
|
-
if (entry === null) {
|
|
5937
|
-
return null;
|
|
5938
|
-
}
|
|
5939
5810
|
return entry;
|
|
5940
5811
|
});
|
|
5941
5812
|
};
|
|
@@ -5965,9 +5836,6 @@ var serializeAws_restJson1DistributionList = function (input, context) {
|
|
|
5965
5836
|
return input
|
|
5966
5837
|
.filter(function (e) { return e != null; })
|
|
5967
5838
|
.map(function (entry) {
|
|
5968
|
-
if (entry === null) {
|
|
5969
|
-
return null;
|
|
5970
|
-
}
|
|
5971
5839
|
return serializeAws_restJson1Distribution(entry, context);
|
|
5972
5840
|
});
|
|
5973
5841
|
};
|
|
@@ -5985,9 +5853,6 @@ var serializeAws_restJson1FastLaunchConfigurationList = function (input, context
|
|
|
5985
5853
|
return input
|
|
5986
5854
|
.filter(function (e) { return e != null; })
|
|
5987
5855
|
.map(function (entry) {
|
|
5988
|
-
if (entry === null) {
|
|
5989
|
-
return null;
|
|
5990
|
-
}
|
|
5991
5856
|
return serializeAws_restJson1FastLaunchConfiguration(entry, context);
|
|
5992
5857
|
});
|
|
5993
5858
|
};
|
|
@@ -6004,9 +5869,6 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
6004
5869
|
return input
|
|
6005
5870
|
.filter(function (e) { return e != null; })
|
|
6006
5871
|
.map(function (entry) {
|
|
6007
|
-
if (entry === null) {
|
|
6008
|
-
return null;
|
|
6009
|
-
}
|
|
6010
5872
|
return serializeAws_restJson1Filter(entry, context);
|
|
6011
5873
|
});
|
|
6012
5874
|
};
|
|
@@ -6014,9 +5876,6 @@ var serializeAws_restJson1FilterValues = function (input, context) {
|
|
|
6014
5876
|
return input
|
|
6015
5877
|
.filter(function (e) { return e != null; })
|
|
6016
5878
|
.map(function (entry) {
|
|
6017
|
-
if (entry === null) {
|
|
6018
|
-
return null;
|
|
6019
|
-
}
|
|
6020
5879
|
return entry;
|
|
6021
5880
|
});
|
|
6022
5881
|
};
|
|
@@ -6030,9 +5889,6 @@ var serializeAws_restJson1InstanceBlockDeviceMappings = function (input, context
|
|
|
6030
5889
|
return input
|
|
6031
5890
|
.filter(function (e) { return e != null; })
|
|
6032
5891
|
.map(function (entry) {
|
|
6033
|
-
if (entry === null) {
|
|
6034
|
-
return null;
|
|
6035
|
-
}
|
|
6036
5892
|
return serializeAws_restJson1InstanceBlockDeviceMapping(entry, context);
|
|
6037
5893
|
});
|
|
6038
5894
|
};
|
|
@@ -6048,9 +5904,6 @@ var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
|
6048
5904
|
return input
|
|
6049
5905
|
.filter(function (e) { return e != null; })
|
|
6050
5906
|
.map(function (entry) {
|
|
6051
|
-
if (entry === null) {
|
|
6052
|
-
return null;
|
|
6053
|
-
}
|
|
6054
5907
|
return entry;
|
|
6055
5908
|
});
|
|
6056
5909
|
};
|
|
@@ -6068,9 +5921,6 @@ var serializeAws_restJson1LaunchTemplateConfigurationList = function (input, con
|
|
|
6068
5921
|
return input
|
|
6069
5922
|
.filter(function (e) { return e != null; })
|
|
6070
5923
|
.map(function (entry) {
|
|
6071
|
-
if (entry === null) {
|
|
6072
|
-
return null;
|
|
6073
|
-
}
|
|
6074
5924
|
return serializeAws_restJson1LaunchTemplateConfiguration(entry, context);
|
|
6075
5925
|
});
|
|
6076
5926
|
};
|
|
@@ -6078,9 +5928,6 @@ var serializeAws_restJson1LicenseConfigurationArnList = function (input, context
|
|
|
6078
5928
|
return input
|
|
6079
5929
|
.filter(function (e) { return e != null; })
|
|
6080
5930
|
.map(function (entry) {
|
|
6081
|
-
if (entry === null) {
|
|
6082
|
-
return null;
|
|
6083
|
-
}
|
|
6084
5931
|
return entry;
|
|
6085
5932
|
});
|
|
6086
5933
|
};
|
|
@@ -6091,9 +5938,6 @@ var serializeAws_restJson1OrganizationalUnitArnList = function (input, context)
|
|
|
6091
5938
|
return input
|
|
6092
5939
|
.filter(function (e) { return e != null; })
|
|
6093
5940
|
.map(function (entry) {
|
|
6094
|
-
if (entry === null) {
|
|
6095
|
-
return null;
|
|
6096
|
-
}
|
|
6097
5941
|
return entry;
|
|
6098
5942
|
});
|
|
6099
5943
|
};
|
|
@@ -6101,9 +5945,6 @@ var serializeAws_restJson1OrganizationArnList = function (input, context) {
|
|
|
6101
5945
|
return input
|
|
6102
5946
|
.filter(function (e) { return e != null; })
|
|
6103
5947
|
.map(function (entry) {
|
|
6104
|
-
if (entry === null) {
|
|
6105
|
-
return null;
|
|
6106
|
-
}
|
|
6107
5948
|
return entry;
|
|
6108
5949
|
});
|
|
6109
5950
|
};
|
|
@@ -6111,9 +5952,6 @@ var serializeAws_restJson1OsVersionList = function (input, context) {
|
|
|
6111
5952
|
return input
|
|
6112
5953
|
.filter(function (e) { return e != null; })
|
|
6113
5954
|
.map(function (entry) {
|
|
6114
|
-
if (entry === null) {
|
|
6115
|
-
return null;
|
|
6116
|
-
}
|
|
6117
5955
|
return entry;
|
|
6118
5956
|
});
|
|
6119
5957
|
};
|
|
@@ -6142,9 +5980,6 @@ var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
|
6142
5980
|
return input
|
|
6143
5981
|
.filter(function (e) { return e != null; })
|
|
6144
5982
|
.map(function (entry) {
|
|
6145
|
-
if (entry === null) {
|
|
6146
|
-
return null;
|
|
6147
|
-
}
|
|
6148
5983
|
return entry;
|
|
6149
5984
|
});
|
|
6150
5985
|
};
|
|
@@ -6152,9 +5987,6 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
6152
5987
|
return input
|
|
6153
5988
|
.filter(function (e) { return e != null; })
|
|
6154
5989
|
.map(function (entry) {
|
|
6155
|
-
if (entry === null) {
|
|
6156
|
-
return null;
|
|
6157
|
-
}
|
|
6158
5990
|
return entry;
|
|
6159
5991
|
});
|
|
6160
5992
|
};
|