@aws-sdk/client-apprunner 3.118.1 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +150 -121
- package/dist-es/protocols/Aws_json1_0.js +150 -121
- package/package.json +3 -3
|
@@ -326,8 +326,7 @@ const deserializeAws_json1_0AssociateCustomDomainCommandError = async (output, c
|
|
|
326
326
|
body: await parseBody(output.body, context),
|
|
327
327
|
};
|
|
328
328
|
let response;
|
|
329
|
-
|
|
330
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
330
|
switch (errorCode) {
|
|
332
331
|
case "InternalServiceErrorException":
|
|
333
332
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -340,10 +339,12 @@ const deserializeAws_json1_0AssociateCustomDomainCommandError = async (output, c
|
|
|
340
339
|
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
341
340
|
default:
|
|
342
341
|
const parsedBody = parsedOutput.body;
|
|
342
|
+
const $metadata = deserializeMetadata(output);
|
|
343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
343
344
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
344
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
345
346
|
$fault: "client",
|
|
346
|
-
$metadata
|
|
347
|
+
$metadata,
|
|
347
348
|
});
|
|
348
349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
349
350
|
}
|
|
@@ -368,8 +369,7 @@ const deserializeAws_json1_0CreateAutoScalingConfigurationCommandError = async (
|
|
|
368
369
|
body: await parseBody(output.body, context),
|
|
369
370
|
};
|
|
370
371
|
let response;
|
|
371
|
-
|
|
372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
373
373
|
switch (errorCode) {
|
|
374
374
|
case "InternalServiceErrorException":
|
|
375
375
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -382,10 +382,12 @@ const deserializeAws_json1_0CreateAutoScalingConfigurationCommandError = async (
|
|
|
382
382
|
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
383
383
|
default:
|
|
384
384
|
const parsedBody = parsedOutput.body;
|
|
385
|
+
const $metadata = deserializeMetadata(output);
|
|
386
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
385
387
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
387
389
|
$fault: "client",
|
|
388
|
-
$metadata
|
|
390
|
+
$metadata,
|
|
389
391
|
});
|
|
390
392
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
391
393
|
}
|
|
@@ -410,8 +412,7 @@ const deserializeAws_json1_0CreateConnectionCommandError = async (output, contex
|
|
|
410
412
|
body: await parseBody(output.body, context),
|
|
411
413
|
};
|
|
412
414
|
let response;
|
|
413
|
-
|
|
414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
415
416
|
switch (errorCode) {
|
|
416
417
|
case "InternalServiceErrorException":
|
|
417
418
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -424,10 +425,12 @@ const deserializeAws_json1_0CreateConnectionCommandError = async (output, contex
|
|
|
424
425
|
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
425
426
|
default:
|
|
426
427
|
const parsedBody = parsedOutput.body;
|
|
428
|
+
const $metadata = deserializeMetadata(output);
|
|
429
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
427
430
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
431
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
429
432
|
$fault: "client",
|
|
430
|
-
$metadata
|
|
433
|
+
$metadata,
|
|
431
434
|
});
|
|
432
435
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
433
436
|
}
|
|
@@ -452,8 +455,7 @@ const deserializeAws_json1_0CreateObservabilityConfigurationCommandError = async
|
|
|
452
455
|
body: await parseBody(output.body, context),
|
|
453
456
|
};
|
|
454
457
|
let response;
|
|
455
|
-
|
|
456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
459
|
switch (errorCode) {
|
|
458
460
|
case "InternalServiceErrorException":
|
|
459
461
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -466,10 +468,12 @@ const deserializeAws_json1_0CreateObservabilityConfigurationCommandError = async
|
|
|
466
468
|
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
467
469
|
default:
|
|
468
470
|
const parsedBody = parsedOutput.body;
|
|
471
|
+
const $metadata = deserializeMetadata(output);
|
|
472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
469
473
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
471
475
|
$fault: "client",
|
|
472
|
-
$metadata
|
|
476
|
+
$metadata,
|
|
473
477
|
});
|
|
474
478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
475
479
|
}
|
|
@@ -494,8 +498,7 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
494
498
|
body: await parseBody(output.body, context),
|
|
495
499
|
};
|
|
496
500
|
let response;
|
|
497
|
-
|
|
498
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
502
|
switch (errorCode) {
|
|
500
503
|
case "InternalServiceErrorException":
|
|
501
504
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -508,10 +511,12 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
508
511
|
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
509
512
|
default:
|
|
510
513
|
const parsedBody = parsedOutput.body;
|
|
514
|
+
const $metadata = deserializeMetadata(output);
|
|
515
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
511
516
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
517
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
513
518
|
$fault: "client",
|
|
514
|
-
$metadata
|
|
519
|
+
$metadata,
|
|
515
520
|
});
|
|
516
521
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
517
522
|
}
|
|
@@ -536,8 +541,7 @@ const deserializeAws_json1_0CreateVpcConnectorCommandError = async (output, cont
|
|
|
536
541
|
body: await parseBody(output.body, context),
|
|
537
542
|
};
|
|
538
543
|
let response;
|
|
539
|
-
|
|
540
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
545
|
switch (errorCode) {
|
|
542
546
|
case "InternalServiceErrorException":
|
|
543
547
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -550,10 +554,12 @@ const deserializeAws_json1_0CreateVpcConnectorCommandError = async (output, cont
|
|
|
550
554
|
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
551
555
|
default:
|
|
552
556
|
const parsedBody = parsedOutput.body;
|
|
557
|
+
const $metadata = deserializeMetadata(output);
|
|
558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
553
559
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
554
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
555
561
|
$fault: "client",
|
|
556
|
-
$metadata
|
|
562
|
+
$metadata,
|
|
557
563
|
});
|
|
558
564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
559
565
|
}
|
|
@@ -578,8 +584,7 @@ const deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError = async (
|
|
|
578
584
|
body: await parseBody(output.body, context),
|
|
579
585
|
};
|
|
580
586
|
let response;
|
|
581
|
-
|
|
582
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
588
|
switch (errorCode) {
|
|
584
589
|
case "InternalServiceErrorException":
|
|
585
590
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -592,10 +597,12 @@ const deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError = async (
|
|
|
592
597
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
593
598
|
default:
|
|
594
599
|
const parsedBody = parsedOutput.body;
|
|
600
|
+
const $metadata = deserializeMetadata(output);
|
|
601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
595
602
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
596
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
597
604
|
$fault: "client",
|
|
598
|
-
$metadata
|
|
605
|
+
$metadata,
|
|
599
606
|
});
|
|
600
607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
601
608
|
}
|
|
@@ -620,8 +627,7 @@ const deserializeAws_json1_0DeleteConnectionCommandError = async (output, contex
|
|
|
620
627
|
body: await parseBody(output.body, context),
|
|
621
628
|
};
|
|
622
629
|
let response;
|
|
623
|
-
|
|
624
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
631
|
switch (errorCode) {
|
|
626
632
|
case "InternalServiceErrorException":
|
|
627
633
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -634,10 +640,12 @@ const deserializeAws_json1_0DeleteConnectionCommandError = async (output, contex
|
|
|
634
640
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
635
641
|
default:
|
|
636
642
|
const parsedBody = parsedOutput.body;
|
|
643
|
+
const $metadata = deserializeMetadata(output);
|
|
644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
637
645
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
639
647
|
$fault: "client",
|
|
640
|
-
$metadata
|
|
648
|
+
$metadata,
|
|
641
649
|
});
|
|
642
650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
643
651
|
}
|
|
@@ -662,8 +670,7 @@ const deserializeAws_json1_0DeleteObservabilityConfigurationCommandError = async
|
|
|
662
670
|
body: await parseBody(output.body, context),
|
|
663
671
|
};
|
|
664
672
|
let response;
|
|
665
|
-
|
|
666
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
674
|
switch (errorCode) {
|
|
668
675
|
case "InternalServiceErrorException":
|
|
669
676
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -676,10 +683,12 @@ const deserializeAws_json1_0DeleteObservabilityConfigurationCommandError = async
|
|
|
676
683
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
677
684
|
default:
|
|
678
685
|
const parsedBody = parsedOutput.body;
|
|
686
|
+
const $metadata = deserializeMetadata(output);
|
|
687
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
679
688
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
681
690
|
$fault: "client",
|
|
682
|
-
$metadata
|
|
691
|
+
$metadata,
|
|
683
692
|
});
|
|
684
693
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
685
694
|
}
|
|
@@ -704,8 +713,7 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
|
|
|
704
713
|
body: await parseBody(output.body, context),
|
|
705
714
|
};
|
|
706
715
|
let response;
|
|
707
|
-
|
|
708
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
717
|
switch (errorCode) {
|
|
710
718
|
case "InternalServiceErrorException":
|
|
711
719
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -721,10 +729,12 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
|
|
|
721
729
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
722
730
|
default:
|
|
723
731
|
const parsedBody = parsedOutput.body;
|
|
732
|
+
const $metadata = deserializeMetadata(output);
|
|
733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
724
734
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
726
736
|
$fault: "client",
|
|
727
|
-
$metadata
|
|
737
|
+
$metadata,
|
|
728
738
|
});
|
|
729
739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
730
740
|
}
|
|
@@ -749,8 +759,7 @@ const deserializeAws_json1_0DeleteVpcConnectorCommandError = async (output, cont
|
|
|
749
759
|
body: await parseBody(output.body, context),
|
|
750
760
|
};
|
|
751
761
|
let response;
|
|
752
|
-
|
|
753
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
763
|
switch (errorCode) {
|
|
755
764
|
case "InternalServiceErrorException":
|
|
756
765
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -763,10 +772,12 @@ const deserializeAws_json1_0DeleteVpcConnectorCommandError = async (output, cont
|
|
|
763
772
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
764
773
|
default:
|
|
765
774
|
const parsedBody = parsedOutput.body;
|
|
775
|
+
const $metadata = deserializeMetadata(output);
|
|
776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
766
777
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
767
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
768
779
|
$fault: "client",
|
|
769
|
-
$metadata
|
|
780
|
+
$metadata,
|
|
770
781
|
});
|
|
771
782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
772
783
|
}
|
|
@@ -791,8 +802,7 @@ const deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError = async
|
|
|
791
802
|
body: await parseBody(output.body, context),
|
|
792
803
|
};
|
|
793
804
|
let response;
|
|
794
|
-
|
|
795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
806
|
switch (errorCode) {
|
|
797
807
|
case "InternalServiceErrorException":
|
|
798
808
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -805,10 +815,12 @@ const deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError = async
|
|
|
805
815
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
806
816
|
default:
|
|
807
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
808
820
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
810
822
|
$fault: "client",
|
|
811
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
812
824
|
});
|
|
813
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
826
|
}
|
|
@@ -833,8 +845,7 @@ const deserializeAws_json1_0DescribeCustomDomainsCommandError = async (output, c
|
|
|
833
845
|
body: await parseBody(output.body, context),
|
|
834
846
|
};
|
|
835
847
|
let response;
|
|
836
|
-
|
|
837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
849
|
switch (errorCode) {
|
|
839
850
|
case "InternalServiceErrorException":
|
|
840
851
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -847,10 +858,12 @@ const deserializeAws_json1_0DescribeCustomDomainsCommandError = async (output, c
|
|
|
847
858
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
848
859
|
default:
|
|
849
860
|
const parsedBody = parsedOutput.body;
|
|
861
|
+
const $metadata = deserializeMetadata(output);
|
|
862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
850
863
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
852
865
|
$fault: "client",
|
|
853
|
-
$metadata
|
|
866
|
+
$metadata,
|
|
854
867
|
});
|
|
855
868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
856
869
|
}
|
|
@@ -875,8 +888,7 @@ const deserializeAws_json1_0DescribeObservabilityConfigurationCommandError = asy
|
|
|
875
888
|
body: await parseBody(output.body, context),
|
|
876
889
|
};
|
|
877
890
|
let response;
|
|
878
|
-
|
|
879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
892
|
switch (errorCode) {
|
|
881
893
|
case "InternalServiceErrorException":
|
|
882
894
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -889,10 +901,12 @@ const deserializeAws_json1_0DescribeObservabilityConfigurationCommandError = asy
|
|
|
889
901
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
890
902
|
default:
|
|
891
903
|
const parsedBody = parsedOutput.body;
|
|
904
|
+
const $metadata = deserializeMetadata(output);
|
|
905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
892
906
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
894
908
|
$fault: "client",
|
|
895
|
-
$metadata
|
|
909
|
+
$metadata,
|
|
896
910
|
});
|
|
897
911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
898
912
|
}
|
|
@@ -917,8 +931,7 @@ const deserializeAws_json1_0DescribeServiceCommandError = async (output, context
|
|
|
917
931
|
body: await parseBody(output.body, context),
|
|
918
932
|
};
|
|
919
933
|
let response;
|
|
920
|
-
|
|
921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
935
|
switch (errorCode) {
|
|
923
936
|
case "InternalServiceErrorException":
|
|
924
937
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -931,10 +944,12 @@ const deserializeAws_json1_0DescribeServiceCommandError = async (output, context
|
|
|
931
944
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
932
945
|
default:
|
|
933
946
|
const parsedBody = parsedOutput.body;
|
|
947
|
+
const $metadata = deserializeMetadata(output);
|
|
948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
934
949
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
936
951
|
$fault: "client",
|
|
937
|
-
$metadata
|
|
952
|
+
$metadata,
|
|
938
953
|
});
|
|
939
954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
940
955
|
}
|
|
@@ -959,8 +974,7 @@ const deserializeAws_json1_0DescribeVpcConnectorCommandError = async (output, co
|
|
|
959
974
|
body: await parseBody(output.body, context),
|
|
960
975
|
};
|
|
961
976
|
let response;
|
|
962
|
-
|
|
963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
978
|
switch (errorCode) {
|
|
965
979
|
case "InternalServiceErrorException":
|
|
966
980
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -973,10 +987,12 @@ const deserializeAws_json1_0DescribeVpcConnectorCommandError = async (output, co
|
|
|
973
987
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
974
988
|
default:
|
|
975
989
|
const parsedBody = parsedOutput.body;
|
|
990
|
+
const $metadata = deserializeMetadata(output);
|
|
991
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
976
992
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
993
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
978
994
|
$fault: "client",
|
|
979
|
-
$metadata
|
|
995
|
+
$metadata,
|
|
980
996
|
});
|
|
981
997
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
982
998
|
}
|
|
@@ -1001,8 +1017,7 @@ const deserializeAws_json1_0DisassociateCustomDomainCommandError = async (output
|
|
|
1001
1017
|
body: await parseBody(output.body, context),
|
|
1002
1018
|
};
|
|
1003
1019
|
let response;
|
|
1004
|
-
|
|
1005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1021
|
switch (errorCode) {
|
|
1007
1022
|
case "InternalServiceErrorException":
|
|
1008
1023
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1018,10 +1033,12 @@ const deserializeAws_json1_0DisassociateCustomDomainCommandError = async (output
|
|
|
1018
1033
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1019
1034
|
default:
|
|
1020
1035
|
const parsedBody = parsedOutput.body;
|
|
1036
|
+
const $metadata = deserializeMetadata(output);
|
|
1037
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1021
1038
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1039
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1023
1040
|
$fault: "client",
|
|
1024
|
-
$metadata
|
|
1041
|
+
$metadata,
|
|
1025
1042
|
});
|
|
1026
1043
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1027
1044
|
}
|
|
@@ -1046,8 +1063,7 @@ const deserializeAws_json1_0ListAutoScalingConfigurationsCommandError = async (o
|
|
|
1046
1063
|
body: await parseBody(output.body, context),
|
|
1047
1064
|
};
|
|
1048
1065
|
let response;
|
|
1049
|
-
|
|
1050
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
1067
|
switch (errorCode) {
|
|
1052
1068
|
case "InternalServiceErrorException":
|
|
1053
1069
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1057,10 +1073,12 @@ const deserializeAws_json1_0ListAutoScalingConfigurationsCommandError = async (o
|
|
|
1057
1073
|
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1058
1074
|
default:
|
|
1059
1075
|
const parsedBody = parsedOutput.body;
|
|
1076
|
+
const $metadata = deserializeMetadata(output);
|
|
1077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1060
1078
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1062
1080
|
$fault: "client",
|
|
1063
|
-
$metadata
|
|
1081
|
+
$metadata,
|
|
1064
1082
|
});
|
|
1065
1083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1066
1084
|
}
|
|
@@ -1085,8 +1103,7 @@ const deserializeAws_json1_0ListConnectionsCommandError = async (output, context
|
|
|
1085
1103
|
body: await parseBody(output.body, context),
|
|
1086
1104
|
};
|
|
1087
1105
|
let response;
|
|
1088
|
-
|
|
1089
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
1107
|
switch (errorCode) {
|
|
1091
1108
|
case "InternalServiceErrorException":
|
|
1092
1109
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1096,10 +1113,12 @@ const deserializeAws_json1_0ListConnectionsCommandError = async (output, context
|
|
|
1096
1113
|
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1097
1114
|
default:
|
|
1098
1115
|
const parsedBody = parsedOutput.body;
|
|
1116
|
+
const $metadata = deserializeMetadata(output);
|
|
1117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1099
1118
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1101
1120
|
$fault: "client",
|
|
1102
|
-
$metadata
|
|
1121
|
+
$metadata,
|
|
1103
1122
|
});
|
|
1104
1123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1105
1124
|
}
|
|
@@ -1124,8 +1143,7 @@ const deserializeAws_json1_0ListObservabilityConfigurationsCommandError = async
|
|
|
1124
1143
|
body: await parseBody(output.body, context),
|
|
1125
1144
|
};
|
|
1126
1145
|
let response;
|
|
1127
|
-
|
|
1128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1147
|
switch (errorCode) {
|
|
1130
1148
|
case "InternalServiceErrorException":
|
|
1131
1149
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1135,10 +1153,12 @@ const deserializeAws_json1_0ListObservabilityConfigurationsCommandError = async
|
|
|
1135
1153
|
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1136
1154
|
default:
|
|
1137
1155
|
const parsedBody = parsedOutput.body;
|
|
1156
|
+
const $metadata = deserializeMetadata(output);
|
|
1157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1138
1158
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1140
1160
|
$fault: "client",
|
|
1141
|
-
$metadata
|
|
1161
|
+
$metadata,
|
|
1142
1162
|
});
|
|
1143
1163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1144
1164
|
}
|
|
@@ -1163,8 +1183,7 @@ const deserializeAws_json1_0ListOperationsCommandError = async (output, context)
|
|
|
1163
1183
|
body: await parseBody(output.body, context),
|
|
1164
1184
|
};
|
|
1165
1185
|
let response;
|
|
1166
|
-
|
|
1167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
1187
|
switch (errorCode) {
|
|
1169
1188
|
case "InternalServiceErrorException":
|
|
1170
1189
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1177,10 +1196,12 @@ const deserializeAws_json1_0ListOperationsCommandError = async (output, context)
|
|
|
1177
1196
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1178
1197
|
default:
|
|
1179
1198
|
const parsedBody = parsedOutput.body;
|
|
1199
|
+
const $metadata = deserializeMetadata(output);
|
|
1200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1180
1201
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1181
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1182
1203
|
$fault: "client",
|
|
1183
|
-
$metadata
|
|
1204
|
+
$metadata,
|
|
1184
1205
|
});
|
|
1185
1206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1186
1207
|
}
|
|
@@ -1205,8 +1226,7 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
|
|
|
1205
1226
|
body: await parseBody(output.body, context),
|
|
1206
1227
|
};
|
|
1207
1228
|
let response;
|
|
1208
|
-
|
|
1209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1230
|
switch (errorCode) {
|
|
1211
1231
|
case "InternalServiceErrorException":
|
|
1212
1232
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1216,10 +1236,12 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
|
|
|
1216
1236
|
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1217
1237
|
default:
|
|
1218
1238
|
const parsedBody = parsedOutput.body;
|
|
1239
|
+
const $metadata = deserializeMetadata(output);
|
|
1240
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1219
1241
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1221
1243
|
$fault: "client",
|
|
1222
|
-
$metadata
|
|
1244
|
+
$metadata,
|
|
1223
1245
|
});
|
|
1224
1246
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1225
1247
|
}
|
|
@@ -1244,8 +1266,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1244
1266
|
body: await parseBody(output.body, context),
|
|
1245
1267
|
};
|
|
1246
1268
|
let response;
|
|
1247
|
-
|
|
1248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1270
|
switch (errorCode) {
|
|
1250
1271
|
case "InternalServiceErrorException":
|
|
1251
1272
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1261,10 +1282,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1261
1282
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1262
1283
|
default:
|
|
1263
1284
|
const parsedBody = parsedOutput.body;
|
|
1285
|
+
const $metadata = deserializeMetadata(output);
|
|
1286
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1264
1287
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1265
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1266
1289
|
$fault: "client",
|
|
1267
|
-
$metadata
|
|
1290
|
+
$metadata,
|
|
1268
1291
|
});
|
|
1269
1292
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1270
1293
|
}
|
|
@@ -1289,8 +1312,7 @@ const deserializeAws_json1_0ListVpcConnectorsCommandError = async (output, conte
|
|
|
1289
1312
|
body: await parseBody(output.body, context),
|
|
1290
1313
|
};
|
|
1291
1314
|
let response;
|
|
1292
|
-
|
|
1293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
1316
|
switch (errorCode) {
|
|
1295
1317
|
case "InternalServiceErrorException":
|
|
1296
1318
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1300,10 +1322,12 @@ const deserializeAws_json1_0ListVpcConnectorsCommandError = async (output, conte
|
|
|
1300
1322
|
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1301
1323
|
default:
|
|
1302
1324
|
const parsedBody = parsedOutput.body;
|
|
1325
|
+
const $metadata = deserializeMetadata(output);
|
|
1326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1303
1327
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1305
1329
|
$fault: "client",
|
|
1306
|
-
$metadata
|
|
1330
|
+
$metadata,
|
|
1307
1331
|
});
|
|
1308
1332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1333
|
}
|
|
@@ -1328,8 +1352,7 @@ const deserializeAws_json1_0PauseServiceCommandError = async (output, context) =
|
|
|
1328
1352
|
body: await parseBody(output.body, context),
|
|
1329
1353
|
};
|
|
1330
1354
|
let response;
|
|
1331
|
-
|
|
1332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1356
|
switch (errorCode) {
|
|
1334
1357
|
case "InternalServiceErrorException":
|
|
1335
1358
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1345,10 +1368,12 @@ const deserializeAws_json1_0PauseServiceCommandError = async (output, context) =
|
|
|
1345
1368
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1346
1369
|
default:
|
|
1347
1370
|
const parsedBody = parsedOutput.body;
|
|
1371
|
+
const $metadata = deserializeMetadata(output);
|
|
1372
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1348
1373
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1350
1375
|
$fault: "client",
|
|
1351
|
-
$metadata
|
|
1376
|
+
$metadata,
|
|
1352
1377
|
});
|
|
1353
1378
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1354
1379
|
}
|
|
@@ -1373,8 +1398,7 @@ const deserializeAws_json1_0ResumeServiceCommandError = async (output, context)
|
|
|
1373
1398
|
body: await parseBody(output.body, context),
|
|
1374
1399
|
};
|
|
1375
1400
|
let response;
|
|
1376
|
-
|
|
1377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1402
|
switch (errorCode) {
|
|
1379
1403
|
case "InternalServiceErrorException":
|
|
1380
1404
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1390,10 +1414,12 @@ const deserializeAws_json1_0ResumeServiceCommandError = async (output, context)
|
|
|
1390
1414
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1391
1415
|
default:
|
|
1392
1416
|
const parsedBody = parsedOutput.body;
|
|
1417
|
+
const $metadata = deserializeMetadata(output);
|
|
1418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1393
1419
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1395
1421
|
$fault: "client",
|
|
1396
|
-
$metadata
|
|
1422
|
+
$metadata,
|
|
1397
1423
|
});
|
|
1398
1424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1399
1425
|
}
|
|
@@ -1418,8 +1444,7 @@ const deserializeAws_json1_0StartDeploymentCommandError = async (output, context
|
|
|
1418
1444
|
body: await parseBody(output.body, context),
|
|
1419
1445
|
};
|
|
1420
1446
|
let response;
|
|
1421
|
-
|
|
1422
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1448
|
switch (errorCode) {
|
|
1424
1449
|
case "InternalServiceErrorException":
|
|
1425
1450
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1432,10 +1457,12 @@ const deserializeAws_json1_0StartDeploymentCommandError = async (output, context
|
|
|
1432
1457
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1433
1458
|
default:
|
|
1434
1459
|
const parsedBody = parsedOutput.body;
|
|
1460
|
+
const $metadata = deserializeMetadata(output);
|
|
1461
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1435
1462
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1436
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1463
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1437
1464
|
$fault: "client",
|
|
1438
|
-
$metadata
|
|
1465
|
+
$metadata,
|
|
1439
1466
|
});
|
|
1440
1467
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1441
1468
|
}
|
|
@@ -1460,8 +1487,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1460
1487
|
body: await parseBody(output.body, context),
|
|
1461
1488
|
};
|
|
1462
1489
|
let response;
|
|
1463
|
-
|
|
1464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1491
|
switch (errorCode) {
|
|
1466
1492
|
case "InternalServiceErrorException":
|
|
1467
1493
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1477,10 +1503,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1477
1503
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1478
1504
|
default:
|
|
1479
1505
|
const parsedBody = parsedOutput.body;
|
|
1506
|
+
const $metadata = deserializeMetadata(output);
|
|
1507
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1508
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1509
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1510
|
$fault: "client",
|
|
1483
|
-
$metadata
|
|
1511
|
+
$metadata,
|
|
1484
1512
|
});
|
|
1485
1513
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1486
1514
|
}
|
|
@@ -1505,8 +1533,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1505
1533
|
body: await parseBody(output.body, context),
|
|
1506
1534
|
};
|
|
1507
1535
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1537
|
switch (errorCode) {
|
|
1511
1538
|
case "InternalServiceErrorException":
|
|
1512
1539
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1522,10 +1549,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1522
1549
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1523
1550
|
default:
|
|
1524
1551
|
const parsedBody = parsedOutput.body;
|
|
1552
|
+
const $metadata = deserializeMetadata(output);
|
|
1553
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1525
1554
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1555
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1527
1556
|
$fault: "client",
|
|
1528
|
-
$metadata
|
|
1557
|
+
$metadata,
|
|
1529
1558
|
});
|
|
1530
1559
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1560
|
}
|
|
@@ -1550,8 +1579,7 @@ const deserializeAws_json1_0UpdateServiceCommandError = async (output, context)
|
|
|
1550
1579
|
body: await parseBody(output.body, context),
|
|
1551
1580
|
};
|
|
1552
1581
|
let response;
|
|
1553
|
-
|
|
1554
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1583
|
switch (errorCode) {
|
|
1556
1584
|
case "InternalServiceErrorException":
|
|
1557
1585
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
@@ -1567,10 +1595,12 @@ const deserializeAws_json1_0UpdateServiceCommandError = async (output, context)
|
|
|
1567
1595
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1568
1596
|
default:
|
|
1569
1597
|
const parsedBody = parsedOutput.body;
|
|
1598
|
+
const $metadata = deserializeMetadata(output);
|
|
1599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1570
1600
|
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1572
1602
|
$fault: "client",
|
|
1573
|
-
$metadata
|
|
1603
|
+
$metadata,
|
|
1574
1604
|
});
|
|
1575
1605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1576
1606
|
}
|
|
@@ -2807,5 +2837,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2807
2837
|
if (data["__type"] !== undefined) {
|
|
2808
2838
|
return sanitizeErrorCode(data["__type"]);
|
|
2809
2839
|
}
|
|
2810
|
-
return "";
|
|
2811
2840
|
};
|