@aws-sdk/client-license-manager-user-subscriptions 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 CHANGED
@@ -488,7 +488,7 @@ var se_UpdateIdentityProviderSettingsCommand = /* @__PURE__ */ __name(async (inp
488
488
  }, "se_UpdateIdentityProviderSettingsCommand");
489
489
  var de_AssociateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
490
490
  if (output.statusCode !== 200 && output.statusCode >= 300) {
491
- return de_AssociateUserCommandError(output, context);
491
+ return de_CommandError(output, context);
492
492
  }
493
493
  const contents = (0, import_smithy_client.map)({
494
494
  $metadata: deserializeMetadata(output)
@@ -500,46 +500,9 @@ var de_AssociateUserCommand = /* @__PURE__ */ __name(async (output, context) =>
500
500
  Object.assign(contents, doc);
501
501
  return contents;
502
502
  }, "de_AssociateUserCommand");
503
- var de_AssociateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
504
- const parsedOutput = {
505
- ...output,
506
- body: await parseErrorBody(output.body, context)
507
- };
508
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
509
- switch (errorCode) {
510
- case "AccessDeniedException":
511
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
512
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
513
- case "ConflictException":
514
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
515
- throw await de_ConflictExceptionRes(parsedOutput, context);
516
- case "InternalServerException":
517
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
518
- throw await de_InternalServerExceptionRes(parsedOutput, context);
519
- case "ResourceNotFoundException":
520
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
521
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
522
- case "ServiceQuotaExceededException":
523
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
524
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
525
- case "ThrottlingException":
526
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
527
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
528
- case "ValidationException":
529
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
530
- throw await de_ValidationExceptionRes(parsedOutput, context);
531
- default:
532
- const parsedBody = parsedOutput.body;
533
- return throwDefaultError({
534
- output,
535
- parsedBody,
536
- errorCode
537
- });
538
- }
539
- }, "de_AssociateUserCommandError");
540
503
  var de_DeregisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
541
504
  if (output.statusCode !== 200 && output.statusCode >= 300) {
542
- return de_DeregisterIdentityProviderCommandError(output, context);
505
+ return de_CommandError(output, context);
543
506
  }
544
507
  const contents = (0, import_smithy_client.map)({
545
508
  $metadata: deserializeMetadata(output)
@@ -551,46 +514,9 @@ var de_DeregisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output,
551
514
  Object.assign(contents, doc);
552
515
  return contents;
553
516
  }, "de_DeregisterIdentityProviderCommand");
554
- var de_DeregisterIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
555
- const parsedOutput = {
556
- ...output,
557
- body: await parseErrorBody(output.body, context)
558
- };
559
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
560
- switch (errorCode) {
561
- case "AccessDeniedException":
562
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
563
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
564
- case "ConflictException":
565
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
566
- throw await de_ConflictExceptionRes(parsedOutput, context);
567
- case "InternalServerException":
568
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
569
- throw await de_InternalServerExceptionRes(parsedOutput, context);
570
- case "ResourceNotFoundException":
571
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
572
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
573
- case "ServiceQuotaExceededException":
574
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
575
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
576
- case "ThrottlingException":
577
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
578
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
579
- case "ValidationException":
580
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
581
- throw await de_ValidationExceptionRes(parsedOutput, context);
582
- default:
583
- const parsedBody = parsedOutput.body;
584
- return throwDefaultError({
585
- output,
586
- parsedBody,
587
- errorCode
588
- });
589
- }
590
- }, "de_DeregisterIdentityProviderCommandError");
591
517
  var de_DisassociateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
592
518
  if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_DisassociateUserCommandError(output, context);
519
+ return de_CommandError(output, context);
594
520
  }
595
521
  const contents = (0, import_smithy_client.map)({
596
522
  $metadata: deserializeMetadata(output)
@@ -602,46 +528,9 @@ var de_DisassociateUserCommand = /* @__PURE__ */ __name(async (output, context)
602
528
  Object.assign(contents, doc);
603
529
  return contents;
604
530
  }, "de_DisassociateUserCommand");
605
- var de_DisassociateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
606
- const parsedOutput = {
607
- ...output,
608
- body: await parseErrorBody(output.body, context)
609
- };
610
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
611
- switch (errorCode) {
612
- case "AccessDeniedException":
613
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
614
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
615
- case "ConflictException":
616
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
617
- throw await de_ConflictExceptionRes(parsedOutput, context);
618
- case "InternalServerException":
619
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
620
- throw await de_InternalServerExceptionRes(parsedOutput, context);
621
- case "ResourceNotFoundException":
622
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
623
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
624
- case "ServiceQuotaExceededException":
625
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
626
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
627
- case "ThrottlingException":
628
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
629
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
630
- case "ValidationException":
631
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
632
- throw await de_ValidationExceptionRes(parsedOutput, context);
633
- default:
634
- const parsedBody = parsedOutput.body;
635
- return throwDefaultError({
636
- output,
637
- parsedBody,
638
- errorCode
639
- });
640
- }
641
- }, "de_DisassociateUserCommandError");
642
531
  var de_ListIdentityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
