@aws-sdk/client-account 3.504.0 → 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 +17 -250
- package/dist-es/protocols/Aws_restJson1.js +16 -249
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -490,7 +490,7 @@ var se_PutContactInformationCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
490
490
|
}, "se_PutContactInformationCommand");
|
|
491
491
|
var de_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
494
494
|
}
|
|
495
495
|
const contents = (0, import_smithy_client.map)({
|
|
496
496
|
$metadata: deserializeMetadata(output)
|
|
@@ -498,40 +498,9 @@ var de_DeleteAlternateContactCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
498
498
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
499
499
|
return contents;
|
|
500
500
|
}, "de_DeleteAlternateContactCommand");
|
|
501
|
-
var de_DeleteAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
|
-
const parsedOutput = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseErrorBody(output.body, context)
|
|
505
|
-
};
|
|
506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
-
switch (errorCode) {
|
|
508
|
-
case "AccessDeniedException":
|
|
509
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
510
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
511
|
-
case "InternalServerException":
|
|
512
|
-
case "com.amazonaws.account#InternalServerException":
|
|
513
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
514
|
-
case "ResourceNotFoundException":
|
|
515
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
516
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
517
|
-
case "TooManyRequestsException":
|
|
518
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
519
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ValidationException":
|
|
521
|
-
case "com.amazonaws.account#ValidationException":
|
|
522
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
|
-
default:
|
|
524
|
-
const parsedBody = parsedOutput.body;
|
|
525
|
-
return throwDefaultError({
|
|
526
|
-
output,
|
|
527
|
-
parsedBody,
|
|
528
|
-
errorCode
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
}, "de_DeleteAlternateContactCommandError");
|
|
532
501
|
var de_DisableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return
|
|
503
|
+
return de_CommandError(output, context);
|
|
535
504
|
}
|
|
536
505
|
const contents = (0, import_smithy_client.map)({
|
|
537
506
|
$metadata: deserializeMetadata(output)
|
|
@@ -539,40 +508,9 @@ var de_DisableRegionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
539
508
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
540
509
|
return contents;
|
|
541
510
|
}, "de_DisableRegionCommand");
|
|
542
|
-
var de_DisableRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context)
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "AccessDeniedException":
|
|
550
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ConflictException":
|
|
553
|
-
case "com.amazonaws.account#ConflictException":
|
|
554
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InternalServerException":
|
|
556
|
-
case "com.amazonaws.account#InternalServerException":
|
|
557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
558
|
-
case "TooManyRequestsException":
|
|
559
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
560
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ValidationException":
|
|
562
|
-
case "com.amazonaws.account#ValidationException":
|
|
563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
|
-
default:
|
|
565
|
-
const parsedBody = parsedOutput.body;
|
|
566
|
-
return throwDefaultError({
|
|
567
|
-
output,
|
|
568
|
-
parsedBody,
|
|
569
|
-
errorCode
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
}, "de_DisableRegionCommandError");
|
|
573
511
|
var de_EnableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
574
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
576
514
|
}
|
|
577
515
|
const contents = (0, import_smithy_client.map)({
|
|
578
516
|
$metadata: deserializeMetadata(output)
|
|
@@ -580,40 +518,9 @@ var de_EnableRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
580
518
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
581
519
|
return contents;
|
|
582
520
|
}, "de_EnableRegionCommand");
|
|
583
|
-
var de_EnableRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
584
|
-
const parsedOutput = {
|
|
585
|
-
...output,
|
|
586
|
-
body: await parseErrorBody(output.body, context)
|
|
587
|
-
};
|
|
588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
-
switch (errorCode) {
|
|
590
|
-
case "AccessDeniedException":
|
|
591
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ConflictException":
|
|
594
|
-
case "com.amazonaws.account#ConflictException":
|
|
595
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
596
|
-
case "InternalServerException":
|
|
597
|
-
case "com.amazonaws.account#InternalServerException":
|
|
598
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
599
|
-
case "TooManyRequestsException":
|
|
600
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
601
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ValidationException":
|
|
603
|
-
case "com.amazonaws.account#ValidationException":
|
|
604
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
605
|
-
default:
|
|
606
|
-
const parsedBody = parsedOutput.body;
|
|
607
|
-
return throwDefaultError({
|
|
608
|
-
output,
|
|
609
|
-
parsedBody,
|
|
610
|
-
errorCode
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
}, "de_EnableRegionCommandError");
|
|
614
521
|
var de_GetAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
617
524
|
}
|
|
618
525
|
const contents = (0, import_smithy_client.map)({
|
|
619
526
|
$metadata: deserializeMetadata(output)
|
|
@@ -625,40 +532,9 @@ var de_GetAlternateContactCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
625
532
|
Object.assign(contents, doc);
|
|
626
533
|
return contents;
|
|
627
534
|
}, "de_GetAlternateContactCommand");
|
|
628
|
-
var de_GetAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
|
-
const parsedOutput = {
|
|
630
|
-
...output,
|
|
631
|
-
body: await parseErrorBody(output.body, context)
|
|
632
|
-
};
|
|
633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
-
switch (errorCode) {
|
|
635
|
-
case "AccessDeniedException":
|
|
636
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
638
|
-
case "InternalServerException":
|
|
639
|
-
case "com.amazonaws.account#InternalServerException":
|
|
640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ResourceNotFoundException":
|
|
642
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
|
-
case "TooManyRequestsException":
|
|
645
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
646
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ValidationException":
|
|
648
|
-
case "com.amazonaws.account#ValidationException":
|
|
649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
650
|
-
default:
|
|
651
|
-
const parsedBody = parsedOutput.body;
|
|
652
|
-
return throwDefaultError({
|
|
653
|
-
output,
|
|
654
|
-
parsedBody,
|
|
655
|
-
errorCode
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
}, "de_GetAlternateContactCommandError");
|
|
659
535
|
var de_GetContactInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
660
536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
|
-
return
|
|
537
|
+
return de_CommandError(output, context);
|
|
662
538
|
}
|
|
663
539
|
const contents = (0, import_smithy_client.map)({
|
|
664
540
|
$metadata: deserializeMetadata(output)
|
|
@@ -670,40 +546,9 @@ var de_GetContactInformationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
670
546
|
Object.assign(contents, doc);
|
|
671
547
|
return contents;
|
|
672
548
|
}, "de_GetContactInformationCommand");
|
|
673
|
-
var de_GetContactInformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context)
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "AccessDeniedException":
|
|
681
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServerException":
|
|
684
|
-
case "com.amazonaws.account#InternalServerException":
|
|
685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ResourceNotFoundException":
|
|
687
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
|
-
case "TooManyRequestsException":
|
|
690
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
691
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.account#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
}, "de_GetContactInformationCommandError");
|
|
704
549
|
var de_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
550
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
707
552
|
}
|
|
708
553
|
const contents = (0, import_smithy_client.map)({
|
|
709
554
|
$metadata: deserializeMetadata(output)
|
|
@@ -716,37 +561,9 @@ var de_GetRegionOptStatusCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
716
561
|
Object.assign(contents, doc);
|
|
717
562
|
return contents;
|
|
718
563
|
}, "de_GetRegionOptStatusCommand");
|
|
719
|
-
var de_GetRegionOptStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context)
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "AccessDeniedException":
|
|
727
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
729
|
-
case "InternalServerException":
|
|
730
|
-
case "com.amazonaws.account#InternalServerException":
|
|
731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
732
|
-
case "TooManyRequestsException":
|
|
733
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
734
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ValidationException":
|
|
736
|
-
case "com.amazonaws.account#ValidationException":
|
|
737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
}, "de_GetRegionOptStatusCommandError");
|
|
747
564
|
var de_ListRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
-
return
|
|
566
|
+
return de_CommandError(output, context);
|
|
750
567
|
}
|
|
751
568
|
const contents = (0, import_smithy_client.map)({
|
|
752
569
|
$metadata: deserializeMetadata(output)
|
|
@@ -759,37 +576,9 @@ var de_ListRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
759
576
|
Object.assign(contents, doc);
|
|
760
577
|
return contents;
|
|
761
578
|
}, "de_ListRegionsCommand");
|
|
762
|
-
var de_ListRegionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
763
|
-
const parsedOutput = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseErrorBody(output.body, context)
|
|
766
|
-
};
|
|
767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
-
switch (errorCode) {
|
|
769
|
-
case "AccessDeniedException":
|
|
770
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InternalServerException":
|
|
773
|
-
case "com.amazonaws.account#InternalServerException":
|
|
774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
775
|
-
case "TooManyRequestsException":
|
|
776
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
777
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.account#ValidationException":
|
|
780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
}, "de_ListRegionsCommandError");
|
|
790
579
|
var de_PutAlternateContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
581
|
+
return de_CommandError(output, context);
|
|
793
582
|
}
|
|
794
583
|
const contents = (0, import_smithy_client.map)({
|
|
795
584
|
$metadata: deserializeMetadata(output)
|
|
@@ -797,37 +586,9 @@ var de_PutAlternateContactCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
797
586
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
798
587
|
return contents;
|
|
799
588
|
}, "de_PutAlternateContactCommand");
|
|
800
|
-
var de_PutAlternateContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
-
const parsedOutput = {
|
|
802
|
-
...output,
|
|
803
|
-
body: await parseErrorBody(output.body, context)
|
|
804
|
-
};
|
|
805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
-
switch (errorCode) {
|
|
807
|
-
case "AccessDeniedException":
|
|
808
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
810
|
-
case "InternalServerException":
|
|
811
|
-
case "com.amazonaws.account#InternalServerException":
|
|
812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
|
-
case "TooManyRequestsException":
|
|
814
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
815
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ValidationException":
|
|
817
|
-
case "com.amazonaws.account#ValidationException":
|
|
818
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
-
default:
|
|
820
|
-
const parsedBody = parsedOutput.body;
|
|
821
|
-
return throwDefaultError({
|
|
822
|
-
output,
|
|
823
|
-
parsedBody,
|
|
824
|
-
errorCode
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
}, "de_PutAlternateContactCommandError");
|
|
828
589
|
var de_PutContactInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
831
592
|
}
|
|
832
593
|
const contents = (0, import_smithy_client.map)({
|
|
833
594
|
$metadata: deserializeMetadata(output)
|
|
@@ -835,7 +596,7 @@ var de_PutContactInformationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
835
596
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
836
597
|
return contents;
|
|
837
598
|
}, "de_PutContactInformationCommand");
|
|
838
|
-
var
|
|
599
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
839
600
|
const parsedOutput = {
|
|
840
601
|
...output,
|
|
841
602
|
body: await parseErrorBody(output.body, context)
|
|
@@ -848,12 +609,18 @@ var de_PutContactInformationCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
848
609
|
case "InternalServerException":
|
|
849
610
|
case "com.amazonaws.account#InternalServerException":
|
|
850
611
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
612
|
+
case "ResourceNotFoundException":
|
|
613
|
+
case "com.amazonaws.account#ResourceNotFoundException":
|
|
614
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
615
|
case "TooManyRequestsException":
|
|
852
616
|
case "com.amazonaws.account#TooManyRequestsException":
|
|
853
617
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
854
618
|
case "ValidationException":
|
|
855
619
|
case "com.amazonaws.account#ValidationException":
|
|
856
620
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
|
+
case "ConflictException":
|
|
622
|
+
case "com.amazonaws.account#ConflictException":
|
|
623
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
857
624
|
default:
|
|
858
625
|
const parsedBody = parsedOutput.body;
|
|
859
626
|
return throwDefaultError({
|
|
@@ -862,7 +629,7 @@ var de_PutContactInformationCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
862
629
|
errorCode
|
|
863
630
|
});
|
|
864
631
|
}
|
|
865
|
-
}, "
|
|
632
|
+
}, "de_CommandError");
|
|
866
633
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AccountServiceException);
|
|
867
634
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
868
635
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -135,7 +135,7 @@ export const se_PutContactInformationCommand = async (input, context) => {
|
|
|
135
135
|
};
|
|
136
136
|
export const de_DeleteAlternateContactCommand = async (output, context) => {
|
|
137
137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
138
|
-
return
|
|
138
|
+
return de_CommandError(output, context);
|
|
139
139
|
}
|
|
140
140
|
const contents = map({
|
|
141
141
|
$metadata: deserializeMetadata(output),
|
|
@@ -143,40 +143,9 @@ export const de_DeleteAlternateContactCommand = async (output, context) => {
|
|
|
143
143
|
await collectBody(output.body, context);
|
|
144
144
|
return contents;
|
|
145
145
|
};
|
|
146
|
-
const de_DeleteAlternateContactCommandError = async (output, context) => {
|
|
147
|
-
const parsedOutput = {
|
|
148
|
-
...output,
|
|
149
|
-
body: await parseErrorBody(output.body, context),
|
|
150
|
-
};
|
|
151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
152
|
-
switch (errorCode) {
|
|
153
|
-
case "AccessDeniedException":
|
|
154
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
156
|
-
case "InternalServerException":
|
|
157
|
-
case "com.amazonaws.account#InternalServerException":
|
|
158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
159
|
-
case "ResourceNotFoundException":
|
|
160
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
161
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
162
|
-
case "TooManyRequestsException":
|
|
163
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
164
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
165
|
-
case "ValidationException":
|
|
166
|
-
case "com.amazonaws.account#ValidationException":
|
|
167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
168
|
-
default:
|
|
169
|
-
const parsedBody = parsedOutput.body;
|
|
170
|
-
return throwDefaultError({
|
|
171
|
-
output,
|
|
172
|
-
parsedBody,
|
|
173
|
-
errorCode,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
146
|
export const de_DisableRegionCommand = async (output, context) => {
|
|
178
147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
179
|
-
return
|
|
148
|
+
return de_CommandError(output, context);
|
|
180
149
|
}
|
|
181
150
|
const contents = map({
|
|
182
151
|
$metadata: deserializeMetadata(output),
|
|
@@ -184,40 +153,9 @@ export const de_DisableRegionCommand = async (output, context) => {
|
|
|
184
153
|
await collectBody(output.body, context);
|
|
185
154
|
return contents;
|
|
186
155
|
};
|
|
187
|
-
const de_DisableRegionCommandError = async (output, context) => {
|
|
188
|
-
const parsedOutput = {
|
|
189
|
-
...output,
|
|
190
|
-
body: await parseErrorBody(output.body, context),
|
|
191
|
-
};
|
|
192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
193
|
-
switch (errorCode) {
|
|
194
|
-
case "AccessDeniedException":
|
|
195
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
196
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
197
|
-
case "ConflictException":
|
|
198
|
-
case "com.amazonaws.account#ConflictException":
|
|
199
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
200
|
-
case "InternalServerException":
|
|
201
|
-
case "com.amazonaws.account#InternalServerException":
|
|
202
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
203
|
-
case "TooManyRequestsException":
|
|
204
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
205
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
206
|
-
case "ValidationException":
|
|
207
|
-
case "com.amazonaws.account#ValidationException":
|
|
208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
209
|
-
default:
|
|
210
|
-
const parsedBody = parsedOutput.body;
|
|
211
|
-
return throwDefaultError({
|
|
212
|
-
output,
|
|
213
|
-
parsedBody,
|
|
214
|
-
errorCode,
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
156
|
export const de_EnableRegionCommand = async (output, context) => {
|
|
219
157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
220
|
-
return
|
|
158
|
+
return de_CommandError(output, context);
|
|
221
159
|
}
|
|
222
160
|
const contents = map({
|
|
223
161
|
$metadata: deserializeMetadata(output),
|
|
@@ -225,40 +163,9 @@ export const de_EnableRegionCommand = async (output, context) => {
|
|
|
225
163
|
await collectBody(output.body, context);
|
|
226
164
|
return contents;
|
|
227
165
|
};
|
|
228
|
-
const de_EnableRegionCommandError = async (output, context) => {
|
|
229
|
-
const parsedOutput = {
|
|
230
|
-
...output,
|
|
231
|
-
body: await parseErrorBody(output.body, context),
|
|
232
|
-
};
|
|
233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
|
-
switch (errorCode) {
|
|
235
|
-
case "AccessDeniedException":
|
|
236
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
238
|
-
case "ConflictException":
|
|
239
|
-
case "com.amazonaws.account#ConflictException":
|
|
240
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
241
|
-
case "InternalServerException":
|
|
242
|
-
case "com.amazonaws.account#InternalServerException":
|
|
243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
244
|
-
case "TooManyRequestsException":
|
|
245
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
246
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
247
|
-
case "ValidationException":
|
|
248
|
-
case "com.amazonaws.account#ValidationException":
|
|
249
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
250
|
-
default:
|
|
251
|
-
const parsedBody = parsedOutput.body;
|
|
252
|
-
return throwDefaultError({
|
|
253
|
-
output,
|
|
254
|
-
parsedBody,
|
|
255
|
-
errorCode,
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
166
|
export const de_GetAlternateContactCommand = async (output, context) => {
|
|
260
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
261
|
-
return
|
|
168
|
+
return de_CommandError(output, context);
|
|
262
169
|
}
|
|
263
170
|
const contents = map({
|
|
264
171
|
$metadata: deserializeMetadata(output),
|
|
@@ -270,40 +177,9 @@ export const de_GetAlternateContactCommand = async (output, context) => {
|
|
|
270
177
|
Object.assign(contents, doc);
|
|
271
178
|
return contents;
|
|
272
179
|
};
|
|
273
|
-
const de_GetAlternateContactCommandError = async (output, context) => {
|
|
274
|
-
const parsedOutput = {
|
|
275
|
-
...output,
|
|
276
|
-
body: await parseErrorBody(output.body, context),
|
|
277
|
-
};
|
|
278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
-
switch (errorCode) {
|
|
280
|
-
case "AccessDeniedException":
|
|
281
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
|
-
case "InternalServerException":
|
|
284
|
-
case "com.amazonaws.account#InternalServerException":
|
|
285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
286
|
-
case "ResourceNotFoundException":
|
|
287
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
289
|
-
case "TooManyRequestsException":
|
|
290
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
291
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ValidationException":
|
|
293
|
-
case "com.amazonaws.account#ValidationException":
|
|
294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
295
|
-
default:
|
|
296
|
-
const parsedBody = parsedOutput.body;
|
|
297
|
-
return throwDefaultError({
|
|
298
|
-
output,
|
|
299
|
-
parsedBody,
|
|
300
|
-
errorCode,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
180
|
export const de_GetContactInformationCommand = async (output, context) => {
|
|
305
181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
306
|
-
return
|
|
182
|
+
return de_CommandError(output, context);
|
|
307
183
|
}
|
|
308
184
|
const contents = map({
|
|
309
185
|
$metadata: deserializeMetadata(output),
|
|
@@ -315,40 +191,9 @@ export const de_GetContactInformationCommand = async (output, context) => {
|
|
|
315
191
|
Object.assign(contents, doc);
|
|
316
192
|
return contents;
|
|
317
193
|
};
|
|
318
|
-
const de_GetContactInformationCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "AccessDeniedException":
|
|
326
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
328
|
-
case "InternalServerException":
|
|
329
|
-
case "com.amazonaws.account#InternalServerException":
|
|
330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
331
|
-
case "ResourceNotFoundException":
|
|
332
|
-
case "com.amazonaws.account#ResourceNotFoundException":
|
|
333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
334
|
-
case "TooManyRequestsException":
|
|
335
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
336
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
337
|
-
case "ValidationException":
|
|
338
|
-
case "com.amazonaws.account#ValidationException":
|
|
339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
340
|
-
default:
|
|
341
|
-
const parsedBody = parsedOutput.body;
|
|
342
|
-
return throwDefaultError({
|
|
343
|
-
output,
|
|
344
|
-
parsedBody,
|
|
345
|
-
errorCode,
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
194
|
export const de_GetRegionOptStatusCommand = async (output, context) => {
|
|
350
195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
|
-
return
|
|
196
|
+
return de_CommandError(output, context);
|
|
352
197
|
}
|
|
353
198
|
const contents = map({
|
|
354
199
|
$metadata: deserializeMetadata(output),
|
|
@@ -361,37 +206,9 @@ export const de_GetRegionOptStatusCommand = async (output, context) => {
|
|
|
361
206
|
Object.assign(contents, doc);
|
|
362
207
|
return contents;
|
|
363
208
|
};
|
|
364
|
-
const de_GetRegionOptStatusCommandError = async (output, context) => {
|
|
365
|
-
const parsedOutput = {
|
|
366
|
-
...output,
|
|
367
|
-
body: await parseErrorBody(output.body, context),
|
|
368
|
-
};
|
|
369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
-
switch (errorCode) {
|
|
371
|
-
case "AccessDeniedException":
|
|
372
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
374
|
-
case "InternalServerException":
|
|
375
|
-
case "com.amazonaws.account#InternalServerException":
|
|
376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
377
|
-
case "TooManyRequestsException":
|
|
378
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
379
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
380
|
-
case "ValidationException":
|
|
381
|
-
case "com.amazonaws.account#ValidationException":
|
|
382
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
383
|
-
default:
|
|
384
|
-
const parsedBody = parsedOutput.body;
|
|
385
|
-
return throwDefaultError({
|
|
386
|
-
output,
|
|
387
|
-
parsedBody,
|
|
388
|
-
errorCode,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
209
|
export const de_ListRegionsCommand = async (output, context) => {
|
|
393
210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
-
return
|
|
211
|
+
return de_CommandError(output, context);
|
|
395
212
|
}
|
|
396
213
|
const contents = map({
|
|
397
214
|
$metadata: deserializeMetadata(output),
|
|
@@ -404,37 +221,9 @@ export const de_ListRegionsCommand = async (output, context) => {
|
|
|
404
221
|
Object.assign(contents, doc);
|
|
405
222
|
return contents;
|
|
406
223
|
};
|
|
407
|
-
const de_ListRegionsCommandError = async (output, context) => {
|
|
408
|
-
const parsedOutput = {
|
|
409
|
-
...output,
|
|
410
|
-
body: await parseErrorBody(output.body, context),
|
|
411
|
-
};
|
|
412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
|
-
switch (errorCode) {
|
|
414
|
-
case "AccessDeniedException":
|
|
415
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
417
|
-
case "InternalServerException":
|
|
418
|
-
case "com.amazonaws.account#InternalServerException":
|
|
419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
420
|
-
case "TooManyRequestsException":
|
|
421
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
422
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ValidationException":
|
|
424
|
-
case "com.amazonaws.account#ValidationException":
|
|
425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
426
|
-
default:
|
|
427
|
-
const parsedBody = parsedOutput.body;
|
|
428
|
-
return throwDefaultError({
|
|
429
|
-
output,
|
|
430
|
-
parsedBody,
|
|
431
|
-
errorCode,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
224
|
export const de_PutAlternateContactCommand = async (output, context) => {
|
|
436
225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
-
return
|
|
226
|
+
return de_CommandError(output, context);
|
|
438
227
|
}
|
|
439
228
|
const contents = map({
|
|
440
229
|
$metadata: deserializeMetadata(output),
|
|
@@ -442,37 +231,9 @@ export const de_PutAlternateContactCommand = async (output, context) => {
|
|
|
442
231
|
await collectBody(output.body, context);
|
|
443
232
|
return contents;
|
|
444
233
|
};
|
|
445
|
-
const de_PutAlternateContactCommandError = async (output, context) => {
|
|
446
|
-
const parsedOutput = {
|
|
447
|
-
...output,
|
|
448
|
-
body: await parseErrorBody(output.body, context),
|
|
449
|
-
};
|
|
450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
|
-
switch (errorCode) {
|
|
452
|
-
case "AccessDeniedException":
|
|
453
|
-
case "com.amazonaws.account#AccessDeniedException":
|
|
454
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
455
|
-
case "InternalServerException":
|
|
456
|
-
case "com.amazonaws.account#InternalServerException":
|
|
457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
458
|
-
case "TooManyRequestsException":
|
|
459
|
-
case "com.amazonaws.account#TooManyRequestsException":
|
|
460
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
461
|
-
case "ValidationException":
|
|
462
|
-
case "com.amazonaws.account#ValidationException":
|
|
463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
464
|
-
default:
|
|
465
|
-
const parsedBody = parsedOutput.body;
|
|
466
|
-
return throwDefaultError({
|
|
467
|
-
output,
|
|
468
|
-
parsedBody,
|
|
469
|
-
errorCode,
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
234
|
export const de_PutContactInformationCommand = async (output, context) => {
|
|
474
235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
475
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
476
237
|
}
|
|
477
238
|
const contents = map({
|
|
478
239
|
$metadata: deserializeMetadata(output),
|
|
@@ -480,7 +241,7 @@ export const de_PutContactInformationCommand = async (output, context) => {
|
|
|
480
241
|
await collectBody(output.body, context);
|
|
481
242
|
return contents;
|
|
482
243
|
};
|
|
483
|
-
const
|
|
244
|
+
const de_CommandError = async (output, context) => {
|
|
484
245
|
const parsedOutput = {
|
|
485
246
|
...output,
|
|
486
247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -493,12 +254,18 @@ const de_PutContactInformationCommandError = async (output, context) => {
|
|
|
493
254
|
case "InternalServerException":
|
|
494
255
|
case "com.amazonaws.account#InternalServerException":
|
|
495
256
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
257
|
+
case "ResourceNotFoundException":
|
|
258
|
+
case "com.amazonaws.account#ResourceNotFoundException":
|
|
259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
496
260
|
case "TooManyRequestsException":
|
|
497
261
|
case "com.amazonaws.account#TooManyRequestsException":
|
|
498
262
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
499
263
|
case "ValidationException":
|
|
500
264
|
case "com.amazonaws.account#ValidationException":
|
|
501
265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
266
|
+
case "ConflictException":
|
|
267
|
+
case "com.amazonaws.account#ConflictException":
|
|
268
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
502
269
|
default:
|
|
503
270
|
const parsedBody = parsedOutput.body;
|
|
504
271
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-account",
|
|
3
3
|
"description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-account",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|