@aws-sdk/client-outposts 3.503.1 → 3.507.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/dist-cjs/index.js +56 -762
- package/dist-es/protocols/Aws_restJson1.js +46 -752
- package/package.json +3 -3
|
@@ -363,7 +363,7 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context)
|
|
|
363
363
|
};
|
|
364
364
|
export const de_CancelOrderCommand = async (output, context) => {
|
|
365
365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
366
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
367
367
|
}
|
|
368
368
|
const contents = map({
|
|
369
369
|
$metadata: deserializeMetadata(output),
|
|
@@ -371,40 +371,9 @@ export const de_CancelOrderCommand = async (output, context) => {
|
|
|
371
371
|
await collectBody(output.body, context);
|
|
372
372
|
return contents;
|
|
373
373
|
};
|
|
374
|
-
const de_CancelOrderCommandError = async (output, context) => {
|
|
375
|
-
const parsedOutput = {
|
|
376
|
-
...output,
|
|
377
|
-
body: await parseErrorBody(output.body, context),
|
|
378
|
-
};
|
|
379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
|
-
switch (errorCode) {
|
|
381
|
-
case "AccessDeniedException":
|
|
382
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
384
|
-
case "ConflictException":
|
|
385
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
386
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
387
|
-
case "InternalServerException":
|
|
388
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
390
|
-
case "NotFoundException":
|
|
391
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
392
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
393
|
-
case "ValidationException":
|
|
394
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
396
|
-
default:
|
|
397
|
-
const parsedBody = parsedOutput.body;
|
|
398
|
-
return throwDefaultError({
|
|
399
|
-
output,
|
|
400
|
-
parsedBody,
|
|
401
|
-
errorCode,
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
374
|
export const de_CreateOrderCommand = async (output, context) => {
|
|
406
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
408
377
|
}
|
|
409
378
|
const contents = map({
|
|
410
379
|
$metadata: deserializeMetadata(output),
|
|
@@ -416,43 +385,9 @@ export const de_CreateOrderCommand = async (output, context) => {
|
|
|
416
385
|
Object.assign(contents, doc);
|
|
417
386
|
return contents;
|
|
418
387
|
};
|
|
419
|
-
const de_CreateOrderCommandError = async (output, context) => {
|
|
420
|
-
const parsedOutput = {
|
|
421
|
-
...output,
|
|
422
|
-
body: await parseErrorBody(output.body, context),
|
|
423
|
-
};
|
|
424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
-
switch (errorCode) {
|
|
426
|
-
case "AccessDeniedException":
|
|
427
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
428
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
429
|
-
case "ConflictException":
|
|
430
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
432
|
-
case "InternalServerException":
|
|
433
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
435
|
-
case "NotFoundException":
|
|
436
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
437
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ServiceQuotaExceededException":
|
|
439
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
440
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ValidationException":
|
|
442
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
388
|
export const de_CreateOutpostCommand = async (output, context) => {
|
|
454
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
455
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
456
391
|
}
|
|
457
392
|
const contents = map({
|
|
458
393
|
$metadata: deserializeMetadata(output),
|
|
@@ -464,43 +399,9 @@ export const de_CreateOutpostCommand = async (output, context) => {
|
|
|
464
399
|
Object.assign(contents, doc);
|
|
465
400
|
return contents;
|
|
466
401
|
};
|
|
467
|
-
const de_CreateOutpostCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "AccessDeniedException":
|
|
475
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ConflictException":
|
|
478
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
479
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
480
|
-
case "InternalServerException":
|
|
481
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
482
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
483
|
-
case "NotFoundException":
|
|
484
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
485
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ServiceQuotaExceededException":
|
|
487
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
488
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ValidationException":
|
|
490
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
402
|
export const de_CreateSiteCommand = async (output, context) => {
|
|
502
403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
504
405
|
}
|
|
505
406
|
const contents = map({
|
|
506
407
|
$metadata: deserializeMetadata(output),
|
|
@@ -512,40 +413,9 @@ export const de_CreateSiteCommand = async (output, context) => {
|
|
|
512
413
|
Object.assign(contents, doc);
|
|
513
414
|
return contents;
|
|
514
415
|
};
|
|
515
|
-
const de_CreateSiteCommandError = async (output, context) => {
|
|
516
|
-
const parsedOutput = {
|
|
517
|
-
...output,
|
|
518
|
-
body: await parseErrorBody(output.body, context),
|
|
519
|
-
};
|
|
520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "AccessDeniedException":
|
|
523
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
524
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ConflictException":
|
|
526
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
527
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
528
|
-
case "InternalServerException":
|
|
529
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
530
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ServiceQuotaExceededException":
|
|
532
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
533
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ValidationException":
|
|
535
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
|
-
default:
|
|
538
|
-
const parsedBody = parsedOutput.body;
|
|
539
|
-
return throwDefaultError({
|
|
540
|
-
output,
|
|
541
|
-
parsedBody,
|
|
542
|
-
errorCode,
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
416
|
export const de_DeleteOutpostCommand = async (output, context) => {
|
|
547
417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
549
419
|
}
|
|
550
420
|
const contents = map({
|
|
551
421
|
$metadata: deserializeMetadata(output),
|
|
@@ -553,40 +423,9 @@ export const de_DeleteOutpostCommand = async (output, context) => {
|
|
|
553
423
|
await collectBody(output.body, context);
|
|
554
424
|
return contents;
|
|
555
425
|
};
|
|
556
|
-
const de_DeleteOutpostCommandError = async (output, context) => {
|
|
557
|
-
const parsedOutput = {
|
|
558
|
-
...output,
|
|
559
|
-
body: await parseErrorBody(output.body, context),
|
|
560
|
-
};
|
|
561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
-
switch (errorCode) {
|
|
563
|
-
case "AccessDeniedException":
|
|
564
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
565
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ConflictException":
|
|
567
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
568
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InternalServerException":
|
|
570
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
572
|
-
case "NotFoundException":
|
|
573
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
574
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ValidationException":
|
|
576
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
|
-
default:
|
|
579
|
-
const parsedBody = parsedOutput.body;
|
|
580
|
-
return throwDefaultError({
|
|
581
|
-
output,
|
|
582
|
-
parsedBody,
|
|
583
|
-
errorCode,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
426
|
export const de_DeleteSiteCommand = async (output, context) => {
|
|
588
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
589
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
590
429
|
}
|
|
591
430
|
const contents = map({
|
|
592
431
|
$metadata: deserializeMetadata(output),
|
|
@@ -594,40 +433,9 @@ export const de_DeleteSiteCommand = async (output, context) => {
|
|
|
594
433
|
await collectBody(output.body, context);
|
|
595
434
|
return contents;
|
|
596
435
|
};
|
|
597
|
-
const de_DeleteSiteCommandError = async (output, context) => {
|
|
598
|
-
const parsedOutput = {
|
|
599
|
-
...output,
|
|
600
|
-
body: await parseErrorBody(output.body, context),
|
|
601
|
-
};
|
|
602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
-
switch (errorCode) {
|
|
604
|
-
case "AccessDeniedException":
|
|
605
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ConflictException":
|
|
608
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
609
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
610
|
-
case "InternalServerException":
|
|
611
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
613
|
-
case "NotFoundException":
|
|
614
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
615
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ValidationException":
|
|
617
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
436
|
export const de_GetCatalogItemCommand = async (output, context) => {
|
|
629
437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
631
439
|
}
|
|
632
440
|
const contents = map({
|
|
633
441
|
$metadata: deserializeMetadata(output),
|
|
@@ -639,34 +447,9 @@ export const de_GetCatalogItemCommand = async (output, context) => {
|
|
|
639
447
|
Object.assign(contents, doc);
|
|
640
448
|
return contents;
|
|
641
449
|
};
|
|
642
|
-
const de_GetCatalogItemCommandError = async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context),
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "InternalServerException":
|
|
650
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
651
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
|
-
case "NotFoundException":
|
|
653
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
654
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ValidationException":
|
|
656
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
657
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
|
-
default:
|
|
659
|
-
const parsedBody = parsedOutput.body;
|
|
660
|
-
return throwDefaultError({
|
|
661
|
-
output,
|
|
662
|
-
parsedBody,
|
|
663
|
-
errorCode,
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
450
|
export const de_GetConnectionCommand = async (output, context) => {
|
|
668
451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return
|
|
452
|
+
return de_CommandError(output, context);
|
|
670
453
|
}
|
|
671
454
|
const contents = map({
|
|
672
455
|
$metadata: deserializeMetadata(output),
|
|
@@ -679,37 +462,9 @@ export const de_GetConnectionCommand = async (output, context) => {
|
|
|
679
462
|
Object.assign(contents, doc);
|
|
680
463
|
return contents;
|
|
681
464
|
};
|
|
682
|
-
const de_GetConnectionCommandError = async (output, context) => {
|
|
683
|
-
const parsedOutput = {
|
|
684
|
-
...output,
|
|
685
|
-
body: await parseErrorBody(output.body, context),
|
|
686
|
-
};
|
|
687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
-
switch (errorCode) {
|
|
689
|
-
case "AccessDeniedException":
|
|
690
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InternalServerException":
|
|
693
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
694
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
|
-
case "NotFoundException":
|
|
696
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
697
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ValidationException":
|
|
699
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
700
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
701
|
-
default:
|
|
702
|
-
const parsedBody = parsedOutput.body;
|
|
703
|
-
return throwDefaultError({
|
|
704
|
-
output,
|
|
705
|
-
parsedBody,
|
|
706
|
-
errorCode,
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
465
|
export const de_GetOrderCommand = async (output, context) => {
|
|
711
466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return
|
|
467
|
+
return de_CommandError(output, context);
|
|
713
468
|
}
|
|
714
469
|
const contents = map({
|
|
715
470
|
$metadata: deserializeMetadata(output),
|
|
@@ -721,34 +476,9 @@ export const de_GetOrderCommand = async (output, context) => {
|
|
|
721
476
|
Object.assign(contents, doc);
|
|
722
477
|
return contents;
|
|
723
478
|
};
|
|
724
|
-
const de_GetOrderCommandError = async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context),
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "InternalServerException":
|
|
732
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
733
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
734
|
-
case "NotFoundException":
|
|
735
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
737
|
-
case "ValidationException":
|
|
738
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
739
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
479
|
export const de_GetOutpostCommand = async (output, context) => {
|
|
750
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
752
482
|
}
|
|
753
483
|
const contents = map({
|
|
754
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -760,37 +490,9 @@ export const de_GetOutpostCommand = async (output, context) => {
|
|
|
760
490
|
Object.assign(contents, doc);
|
|
761
491
|
return contents;
|
|
762
492
|
};
|
|
763
|
-
const de_GetOutpostCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "AccessDeniedException":
|
|
771
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
773
|
-
case "InternalServerException":
|
|
774
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
776
|
-
case "NotFoundException":
|
|
777
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
778
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
493
|
export const de_GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
792
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
794
496
|
}
|
|
795
497
|
const contents = map({
|
|
796
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -805,37 +507,9 @@ export const de_GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
|
805
507
|
Object.assign(contents, doc);
|
|
806
508
|
return contents;
|
|
807
509
|
};
|
|
808
|
-
const de_GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
809
|
-
const parsedOutput = {
|
|
810
|
-
...output,
|
|
811
|
-
body: await parseErrorBody(output.body, context),
|
|
812
|
-
};
|
|
813
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
-
switch (errorCode) {
|
|
815
|
-
case "AccessDeniedException":
|
|
816
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
817
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InternalServerException":
|
|
819
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
820
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
821
|
-
case "NotFoundException":
|
|
822
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
823
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ValidationException":
|
|
825
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
510
|
export const de_GetSiteCommand = async (output, context) => {
|
|
837
511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
512
|
+
return de_CommandError(output, context);
|
|
839
513
|
}
|
|
840
514
|
const contents = map({
|
|
841
515
|
$metadata: deserializeMetadata(output),
|
|
@@ -847,37 +521,9 @@ export const de_GetSiteCommand = async (output, context) => {
|
|
|
847
521
|
Object.assign(contents, doc);
|
|
848
522
|
return contents;
|
|
849
523
|
};
|
|
850
|
-
const de_GetSiteCommandError = async (output, context) => {
|
|
851
|
-
const parsedOutput = {
|
|
852
|
-
...output,
|
|
853
|
-
body: await parseErrorBody(output.body, context),
|
|
854
|
-
};
|
|
855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
|
-
switch (errorCode) {
|
|
857
|
-
case "AccessDeniedException":
|
|
858
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
860
|
-
case "InternalServerException":
|
|
861
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
863
|
-
case "NotFoundException":
|
|
864
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
865
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ValidationException":
|
|
867
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
524
|
export const de_GetSiteAddressCommand = async (output, context) => {
|
|
879
525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
880
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
881
527
|
}
|
|
882
528
|
const contents = map({
|
|
883
529
|
$metadata: deserializeMetadata(output),
|
|
@@ -891,37 +537,9 @@ export const de_GetSiteAddressCommand = async (output, context) => {
|
|
|
891
537
|
Object.assign(contents, doc);
|
|
892
538
|
return contents;
|
|
893
539
|
};
|
|
894
|
-
const de_GetSiteAddressCommandError = async (output, context) => {
|
|
895
|
-
const parsedOutput = {
|
|
896
|
-
...output,
|
|
897
|
-
body: await parseErrorBody(output.body, context),
|
|
898
|
-
};
|
|
899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
|
-
switch (errorCode) {
|
|
901
|
-
case "AccessDeniedException":
|
|
902
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
903
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InternalServerException":
|
|
905
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
906
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
-
case "NotFoundException":
|
|
908
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
909
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ValidationException":
|
|
911
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
912
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
913
|
-
default:
|
|
914
|
-
const parsedBody = parsedOutput.body;
|
|
915
|
-
return throwDefaultError({
|
|
916
|
-
output,
|
|
917
|
-
parsedBody,
|
|
918
|
-
errorCode,
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
540
|
export const de_ListAssetsCommand = async (output, context) => {
|
|
923
541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
|
-
return
|
|
542
|
+
return de_CommandError(output, context);
|
|
925
543
|
}
|
|
926
544
|
const contents = map({
|
|
927
545
|
$metadata: deserializeMetadata(output),
|
|
@@ -934,37 +552,9 @@ export const de_ListAssetsCommand = async (output, context) => {
|
|
|
934
552
|
Object.assign(contents, doc);
|
|
935
553
|
return contents;
|
|
936
554
|
};
|
|
937
|
-
const de_ListAssetsCommandError = async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context),
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "AccessDeniedException":
|
|
945
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
|
-
case "InternalServerException":
|
|
948
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
|
-
case "NotFoundException":
|
|
951
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
952
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ValidationException":
|
|
954
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
955
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
|
-
default:
|
|
957
|
-
const parsedBody = parsedOutput.body;
|
|
958
|
-
return throwDefaultError({
|
|
959
|
-
output,
|
|
960
|
-
parsedBody,
|
|
961
|
-
errorCode,
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
555
|
export const de_ListCatalogItemsCommand = async (output, context) => {
|
|
966
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
968
558
|
}
|
|
969
559
|
const contents = map({
|
|
970
560
|
$metadata: deserializeMetadata(output),
|
|
@@ -973,81 +563,28 @@ export const de_ListCatalogItemsCommand = async (output, context) => {
|
|
|
973
563
|
const doc = take(data, {
|
|
974
564
|
CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
|
|
975
565
|
NextToken: __expectString,
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
return contents;
|
|
979
|
-
};
|
|
980
|
-
const
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
body: await parseErrorBody(output.body, context),
|
|
984
|
-
};
|
|
985
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
-
switch (errorCode) {
|
|
987
|
-
case "InternalServerException":
|
|
988
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
989
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
990
|
-
case "NotFoundException":
|
|
991
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
992
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ValidationException":
|
|
994
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
996
|
-
default:
|
|
997
|
-
const parsedBody = parsedOutput.body;
|
|
998
|
-
return throwDefaultError({
|
|
999
|
-
output,
|
|
1000
|
-
parsedBody,
|
|
1001
|
-
errorCode,
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
export const de_ListOrdersCommand = async (output, context) => {
|
|
1006
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
-
return de_ListOrdersCommandError(output, context);
|
|
1008
|
-
}
|
|
1009
|
-
const contents = map({
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
});
|
|
1012
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1013
|
-
const doc = take(data, {
|
|
1014
|
-
NextToken: __expectString,
|
|
1015
|
-
Orders: (_) => de_OrderSummaryListDefinition(_, context),
|
|
1016
|
-
});
|
|
1017
|
-
Object.assign(contents, doc);
|
|
1018
|
-
return contents;
|
|
1019
|
-
};
|
|
1020
|
-
const de_ListOrdersCommandError = async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context),
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
-
switch (errorCode) {
|
|
1027
|
-
case "AccessDeniedException":
|
|
1028
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1029
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "InternalServerException":
|
|
1031
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "NotFoundException":
|
|
1034
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1035
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ValidationException":
|
|
1037
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1038
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1039
|
-
default:
|
|
1040
|
-
const parsedBody = parsedOutput.body;
|
|
1041
|
-
return throwDefaultError({
|
|
1042
|
-
output,
|
|
1043
|
-
parsedBody,
|
|
1044
|
-
errorCode,
|
|
1045
|
-
});
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
568
|
+
return contents;
|
|
569
|
+
};
|
|
570
|
+
export const de_ListOrdersCommand = async (output, context) => {
|
|
571
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
572
|
+
return de_CommandError(output, context);
|
|
1046
573
|
}
|
|
574
|
+
const contents = map({
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
});
|
|
577
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
578
|
+
const doc = take(data, {
|
|
579
|
+
NextToken: __expectString,
|
|
580
|
+
Orders: (_) => de_OrderSummaryListDefinition(_, context),
|
|
581
|
+
});
|
|
582
|
+
Object.assign(contents, doc);
|
|
583
|
+
return contents;
|
|
1047
584
|
};
|
|
1048
585
|
export const de_ListOutpostsCommand = async (output, context) => {
|
|
1049
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1050
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1051
588
|
}
|
|
1052
589
|
const contents = map({
|
|
1053
590
|
$metadata: deserializeMetadata(output),
|
|
@@ -1060,34 +597,9 @@ export const de_ListOutpostsCommand = async (output, context) => {
|
|
|
1060
597
|
Object.assign(contents, doc);
|
|
1061
598
|
return contents;
|
|
1062
599
|
};
|
|
1063
|
-
const de_ListOutpostsCommandError = async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await parseErrorBody(output.body, context),
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "AccessDeniedException":
|
|
1071
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1072
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "InternalServerException":
|
|
1074
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1075
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ValidationException":
|
|
1077
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
-
default:
|
|
1080
|
-
const parsedBody = parsedOutput.body;
|
|
1081
|
-
return throwDefaultError({
|
|
1082
|
-
output,
|
|
1083
|
-
parsedBody,
|
|
1084
|
-
errorCode,
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
600
|
export const de_ListSitesCommand = async (output, context) => {
|
|
1089
601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
602
|
+
return de_CommandError(output, context);
|
|
1091
603
|
}
|
|
1092
604
|
const contents = map({
|
|
1093
605
|
$metadata: deserializeMetadata(output),
|
|
@@ -1100,34 +612,9 @@ export const de_ListSitesCommand = async (output, context) => {
|
|
|
1100
612
|
Object.assign(contents, doc);
|
|
1101
613
|
return contents;
|
|
1102
614
|
};
|
|
1103
|
-
const de_ListSitesCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "AccessDeniedException":
|
|
1111
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1112
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InternalServerException":
|
|
1114
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1115
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ValidationException":
|
|
1117
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1118
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody,
|
|
1124
|
-
errorCode,
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
615
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1129
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1131
618
|
}
|
|
1132
619
|
const contents = map({
|
|
1133
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -1139,34 +626,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1139
626
|
Object.assign(contents, doc);
|
|
1140
627
|
return contents;
|
|
1141
628
|
};
|
|
1142
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context),
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "InternalServerException":
|
|
1150
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1151
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "NotFoundException":
|
|
1153
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1154
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ValidationException":
|
|
1156
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1157
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
return throwDefaultError({
|
|
1161
|
-
output,
|
|
1162
|
-
parsedBody,
|
|
1163
|
-
errorCode,
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
};
|
|
1167
629
|
export const de_StartConnectionCommand = async (output, context) => {
|
|
1168
630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
631
|
+
return de_CommandError(output, context);
|
|
1170
632
|
}
|
|
1171
633
|
const contents = map({
|
|
1172
634
|
$metadata: deserializeMetadata(output),
|
|
@@ -1179,37 +641,9 @@ export const de_StartConnectionCommand = async (output, context) => {
|
|
|
1179
641
|
Object.assign(contents, doc);
|
|
1180
642
|
return contents;
|
|
1181
643
|
};
|
|
1182
|
-
const de_StartConnectionCommandError = async (output, context) => {
|
|
1183
|
-
const parsedOutput = {
|
|
1184
|
-
...output,
|
|
1185
|
-
body: await parseErrorBody(output.body, context),
|
|
1186
|
-
};
|
|
1187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
|
-
switch (errorCode) {
|
|
1189
|
-
case "AccessDeniedException":
|
|
1190
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "InternalServerException":
|
|
1193
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "NotFoundException":
|
|
1196
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1197
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ValidationException":
|
|
1199
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1200
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1201
|
-
default:
|
|
1202
|
-
const parsedBody = parsedOutput.body;
|
|
1203
|
-
return throwDefaultError({
|
|
1204
|
-
output,
|
|
1205
|
-
parsedBody,
|
|
1206
|
-
errorCode,
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
644
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1211
645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
646
|
+
return de_CommandError(output, context);
|
|
1213
647
|
}
|
|
1214
648
|
const contents = map({
|
|
1215
649
|
$metadata: deserializeMetadata(output),
|
|
@@ -1217,34 +651,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1217
651
|
await collectBody(output.body, context);
|
|
1218
652
|
return contents;
|
|
1219
653
|
};
|
|
1220
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1221
|
-
const parsedOutput = {
|
|
1222
|
-
...output,
|
|
1223
|
-
body: await parseErrorBody(output.body, context),
|
|
1224
|
-
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
-
switch (errorCode) {
|
|
1227
|
-
case "InternalServerException":
|
|
1228
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1229
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "NotFoundException":
|
|
1231
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1232
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ValidationException":
|
|
1234
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1235
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
654
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1246
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
-
return
|
|
656
|
+
return de_CommandError(output, context);
|
|
1248
657
|
}
|
|
1249
658
|
const contents = map({
|
|
1250
659
|
$metadata: deserializeMetadata(output),
|
|
@@ -1252,34 +661,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1252
661
|
await collectBody(output.body, context);
|
|
1253
662
|
return contents;
|
|
1254
663
|
};
|
|
1255
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InternalServerException":
|
|
1263
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "NotFoundException":
|
|
1266
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1267
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ValidationException":
|
|
1269
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode,
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
664
|
export const de_UpdateOutpostCommand = async (output, context) => {
|
|
1281
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
666
|
+
return de_CommandError(output, context);
|
|
1283
667
|
}
|
|
1284
668
|
const contents = map({
|
|
1285
669
|
$metadata: deserializeMetadata(output),
|
|
@@ -1291,40 +675,9 @@ export const de_UpdateOutpostCommand = async (output, context) => {
|
|
|
1291
675
|
Object.assign(contents, doc);
|
|
1292
676
|
return contents;
|
|
1293
677
|
};
|
|
1294
|
-
const de_UpdateOutpostCommandError = async (output, context) => {
|
|
1295
|
-
const parsedOutput = {
|
|
1296
|
-
...output,
|
|
1297
|
-
body: await parseErrorBody(output.body, context),
|
|
1298
|
-
};
|
|
1299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
-
switch (errorCode) {
|
|
1301
|
-
case "AccessDeniedException":
|
|
1302
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1303
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "ConflictException":
|
|
1305
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "InternalServerException":
|
|
1308
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "NotFoundException":
|
|
1311
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1312
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ValidationException":
|
|
1314
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1315
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
678
|
export const de_UpdateSiteCommand = async (output, context) => {
|
|
1326
679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
680
|
+
return de_CommandError(output, context);
|
|
1328
681
|
}
|
|
1329
682
|
const contents = map({
|
|
1330
683
|
$metadata: deserializeMetadata(output),
|
|
@@ -1336,40 +689,9 @@ export const de_UpdateSiteCommand = async (output, context) => {
|
|
|
1336
689
|
Object.assign(contents, doc);
|
|
1337
690
|
return contents;
|
|
1338
691
|
};
|
|
1339
|
-
const de_UpdateSiteCommandError = async (output, context) => {
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context),
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "AccessDeniedException":
|
|
1347
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1348
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ConflictException":
|
|
1350
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1351
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "InternalServerException":
|
|
1353
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "NotFoundException":
|
|
1356
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1357
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ValidationException":
|
|
1359
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1360
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1361
|
-
default:
|
|
1362
|
-
const parsedBody = parsedOutput.body;
|
|
1363
|
-
return throwDefaultError({
|
|
1364
|
-
output,
|
|
1365
|
-
parsedBody,
|
|
1366
|
-
errorCode,
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
692
|
export const de_UpdateSiteAddressCommand = async (output, context) => {
|
|
1371
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1372
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
1373
695
|
}
|
|
1374
696
|
const contents = map({
|
|
1375
697
|
$metadata: deserializeMetadata(output),
|
|
@@ -1382,40 +704,9 @@ export const de_UpdateSiteAddressCommand = async (output, context) => {
|
|
|
1382
704
|
Object.assign(contents, doc);
|
|
1383
705
|
return contents;
|
|
1384
706
|
};
|
|
1385
|
-
const de_UpdateSiteAddressCommandError = async (output, context) => {
|
|
1386
|
-
const parsedOutput = {
|
|
1387
|
-
...output,
|
|
1388
|
-
body: await parseErrorBody(output.body, context),
|
|
1389
|
-
};
|
|
1390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
-
switch (errorCode) {
|
|
1392
|
-
case "AccessDeniedException":
|
|
1393
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1394
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ConflictException":
|
|
1396
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1397
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "InternalServerException":
|
|
1399
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1400
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "NotFoundException":
|
|
1402
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1403
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ValidationException":
|
|
1405
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
|
-
default:
|
|
1408
|
-
const parsedBody = parsedOutput.body;
|
|
1409
|
-
return throwDefaultError({
|
|
1410
|
-
output,
|
|
1411
|
-
parsedBody,
|
|
1412
|
-
errorCode,
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
707
|
export const de_UpdateSiteRackPhysicalPropertiesCommand = async (output, context) => {
|
|
1417
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1418
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
1419
710
|
}
|
|
1420
711
|
const contents = map({
|
|
1421
712
|
$metadata: deserializeMetadata(output),
|
|
@@ -1427,7 +718,7 @@ export const de_UpdateSiteRackPhysicalPropertiesCommand = async (output, context
|
|
|
1427
718
|
Object.assign(contents, doc);
|
|
1428
719
|
return contents;
|
|
1429
720
|
};
|
|
1430
|
-
const
|
|
721
|
+
const de_CommandError = async (output, context) => {
|
|
1431
722
|
const parsedOutput = {
|
|
1432
723
|
...output,
|
|
1433
724
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1449,6 +740,9 @@ const de_UpdateSiteRackPhysicalPropertiesCommandError = async (output, context)
|
|
|
1449
740
|
case "ValidationException":
|
|
1450
741
|
case "com.amazonaws.outposts#ValidationException":
|
|
1451
742
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
|
+
case "ServiceQuotaExceededException":
|
|
744
|
+
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
745
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1452
746
|
default:
|
|
1453
747
|
const parsedBody = parsedOutput.body;
|
|
1454
748
|
return throwDefaultError({
|