643
532
  if (output.statusCode !== 200 && output.statusCode >= 300) {
644
- return de_ListIdentityProvidersCommandError(output, context);
533
+ return de_CommandError(output, context);
645
534
  }
646
535
  const contents = (0, import_smithy_client.map)({
647
536
  $metadata: deserializeMetadata(output)
@@ -654,46 +543,9 @@ var de_ListIdentityProvidersCommand = /* @__PURE__ */ __name(async (output, cont
654
543
  Object.assign(contents, doc);
655
544
  return contents;
656
545
  }, "de_ListIdentityProvidersCommand");
657
- var de_ListIdentityProvidersCommandError = /* @__PURE__ */ __name(async (output, context) => {
658
- const parsedOutput = {
659
- ...output,
660
- body: await parseErrorBody(output.body, context)
661
- };
662
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
663
- switch (errorCode) {
664
- case "AccessDeniedException":
665
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
666
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
667
- case "ConflictException":
668
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
669
- throw await de_ConflictExceptionRes(parsedOutput, context);
670
- case "InternalServerException":
671
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
672
- throw await de_InternalServerExceptionRes(parsedOutput, context);
673
- case "ResourceNotFoundException":
674
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
676
- case "ServiceQuotaExceededException":
677
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
678
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
679
- case "ThrottlingException":
680
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
681
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
682
- case "ValidationException":
683
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
684
- throw await de_ValidationExceptionRes(parsedOutput, context);
685
- default:
686
- const parsedBody = parsedOutput.body;
687
- return throwDefaultError({
688
- output,
689
- parsedBody,
690
- errorCode
691
- });
692
- }
693
- }, "de_ListIdentityProvidersCommandError");
694
546
  var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
695
547
  if (output.statusCode !== 200 && output.statusCode >= 300) {
696
- return de_ListInstancesCommandError(output, context);
548
+ return de_CommandError(output, context);
697
549
  }
698
550
  const contents = (0, import_smithy_client.map)({
699
551
  $metadata: deserializeMetadata(output)
@@ -706,46 +558,9 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
706
558
  Object.assign(contents, doc);
707
559
  return contents;
708
560
  }, "de_ListInstancesCommand");
709
- var de_ListInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
710
- const parsedOutput = {
711
- ...output,
712
- body: await parseErrorBody(output.body, context)
713
- };
714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
715
- switch (errorCode) {
716
- case "AccessDeniedException":
717
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
718
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
719
- case "ConflictException":
720
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
721
- throw await de_ConflictExceptionRes(parsedOutput, context);
722
- case "InternalServerException":
723
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
724
- throw await de_InternalServerExceptionRes(parsedOutput, context);
725
- case "ResourceNotFoundException":
726
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
727
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
728
- case "ServiceQuotaExceededException":
729
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
730
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
731
- case "ThrottlingException":
732
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
733
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
734
- case "ValidationException":
735
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
736
- throw await de_ValidationExceptionRes(parsedOutput, context);
737
- default:
738
- const parsedBody = parsedOutput.body;
739
- return throwDefaultError({
740
- output,
741
- parsedBody,
742
- errorCode
743
- });
744
- }
745
- }, "de_ListInstancesCommandError");
746
561
  var de_ListProductSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
747
562
  if (output.statusCode !== 200 && output.statusCode >= 300) {
748
- return de_ListProductSubscriptionsCommandError(output, context);
563
+ return de_CommandError(output, context);
749
564
  }
