@aws-sdk/client-support 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +136 -155
- package/dist-es/protocols/Aws_json1_1.js +111 -130
- package/package.json +26 -26
|
@@ -176,7 +176,7 @@ export var deserializeAws_json1_1AddAttachmentsToSetCommand = function (output,
|
|
|
176
176
|
});
|
|
177
177
|
}); };
|
|
178
178
|
var deserializeAws_json1_1AddAttachmentsToSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
179
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
179
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
180
180
|
var _c;
|
|
181
181
|
return __generator(this, function (_d) {
|
|
182
182
|
switch (_d.label) {
|
|
@@ -186,7 +186,6 @@ var deserializeAws_json1_1AddAttachmentsToSetCommandError = function (output, co
|
|
|
186
186
|
return [4, parseBody(output.body, context)];
|
|
187
187
|
case 1:
|
|
188
188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
189
|
-
errorCode = "UnknownError";
|
|
190
189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
190
|
_b = errorCode;
|
|
192
191
|
switch (_b) {
|
|
@@ -214,10 +213,12 @@ var deserializeAws_json1_1AddAttachmentsToSetCommandError = function (output, co
|
|
|
214
213
|
case 11: throw _d.sent();
|
|
215
214
|
case 12:
|
|
216
215
|
parsedBody = parsedOutput.body;
|
|
216
|
+
$metadata = deserializeMetadata(output);
|
|
217
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
217
218
|
response = new __BaseException({
|
|
218
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
219
220
|
$fault: "client",
|
|
220
|
-
$metadata:
|
|
221
|
+
$metadata: $metadata,
|
|
221
222
|
});
|
|
222
223
|
throw __decorateServiceException(response, parsedBody);
|
|
223
224
|
}
|
|
@@ -242,7 +243,7 @@ export var deserializeAws_json1_1AddCommunicationToCaseCommand = function (outpu
|
|
|
242
243
|
});
|
|
243
244
|
}); };
|
|
244
245
|
var deserializeAws_json1_1AddCommunicationToCaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
245
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
246
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
246
247
|
var _c;
|
|
247
248
|
return __generator(this, function (_d) {
|
|
248
249
|
switch (_d.label) {
|
|
@@ -252,7 +253,6 @@ var deserializeAws_json1_1AddCommunicationToCaseCommandError = function (output,
|
|
|
252
253
|
return [4, parseBody(output.body, context)];
|
|
253
254
|
case 1:
|
|
254
255
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
255
|
-
errorCode = "UnknownError";
|
|
256
256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
257
257
|
_b = errorCode;
|
|
258
258
|
switch (_b) {
|
|
@@ -276,10 +276,12 @@ var deserializeAws_json1_1AddCommunicationToCaseCommandError = function (output,
|
|
|
276
276
|
case 9: throw _d.sent();
|
|
277
277
|
case 10:
|
|
278
278
|
parsedBody = parsedOutput.body;
|
|
279
|
+
$metadata = deserializeMetadata(output);
|
|
280
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
279
281
|
response = new __BaseException({
|
|
280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
281
283
|
$fault: "client",
|
|
282
|
-
$metadata:
|
|
284
|
+
$metadata: $metadata,
|
|
283
285
|
});
|
|
284
286
|
throw __decorateServiceException(response, parsedBody);
|
|
285
287
|
}
|
|
@@ -304,7 +306,7 @@ export var deserializeAws_json1_1CreateCaseCommand = function (output, context)
|
|
|
304
306
|
});
|
|
305
307
|
}); };
|
|
306
308
|
var deserializeAws_json1_1CreateCaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
307
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
309
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
308
310
|
var _c;
|
|
309
311
|
return __generator(this, function (_d) {
|
|
310
312
|
switch (_d.label) {
|
|
@@ -314,7 +316,6 @@ var deserializeAws_json1_1CreateCaseCommandError = function (output, context) {
|
|
|
314
316
|
return [4, parseBody(output.body, context)];
|
|
315
317
|
case 1:
|
|
316
318
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
317
|
-
errorCode = "UnknownError";
|
|
318
319
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
320
|
_b = errorCode;
|
|
320
321
|
switch (_b) {
|
|
@@ -338,10 +339,12 @@ var deserializeAws_json1_1CreateCaseCommandError = function (output, context) {
|
|
|
338
339
|
case 9: throw _d.sent();
|
|
339
340
|
case 10:
|
|
340
341
|
parsedBody = parsedOutput.body;
|
|
342
|
+
$metadata = deserializeMetadata(output);
|
|
343
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
341
344
|
response = new __BaseException({
|
|
342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
343
346
|
$fault: "client",
|
|
344
|
-
$metadata:
|
|
347
|
+
$metadata: $metadata,
|
|
345
348
|
});
|
|
346
349
|
throw __decorateServiceException(response, parsedBody);
|
|
347
350
|
}
|
|
@@ -366,7 +369,7 @@ export var deserializeAws_json1_1DescribeAttachmentCommand = function (output, c
|
|
|
366
369
|
});
|
|
367
370
|
}); };
|
|
368
371
|
var deserializeAws_json1_1DescribeAttachmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
372
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
370
373
|
var _c;
|
|
371
374
|
return __generator(this, function (_d) {
|
|
372
375
|
switch (_d.label) {
|
|
@@ -376,7 +379,6 @@ var deserializeAws_json1_1DescribeAttachmentCommandError = function (output, con
|
|
|
376
379
|
return [4, parseBody(output.body, context)];
|
|
377
380
|
case 1:
|
|
378
381
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
379
|
-
errorCode = "UnknownError";
|
|
380
382
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
383
|
_b = errorCode;
|
|
382
384
|
switch (_b) {
|
|
@@ -396,10 +398,12 @@ var deserializeAws_json1_1DescribeAttachmentCommandError = function (output, con
|
|
|
396
398
|
case 7: throw _d.sent();
|
|
397
399
|
case 8:
|
|
398
400
|
parsedBody = parsedOutput.body;
|
|
401
|
+
$metadata = deserializeMetadata(output);
|
|
402
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
399
403
|
response = new __BaseException({
|
|
400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
401
405
|
$fault: "client",
|
|
402
|
-
$metadata:
|
|
406
|
+
$metadata: $metadata,
|
|
403
407
|
});
|
|
404
408
|
throw __decorateServiceException(response, parsedBody);
|
|
405
409
|
}
|
|
@@ -424,7 +428,7 @@ export var deserializeAws_json1_1DescribeCasesCommand = function (output, contex
|
|
|
424
428
|
});
|
|
425
429
|
}); };
|
|
426
430
|
var deserializeAws_json1_1DescribeCasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
427
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
431
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
428
432
|
var _c;
|
|
429
433
|
return __generator(this, function (_d) {
|
|
430
434
|
switch (_d.label) {
|
|
@@ -434,7 +438,6 @@ var deserializeAws_json1_1DescribeCasesCommandError = function (output, context)
|
|
|
434
438
|
return [4, parseBody(output.body, context)];
|
|
435
439
|
case 1:
|
|
436
440
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
437
|
-
errorCode = "UnknownError";
|
|
438
441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
442
|
_b = errorCode;
|
|
440
443
|
switch (_b) {
|
|
@@ -450,10 +453,12 @@ var deserializeAws_json1_1DescribeCasesCommandError = function (output, context)
|
|
|
450
453
|
case 5: throw _d.sent();
|
|
451
454
|
case 6:
|
|
452
455
|
parsedBody = parsedOutput.body;
|
|
456
|
+
$metadata = deserializeMetadata(output);
|
|
457
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
453
458
|
response = new __BaseException({
|
|
454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
455
460
|
$fault: "client",
|
|
456
|
-
$metadata:
|
|
461
|
+
$metadata: $metadata,
|
|
457
462
|
});
|
|
458
463
|
throw __decorateServiceException(response, parsedBody);
|
|
459
464
|
}
|
|
@@ -478,7 +483,7 @@ export var deserializeAws_json1_1DescribeCommunicationsCommand = function (outpu
|
|
|
478
483
|
});
|
|
479
484
|
}); };
|
|
480
485
|
var deserializeAws_json1_1DescribeCommunicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
481
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
486
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
482
487
|
var _c;
|
|
483
488
|
return __generator(this, function (_d) {
|
|
484
489
|
switch (_d.label) {
|
|
@@ -488,7 +493,6 @@ var deserializeAws_json1_1DescribeCommunicationsCommandError = function (output,
|
|
|
488
493
|
return [4, parseBody(output.body, context)];
|
|
489
494
|
case 1:
|
|
490
495
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
491
|
-
errorCode = "UnknownError";
|
|
492
496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
497
|
_b = errorCode;
|
|
494
498
|
switch (_b) {
|
|
@@ -504,10 +508,12 @@ var deserializeAws_json1_1DescribeCommunicationsCommandError = function (output,
|
|
|
504
508
|
case 5: throw _d.sent();
|
|
505
509
|
case 6:
|
|
506
510
|
parsedBody = parsedOutput.body;
|
|
511
|
+
$metadata = deserializeMetadata(output);
|
|
512
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
507
513
|
response = new __BaseException({
|
|
508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
509
515
|
$fault: "client",
|
|
510
|
-
$metadata:
|
|
516
|
+
$metadata: $metadata,
|
|
511
517
|
});
|
|
512
518
|
throw __decorateServiceException(response, parsedBody);
|
|
513
519
|
}
|
|
@@ -532,7 +538,7 @@ export var deserializeAws_json1_1DescribeServicesCommand = function (output, con
|
|
|
532
538
|
});
|
|
533
539
|
}); };
|
|
534
540
|
var deserializeAws_json1_1DescribeServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
541
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
536
542
|
var _c;
|
|
537
543
|
return __generator(this, function (_d) {
|
|
538
544
|
switch (_d.label) {
|
|
@@ -542,7 +548,6 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
542
548
|
return [4, parseBody(output.body, context)];
|
|
543
549
|
case 1:
|
|
544
550
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
545
|
-
errorCode = "UnknownError";
|
|
546
551
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
552
|
_b = errorCode;
|
|
548
553
|
switch (_b) {
|
|
@@ -554,10 +559,12 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
554
559
|
case 3: throw _d.sent();
|
|
555
560
|
case 4:
|
|
556
561
|
parsedBody = parsedOutput.body;
|
|
562
|
+
$metadata = deserializeMetadata(output);
|
|
563
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
557
564
|
response = new __BaseException({
|
|
558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
559
566
|
$fault: "client",
|
|
560
|
-
$metadata:
|
|
567
|
+
$metadata: $metadata,
|
|
561
568
|
});
|
|
562
569
|
throw __decorateServiceException(response, parsedBody);
|
|
563
570
|
}
|
|
@@ -582,7 +589,7 @@ export var deserializeAws_json1_1DescribeSeverityLevelsCommand = function (outpu
|
|
|
582
589
|
});
|
|
583
590
|
}); };
|
|
584
591
|
var deserializeAws_json1_1DescribeSeverityLevelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
585
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
592
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
586
593
|
var _c;
|
|
587
594
|
return __generator(this, function (_d) {
|
|
588
595
|
switch (_d.label) {
|
|
@@ -592,7 +599,6 @@ var deserializeAws_json1_1DescribeSeverityLevelsCommandError = function (output,
|
|
|
592
599
|
return [4, parseBody(output.body, context)];
|
|
593
600
|
case 1:
|
|
594
601
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
595
|
-
errorCode = "UnknownError";
|
|
596
602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
603
|
_b = errorCode;
|
|
598
604
|
switch (_b) {
|
|
@@ -604,10 +610,12 @@ var deserializeAws_json1_1DescribeSeverityLevelsCommandError = function (output,
|
|
|
604
610
|
case 3: throw _d.sent();
|
|
605
611
|
case 4:
|
|
606
612
|
parsedBody = parsedOutput.body;
|
|
613
|
+
$metadata = deserializeMetadata(output);
|
|
614
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
607
615
|
response = new __BaseException({
|
|
608
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
616
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
609
617
|
$fault: "client",
|
|
610
|
-
$metadata:
|
|
618
|
+
$metadata: $metadata,
|
|
611
619
|
});
|
|
612
620
|
throw __decorateServiceException(response, parsedBody);
|
|
613
621
|
}
|
|
@@ -632,7 +640,7 @@ export var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesComma
|
|
|
632
640
|
});
|
|
633
641
|
}); };
|
|
634
642
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
635
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
643
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
636
644
|
var _c;
|
|
637
645
|
return __generator(this, function (_d) {
|
|
638
646
|
switch (_d.label) {
|
|
@@ -642,7 +650,6 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandError
|
|
|
642
650
|
return [4, parseBody(output.body, context)];
|
|
643
651
|
case 1:
|
|
644
652
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
645
|
-
errorCode = "UnknownError";
|
|
646
653
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
654
|
_b = errorCode;
|
|
648
655
|
switch (_b) {
|
|
@@ -654,10 +661,12 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandError
|
|
|
654
661
|
case 3: throw _d.sent();
|
|
655
662
|
case 4:
|
|
656
663
|
parsedBody = parsedOutput.body;
|
|
664
|
+
$metadata = deserializeMetadata(output);
|
|
665
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
657
666
|
response = new __BaseException({
|
|
658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
667
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
659
668
|
$fault: "client",
|
|
660
|
-
$metadata:
|
|
669
|
+
$metadata: $metadata,
|
|
661
670
|
});
|
|
662
671
|
throw __decorateServiceException(response, parsedBody);
|
|
663
672
|
}
|
|
@@ -682,7 +691,7 @@ export var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommand = func
|
|
|
682
691
|
});
|
|
683
692
|
}); };
|
|
684
693
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
685
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
694
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
686
695
|
var _c;
|
|
687
696
|
return __generator(this, function (_d) {
|
|
688
697
|
switch (_d.label) {
|
|
@@ -692,7 +701,6 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = functi
|
|
|
692
701
|
return [4, parseBody(output.body, context)];
|
|
693
702
|
case 1:
|
|
694
703
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
695
|
-
errorCode = "UnknownError";
|
|
696
704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
705
|
_b = errorCode;
|
|
698
706
|
switch (_b) {
|
|
@@ -704,10 +712,12 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = functi
|
|
|
704
712
|
case 3: throw _d.sent();
|
|
705
713
|
case 4:
|
|
706
714
|
parsedBody = parsedOutput.body;
|
|
715
|
+
$metadata = deserializeMetadata(output);
|
|
716
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
707
717
|
response = new __BaseException({
|
|
708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
709
719
|
$fault: "client",
|
|
710
|
-
$metadata:
|
|
720
|
+
$metadata: $metadata,
|
|
711
721
|
});
|
|
712
722
|
throw __decorateServiceException(response, parsedBody);
|
|
713
723
|
}
|
|
@@ -732,7 +742,7 @@ export var deserializeAws_json1_1DescribeTrustedAdvisorChecksCommand = function
|
|
|
732
742
|
});
|
|
733
743
|
}); };
|
|
734
744
|
var deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
735
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
745
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
736
746
|
var _c;
|
|
737
747
|
return __generator(this, function (_d) {
|
|
738
748
|
switch (_d.label) {
|
|
@@ -742,7 +752,6 @@ var deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = function (o
|
|
|
742
752
|
return [4, parseBody(output.body, context)];
|
|
743
753
|
case 1:
|
|
744
754
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
745
|
-
errorCode = "UnknownError";
|
|
746
755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
756
|
_b = errorCode;
|
|
748
757
|
switch (_b) {
|
|
@@ -754,10 +763,12 @@ var deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = function (o
|
|
|
754
763
|
case 3: throw _d.sent();
|
|
755
764
|
case 4:
|
|
756
765
|
parsedBody = parsedOutput.body;
|
|
766
|
+
$metadata = deserializeMetadata(output);
|
|
767
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
757
768
|
response = new __BaseException({
|
|
758
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
769
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
759
770
|
$fault: "client",
|
|
760
|
-
$metadata:
|
|
771
|
+
$metadata: $metadata,
|
|
761
772
|
});
|
|
762
773
|
throw __decorateServiceException(response, parsedBody);
|
|
763
774
|
}
|
|
@@ -782,7 +793,7 @@ export var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommand = f
|
|
|
782
793
|
});
|
|
783
794
|
}); };
|
|
784
795
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
785
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
796
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
786
797
|
var _c;
|
|
787
798
|
return __generator(this, function (_d) {
|
|
788
799
|
switch (_d.label) {
|
|
@@ -792,7 +803,6 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = fun
|
|
|
792
803
|
return [4, parseBody(output.body, context)];
|
|
793
804
|
case 1:
|
|
794
805
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
795
|
-
errorCode = "UnknownError";
|
|
796
806
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
807
|
_b = errorCode;
|
|
798
808
|
switch (_b) {
|
|
@@ -804,10 +814,12 @@ var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = fun
|
|
|
804
814
|
case 3: throw _d.sent();
|
|
805
815
|
case 4:
|
|
806
816
|
parsedBody = parsedOutput.body;
|
|
817
|
+
$metadata = deserializeMetadata(output);
|
|
818
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
807
819
|
response = new __BaseException({
|
|
808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
809
821
|
$fault: "client",
|
|
810
|
-
$metadata:
|
|
822
|
+
$metadata: $metadata,
|
|
811
823
|
});
|
|
812
824
|
throw __decorateServiceException(response, parsedBody);
|
|
813
825
|
}
|
|
@@ -832,7 +844,7 @@ export var deserializeAws_json1_1RefreshTrustedAdvisorCheckCommand = function (o
|
|
|
832
844
|
});
|
|
833
845
|
}); };
|
|
834
846
|
var deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
835
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
847
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
836
848
|
var _c;
|
|
837
849
|
return __generator(this, function (_d) {
|
|
838
850
|
switch (_d.label) {
|
|
@@ -842,7 +854,6 @@ var deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = function (out
|
|
|
842
854
|
return [4, parseBody(output.body, context)];
|
|
843
855
|
case 1:
|
|
844
856
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
845
|
-
errorCode = "UnknownError";
|
|
846
857
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
858
|
_b = errorCode;
|
|
848
859
|
switch (_b) {
|
|
@@ -854,10 +865,12 @@ var deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = function (out
|
|
|
854
865
|
case 3: throw _d.sent();
|
|
855
866
|
case 4:
|
|
856
867
|
parsedBody = parsedOutput.body;
|
|
868
|
+
$metadata = deserializeMetadata(output);
|
|
869
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
857
870
|
response = new __BaseException({
|
|
858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
859
872
|
$fault: "client",
|
|
860
|
-
$metadata:
|
|
873
|
+
$metadata: $metadata,
|
|
861
874
|
});
|
|
862
875
|
throw __decorateServiceException(response, parsedBody);
|
|
863
876
|
}
|
|
@@ -882,7 +895,7 @@ export var deserializeAws_json1_1ResolveCaseCommand = function (output, context)
|
|
|
882
895
|
});
|
|
883
896
|
}); };
|
|
884
897
|
var deserializeAws_json1_1ResolveCaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
885
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
898
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
886
899
|
var _c;
|
|
887
900
|
return __generator(this, function (_d) {
|
|
888
901
|
switch (_d.label) {
|
|
@@ -892,7 +905,6 @@ var deserializeAws_json1_1ResolveCaseCommandError = function (output, context) {
|
|
|
892
905
|
return [4, parseBody(output.body, context)];
|
|
893
906
|
case 1:
|
|
894
907
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
895
|
-
errorCode = "UnknownError";
|
|
896
908
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
909
|
_b = errorCode;
|
|
898
910
|
switch (_b) {
|
|
@@ -908,10 +920,12 @@ var deserializeAws_json1_1ResolveCaseCommandError = function (output, context) {
|
|
|
908
920
|
case 5: throw _d.sent();
|
|
909
921
|
case 6:
|
|
910
922
|
parsedBody = parsedOutput.body;
|
|
923
|
+
$metadata = deserializeMetadata(output);
|
|
924
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
911
925
|
response = new __BaseException({
|
|
912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
913
927
|
$fault: "client",
|
|
914
|
-
$metadata:
|
|
928
|
+
$metadata: $metadata,
|
|
915
929
|
});
|
|
916
930
|
throw __decorateServiceException(response, parsedBody);
|
|
917
931
|
}
|
|
@@ -999,20 +1013,15 @@ var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput,
|
|
|
999
1013
|
});
|
|
1000
1014
|
}); };
|
|
1001
1015
|
var serializeAws_json1_1AddAttachmentsToSetRequest = function (input, context) {
|
|
1002
|
-
return __assign(__assign({}, (input.attachmentSetId
|
|
1003
|
-
input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.attachments !== undefined &&
|
|
1004
|
-
input.attachments !== null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }));
|
|
1016
|
+
return __assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.attachments != null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }));
|
|
1005
1017
|
};
|
|
1006
1018
|
var serializeAws_json1_1AddCommunicationToCaseRequest = function (input, context) {
|
|
1007
|
-
return __assign(__assign(__assign(__assign({}, (input.attachmentSetId
|
|
1008
|
-
input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.caseId !== undefined && input.caseId !== null && { caseId: input.caseId })), (input.ccEmailAddresses !== undefined &&
|
|
1009
|
-
input.ccEmailAddresses !== null && {
|
|
1019
|
+
return __assign(__assign(__assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.caseId != null && { caseId: input.caseId })), (input.ccEmailAddresses != null && {
|
|
1010
1020
|
ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
|
|
1011
|
-
})), (input.communicationBody
|
|
1012
|
-
input.communicationBody !== null && { communicationBody: input.communicationBody }));
|
|
1021
|
+
})), (input.communicationBody != null && { communicationBody: input.communicationBody }));
|
|
1013
1022
|
};
|
|
1014
1023
|
var serializeAws_json1_1Attachment = function (input, context) {
|
|
1015
|
-
return __assign(__assign({}, (input.data
|
|
1024
|
+
return __assign(__assign({}, (input.data != null && { data: context.base64Encoder(input.data) })), (input.fileName != null && { fileName: input.fileName }));
|
|
1016
1025
|
};
|
|
1017
1026
|
var serializeAws_json1_1Attachments = function (input, context) {
|
|
1018
1027
|
return input
|
|
@@ -1045,53 +1054,44 @@ var serializeAws_json1_1CcEmailAddressList = function (input, context) {
|
|
|
1045
1054
|
});
|
|
1046
1055
|
};
|
|
1047
1056
|
var serializeAws_json1_1CreateCaseRequest = function (input, context) {
|
|
1048
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachmentSetId
|
|
1049
|
-
input.attachmentSetId !== null && { attachmentSetId: input.attachmentSetId })), (input.categoryCode !== undefined && input.categoryCode !== null && { categoryCode: input.categoryCode })), (input.ccEmailAddresses !== undefined &&
|
|
1050
|
-
input.ccEmailAddresses !== null && {
|
|
1057
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId })), (input.categoryCode != null && { categoryCode: input.categoryCode })), (input.ccEmailAddresses != null && {
|
|
1051
1058
|
ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
|
|
1052
|
-
})), (input.communicationBody
|
|
1053
|
-
input.communicationBody !== null && { communicationBody: input.communicationBody })), (input.issueType !== undefined && input.issueType !== null && { issueType: input.issueType })), (input.language !== undefined && input.language !== null && { language: input.language })), (input.serviceCode !== undefined && input.serviceCode !== null && { serviceCode: input.serviceCode })), (input.severityCode !== undefined && input.severityCode !== null && { severityCode: input.severityCode })), (input.subject !== undefined && input.subject !== null && { subject: input.subject }));
|
|
1059
|
+
})), (input.communicationBody != null && { communicationBody: input.communicationBody })), (input.issueType != null && { issueType: input.issueType })), (input.language != null && { language: input.language })), (input.serviceCode != null && { serviceCode: input.serviceCode })), (input.severityCode != null && { severityCode: input.severityCode })), (input.subject != null && { subject: input.subject }));
|
|
1054
1060
|
};
|
|
1055
1061
|
var serializeAws_json1_1DescribeAttachmentRequest = function (input, context) {
|
|
1056
|
-
return __assign({}, (input.attachmentId
|
|
1062
|
+
return __assign({}, (input.attachmentId != null && { attachmentId: input.attachmentId }));
|
|
1057
1063
|
};
|
|
1058
1064
|
var serializeAws_json1_1DescribeCasesRequest = function (input, context) {
|
|
1059
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterTime
|
|
1060
|
-
input.caseIdList !== null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) })), (input.displayId !== undefined && input.displayId !== null && { displayId: input.displayId })), (input.includeCommunications !== undefined &&
|
|
1061
|
-
input.includeCommunications !== null && { includeCommunications: input.includeCommunications })), (input.includeResolvedCases !== undefined &&
|
|
1062
|
-
input.includeResolvedCases !== null && { includeResolvedCases: input.includeResolvedCases })), (input.language !== undefined && input.language !== null && { language: input.language })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1065
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterTime != null && { afterTime: input.afterTime })), (input.beforeTime != null && { beforeTime: input.beforeTime })), (input.caseIdList != null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) })), (input.displayId != null && { displayId: input.displayId })), (input.includeCommunications != null && { includeCommunications: input.includeCommunications })), (input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases })), (input.language != null && { language: input.language })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1063
1066
|
};
|
|
1064
1067
|
var serializeAws_json1_1DescribeCommunicationsRequest = function (input, context) {
|
|
1065
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.afterTime
|
|
1068
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.afterTime != null && { afterTime: input.afterTime })), (input.beforeTime != null && { beforeTime: input.beforeTime })), (input.caseId != null && { caseId: input.caseId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1066
1069
|
};
|
|
1067
1070
|
var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
|
|
1068
|
-
return __assign(__assign({}, (input.language
|
|
1069
|
-
input.serviceCodeList !== null && {
|
|
1071
|
+
return __assign(__assign({}, (input.language != null && { language: input.language })), (input.serviceCodeList != null && {
|
|
1070
1072
|
serviceCodeList: serializeAws_json1_1ServiceCodeList(input.serviceCodeList, context),
|
|
1071
1073
|
}));
|
|
1072
1074
|
};
|
|
1073
1075
|
var serializeAws_json1_1DescribeSeverityLevelsRequest = function (input, context) {
|
|
1074
|
-
return __assign({}, (input.language
|
|
1076
|
+
return __assign({}, (input.language != null && { language: input.language }));
|
|
1075
1077
|
};
|
|
1076
1078
|
var serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesRequest = function (input, context) {
|
|
1077
|
-
return __assign({}, (input.checkIds
|
|
1078
|
-
input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
|
|
1079
|
+
return __assign({}, (input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
|
|
1079
1080
|
};
|
|
1080
1081
|
var serializeAws_json1_1DescribeTrustedAdvisorCheckResultRequest = function (input, context) {
|
|
1081
|
-
return __assign(__assign({}, (input.checkId
|
|
1082
|
+
return __assign(__assign({}, (input.checkId != null && { checkId: input.checkId })), (input.language != null && { language: input.language }));
|
|
1082
1083
|
};
|
|
1083
1084
|
var serializeAws_json1_1DescribeTrustedAdvisorChecksRequest = function (input, context) {
|
|
1084
|
-
return __assign({}, (input.language
|
|
1085
|
+
return __assign({}, (input.language != null && { language: input.language }));
|
|
1085
1086
|
};
|
|
1086
1087
|
var serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesRequest = function (input, context) {
|
|
1087
|
-
return __assign({}, (input.checkIds
|
|
1088
|
-
input.checkIds !== null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
|
|
1088
|
+
return __assign({}, (input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }));
|
|
1089
1089
|
};
|
|
1090
1090
|
var serializeAws_json1_1RefreshTrustedAdvisorCheckRequest = function (input, context) {
|
|
1091
|
-
return __assign({}, (input.checkId
|
|
1091
|
+
return __assign({}, (input.checkId != null && { checkId: input.checkId }));
|
|
1092
1092
|
};
|
|
1093
1093
|
var serializeAws_json1_1ResolveCaseRequest = function (input, context) {
|
|
1094
|
-
return __assign({}, (input.caseId
|
|
1094
|
+
return __assign({}, (input.caseId != null && { caseId: input.caseId }));
|
|
1095
1095
|
};
|
|
1096
1096
|
var serializeAws_json1_1ServiceCodeList = function (input, context) {
|
|
1097
1097
|
return input
|
|
@@ -1126,7 +1126,7 @@ var deserializeAws_json1_1AddCommunicationToCaseResponse = function (output, con
|
|
|
1126
1126
|
};
|
|
1127
1127
|
var deserializeAws_json1_1Attachment = function (output, context) {
|
|
1128
1128
|
return {
|
|
1129
|
-
data: output.data
|
|
1129
|
+
data: output.data != null ? context.base64Decoder(output.data) : undefined,
|
|
1130
1130
|
fileName: __expectString(output.fileName),
|
|
1131
1131
|
};
|
|
1132
1132
|
};
|
|
@@ -1181,12 +1181,12 @@ var deserializeAws_json1_1CaseDetails = function (output, context) {
|
|
|
1181
1181
|
return {
|
|
1182
1182
|
caseId: __expectString(output.caseId),
|
|
1183
1183
|
categoryCode: __expectString(output.categoryCode),
|
|
1184
|
-
ccEmailAddresses: output.ccEmailAddresses
|
|
1184
|
+
ccEmailAddresses: output.ccEmailAddresses != null
|
|
1185
1185
|
? deserializeAws_json1_1CcEmailAddressList(output.ccEmailAddresses, context)
|
|
1186
1186
|
: undefined,
|
|
1187
1187
|
displayId: __expectString(output.displayId),
|
|
1188
1188
|
language: __expectString(output.language),
|
|
1189
|
-
recentCommunications: output.recentCommunications
|
|
1189
|
+
recentCommunications: output.recentCommunications != null
|
|
1190
1190
|
? deserializeAws_json1_1RecentCaseCommunications(output.recentCommunications, context)
|
|
1191
1191
|
: undefined,
|
|
1192
1192
|
serviceCode: __expectString(output.serviceCode),
|
|
@@ -1243,9 +1243,7 @@ var deserializeAws_json1_1CcEmailAddressList = function (output, context) {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
var deserializeAws_json1_1Communication = function (output, context) {
|
|
1245
1245
|
return {
|
|
1246
|
-
attachmentSet: output.attachmentSet
|
|
1247
|
-
? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context)
|
|
1248
|
-
: undefined,
|
|
1246
|
+
attachmentSet: output.attachmentSet != null ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context) : undefined,
|
|
1249
1247
|
body: __expectString(output.body),
|
|
1250
1248
|
caseId: __expectString(output.caseId),
|
|
1251
1249
|
submittedBy: __expectString(output.submittedBy),
|
|
@@ -1275,22 +1273,18 @@ var deserializeAws_json1_1DescribeAttachmentLimitExceeded = function (output, co
|
|
|
1275
1273
|
};
|
|
1276
1274
|
var deserializeAws_json1_1DescribeAttachmentResponse = function (output, context) {
|
|
1277
1275
|
return {
|
|
1278
|
-
attachment: output.attachment
|
|
1279
|
-
? deserializeAws_json1_1Attachment(output.attachment, context)
|
|
1280
|
-
: undefined,
|
|
1276
|
+
attachment: output.attachment != null ? deserializeAws_json1_1Attachment(output.attachment, context) : undefined,
|
|
1281
1277
|
};
|
|
1282
1278
|
};
|
|
1283
1279
|
var deserializeAws_json1_1DescribeCasesResponse = function (output, context) {
|
|
1284
1280
|
return {
|
|
1285
|
-
cases: output.cases
|
|
1286
|
-
? deserializeAws_json1_1CaseList(output.cases, context)
|
|
1287
|
-
: undefined,
|
|
1281
|
+
cases: output.cases != null ? deserializeAws_json1_1CaseList(output.cases, context) : undefined,
|
|
1288
1282
|
nextToken: __expectString(output.nextToken),
|
|
1289
1283
|
};
|
|
1290
1284
|
};
|
|
1291
1285
|
var deserializeAws_json1_1DescribeCommunicationsResponse = function (output, context) {
|
|
1292
1286
|
return {
|
|
1293
|
-
communications: output.communications
|
|
1287
|
+
communications: output.communications != null
|
|
1294
1288
|
? deserializeAws_json1_1CommunicationList(output.communications, context)
|
|
1295
1289
|
: undefined,
|
|
1296
1290
|
nextToken: __expectString(output.nextToken),
|
|
@@ -1298,42 +1292,36 @@ var deserializeAws_json1_1DescribeCommunicationsResponse = function (output, con
|
|
|
1298
1292
|
};
|
|
1299
1293
|
var deserializeAws_json1_1DescribeServicesResponse = function (output, context) {
|
|
1300
1294
|
return {
|
|
1301
|
-
services: output.services
|
|
1302
|
-
? deserializeAws_json1_1ServiceList(output.services, context)
|
|
1303
|
-
: undefined,
|
|
1295
|
+
services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
|
|
1304
1296
|
};
|
|
1305
1297
|
};
|
|
1306
1298
|
var deserializeAws_json1_1DescribeSeverityLevelsResponse = function (output, context) {
|
|
1307
1299
|
return {
|
|
1308
|
-
severityLevels: output.severityLevels
|
|
1300
|
+
severityLevels: output.severityLevels != null
|
|
1309
1301
|
? deserializeAws_json1_1SeverityLevelsList(output.severityLevels, context)
|
|
1310
1302
|
: undefined,
|
|
1311
1303
|
};
|
|
1312
1304
|
};
|
|
1313
1305
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesResponse = function (output, context) {
|
|
1314
1306
|
return {
|
|
1315
|
-
statuses: output.statuses
|
|
1307
|
+
statuses: output.statuses != null
|
|
1316
1308
|
? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList(output.statuses, context)
|
|
1317
1309
|
: undefined,
|
|
1318
1310
|
};
|
|
1319
1311
|
};
|
|
1320
1312
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckResultResponse = function (output, context) {
|
|
1321
1313
|
return {
|
|
1322
|
-
result: output.result
|
|
1323
|
-
? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context)
|
|
1324
|
-
: undefined,
|
|
1314
|
+
result: output.result != null ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context) : undefined,
|
|
1325
1315
|
};
|
|
1326
1316
|
};
|
|
1327
1317
|
var deserializeAws_json1_1DescribeTrustedAdvisorChecksResponse = function (output, context) {
|
|
1328
1318
|
return {
|
|
1329
|
-
checks: output.checks
|
|
1330
|
-
? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context)
|
|
1331
|
-
: undefined,
|
|
1319
|
+
checks: output.checks != null ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context) : undefined,
|
|
1332
1320
|
};
|
|
1333
1321
|
};
|
|
1334
1322
|
var deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesResponse = function (output, context) {
|
|
1335
1323
|
return {
|
|
1336
|
-
summaries: output.summaries
|
|
1324
|
+
summaries: output.summaries != null
|
|
1337
1325
|
? deserializeAws_json1_1TrustedAdvisorCheckSummaryList(output.summaries, context)
|
|
1338
1326
|
: undefined,
|
|
1339
1327
|
};
|
|
@@ -1345,7 +1333,7 @@ var deserializeAws_json1_1InternalServerError = function (output, context) {
|
|
|
1345
1333
|
};
|
|
1346
1334
|
var deserializeAws_json1_1RecentCaseCommunications = function (output, context) {
|
|
1347
1335
|
return {
|
|
1348
|
-
communications: output.communications
|
|
1336
|
+
communications: output.communications != null
|
|
1349
1337
|
? deserializeAws_json1_1CommunicationList(output.communications, context)
|
|
1350
1338
|
: undefined,
|
|
1351
1339
|
nextToken: __expectString(output.nextToken),
|
|
@@ -1353,7 +1341,7 @@ var deserializeAws_json1_1RecentCaseCommunications = function (output, context)
|
|
|
1353
1341
|
};
|
|
1354
1342
|
var deserializeAws_json1_1RefreshTrustedAdvisorCheckResponse = function (output, context) {
|
|
1355
1343
|
return {
|
|
1356
|
-
status: output.status
|
|
1344
|
+
status: output.status != null
|
|
1357
1345
|
? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(output.status, context)
|
|
1358
1346
|
: undefined,
|
|
1359
1347
|
};
|
|
@@ -1366,9 +1354,7 @@ var deserializeAws_json1_1ResolveCaseResponse = function (output, context) {
|
|
|
1366
1354
|
};
|
|
1367
1355
|
var deserializeAws_json1_1Service = function (output, context) {
|
|
1368
1356
|
return {
|
|
1369
|
-
categories: output.categories
|
|
1370
|
-
? deserializeAws_json1_1CategoryList(output.categories, context)
|
|
1371
|
-
: undefined,
|
|
1357
|
+
categories: output.categories != null ? deserializeAws_json1_1CategoryList(output.categories, context) : undefined,
|
|
1372
1358
|
code: __expectString(output.code),
|
|
1373
1359
|
name: __expectString(output.name),
|
|
1374
1360
|
};
|
|
@@ -1414,7 +1400,7 @@ var deserializeAws_json1_1StringList = function (output, context) {
|
|
|
1414
1400
|
};
|
|
1415
1401
|
var deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary = function (output, context) {
|
|
1416
1402
|
return {
|
|
1417
|
-
costOptimizing: output.costOptimizing
|
|
1403
|
+
costOptimizing: output.costOptimizing != null
|
|
1418
1404
|
? deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
|
|
1419
1405
|
: undefined,
|
|
1420
1406
|
};
|
|
@@ -1424,9 +1410,7 @@ var deserializeAws_json1_1TrustedAdvisorCheckDescription = function (output, con
|
|
|
1424
1410
|
category: __expectString(output.category),
|
|
1425
1411
|
description: __expectString(output.description),
|
|
1426
1412
|
id: __expectString(output.id),
|
|
1427
|
-
metadata: output.metadata
|
|
1428
|
-
? deserializeAws_json1_1StringList(output.metadata, context)
|
|
1429
|
-
: undefined,
|
|
1413
|
+
metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
|
|
1430
1414
|
name: __expectString(output.name),
|
|
1431
1415
|
};
|
|
1432
1416
|
};
|
|
@@ -1461,14 +1445,14 @@ var deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = function (outpu
|
|
|
1461
1445
|
};
|
|
1462
1446
|
var deserializeAws_json1_1TrustedAdvisorCheckResult = function (output, context) {
|
|
1463
1447
|
return {
|
|
1464
|
-
categorySpecificSummary: output.categorySpecificSummary
|
|
1448
|
+
categorySpecificSummary: output.categorySpecificSummary != null
|
|
1465
1449
|
? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
|
|
1466
1450
|
: undefined,
|
|
1467
1451
|
checkId: __expectString(output.checkId),
|
|
1468
|
-
flaggedResources: output.flaggedResources
|
|
1452
|
+
flaggedResources: output.flaggedResources != null
|
|
1469
1453
|
? deserializeAws_json1_1TrustedAdvisorResourceDetailList(output.flaggedResources, context)
|
|
1470
1454
|
: undefined,
|
|
1471
|
-
resourcesSummary: output.resourcesSummary
|
|
1455
|
+
resourcesSummary: output.resourcesSummary != null
|
|
1472
1456
|
? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
|
|
1473
1457
|
: undefined,
|
|
1474
1458
|
status: __expectString(output.status),
|
|
@@ -1477,12 +1461,12 @@ var deserializeAws_json1_1TrustedAdvisorCheckResult = function (output, context)
|
|
|
1477
1461
|
};
|
|
1478
1462
|
var deserializeAws_json1_1TrustedAdvisorCheckSummary = function (output, context) {
|
|
1479
1463
|
return {
|
|
1480
|
-
categorySpecificSummary: output.categorySpecificSummary
|
|
1464
|
+
categorySpecificSummary: output.categorySpecificSummary != null
|
|
1481
1465
|
? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
|
|
1482
1466
|
: undefined,
|
|
1483
1467
|
checkId: __expectString(output.checkId),
|
|
1484
1468
|
hasFlaggedResources: __expectBoolean(output.hasFlaggedResources),
|
|
1485
|
-
resourcesSummary: output.resourcesSummary
|
|
1469
|
+
resourcesSummary: output.resourcesSummary != null
|
|
1486
1470
|
? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
|
|
1487
1471
|
: undefined,
|
|
1488
1472
|
status: __expectString(output.status),
|
|
@@ -1509,9 +1493,7 @@ var deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = function (output
|
|
|
1509
1493
|
var deserializeAws_json1_1TrustedAdvisorResourceDetail = function (output, context) {
|
|
1510
1494
|
return {
|
|
1511
1495
|
isSuppressed: __expectBoolean(output.isSuppressed),
|
|
1512
|
-
metadata: output.metadata
|
|
1513
|
-
? deserializeAws_json1_1StringList(output.metadata, context)
|
|
1514
|
-
: undefined,
|
|
1496
|
+
metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
|
|
1515
1497
|
region: __expectString(output.region),
|
|
1516
1498
|
resourceId: __expectString(output.resourceId),
|
|
1517
1499
|
status: __expectString(output.status),
|
|
@@ -1610,5 +1592,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1610
1592
|
if (data["__type"] !== undefined) {
|
|
1611
1593
|
return sanitizeErrorCode(data["__type"]);
|
|
1612
1594
|
}
|
|
1613
|
-
return "";
|
|
1614
1595
|
};
|