750
565
  const contents = (0, import_smithy_client.map)({
751
566
  $metadata: deserializeMetadata(output)
@@ -758,46 +573,9 @@ var de_ListProductSubscriptionsCommand = /* @__PURE__ */ __name(async (output, c
758
573
  Object.assign(contents, doc);
759
574
  return contents;
760
575
  }, "de_ListProductSubscriptionsCommand");
761
- var de_ListProductSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
762
- const parsedOutput = {
763
- ...output,
764
- body: await parseErrorBody(output.body, context)
765
- };
766
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
767
- switch (errorCode) {
768
- case "AccessDeniedException":
769
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
770
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
771
- case "ConflictException":
772
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
773
- throw await de_ConflictExceptionRes(parsedOutput, context);
774
- case "InternalServerException":
775
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
776
- throw await de_InternalServerExceptionRes(parsedOutput, context);
777
- case "ResourceNotFoundException":
778
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
779
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
780
- case "ServiceQuotaExceededException":
781
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
782
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
783
- case "ThrottlingException":
784
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
785
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
786
- case "ValidationException":
787
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
788
- throw await de_ValidationExceptionRes(parsedOutput, context);
789
- default:
790
- const parsedBody = parsedOutput.body;
791
- return throwDefaultError({
792
- output,
793
- parsedBody,
794
- errorCode
795
- });
796
- }
797
- }, "de_ListProductSubscriptionsCommandError");
798
576
  var de_ListUserAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
799
577
  if (output.statusCode !== 200 && output.statusCode >= 300) {
800
- return de_ListUserAssociationsCommandError(output, context);
578
+ return de_CommandError(output, context);
801
579
  }
802
580
  const contents = (0, import_smithy_client.map)({
803
581
  $metadata: deserializeMetadata(output)
@@ -810,46 +588,9 @@ var de_ListUserAssociationsCommand = /* @__PURE__ */ __name(async (output, conte
810
588
  Object.assign(contents, doc);
811
589
  return contents;
812
590
  }, "de_ListUserAssociationsCommand");
813
- var de_ListUserAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
814
- const parsedOutput = {
815
- ...output,
816
- body: await parseErrorBody(output.body, context)
817
- };
818
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
- switch (errorCode) {
820
- case "AccessDeniedException":
821
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
822
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
823
- case "ConflictException":
824
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
825
- throw await de_ConflictExceptionRes(parsedOutput, context);
826
- case "InternalServerException":
827
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
828
- throw await de_InternalServerExceptionRes(parsedOutput, context);
829
- case "ResourceNotFoundException":
830
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
831
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
832
- case "ServiceQuotaExceededException":
833
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
834
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
835
- case "ThrottlingException":
836
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
837
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
838
- case "ValidationException":
839
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
840
- throw await de_ValidationExceptionRes(parsedOutput, context);
841
- default:
842
- const parsedBody = parsedOutput.body;
843
- return throwDefaultError({
844
- output,
845
- parsedBody,
846
- errorCode
847
- });
848
- }
849
- }, "de_ListUserAssociationsCommandError");
850
591
  var de_RegisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
851
592
  if (output.statusCode !== 200 && output.statusCode >= 300) {
852
- return de_RegisterIdentityProviderCommandError(output, context);
593
+ return de_CommandError(output, context);
853
594
  }
854
595
  const contents = (0, import_smithy_client.map)({
855
596
  $metadata: deserializeMetadata(output)
@@ -861,46 +602,9 @@ var de_RegisterIdentityProviderCommand = /* @__PURE__ */ __name(async (output, c
861
602
  Object.assign(contents, doc);
862
603
  return contents;
863
604
  }, "de_RegisterIdentityProviderCommand");
864
- var de_RegisterIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
865
- const parsedOutput = {
866
- ...output,
867
- body: await parseErrorBody(output.body, context)
868
- };
869
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
870
- switch (errorCode) {
871
- case "AccessDeniedException":
872
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
873
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
874
- case "ConflictException":
875
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
876
- throw await de_ConflictExceptionRes(parsedOutput, context);
877
- case "InternalServerException":
878
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
879
- throw await de_InternalServerExceptionRes(parsedOutput, context);
880
- case "ResourceNotFoundException":
881
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
882
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
883
- case "ServiceQuotaExceededException":
884
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
885
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
886
- case "ThrottlingException":
887
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
888
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
889
- case "ValidationException":
890
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
891
- throw await de_ValidationExceptionRes(parsedOutput, context);
892
- default:
893
- const parsedBody = parsedOutput.body;
894
- return throwDefaultError({
895
- output,
896
- parsedBody,
897
- errorCode
898
- });
899
- }
900
- }, "de_RegisterIdentityProviderCommandError");
901
605
  var de_StartProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
902
606
  if (output.statusCode !== 200 && output.statusCode >= 300) {
903
- return de_StartProductSubscriptionCommandError(output, context);
607
+ return de_CommandError(output, context);
904
608
  }
905
609
  const contents = (0, import_smithy_client.map)({
906
610
  $metadata: deserializeMetadata(output)
@@ -912,46 +616,9 @@ var de_StartProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, c
912
616
  Object.assign(contents, doc);
913
617
  return contents;
914
618
  }, "de_StartProductSubscriptionCommand");
915
- var de_StartProductSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
916
- const parsedOutput = {
917
- ...output,
918
- body: await parseErrorBody(output.body, context)
919
- };
920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
- switch (errorCode) {
922
- case "AccessDeniedException":
923
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
924
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
925
- case "ConflictException":
926
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
927
- throw await de_ConflictExceptionRes(parsedOutput, context);
928
- case "InternalServerException":
929
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
930
- throw await de_InternalServerExceptionRes(parsedOutput, context);
931
- case "ResourceNotFoundException":
932
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
933
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
934
- case "ServiceQuotaExceededException":
935
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
936
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
937
- case "ThrottlingException":
938
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
939
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
940
- case "ValidationException":
941
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
942
- throw await de_ValidationExceptionRes(parsedOutput, context);
943
- default:
944
- const parsedBody = parsedOutput.body;
945
- return throwDefaultError({
946
- output,
947
- parsedBody,
948
- errorCode
949
- });
950
- }
951
- }, "de_StartProductSubscriptionCommandError");
952
619
  var de_StopProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
953
620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
954
- return de_StopProductSubscriptionCommandError(output, context);
621
+ return de_CommandError(output, context);
955
622
  }
956
623
  const contents = (0, import_smithy_client.map)({
957
624
  $metadata: deserializeMetadata(output)
@@ -963,46 +630,9 @@ var de_StopProductSubscriptionCommand = /* @__PURE__ */ __name(async (output, co
963
630
  Object.assign(contents, doc);
964
631
  return contents;
965
632
  }, "de_StopProductSubscriptionCommand");
966
- var de_StopProductSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
967
- const parsedOutput = {
968
- ...output,
969
- body: await parseErrorBody(output.body, context)
970
- };
971
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
972
- switch (errorCode) {
973
- case "AccessDeniedException":
974
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
975
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
976
- case "ConflictException":
977
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
978
- throw await de_ConflictExceptionRes(parsedOutput, context);
979
- case "InternalServerException":
980
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
981
- throw await de_InternalServerExceptionRes(parsedOutput, context);
982
- case "ResourceNotFoundException":
983
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
984
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
985
- case "ServiceQuotaExceededException":
986
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
987
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
988
- case "ThrottlingException":
989
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
990
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
991
- case "ValidationException":
992
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
993
- throw await de_ValidationExceptionRes(parsedOutput, context);
994
- default:
995
- const parsedBody = parsedOutput.body;
996
- return throwDefaultError({
997
- output,
998
- parsedBody,
999
- errorCode
1000
- });
1001
- }
1002
- }, "de_StopProductSubscriptionCommandError");
1003
633
  var de_UpdateIdentityProviderSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1004
634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1005
- return de_UpdateIdentityProviderSettingsCommandError(output, context);
635
+ return de_CommandError(output, context);
1006
636
  }
1007
637
  const contents = (0, import_smithy_client.map)({
1008
638
  $metadata: deserializeMetadata(output)
@@ -1014,7 +644,7 @@ var de_UpdateIdentityProviderSettingsCommand = /* @__PURE__ */ __name(async (out
1014
644
  Object.assign(contents, doc);
1015
645
  return contents;
1016
646
  }, "de_UpdateIdentityProviderSettingsCommand");
1017
- var de_UpdateIdentityProviderSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
647
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1018
648
  const parsedOutput = {
1019
649
  ...output,
1020
650
  body: await parseErrorBody(output.body, context)
@@ -1024,9 +654,18 @@ var de_UpdateIdentityProviderSettingsCommandError = /* @__PURE__ */ __name(async
1024
654
  case "AccessDeniedException":
1025
655
  case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
1026
656
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
657
+ case "ConflictException":
658
+ case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
659
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1027
660
  case "InternalServerException":
1028
661
  case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
1029
662
  throw await de_InternalServerExceptionRes(parsedOutput, context);
663
+ case "ResourceNotFoundException":
664
+ case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
665
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
666
+ case "ServiceQuotaExceededException":
667
+ case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
668
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1030
669
  case "ThrottlingException":
1031
670
  case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
1032
671
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1041,7 +680,7 @@ var de_UpdateIdentityProviderSettingsCommandError = /* @__PURE__ */ __name(async
1041
680
  errorCode
1042
681
  });
1043
682
  }
1044
- }, "de_UpdateIdentityProviderSettingsCommandError");
683
+ }, "de_CommandError");
1045
684
  var throwDefaultError = (0, import_smithy_client.withBaseException)(LicenseManagerUserSubscriptionsServiceException);
1046
685
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1047
686
  const contents = (0, import_smithy_client.map)({});
@@ -175,7 +175,7 @@ export const se_UpdateIdentityProviderSettingsCommand = async (input, context) =
175
175
  };
176
176
  export const de_AssociateUserCommand = async (output, context) => {
177
177
  if (output.statusCode !== 200 && output.statusCode >= 300) {
178
- return de_AssociateUserCommandError(output, context);
178
+ return de_CommandError(output, context);
179
179
  }
180
180
  const contents = map({
181
181
  $metadata: deserializeMetadata(output),
@@ -187,46 +187,9 @@ export const de_AssociateUserCommand = async (output, context) => {
187
187
  Object.assign(contents, doc);
188
188
  return contents;
189
189
  };
190
- const de_AssociateUserCommandError = async (output, context) => {
191
- const parsedOutput = {
192
- ...output,
193
- body: await parseErrorBody(output.body, context),
194
- };
195
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
196
- switch (errorCode) {
197
- case "AccessDeniedException":
198
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
199
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
200
- case "ConflictException":
201
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
202
- throw await de_ConflictExceptionRes(parsedOutput, context);
203
- case "InternalServerException":
204
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
205
- throw await de_InternalServerExceptionRes(parsedOutput, context);
206
- case "ResourceNotFoundException":
207
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
208
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
209
- case "ServiceQuotaExceededException":
210
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
211
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
212
- case "ThrottlingException":
213
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
214
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
215
- case "ValidationException":
216
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
217
- throw await de_ValidationExceptionRes(parsedOutput, context);
218
- default:
219
- const parsedBody = parsedOutput.body;
220
- return throwDefaultError({
221
- output,
222
- parsedBody,
223
- errorCode,
224
- });
225
- }
226
- };
227
190
  export const de_DeregisterIdentityProviderCommand = async (output, context) => {
228
191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
229
- return de_DeregisterIdentityProviderCommandError(output, context);
192
+ return de_CommandError(output, context);
230
193
  }
231
194
  const contents = map({
232
195
  $metadata: deserializeMetadata(output),
@@ -238,46 +201,9 @@ export const de_DeregisterIdentityProviderCommand = async (output, context) => {
238
201
  Object.assign(contents, doc);
239
202
  return contents;
240
203
  };
241
- const de_DeregisterIdentityProviderCommandError = async (output, context) => {
242
- const parsedOutput = {
243
- ...output,
244
- body: await parseErrorBody(output.body, context),
245
- };
246
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
247
- switch (errorCode) {
248
- case "AccessDeniedException":
249
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
250
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
251
- case "ConflictException":
252
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
253
- throw await de_ConflictExceptionRes(parsedOutput, context);
254
- case "InternalServerException":
255
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
256
- throw await de_InternalServerExceptionRes(parsedOutput, context);
257
- case "ResourceNotFoundException":
258
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
260
- case "ServiceQuotaExceededException":
261
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
262
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
263
- case "ThrottlingException":
264
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
265
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
266
- case "ValidationException":
267
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
268
- throw await de_ValidationExceptionRes(parsedOutput, context);
269
- default:
270
- const parsedBody = parsedOutput.body;
271
- return throwDefaultError({
272
- output,
273
- parsedBody,
274
- errorCode,
275
- });
276
- }
277
- };
278
204
  export const de_DisassociateUserCommand = async (output, context) => {
279
205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
280
- return de_DisassociateUserCommandError(output, context);
206
+ return de_CommandError(output, context);
281
207
  }
282
208
  const contents = map({
283
209
  $metadata: deserializeMetadata(output),
@@ -289,46 +215,9 @@ export const de_DisassociateUserCommand = async (output, context) => {
289
215
  Object.assign(contents, doc);
290
216
  return contents;
291
217
  };
292
- const de_DisassociateUserCommandError = async (output, context) => {
293
- const parsedOutput = {
294
- ...output,
295
- body: await parseErrorBody(output.body, context),
296
- };
297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
298
- switch (errorCode) {
299
- case "AccessDeniedException":
300
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
301
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
302
- case "ConflictException":
303
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
304
- throw await de_ConflictExceptionRes(parsedOutput, context);
305
- case "InternalServerException":
306
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
307
- throw await de_InternalServerExceptionRes(parsedOutput, context);
308
- case "ResourceNotFoundException":
309
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
310
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
311
- case "ServiceQuotaExceededException":
312
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
313
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
314
- case "ThrottlingException":
315
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
316
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
317
- case "ValidationException":
318
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
319
- throw await de_ValidationExceptionRes(parsedOutput, context);
320
- default:
321
- const parsedBody = parsedOutput.body;
322
- return throwDefaultError({
323
- output,
324
- parsedBody,
325
- errorCode,
326
- });
327
- }
328
- };
329
218
  export const de_ListIdentityProvidersCommand = async (output, context) => {
330
219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
331
- return de_ListIdentityProvidersCommandError(output, context);
220
+ return de_CommandError(output, context);
332
221
  }
333
222
  const contents = map({
334
223
  $metadata: deserializeMetadata(output),
@@ -341,46 +230,9 @@ export const de_ListIdentityProvidersCommand = async (output, context) => {
341
230
  Object.assign(contents, doc);
342
231
  return contents;
343
232
  };
344
- const de_ListIdentityProvidersCommandError = async (output, context) => {
345
- const parsedOutput = {
346
- ...output,
347
- body: await parseErrorBody(output.body, context),
348
- };
349
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
350
- switch (errorCode) {
351
- case "AccessDeniedException":
352
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
353
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
354
- case "ConflictException":
355
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
356
- throw await de_ConflictExceptionRes(parsedOutput, context);
357
- case "InternalServerException":
358
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
359
- throw await de_InternalServerExceptionRes(parsedOutput, context);
360
- case "ResourceNotFoundException":
361
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
362
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
363
- case "ServiceQuotaExceededException":
364
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
365
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
366
- case "ThrottlingException":
367
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
368
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
369
- case "ValidationException":
370
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
371
- throw await de_ValidationExceptionRes(parsedOutput, context);
372
- default:
373
- const parsedBody = parsedOutput.body;
374
- return throwDefaultError({
375
- output,
376
- parsedBody,
377
- errorCode,
378
- });
379
- }
380
- };
381
233
  export const de_ListInstancesCommand = async (output, context) => {
382
234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
383
- return de_ListInstancesCommandError(output, context);
235
+ return de_CommandError(output, context);
384
236
  }
385
237
  const contents = map({
386
238
  $metadata: deserializeMetadata(output),
@@ -393,46 +245,9 @@ export const de_ListInstancesCommand = async (output, context) => {
393
245
  Object.assign(contents, doc);
394
246
  return contents;
395
247
  };
396
- const de_ListInstancesCommandError = async (output, context) => {
397
- const parsedOutput = {
398
- ...output,
399
- body: await parseErrorBody(output.body, context),
400
- };
401
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
402
- switch (errorCode) {
403
- case "AccessDeniedException":
404
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
405
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
406
- case "ConflictException":
407
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
408
- throw await de_ConflictExceptionRes(parsedOutput, context);
409
- case "InternalServerException":
410
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
411
- throw await de_InternalServerExceptionRes(parsedOutput, context);
412
- case "ResourceNotFoundException":
413
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
414
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
415
- case "ServiceQuotaExceededException":
416
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
417
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
418
- case "ThrottlingException":
419
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
420
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
421
- case "ValidationException":
422
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
423
- throw await de_ValidationExceptionRes(parsedOutput, context);
424
- default:
425
- const parsedBody = parsedOutput.body;
426
- return throwDefaultError({
427
- output,
428
- parsedBody,
429
- errorCode,
430
- });
431
- }
432
- };
433
248
  export const de_ListProductSubscriptionsCommand = async (output, context) => {
434
249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
435
- return de_ListProductSubscriptionsCommandError(output, context);
250
+ return de_CommandError(output, context);
436
251
  }
437
252
  const contents = map({
438
253
  $metadata: deserializeMetadata(output),
@@ -445,46 +260,9 @@ export const de_ListProductSubscriptionsCommand = async (output, context) => {
445
260
  Object.assign(contents, doc);
446
261
  return contents;
447
262
  };
448
- const de_ListProductSubscriptionsCommandError = async (output, context) => {
449
- const parsedOutput = {
450
- ...output,
451
- body: await parseErrorBody(output.body, context),
452
- };
453
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
454
- switch (errorCode) {
455
- case "AccessDeniedException":
456
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
457
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
458
- case "ConflictException":
459
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
460
- throw await de_ConflictExceptionRes(parsedOutput, context);
461
- case "InternalServerException":
462
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
463
- throw await de_InternalServerExceptionRes(parsedOutput, context);
464
- case "ResourceNotFoundException":
465
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
466
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
467
- case "ServiceQuotaExceededException":
468
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
469
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
470
- case "ThrottlingException":
471
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
472
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
473
- case "ValidationException":
474
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
475
- throw await de_ValidationExceptionRes(parsedOutput, context);
476
- default:
477
- const parsedBody = parsedOutput.body;
478
- return throwDefaultError({
479
- output,
480
- parsedBody,
481
- errorCode,
482
- });
483
- }
484
- };
485
263
  export const de_ListUserAssociationsCommand = async (output, context) => {
486
264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
487
- return de_ListUserAssociationsCommandError(output, context);
265
+ return de_CommandError(output, context);
488
266
  }
489
267
  const contents = map({
490
268
  $metadata: deserializeMetadata(output),
@@ -497,46 +275,9 @@ export const de_ListUserAssociationsCommand = async (output, context) => {
497
275
  Object.assign(contents, doc);
498
276
  return contents;
499
277
  };
500
- const de_ListUserAssociationsCommandError = async (output, context) => {
501
- const parsedOutput = {
502
- ...output,
503
- body: await parseErrorBody(output.body, context),
504
- };
505
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
506
- switch (errorCode) {
507
- case "AccessDeniedException":
508
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
509
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
510
- case "ConflictException":
511
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
512
- throw await de_ConflictExceptionRes(parsedOutput, context);
513
- case "InternalServerException":
514
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
515
- throw await de_InternalServerExceptionRes(parsedOutput, context);
516
- case "ResourceNotFoundException":
517
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
518
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
519
- case "ServiceQuotaExceededException":
520
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
521
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
522
- case "ThrottlingException":
523
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
524
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
525
- case "ValidationException":
526
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
527
- throw await de_ValidationExceptionRes(parsedOutput, context);
528
- default:
529
- const parsedBody = parsedOutput.body;
530
- return throwDefaultError({
531
- output,
532
- parsedBody,
533
- errorCode,
534
- });
535
- }
536
- };
537
278
  export const de_RegisterIdentityProviderCommand = async (output, context) => {
538
279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
539
- return de_RegisterIdentityProviderCommandError(output, context);
280
+ return de_CommandError(output, context);
540
281
  }
541
282
  const contents = map({
542
283
  $metadata: deserializeMetadata(output),
@@ -548,46 +289,9 @@ export const de_RegisterIdentityProviderCommand = async (output, context) => {
548
289
  Object.assign(contents, doc);
549
290
  return contents;
550
291
  };
551
- const de_RegisterIdentityProviderCommandError = async (output, context) => {
552
- const parsedOutput = {
553
- ...output,
554
- body: await parseErrorBody(output.body, context),
555
- };
556
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
557
- switch (errorCode) {
558
- case "AccessDeniedException":
559
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
560
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
561
- case "ConflictException":
562
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
563
- throw await de_ConflictExceptionRes(parsedOutput, context);
564
- case "InternalServerException":
565
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
566
- throw await de_InternalServerExceptionRes(parsedOutput, context);
567
- case "ResourceNotFoundException":
568
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
569
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
570
- case "ServiceQuotaExceededException":
571
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
572
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
573
- case "ThrottlingException":
574
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
575
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
576
- case "ValidationException":
577
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
578
- throw await de_ValidationExceptionRes(parsedOutput, context);
579
- default:
580
- const parsedBody = parsedOutput.body;
581
- return throwDefaultError({
582
- output,
583
- parsedBody,
584
- errorCode,
585
- });
586
- }
587
- };
588
292
  export const de_StartProductSubscriptionCommand = async (output, context) => {
589
293
  if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_StartProductSubscriptionCommandError(output, context);
294
+ return de_CommandError(output, context);
591
295
  }
592
296
  const contents = map({
593
297
  $metadata: deserializeMetadata(output),
@@ -599,46 +303,9 @@ export const de_StartProductSubscriptionCommand = async (output, context) => {
599
303
  Object.assign(contents, doc);
600
304
  return contents;
601
305
  };
602
- const de_StartProductSubscriptionCommandError = async (output, context) => {
603
- const parsedOutput = {
604
- ...output,
605
- body: await parseErrorBody(output.body, context),
606
- };
607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
608
- switch (errorCode) {
609
- case "AccessDeniedException":
610
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
611
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
612
- case "ConflictException":
613
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
614
- throw await de_ConflictExceptionRes(parsedOutput, context);
615
- case "InternalServerException":
616
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
617
- throw await de_InternalServerExceptionRes(parsedOutput, context);
618
- case "ResourceNotFoundException":
619
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
620
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
621
- case "ServiceQuotaExceededException":
622
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
623
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
624
- case "ThrottlingException":
625
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
626
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
627
- case "ValidationException":
628
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
629
- throw await de_ValidationExceptionRes(parsedOutput, context);
630
- default:
631
- const parsedBody = parsedOutput.body;
632
- return throwDefaultError({
633
- output,
634
- parsedBody,
635
- errorCode,
636
- });
637
- }
638
- };
639
306
  export const de_StopProductSubscriptionCommand = async (output, context) => {
640
307
  if (output.statusCode !== 200 && output.statusCode >= 300) {
641
- return de_StopProductSubscriptionCommandError(output, context);
308
+ return de_CommandError(output, context);
642
309
  }
643
310
  const contents = map({
644
311
  $metadata: deserializeMetadata(output),
@@ -650,46 +317,9 @@ export const de_StopProductSubscriptionCommand = async (output, context) => {
650
317
  Object.assign(contents, doc);
651
318
  return contents;
652
319
  };
653
- const de_StopProductSubscriptionCommandError = async (output, context) => {
654
- const parsedOutput = {
655
- ...output,
656
- body: await parseErrorBody(output.body, context),
657
- };
658
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
659
- switch (errorCode) {
660
- case "AccessDeniedException":
661
- case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
662
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
663
- case "ConflictException":
664
- case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
665
- throw await de_ConflictExceptionRes(parsedOutput, context);
666
- case "InternalServerException":
667
- case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
668
- throw await de_InternalServerExceptionRes(parsedOutput, context);
669
- case "ResourceNotFoundException":
670
- case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
671
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
672
- case "ServiceQuotaExceededException":
673
- case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
674
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
675
- case "ThrottlingException":
676
- case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
677
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
678
- case "ValidationException":
679
- case "com.amazonaws.licensemanagerusersubscriptions#ValidationException":
680
- throw await de_ValidationExceptionRes(parsedOutput, context);
681
- default:
682
- const parsedBody = parsedOutput.body;
683
- return throwDefaultError({
684
- output,
685
- parsedBody,
686
- errorCode,
687
- });
688
- }
689
- };
690
320
  export const de_UpdateIdentityProviderSettingsCommand = async (output, context) => {
691
321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
692
- return de_UpdateIdentityProviderSettingsCommandError(output, context);
322
+ return de_CommandError(output, context);
693
323
  }
694
324
  const contents = map({
695
325
  $metadata: deserializeMetadata(output),
@@ -701,7 +331,7 @@ export const de_UpdateIdentityProviderSettingsCommand = async (output, context)
701
331
  Object.assign(contents, doc);
702
332
  return contents;
703
333
  };
704
- const de_UpdateIdentityProviderSettingsCommandError = async (output, context) => {
334
+ const de_CommandError = async (output, context) => {
705
335
  const parsedOutput = {
706
336
  ...output,
707
337
  body: await parseErrorBody(output.body, context),
@@ -711,9 +341,18 @@ const de_UpdateIdentityProviderSettingsCommandError = async (output, context) =>
711
341
  case "AccessDeniedException":
712
342
  case "com.amazonaws.licensemanagerusersubscriptions#AccessDeniedException":
713
343
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
344
+ case "ConflictException":
345
+ case "com.amazonaws.licensemanagerusersubscriptions#ConflictException":
346
+ throw await de_ConflictExceptionRes(parsedOutput, context);
714
347
  case "InternalServerException":
715
348
  case "com.amazonaws.licensemanagerusersubscriptions#InternalServerException":
716
349
  throw await de_InternalServerExceptionRes(parsedOutput, context);
350
+ case "ResourceNotFoundException":
351
+ case "com.amazonaws.licensemanagerusersubscriptions#ResourceNotFoundException":
352
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
353
+ case "ServiceQuotaExceededException":
354
+ case "com.amazonaws.licensemanagerusersubscriptions#ServiceQuotaExceededException":
355
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
717
356
  case "ThrottlingException":
718
357
  case "com.amazonaws.licensemanagerusersubscriptions#ThrottlingException":
719
358
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-license-manager-user-subscriptions",
3
3
  "description": "AWS SDK for JavaScript License Manager User Subscriptions Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
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-license-manager-user-subscriptions",
@@ -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.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
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",