@aws-sdk/client-sns 3.179.0 → 3.181.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.
@@ -568,20 +568,20 @@ exports.deserializeAws_queryAddPermissionCommand = deserializeAws_queryAddPermis
568
568
  const deserializeAws_queryAddPermissionCommandError = async (output, context) => {
569
569
  const parsedOutput = {
570
570
  ...output,
571
- body: await parseBody(output.body, context),
571
+ body: await parseErrorBody(output.body, context),
572
572
  };
573
573
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
574
574
  switch (errorCode) {
575
- case "AuthorizationErrorException":
575
+ case "AuthorizationError":
576
576
  case "com.amazonaws.sns#AuthorizationErrorException":
577
577
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
578
- case "InternalErrorException":
578
+ case "InternalError":
579
579
  case "com.amazonaws.sns#InternalErrorException":
580
580
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
581
- case "InvalidParameterException":
581
+ case "InvalidParameter":
582
582
  case "com.amazonaws.sns#InvalidParameterException":
583
583
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
584
- case "NotFoundException":
584
+ case "NotFound":
585
585
  case "com.amazonaws.sns#NotFoundException":
586
586
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
587
587
  default:
@@ -611,20 +611,20 @@ exports.deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = deserializeAws
611
611
  const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
612
612
  const parsedOutput = {
613
613
  ...output,
614
- body: await parseBody(output.body, context),
614
+ body: await parseErrorBody(output.body, context),
615
615
  };
616
616
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
617
617
  switch (errorCode) {
618
- case "AuthorizationErrorException":
618
+ case "AuthorizationError":
619
619
  case "com.amazonaws.sns#AuthorizationErrorException":
620
620
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
621
- case "InternalErrorException":
621
+ case "InternalError":
622
622
  case "com.amazonaws.sns#InternalErrorException":
623
623
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
624
- case "InvalidParameterException":
624
+ case "InvalidParameter":
625
625
  case "com.amazonaws.sns#InvalidParameterException":
626
626
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
627
- case "ThrottledException":
627
+ case "Throttled":
628
628
  case "com.amazonaws.sns#ThrottledException":
629
629
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
630
630
  default:
@@ -654,26 +654,26 @@ exports.deserializeAws_queryConfirmSubscriptionCommand = deserializeAws_queryCon
654
654
  const deserializeAws_queryConfirmSubscriptionCommandError = async (output, context) => {
655
655
  const parsedOutput = {
656
656
  ...output,
657
- body: await parseBody(output.body, context),
657
+ body: await parseErrorBody(output.body, context),
658
658
  };
659
659
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
660
660
  switch (errorCode) {
661
- case "AuthorizationErrorException":
661
+ case "AuthorizationError":
662
662
  case "com.amazonaws.sns#AuthorizationErrorException":
663
663
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
664
- case "FilterPolicyLimitExceededException":
664
+ case "FilterPolicyLimitExceeded":
665
665
  case "com.amazonaws.sns#FilterPolicyLimitExceededException":
666
666
  throw await deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context);
667
- case "InternalErrorException":
667
+ case "InternalError":
668
668
  case "com.amazonaws.sns#InternalErrorException":
669
669
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
670
- case "InvalidParameterException":
670
+ case "InvalidParameter":
671
671
  case "com.amazonaws.sns#InvalidParameterException":
672
672
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
673
- case "NotFoundException":
673
+ case "NotFound":
674
674
  case "com.amazonaws.sns#NotFoundException":
675
675
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
676
- case "SubscriptionLimitExceededException":
676
+ case "SubscriptionLimitExceeded":
677
677
  case "com.amazonaws.sns#SubscriptionLimitExceededException":
678
678
  throw await deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context);
679
679
  default:
@@ -703,17 +703,17 @@ exports.deserializeAws_queryCreatePlatformApplicationCommand = deserializeAws_qu
703
703
  const deserializeAws_queryCreatePlatformApplicationCommandError = async (output, context) => {
704
704
  const parsedOutput = {
705
705
  ...output,
706
- body: await parseBody(output.body, context),
706
+ body: await parseErrorBody(output.body, context),
707
707
  };
708
708
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
709
709
  switch (errorCode) {
710
- case "AuthorizationErrorException":
710
+ case "AuthorizationError":
711
711
  case "com.amazonaws.sns#AuthorizationErrorException":
712
712
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
713
- case "InternalErrorException":
713
+ case "InternalError":
714
714
  case "com.amazonaws.sns#InternalErrorException":
715
715
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
716
- case "InvalidParameterException":
716
+ case "InvalidParameter":
717
717
  case "com.amazonaws.sns#InvalidParameterException":
718
718
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
719
719
  default:
@@ -743,20 +743,20 @@ exports.deserializeAws_queryCreatePlatformEndpointCommand = deserializeAws_query
743
743
  const deserializeAws_queryCreatePlatformEndpointCommandError = async (output, context) => {
744
744
  const parsedOutput = {
745
745
  ...output,
746
- body: await parseBody(output.body, context),
746
+ body: await parseErrorBody(output.body, context),
747
747
  };
748
748
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
749
749
  switch (errorCode) {
750
- case "AuthorizationErrorException":
750
+ case "AuthorizationError":
751
751
  case "com.amazonaws.sns#AuthorizationErrorException":
752
752
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
753
- case "InternalErrorException":
753
+ case "InternalError":
754
754
  case "com.amazonaws.sns#InternalErrorException":
755
755
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
756
- case "InvalidParameterException":
756
+ case "InvalidParameter":
757
757
  case "com.amazonaws.sns#InvalidParameterException":
758
758
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
759
- case "NotFoundException":
759
+ case "NotFound":
760
760
  case "com.amazonaws.sns#NotFoundException":
761
761
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
762
762
  default:
@@ -786,26 +786,26 @@ exports.deserializeAws_queryCreateSMSSandboxPhoneNumberCommand = deserializeAws_
786
786
  const deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
787
787
  const parsedOutput = {
788
788
  ...output,
789
- body: await parseBody(output.body, context),
789
+ body: await parseErrorBody(output.body, context),
790
790
  };
791
791
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
792
792
  switch (errorCode) {
793
- case "AuthorizationErrorException":
793
+ case "AuthorizationError":
794
794
  case "com.amazonaws.sns#AuthorizationErrorException":
795
795
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
796
- case "InternalErrorException":
796
+ case "InternalError":
797
797
  case "com.amazonaws.sns#InternalErrorException":
798
798
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
799
- case "InvalidParameterException":
799
+ case "InvalidParameter":
800
800
  case "com.amazonaws.sns#InvalidParameterException":
801
801
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
802
- case "OptedOutException":
802
+ case "OptedOut":
803
803
  case "com.amazonaws.sns#OptedOutException":
804
804
  throw await deserializeAws_queryOptedOutExceptionResponse(parsedOutput, context);
805
- case "ThrottledException":
805
+ case "Throttled":
806
806
  case "com.amazonaws.sns#ThrottledException":
807
807
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
808
- case "UserErrorException":
808
+ case "UserError":
809
809
  case "com.amazonaws.sns#UserErrorException":
810
810
  throw await deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context);
811
811
  default:
@@ -835,35 +835,35 @@ exports.deserializeAws_queryCreateTopicCommand = deserializeAws_queryCreateTopic
835
835
  const deserializeAws_queryCreateTopicCommandError = async (output, context) => {
836
836
  const parsedOutput = {
837
837
  ...output,
838
- body: await parseBody(output.body, context),
838
+ body: await parseErrorBody(output.body, context),
839
839
  };
840
840
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
841
841
  switch (errorCode) {
842
- case "AuthorizationErrorException":
842
+ case "AuthorizationError":
843
843
  case "com.amazonaws.sns#AuthorizationErrorException":
844
844
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
845
- case "ConcurrentAccessException":
845
+ case "ConcurrentAccess":
846
846
  case "com.amazonaws.sns#ConcurrentAccessException":
847
847
  throw await deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context);
848
- case "InternalErrorException":
848
+ case "InternalError":
849
849
  case "com.amazonaws.sns#InternalErrorException":
850
850
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
851
- case "InvalidParameterException":
851
+ case "InvalidParameter":
852
852
  case "com.amazonaws.sns#InvalidParameterException":
853
853
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
854
- case "InvalidSecurityException":
854
+ case "InvalidSecurity":
855
855
  case "com.amazonaws.sns#InvalidSecurityException":
856
856
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
857
- case "StaleTagException":
857
+ case "StaleTag":
858
858
  case "com.amazonaws.sns#StaleTagException":
859
859
  throw await deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context);
860
- case "TagLimitExceededException":
860
+ case "TagLimitExceeded":
861
861
  case "com.amazonaws.sns#TagLimitExceededException":
862
862
  throw await deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context);
863
- case "TagPolicyException":
863
+ case "TagPolicy":
864
864
  case "com.amazonaws.sns#TagPolicyException":
865
865
  throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
866
- case "TopicLimitExceededException":
866
+ case "TopicLimitExceeded":
867
867
  case "com.amazonaws.sns#TopicLimitExceededException":
868
868
  throw await deserializeAws_queryTopicLimitExceededExceptionResponse(parsedOutput, context);
869
869
  default:
@@ -890,17 +890,17 @@ exports.deserializeAws_queryDeleteEndpointCommand = deserializeAws_queryDeleteEn
890
890
  const deserializeAws_queryDeleteEndpointCommandError = async (output, context) => {
891
891
  const parsedOutput = {
892
892
  ...output,
893
- body: await parseBody(output.body, context),
893
+ body: await parseErrorBody(output.body, context),
894
894
  };
895
895
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
896
896
  switch (errorCode) {
897
- case "AuthorizationErrorException":
897
+ case "AuthorizationError":
898
898
  case "com.amazonaws.sns#AuthorizationErrorException":
899
899
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
900
- case "InternalErrorException":
900
+ case "InternalError":
901
901
  case "com.amazonaws.sns#InternalErrorException":
902
902
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
903
- case "InvalidParameterException":
903
+ case "InvalidParameter":
904
904
  case "com.amazonaws.sns#InvalidParameterException":
905
905
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
906
906
  default:
@@ -927,17 +927,17 @@ exports.deserializeAws_queryDeletePlatformApplicationCommand = deserializeAws_qu
927
927
  const deserializeAws_queryDeletePlatformApplicationCommandError = async (output, context) => {
928
928
  const parsedOutput = {
929
929
  ...output,
930
- body: await parseBody(output.body, context),
930
+ body: await parseErrorBody(output.body, context),
931
931
  };
932
932
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
933
933
  switch (errorCode) {
934
- case "AuthorizationErrorException":
934
+ case "AuthorizationError":
935
935
  case "com.amazonaws.sns#AuthorizationErrorException":
936
936
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
937
- case "InternalErrorException":
937
+ case "InternalError":
938
938
  case "com.amazonaws.sns#InternalErrorException":
939
939
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
940
- case "InvalidParameterException":
940
+ case "InvalidParameter":
941
941
  case "com.amazonaws.sns#InvalidParameterException":
942
942
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
943
943
  default:
@@ -967,26 +967,26 @@ exports.deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = deserializeAws_
967
967
  const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
968
968
  const parsedOutput = {
969
969
  ...output,
970
- body: await parseBody(output.body, context),
970
+ body: await parseErrorBody(output.body, context),
971
971
  };
972
972
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
973
973
  switch (errorCode) {
974
- case "AuthorizationErrorException":
974
+ case "AuthorizationError":
975
975
  case "com.amazonaws.sns#AuthorizationErrorException":
976
976
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
977
- case "InternalErrorException":
977
+ case "InternalError":
978
978
  case "com.amazonaws.sns#InternalErrorException":
979
979
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
980
- case "InvalidParameterException":
980
+ case "InvalidParameter":
981
981
  case "com.amazonaws.sns#InvalidParameterException":
982
982
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
983
- case "ResourceNotFoundException":
983
+ case "ResourceNotFound":
984
984
  case "com.amazonaws.sns#ResourceNotFoundException":
985
985
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
986
- case "ThrottledException":
986
+ case "Throttled":
987
987
  case "com.amazonaws.sns#ThrottledException":
988
988
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
989
- case "UserErrorException":
989
+ case "UserError":
990
990
  case "com.amazonaws.sns#UserErrorException":
991
991
  throw await deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context);
992
992
  default:
@@ -1013,29 +1013,29 @@ exports.deserializeAws_queryDeleteTopicCommand = deserializeAws_queryDeleteTopic
1013
1013
  const deserializeAws_queryDeleteTopicCommandError = async (output, context) => {
1014
1014
  const parsedOutput = {
1015
1015
  ...output,
1016
- body: await parseBody(output.body, context),
1016
+ body: await parseErrorBody(output.body, context),
1017
1017
  };
1018
1018
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1019
1019
  switch (errorCode) {
1020
- case "AuthorizationErrorException":
1020
+ case "AuthorizationError":
1021
1021
  case "com.amazonaws.sns#AuthorizationErrorException":
1022
1022
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1023
- case "ConcurrentAccessException":
1023
+ case "ConcurrentAccess":
1024
1024
  case "com.amazonaws.sns#ConcurrentAccessException":
1025
1025
  throw await deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context);
1026
- case "InternalErrorException":
1026
+ case "InternalError":
1027
1027
  case "com.amazonaws.sns#InternalErrorException":
1028
1028
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1029
- case "InvalidParameterException":
1029
+ case "InvalidParameter":
1030
1030
  case "com.amazonaws.sns#InvalidParameterException":
1031
1031
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1032
- case "NotFoundException":
1032
+ case "NotFound":
1033
1033
  case "com.amazonaws.sns#NotFoundException":
1034
1034
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1035
- case "StaleTagException":
1035
+ case "StaleTag":
1036
1036
  case "com.amazonaws.sns#StaleTagException":
1037
1037
  throw await deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context);
1038
- case "TagPolicyException":
1038
+ case "TagPolicy":
1039
1039
  case "com.amazonaws.sns#TagPolicyException":
1040
1040
  throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
1041
1041
  default:
@@ -1065,23 +1065,23 @@ exports.deserializeAws_queryGetDataProtectionPolicyCommand = deserializeAws_quer
1065
1065
  const deserializeAws_queryGetDataProtectionPolicyCommandError = async (output, context) => {
1066
1066
  const parsedOutput = {
1067
1067
  ...output,
1068
- body: await parseBody(output.body, context),
1068
+ body: await parseErrorBody(output.body, context),
1069
1069
  };
1070
1070
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1071
1071
  switch (errorCode) {
1072
- case "AuthorizationErrorException":
1072
+ case "AuthorizationError":
1073
1073
  case "com.amazonaws.sns#AuthorizationErrorException":
1074
1074
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1075
- case "InternalErrorException":
1075
+ case "InternalError":
1076
1076
  case "com.amazonaws.sns#InternalErrorException":
1077
1077
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1078
- case "InvalidParameterException":
1078
+ case "InvalidParameter":
1079
1079
  case "com.amazonaws.sns#InvalidParameterException":
1080
1080
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1081
- case "InvalidSecurityException":
1081
+ case "InvalidSecurity":
1082
1082
  case "com.amazonaws.sns#InvalidSecurityException":
1083
1083
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
1084
- case "NotFoundException":
1084
+ case "NotFound":
1085
1085
  case "com.amazonaws.sns#NotFoundException":
1086
1086
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1087
1087
  default:
@@ -1111,20 +1111,20 @@ exports.deserializeAws_queryGetEndpointAttributesCommand = deserializeAws_queryG
1111
1111
  const deserializeAws_queryGetEndpointAttributesCommandError = async (output, context) => {
1112
1112
  const parsedOutput = {
1113
1113
  ...output,
1114
- body: await parseBody(output.body, context),
1114
+ body: await parseErrorBody(output.body, context),
1115
1115
  };
1116
1116
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1117
1117
  switch (errorCode) {
1118
- case "AuthorizationErrorException":
1118
+ case "AuthorizationError":
1119
1119
  case "com.amazonaws.sns#AuthorizationErrorException":
1120
1120
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1121
- case "InternalErrorException":
1121
+ case "InternalError":
1122
1122
  case "com.amazonaws.sns#InternalErrorException":
1123
1123
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1124
- case "InvalidParameterException":
1124
+ case "InvalidParameter":
1125
1125
  case "com.amazonaws.sns#InvalidParameterException":
1126
1126
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1127
- case "NotFoundException":
1127
+ case "NotFound":
1128
1128
  case "com.amazonaws.sns#NotFoundException":
1129
1129
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1130
1130
  default:
@@ -1154,20 +1154,20 @@ exports.deserializeAws_queryGetPlatformApplicationAttributesCommand = deserializ
1154
1154
  const deserializeAws_queryGetPlatformApplicationAttributesCommandError = async (output, context) => {
1155
1155
  const parsedOutput = {
1156
1156
  ...output,
1157
- body: await parseBody(output.body, context),
1157
+ body: await parseErrorBody(output.body, context),
1158
1158
  };
1159
1159
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1160
1160
  switch (errorCode) {
1161
- case "AuthorizationErrorException":
1161
+ case "AuthorizationError":
1162
1162
  case "com.amazonaws.sns#AuthorizationErrorException":
1163
1163
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1164
- case "InternalErrorException":
1164
+ case "InternalError":
1165
1165
  case "com.amazonaws.sns#InternalErrorException":
1166
1166
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1167
- case "InvalidParameterException":
1167
+ case "InvalidParameter":
1168
1168
  case "com.amazonaws.sns#InvalidParameterException":
1169
1169
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1170
- case "NotFoundException":
1170
+ case "NotFound":
1171
1171
  case "com.amazonaws.sns#NotFoundException":
1172
1172
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1173
1173
  default:
@@ -1197,20 +1197,20 @@ exports.deserializeAws_queryGetSMSAttributesCommand = deserializeAws_queryGetSMS
1197
1197
  const deserializeAws_queryGetSMSAttributesCommandError = async (output, context) => {
1198
1198
  const parsedOutput = {
1199
1199
  ...output,
1200
- body: await parseBody(output.body, context),
1200
+ body: await parseErrorBody(output.body, context),
1201
1201
  };
1202
1202
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1203
1203
  switch (errorCode) {
1204
- case "AuthorizationErrorException":
1204
+ case "AuthorizationError":
1205
1205
  case "com.amazonaws.sns#AuthorizationErrorException":
1206
1206
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1207
- case "InternalErrorException":
1207
+ case "InternalError":
1208
1208
  case "com.amazonaws.sns#InternalErrorException":
1209
1209
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1210
- case "InvalidParameterException":
1210
+ case "InvalidParameter":
1211
1211
  case "com.amazonaws.sns#InvalidParameterException":
1212
1212
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1213
- case "ThrottledException":
1213
+ case "Throttled":
1214
1214
  case "com.amazonaws.sns#ThrottledException":
1215
1215
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1216
1216
  default:
@@ -1240,17 +1240,17 @@ exports.deserializeAws_queryGetSMSSandboxAccountStatusCommand = deserializeAws_q
1240
1240
  const deserializeAws_queryGetSMSSandboxAccountStatusCommandError = async (output, context) => {
1241
1241
  const parsedOutput = {
1242
1242
  ...output,
1243
- body: await parseBody(output.body, context),
1243
+ body: await parseErrorBody(output.body, context),
1244
1244
  };
1245
1245
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1246
1246
  switch (errorCode) {
1247
- case "AuthorizationErrorException":
1247
+ case "AuthorizationError":
1248
1248
  case "com.amazonaws.sns#AuthorizationErrorException":
1249
1249
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1250
- case "InternalErrorException":
1250
+ case "InternalError":
1251
1251
  case "com.amazonaws.sns#InternalErrorException":
1252
1252
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1253
- case "ThrottledException":
1253
+ case "Throttled":
1254
1254
  case "com.amazonaws.sns#ThrottledException":
1255
1255
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1256
1256
  default:
@@ -1280,20 +1280,20 @@ exports.deserializeAws_queryGetSubscriptionAttributesCommand = deserializeAws_qu
1280
1280
  const deserializeAws_queryGetSubscriptionAttributesCommandError = async (output, context) => {
1281
1281
  const parsedOutput = {
1282
1282
  ...output,
1283
- body: await parseBody(output.body, context),
1283
+ body: await parseErrorBody(output.body, context),
1284
1284
  };
1285
1285
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1286
1286
  switch (errorCode) {
1287
- case "AuthorizationErrorException":
1287
+ case "AuthorizationError":
1288
1288
  case "com.amazonaws.sns#AuthorizationErrorException":
1289
1289
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1290
- case "InternalErrorException":
1290
+ case "InternalError":
1291
1291
  case "com.amazonaws.sns#InternalErrorException":
1292
1292
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1293
- case "InvalidParameterException":
1293
+ case "InvalidParameter":
1294
1294
  case "com.amazonaws.sns#InvalidParameterException":
1295
1295
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1296
- case "NotFoundException":
1296
+ case "NotFound":
1297
1297
  case "com.amazonaws.sns#NotFoundException":
1298
1298
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1299
1299
  default:
@@ -1323,23 +1323,23 @@ exports.deserializeAws_queryGetTopicAttributesCommand = deserializeAws_queryGetT
1323
1323
  const deserializeAws_queryGetTopicAttributesCommandError = async (output, context) => {
1324
1324
  const parsedOutput = {
1325
1325
  ...output,
1326
- body: await parseBody(output.body, context),
1326
+ body: await parseErrorBody(output.body, context),
1327
1327
  };
1328
1328
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1329
1329
  switch (errorCode) {
1330
- case "AuthorizationErrorException":
1330
+ case "AuthorizationError":
1331
1331
  case "com.amazonaws.sns#AuthorizationErrorException":
1332
1332
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1333
- case "InternalErrorException":
1333
+ case "InternalError":
1334
1334
  case "com.amazonaws.sns#InternalErrorException":
1335
1335
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1336
- case "InvalidParameterException":
1336
+ case "InvalidParameter":
1337
1337
  case "com.amazonaws.sns#InvalidParameterException":
1338
1338
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1339
- case "InvalidSecurityException":
1339
+ case "InvalidSecurity":
1340
1340
  case "com.amazonaws.sns#InvalidSecurityException":
1341
1341
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
1342
- case "NotFoundException":
1342
+ case "NotFound":
1343
1343
  case "com.amazonaws.sns#NotFoundException":
1344
1344
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1345
1345
  default:
@@ -1369,20 +1369,20 @@ exports.deserializeAws_queryListEndpointsByPlatformApplicationCommand = deserial
1369
1369
  const deserializeAws_queryListEndpointsByPlatformApplicationCommandError = async (output, context) => {
1370
1370
  const parsedOutput = {
1371
1371
  ...output,
1372
- body: await parseBody(output.body, context),
1372
+ body: await parseErrorBody(output.body, context),
1373
1373
  };
1374
1374
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1375
1375
  switch (errorCode) {
1376
- case "AuthorizationErrorException":
1376
+ case "AuthorizationError":
1377
1377
  case "com.amazonaws.sns#AuthorizationErrorException":
1378
1378
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1379
- case "InternalErrorException":
1379
+ case "InternalError":
1380
1380
  case "com.amazonaws.sns#InternalErrorException":
1381
1381
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1382
- case "InvalidParameterException":
1382
+ case "InvalidParameter":
1383
1383
  case "com.amazonaws.sns#InvalidParameterException":
1384
1384
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1385
- case "NotFoundException":
1385
+ case "NotFound":
1386
1386
  case "com.amazonaws.sns#NotFoundException":
1387
1387
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1388
1388
  default:
@@ -1412,20 +1412,20 @@ exports.deserializeAws_queryListOriginationNumbersCommand = deserializeAws_query
1412
1412
  const deserializeAws_queryListOriginationNumbersCommandError = async (output, context) => {
1413
1413
  const parsedOutput = {
1414
1414
  ...output,
1415
- body: await parseBody(output.body, context),
1415
+ body: await parseErrorBody(output.body, context),
1416
1416
  };
1417
1417
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1418
1418
  switch (errorCode) {
1419
- case "AuthorizationErrorException":
1419
+ case "AuthorizationError":
1420
1420
  case "com.amazonaws.sns#AuthorizationErrorException":
1421
1421
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1422
- case "InternalErrorException":
1422
+ case "InternalError":
1423
1423
  case "com.amazonaws.sns#InternalErrorException":
1424
1424
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1425
- case "InvalidParameterException":
1425
+ case "InvalidParameter":
1426
1426
  case "com.amazonaws.sns#InvalidParameterException":
1427
1427
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1428
- case "ThrottledException":
1428
+ case "Throttled":
1429
1429
  case "com.amazonaws.sns#ThrottledException":
1430
1430
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1431
1431
  case "ValidationException":
@@ -1458,20 +1458,20 @@ exports.deserializeAws_queryListPhoneNumbersOptedOutCommand = deserializeAws_que
1458
1458
  const deserializeAws_queryListPhoneNumbersOptedOutCommandError = async (output, context) => {
1459
1459
  const parsedOutput = {
1460
1460
  ...output,
1461
- body: await parseBody(output.body, context),
1461
+ body: await parseErrorBody(output.body, context),
1462
1462
  };
1463
1463
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1464
1464
  switch (errorCode) {
1465
- case "AuthorizationErrorException":
1465
+ case "AuthorizationError":
1466
1466
  case "com.amazonaws.sns#AuthorizationErrorException":
1467
1467
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1468
- case "InternalErrorException":
1468
+ case "InternalError":
1469
1469
  case "com.amazonaws.sns#InternalErrorException":
1470
1470
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1471
- case "InvalidParameterException":
1471
+ case "InvalidParameter":
1472
1472
  case "com.amazonaws.sns#InvalidParameterException":
1473
1473
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1474
- case "ThrottledException":
1474
+ case "Throttled":
1475
1475
  case "com.amazonaws.sns#ThrottledException":
1476
1476
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1477
1477
  default:
@@ -1501,17 +1501,17 @@ exports.deserializeAws_queryListPlatformApplicationsCommand = deserializeAws_que
1501
1501
  const deserializeAws_queryListPlatformApplicationsCommandError = async (output, context) => {
1502
1502
  const parsedOutput = {
1503
1503
  ...output,
1504
- body: await parseBody(output.body, context),
1504
+ body: await parseErrorBody(output.body, context),
1505
1505
  };
1506
1506
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1507
1507
  switch (errorCode) {
1508
- case "AuthorizationErrorException":
1508
+ case "AuthorizationError":
1509
1509
  case "com.amazonaws.sns#AuthorizationErrorException":
1510
1510
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1511
- case "InternalErrorException":
1511
+ case "InternalError":
1512
1512
  case "com.amazonaws.sns#InternalErrorException":
1513
1513
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1514
- case "InvalidParameterException":
1514
+ case "InvalidParameter":
1515
1515
  case "com.amazonaws.sns#InvalidParameterException":
1516
1516
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1517
1517
  default:
@@ -1541,23 +1541,23 @@ exports.deserializeAws_queryListSMSSandboxPhoneNumbersCommand = deserializeAws_q
1541
1541
  const deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
1542
1542
  const parsedOutput = {
1543
1543
  ...output,
1544
- body: await parseBody(output.body, context),
1544
+ body: await parseErrorBody(output.body, context),
1545
1545
  };
1546
1546
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1547
1547
  switch (errorCode) {
1548
- case "AuthorizationErrorException":
1548
+ case "AuthorizationError":
1549
1549
  case "com.amazonaws.sns#AuthorizationErrorException":
1550
1550
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1551
- case "InternalErrorException":
1551
+ case "InternalError":
1552
1552
  case "com.amazonaws.sns#InternalErrorException":
1553
1553
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1554
- case "InvalidParameterException":
1554
+ case "InvalidParameter":
1555
1555
  case "com.amazonaws.sns#InvalidParameterException":
1556
1556
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1557
- case "ResourceNotFoundException":
1557
+ case "ResourceNotFound":
1558
1558
  case "com.amazonaws.sns#ResourceNotFoundException":
1559
1559
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1560
- case "ThrottledException":
1560
+ case "Throttled":
1561
1561
  case "com.amazonaws.sns#ThrottledException":
1562
1562
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1563
1563
  default:
@@ -1587,17 +1587,17 @@ exports.deserializeAws_queryListSubscriptionsCommand = deserializeAws_queryListS
1587
1587
  const deserializeAws_queryListSubscriptionsCommandError = async (output, context) => {
1588
1588
  const parsedOutput = {
1589
1589
  ...output,
1590
- body: await parseBody(output.body, context),
1590
+ body: await parseErrorBody(output.body, context),
1591
1591
  };
1592
1592
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1593
1593
  switch (errorCode) {
1594
- case "AuthorizationErrorException":
1594
+ case "AuthorizationError":
1595
1595
  case "com.amazonaws.sns#AuthorizationErrorException":
1596
1596
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1597
- case "InternalErrorException":
1597
+ case "InternalError":
1598
1598
  case "com.amazonaws.sns#InternalErrorException":
1599
1599
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1600
- case "InvalidParameterException":
1600
+ case "InvalidParameter":
1601
1601
  case "com.amazonaws.sns#InvalidParameterException":
1602
1602
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1603
1603
  default:
@@ -1627,20 +1627,20 @@ exports.deserializeAws_queryListSubscriptionsByTopicCommand = deserializeAws_que
1627
1627
  const deserializeAws_queryListSubscriptionsByTopicCommandError = async (output, context) => {
1628
1628
  const parsedOutput = {
1629
1629
  ...output,
1630
- body: await parseBody(output.body, context),
1630
+ body: await parseErrorBody(output.body, context),
1631
1631
  };
1632
1632
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1633
1633
  switch (errorCode) {
1634
- case "AuthorizationErrorException":
1634
+ case "AuthorizationError":
1635
1635
  case "com.amazonaws.sns#AuthorizationErrorException":
1636
1636
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1637
- case "InternalErrorException":
1637
+ case "InternalError":
1638
1638
  case "com.amazonaws.sns#InternalErrorException":
1639
1639
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1640
- case "InvalidParameterException":
1640
+ case "InvalidParameter":
1641
1641
  case "com.amazonaws.sns#InvalidParameterException":
1642
1642
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1643
- case "NotFoundException":
1643
+ case "NotFound":
1644
1644
  case "com.amazonaws.sns#NotFoundException":
1645
1645
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1646
1646
  default:
@@ -1670,23 +1670,23 @@ exports.deserializeAws_queryListTagsForResourceCommand = deserializeAws_queryLis
1670
1670
  const deserializeAws_queryListTagsForResourceCommandError = async (output, context) => {
1671
1671
  const parsedOutput = {
1672
1672
  ...output,
1673
- body: await parseBody(output.body, context),
1673
+ body: await parseErrorBody(output.body, context),
1674
1674
  };
1675
1675
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1676
1676
  switch (errorCode) {
1677
- case "AuthorizationErrorException":
1677
+ case "AuthorizationError":
1678
1678
  case "com.amazonaws.sns#AuthorizationErrorException":
1679
1679
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1680
- case "ConcurrentAccessException":
1680
+ case "ConcurrentAccess":
1681
1681
  case "com.amazonaws.sns#ConcurrentAccessException":
1682
1682
  throw await deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context);
1683
- case "InvalidParameterException":
1683
+ case "InvalidParameter":
1684
1684
  case "com.amazonaws.sns#InvalidParameterException":
1685
1685
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1686
- case "ResourceNotFoundException":
1686
+ case "ResourceNotFound":
1687
1687
  case "com.amazonaws.sns#ResourceNotFoundException":
1688
1688
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
1689
- case "TagPolicyException":
1689
+ case "TagPolicy":
1690
1690
  case "com.amazonaws.sns#TagPolicyException":
1691
1691
  throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
1692
1692
  default:
@@ -1716,17 +1716,17 @@ exports.deserializeAws_queryListTopicsCommand = deserializeAws_queryListTopicsCo
1716
1716
  const deserializeAws_queryListTopicsCommandError = async (output, context) => {
1717
1717
  const parsedOutput = {
1718
1718
  ...output,
1719
- body: await parseBody(output.body, context),
1719
+ body: await parseErrorBody(output.body, context),
1720
1720
  };
1721
1721
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1722
1722
  switch (errorCode) {
1723
- case "AuthorizationErrorException":
1723
+ case "AuthorizationError":
1724
1724
  case "com.amazonaws.sns#AuthorizationErrorException":
1725
1725
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1726
- case "InternalErrorException":
1726
+ case "InternalError":
1727
1727
  case "com.amazonaws.sns#InternalErrorException":
1728
1728
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1729
- case "InvalidParameterException":
1729
+ case "InvalidParameter":
1730
1730
  case "com.amazonaws.sns#InvalidParameterException":
1731
1731
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1732
1732
  default:
@@ -1756,20 +1756,20 @@ exports.deserializeAws_queryOptInPhoneNumberCommand = deserializeAws_queryOptInP
1756
1756
  const deserializeAws_queryOptInPhoneNumberCommandError = async (output, context) => {
1757
1757
  const parsedOutput = {
1758
1758
  ...output,
1759
- body: await parseBody(output.body, context),
1759
+ body: await parseErrorBody(output.body, context),
1760
1760
  };
1761
1761
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1762
1762
  switch (errorCode) {
1763
- case "AuthorizationErrorException":
1763
+ case "AuthorizationError":
1764
1764
  case "com.amazonaws.sns#AuthorizationErrorException":
1765
1765
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1766
- case "InternalErrorException":
1766
+ case "InternalError":
1767
1767
  case "com.amazonaws.sns#InternalErrorException":
1768
1768
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1769
- case "InvalidParameterException":
1769
+ case "InvalidParameter":
1770
1770
  case "com.amazonaws.sns#InvalidParameterException":
1771
1771
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1772
- case "ThrottledException":
1772
+ case "Throttled":
1773
1773
  case "com.amazonaws.sns#ThrottledException":
1774
1774
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
1775
1775
  default:
@@ -1799,50 +1799,50 @@ exports.deserializeAws_queryPublishCommand = deserializeAws_queryPublishCommand;
1799
1799
  const deserializeAws_queryPublishCommandError = async (output, context) => {
1800
1800
  const parsedOutput = {
1801
1801
  ...output,
1802
- body: await parseBody(output.body, context),
1802
+ body: await parseErrorBody(output.body, context),
1803
1803
  };
1804
1804
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1805
1805
  switch (errorCode) {
1806
- case "AuthorizationErrorException":
1806
+ case "AuthorizationError":
1807
1807
  case "com.amazonaws.sns#AuthorizationErrorException":
1808
1808
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1809
- case "EndpointDisabledException":
1809
+ case "EndpointDisabled":
1810
1810
  case "com.amazonaws.sns#EndpointDisabledException":
1811
1811
  throw await deserializeAws_queryEndpointDisabledExceptionResponse(parsedOutput, context);
1812
- case "InternalErrorException":
1812
+ case "InternalError":
1813
1813
  case "com.amazonaws.sns#InternalErrorException":
1814
1814
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1815
- case "InvalidParameterException":
1815
+ case "InvalidParameter":
1816
1816
  case "com.amazonaws.sns#InvalidParameterException":
1817
1817
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1818
- case "InvalidParameterValueException":
1819
- case "com.amazonaws.sns#InvalidParameterValueException":
1820
- throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
1821
- case "InvalidSecurityException":
1818
+ case "InvalidSecurity":
1822
1819
  case "com.amazonaws.sns#InvalidSecurityException":
1823
1820
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
1824
- case "KMSAccessDeniedException":
1821
+ case "KMSAccessDenied":
1825
1822
  case "com.amazonaws.sns#KMSAccessDeniedException":
1826
1823
  throw await deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context);
1827
- case "KMSDisabledException":
1824
+ case "KMSDisabled":
1828
1825
  case "com.amazonaws.sns#KMSDisabledException":
1829
1826
  throw await deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context);
1830
- case "KMSInvalidStateException":
1827
+ case "KMSInvalidState":
1831
1828
  case "com.amazonaws.sns#KMSInvalidStateException":
1832
1829
  throw await deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context);
1833
- case "KMSNotFoundException":
1830
+ case "KMSNotFound":
1834
1831
  case "com.amazonaws.sns#KMSNotFoundException":
1835
1832
  throw await deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context);
1836
1833
  case "KMSOptInRequired":
1837
1834
  case "com.amazonaws.sns#KMSOptInRequired":
1838
1835
  throw await deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context);
1839
- case "KMSThrottlingException":
1836
+ case "KMSThrottling":
1840
1837
  case "com.amazonaws.sns#KMSThrottlingException":
1841
1838
  throw await deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context);
1842
- case "NotFoundException":
1839
+ case "NotFound":
1843
1840
  case "com.amazonaws.sns#NotFoundException":
1844
1841
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1845
- case "PlatformApplicationDisabledException":
1842
+ case "ParameterValueInvalid":
1843
+ case "com.amazonaws.sns#InvalidParameterValueException":
1844
+ throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
1845
+ case "PlatformApplicationDisabled":
1846
1846
  case "com.amazonaws.sns#PlatformApplicationDisabledException":
1847
1847
  throw await deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context);
1848
1848
  case "ValidationException":
@@ -1875,65 +1875,65 @@ exports.deserializeAws_queryPublishBatchCommand = deserializeAws_queryPublishBat
1875
1875
  const deserializeAws_queryPublishBatchCommandError = async (output, context) => {
1876
1876
  const parsedOutput = {
1877
1877
  ...output,
1878
- body: await parseBody(output.body, context),
1878
+ body: await parseErrorBody(output.body, context),
1879
1879
  };
1880
1880
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1881
1881
  switch (errorCode) {
1882
- case "AuthorizationErrorException":
1882
+ case "AuthorizationError":
1883
1883
  case "com.amazonaws.sns#AuthorizationErrorException":
1884
1884
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1885
- case "BatchEntryIdsNotDistinctException":
1885
+ case "BatchEntryIdsNotDistinct":
1886
1886
  case "com.amazonaws.sns#BatchEntryIdsNotDistinctException":
1887
1887
  throw await deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse(parsedOutput, context);
1888
- case "BatchRequestTooLongException":
1888
+ case "BatchRequestTooLong":
1889
1889
  case "com.amazonaws.sns#BatchRequestTooLongException":
1890
1890
  throw await deserializeAws_queryBatchRequestTooLongExceptionResponse(parsedOutput, context);
1891
- case "EmptyBatchRequestException":
1891
+ case "EmptyBatchRequest":
1892
1892
  case "com.amazonaws.sns#EmptyBatchRequestException":
1893
1893
  throw await deserializeAws_queryEmptyBatchRequestExceptionResponse(parsedOutput, context);
1894
- case "EndpointDisabledException":
1894
+ case "EndpointDisabled":
1895
1895
  case "com.amazonaws.sns#EndpointDisabledException":
1896
1896
  throw await deserializeAws_queryEndpointDisabledExceptionResponse(parsedOutput, context);
1897
- case "InternalErrorException":
1897
+ case "InternalError":
1898
1898
  case "com.amazonaws.sns#InternalErrorException":
1899
1899
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1900
- case "InvalidBatchEntryIdException":
1900
+ case "InvalidBatchEntryId":
1901
1901
  case "com.amazonaws.sns#InvalidBatchEntryIdException":
1902
1902
  throw await deserializeAws_queryInvalidBatchEntryIdExceptionResponse(parsedOutput, context);
1903
- case "InvalidParameterException":
1903
+ case "InvalidParameter":
1904
1904
  case "com.amazonaws.sns#InvalidParameterException":
1905
1905
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1906
- case "InvalidParameterValueException":
1907
- case "com.amazonaws.sns#InvalidParameterValueException":
1908
- throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
1909
- case "InvalidSecurityException":
1906
+ case "InvalidSecurity":
1910
1907
  case "com.amazonaws.sns#InvalidSecurityException":
1911
1908
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
1912
- case "KMSAccessDeniedException":
1909
+ case "KMSAccessDenied":
1913
1910
  case "com.amazonaws.sns#KMSAccessDeniedException":
1914
1911
  throw await deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context);
1915
- case "KMSDisabledException":
1912
+ case "KMSDisabled":
1916
1913
  case "com.amazonaws.sns#KMSDisabledException":
1917
1914
  throw await deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context);
1918
- case "KMSInvalidStateException":
1915
+ case "KMSInvalidState":
1919
1916
  case "com.amazonaws.sns#KMSInvalidStateException":
1920
1917
  throw await deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context);
1921
- case "KMSNotFoundException":
1918
+ case "KMSNotFound":
1922
1919
  case "com.amazonaws.sns#KMSNotFoundException":
1923
1920
  throw await deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context);
1924
1921
  case "KMSOptInRequired":
1925
1922
  case "com.amazonaws.sns#KMSOptInRequired":
1926
1923
  throw await deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context);
1927
- case "KMSThrottlingException":
1924
+ case "KMSThrottling":
1928
1925
  case "com.amazonaws.sns#KMSThrottlingException":
1929
1926
  throw await deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context);
1930
- case "NotFoundException":
1927
+ case "NotFound":
1931
1928
  case "com.amazonaws.sns#NotFoundException":
1932
1929
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1933
- case "PlatformApplicationDisabledException":
1930
+ case "ParameterValueInvalid":
1931
+ case "com.amazonaws.sns#InvalidParameterValueException":
1932
+ throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
1933
+ case "PlatformApplicationDisabled":
1934
1934
  case "com.amazonaws.sns#PlatformApplicationDisabledException":
1935
1935
  throw await deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context);
1936
- case "TooManyEntriesInBatchRequestException":
1936
+ case "TooManyEntriesInBatchRequest":
1937
1937
  case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
1938
1938
  throw await deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context);
1939
1939
  case "ValidationException":
@@ -1963,23 +1963,23 @@ exports.deserializeAws_queryPutDataProtectionPolicyCommand = deserializeAws_quer
1963
1963
  const deserializeAws_queryPutDataProtectionPolicyCommandError = async (output, context) => {
1964
1964
  const parsedOutput = {
1965
1965
  ...output,
1966
- body: await parseBody(output.body, context),
1966
+ body: await parseErrorBody(output.body, context),
1967
1967
  };
1968
1968
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1969
1969
  switch (errorCode) {
1970
- case "AuthorizationErrorException":
1970
+ case "AuthorizationError":
1971
1971
  case "com.amazonaws.sns#AuthorizationErrorException":
1972
1972
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
1973
- case "InternalErrorException":
1973
+ case "InternalError":
1974
1974
  case "com.amazonaws.sns#InternalErrorException":
1975
1975
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
1976
- case "InvalidParameterException":
1976
+ case "InvalidParameter":
1977
1977
  case "com.amazonaws.sns#InvalidParameterException":
1978
1978
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
1979
- case "InvalidSecurityException":
1979
+ case "InvalidSecurity":
1980
1980
  case "com.amazonaws.sns#InvalidSecurityException":
1981
1981
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
1982
- case "NotFoundException":
1982
+ case "NotFound":
1983
1983
  case "com.amazonaws.sns#NotFoundException":
1984
1984
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
1985
1985
  default:
@@ -2006,20 +2006,20 @@ exports.deserializeAws_queryRemovePermissionCommand = deserializeAws_queryRemove
2006
2006
  const deserializeAws_queryRemovePermissionCommandError = async (output, context) => {
2007
2007
  const parsedOutput = {
2008
2008
  ...output,
2009
- body: await parseBody(output.body, context),
2009
+ body: await parseErrorBody(output.body, context),
2010
2010
  };
2011
2011
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2012
2012
  switch (errorCode) {
2013
- case "AuthorizationErrorException":
2013
+ case "AuthorizationError":
2014
2014
  case "com.amazonaws.sns#AuthorizationErrorException":
2015
2015
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2016
- case "InternalErrorException":
2016
+ case "InternalError":
2017
2017
  case "com.amazonaws.sns#InternalErrorException":
2018
2018
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2019
- case "InvalidParameterException":
2019
+ case "InvalidParameter":
2020
2020
  case "com.amazonaws.sns#InvalidParameterException":
2021
2021
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2022
- case "NotFoundException":
2022
+ case "NotFound":
2023
2023
  case "com.amazonaws.sns#NotFoundException":
2024
2024
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2025
2025
  default:
@@ -2046,20 +2046,20 @@ exports.deserializeAws_querySetEndpointAttributesCommand = deserializeAws_queryS
2046
2046
  const deserializeAws_querySetEndpointAttributesCommandError = async (output, context) => {
2047
2047
  const parsedOutput = {
2048
2048
  ...output,
2049
- body: await parseBody(output.body, context),
2049
+ body: await parseErrorBody(output.body, context),
2050
2050
  };
2051
2051
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2052
2052
  switch (errorCode) {
2053
- case "AuthorizationErrorException":
2053
+ case "AuthorizationError":
2054
2054
  case "com.amazonaws.sns#AuthorizationErrorException":
2055
2055
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2056
- case "InternalErrorException":
2056
+ case "InternalError":
2057
2057
  case "com.amazonaws.sns#InternalErrorException":
2058
2058
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2059
- case "InvalidParameterException":
2059
+ case "InvalidParameter":
2060
2060
  case "com.amazonaws.sns#InvalidParameterException":
2061
2061
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2062
- case "NotFoundException":
2062
+ case "NotFound":
2063
2063
  case "com.amazonaws.sns#NotFoundException":
2064
2064
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2065
2065
  default:
@@ -2086,20 +2086,20 @@ exports.deserializeAws_querySetPlatformApplicationAttributesCommand = deserializ
2086
2086
  const deserializeAws_querySetPlatformApplicationAttributesCommandError = async (output, context) => {
2087
2087
  const parsedOutput = {
2088
2088
  ...output,
2089
- body: await parseBody(output.body, context),
2089
+ body: await parseErrorBody(output.body, context),
2090
2090
  };
2091
2091
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2092
2092
  switch (errorCode) {
2093
- case "AuthorizationErrorException":
2093
+ case "AuthorizationError":
2094
2094
  case "com.amazonaws.sns#AuthorizationErrorException":
2095
2095
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2096
- case "InternalErrorException":
2096
+ case "InternalError":
2097
2097
  case "com.amazonaws.sns#InternalErrorException":
2098
2098
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2099
- case "InvalidParameterException":
2099
+ case "InvalidParameter":
2100
2100
  case "com.amazonaws.sns#InvalidParameterException":
2101
2101
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2102
- case "NotFoundException":
2102
+ case "NotFound":
2103
2103
  case "com.amazonaws.sns#NotFoundException":
2104
2104
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2105
2105
  default:
@@ -2129,20 +2129,20 @@ exports.deserializeAws_querySetSMSAttributesCommand = deserializeAws_querySetSMS
2129
2129
  const deserializeAws_querySetSMSAttributesCommandError = async (output, context) => {
2130
2130
  const parsedOutput = {
2131
2131
  ...output,
2132
- body: await parseBody(output.body, context),
2132
+ body: await parseErrorBody(output.body, context),
2133
2133
  };
2134
2134
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2135
2135
  switch (errorCode) {
2136
- case "AuthorizationErrorException":
2136
+ case "AuthorizationError":
2137
2137
  case "com.amazonaws.sns#AuthorizationErrorException":
2138
2138
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2139
- case "InternalErrorException":
2139
+ case "InternalError":
2140
2140
  case "com.amazonaws.sns#InternalErrorException":
2141
2141
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2142
- case "InvalidParameterException":
2142
+ case "InvalidParameter":
2143
2143
  case "com.amazonaws.sns#InvalidParameterException":
2144
2144
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2145
- case "ThrottledException":
2145
+ case "Throttled":
2146
2146
  case "com.amazonaws.sns#ThrottledException":
2147
2147
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
2148
2148
  default:
@@ -2169,23 +2169,23 @@ exports.deserializeAws_querySetSubscriptionAttributesCommand = deserializeAws_qu
2169
2169
  const deserializeAws_querySetSubscriptionAttributesCommandError = async (output, context) => {
2170
2170
  const parsedOutput = {
2171
2171
  ...output,
2172
- body: await parseBody(output.body, context),
2172
+ body: await parseErrorBody(output.body, context),
2173
2173
  };
2174
2174
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2175
2175
  switch (errorCode) {
2176
- case "AuthorizationErrorException":
2176
+ case "AuthorizationError":
2177
2177
  case "com.amazonaws.sns#AuthorizationErrorException":
2178
2178
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2179
- case "FilterPolicyLimitExceededException":
2179
+ case "FilterPolicyLimitExceeded":
2180
2180
  case "com.amazonaws.sns#FilterPolicyLimitExceededException":
2181
2181
  throw await deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context);
2182
- case "InternalErrorException":
2182
+ case "InternalError":
2183
2183
  case "com.amazonaws.sns#InternalErrorException":
2184
2184
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2185
- case "InvalidParameterException":
2185
+ case "InvalidParameter":
2186
2186
  case "com.amazonaws.sns#InvalidParameterException":
2187
2187
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2188
- case "NotFoundException":
2188
+ case "NotFound":
2189
2189
  case "com.amazonaws.sns#NotFoundException":
2190
2190
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2191
2191
  default:
@@ -2212,23 +2212,23 @@ exports.deserializeAws_querySetTopicAttributesCommand = deserializeAws_querySetT
2212
2212
  const deserializeAws_querySetTopicAttributesCommandError = async (output, context) => {
2213
2213
  const parsedOutput = {
2214
2214
  ...output,
2215
- body: await parseBody(output.body, context),
2215
+ body: await parseErrorBody(output.body, context),
2216
2216
  };
2217
2217
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2218
2218
  switch (errorCode) {
2219
- case "AuthorizationErrorException":
2219
+ case "AuthorizationError":
2220
2220
  case "com.amazonaws.sns#AuthorizationErrorException":
2221
2221
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2222
- case "InternalErrorException":
2222
+ case "InternalError":
2223
2223
  case "com.amazonaws.sns#InternalErrorException":
2224
2224
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2225
- case "InvalidParameterException":
2225
+ case "InvalidParameter":
2226
2226
  case "com.amazonaws.sns#InvalidParameterException":
2227
2227
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2228
- case "InvalidSecurityException":
2228
+ case "InvalidSecurity":
2229
2229
  case "com.amazonaws.sns#InvalidSecurityException":
2230
2230
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
2231
- case "NotFoundException":
2231
+ case "NotFound":
2232
2232
  case "com.amazonaws.sns#NotFoundException":
2233
2233
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2234
2234
  default:
@@ -2258,29 +2258,29 @@ exports.deserializeAws_querySubscribeCommand = deserializeAws_querySubscribeComm
2258
2258
  const deserializeAws_querySubscribeCommandError = async (output, context) => {
2259
2259
  const parsedOutput = {
2260
2260
  ...output,
2261
- body: await parseBody(output.body, context),
2261
+ body: await parseErrorBody(output.body, context),
2262
2262
  };
2263
2263
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2264
2264
  switch (errorCode) {
2265
- case "AuthorizationErrorException":
2265
+ case "AuthorizationError":
2266
2266
  case "com.amazonaws.sns#AuthorizationErrorException":
2267
2267
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2268
- case "FilterPolicyLimitExceededException":
2268
+ case "FilterPolicyLimitExceeded":
2269
2269
  case "com.amazonaws.sns#FilterPolicyLimitExceededException":
2270
2270
  throw await deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context);
2271
- case "InternalErrorException":
2271
+ case "InternalError":
2272
2272
  case "com.amazonaws.sns#InternalErrorException":
2273
2273
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2274
- case "InvalidParameterException":
2274
+ case "InvalidParameter":
2275
2275
  case "com.amazonaws.sns#InvalidParameterException":
2276
2276
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2277
- case "InvalidSecurityException":
2277
+ case "InvalidSecurity":
2278
2278
  case "com.amazonaws.sns#InvalidSecurityException":
2279
2279
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
2280
- case "NotFoundException":
2280
+ case "NotFound":
2281
2281
  case "com.amazonaws.sns#NotFoundException":
2282
2282
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2283
- case "SubscriptionLimitExceededException":
2283
+ case "SubscriptionLimitExceeded":
2284
2284
  case "com.amazonaws.sns#SubscriptionLimitExceededException":
2285
2285
  throw await deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context);
2286
2286
  default:
@@ -2310,29 +2310,29 @@ exports.deserializeAws_queryTagResourceCommand = deserializeAws_queryTagResource
2310
2310
  const deserializeAws_queryTagResourceCommandError = async (output, context) => {
2311
2311
  const parsedOutput = {
2312
2312
  ...output,
2313
- body: await parseBody(output.body, context),
2313
+ body: await parseErrorBody(output.body, context),
2314
2314
  };
2315
2315
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2316
2316
  switch (errorCode) {
2317
- case "AuthorizationErrorException":
2317
+ case "AuthorizationError":
2318
2318
  case "com.amazonaws.sns#AuthorizationErrorException":
2319
2319
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2320
- case "ConcurrentAccessException":
2320
+ case "ConcurrentAccess":
2321
2321
  case "com.amazonaws.sns#ConcurrentAccessException":
2322
2322
  throw await deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context);
2323
- case "InvalidParameterException":
2323
+ case "InvalidParameter":
2324
2324
  case "com.amazonaws.sns#InvalidParameterException":
2325
2325
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2326
- case "ResourceNotFoundException":
2326
+ case "ResourceNotFound":
2327
2327
  case "com.amazonaws.sns#ResourceNotFoundException":
2328
2328
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
2329
- case "StaleTagException":
2329
+ case "StaleTag":
2330
2330
  case "com.amazonaws.sns#StaleTagException":
2331
2331
  throw await deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context);
2332
- case "TagLimitExceededException":
2332
+ case "TagLimitExceeded":
2333
2333
  case "com.amazonaws.sns#TagLimitExceededException":
2334
2334
  throw await deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context);
2335
- case "TagPolicyException":
2335
+ case "TagPolicy":
2336
2336
  case "com.amazonaws.sns#TagPolicyException":
2337
2337
  throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
2338
2338
  default:
@@ -2359,23 +2359,23 @@ exports.deserializeAws_queryUnsubscribeCommand = deserializeAws_queryUnsubscribe
2359
2359
  const deserializeAws_queryUnsubscribeCommandError = async (output, context) => {
2360
2360
  const parsedOutput = {
2361
2361
  ...output,
2362
- body: await parseBody(output.body, context),
2362
+ body: await parseErrorBody(output.body, context),
2363
2363
  };
2364
2364
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2365
2365
  switch (errorCode) {
2366
- case "AuthorizationErrorException":
2366
+ case "AuthorizationError":
2367
2367
  case "com.amazonaws.sns#AuthorizationErrorException":
2368
2368
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2369
- case "InternalErrorException":
2369
+ case "InternalError":
2370
2370
  case "com.amazonaws.sns#InternalErrorException":
2371
2371
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2372
- case "InvalidParameterException":
2372
+ case "InvalidParameter":
2373
2373
  case "com.amazonaws.sns#InvalidParameterException":
2374
2374
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2375
- case "InvalidSecurityException":
2375
+ case "InvalidSecurity":
2376
2376
  case "com.amazonaws.sns#InvalidSecurityException":
2377
2377
  throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
2378
- case "NotFoundException":
2378
+ case "NotFound":
2379
2379
  case "com.amazonaws.sns#NotFoundException":
2380
2380
  throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
2381
2381
  default:
@@ -2405,29 +2405,29 @@ exports.deserializeAws_queryUntagResourceCommand = deserializeAws_queryUntagReso
2405
2405
  const deserializeAws_queryUntagResourceCommandError = async (output, context) => {
2406
2406
  const parsedOutput = {
2407
2407
  ...output,
2408
- body: await parseBody(output.body, context),
2408
+ body: await parseErrorBody(output.body, context),
2409
2409
  };
2410
2410
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2411
2411
  switch (errorCode) {
2412
- case "AuthorizationErrorException":
2412
+ case "AuthorizationError":
2413
2413
  case "com.amazonaws.sns#AuthorizationErrorException":
2414
2414
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2415
- case "ConcurrentAccessException":
2415
+ case "ConcurrentAccess":
2416
2416
  case "com.amazonaws.sns#ConcurrentAccessException":
2417
2417
  throw await deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context);
2418
- case "InvalidParameterException":
2418
+ case "InvalidParameter":
2419
2419
  case "com.amazonaws.sns#InvalidParameterException":
2420
2420
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2421
- case "ResourceNotFoundException":
2421
+ case "ResourceNotFound":
2422
2422
  case "com.amazonaws.sns#ResourceNotFoundException":
2423
2423
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
2424
- case "StaleTagException":
2424
+ case "StaleTag":
2425
2425
  case "com.amazonaws.sns#StaleTagException":
2426
2426
  throw await deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context);
2427
- case "TagLimitExceededException":
2427
+ case "TagLimitExceeded":
2428
2428
  case "com.amazonaws.sns#TagLimitExceededException":
2429
2429
  throw await deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context);
2430
- case "TagPolicyException":
2430
+ case "TagPolicy":
2431
2431
  case "com.amazonaws.sns#TagPolicyException":
2432
2432
  throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
2433
2433
  default:
@@ -2457,23 +2457,23 @@ exports.deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = deserializeAws_
2457
2457
  const deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
2458
2458
  const parsedOutput = {
2459
2459
  ...output,
2460
- body: await parseBody(output.body, context),
2460
+ body: await parseErrorBody(output.body, context),
2461
2461
  };
2462
2462
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2463
2463
  switch (errorCode) {
2464
- case "AuthorizationErrorException":
2464
+ case "AuthorizationError":
2465
2465
  case "com.amazonaws.sns#AuthorizationErrorException":
2466
2466
  throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
2467
- case "InternalErrorException":
2467
+ case "InternalError":
2468
2468
  case "com.amazonaws.sns#InternalErrorException":
2469
2469
  throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
2470
- case "InvalidParameterException":
2470
+ case "InvalidParameter":
2471
2471
  case "com.amazonaws.sns#InvalidParameterException":
2472
2472
  throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
2473
- case "ResourceNotFoundException":
2473
+ case "ResourceNotFound":
2474
2474
  case "com.amazonaws.sns#ResourceNotFoundException":
2475
2475
  throw await deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context);
2476
- case "ThrottledException":
2476
+ case "Throttled":
2477
2477
  case "com.amazonaws.sns#ThrottledException":
2478
2478
  throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
2479
2479
  case "VerificationException":
@@ -4385,6 +4385,14 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4385
4385
  }
4386
4386
  return {};
4387
4387
  });
4388
+ const parseErrorBody = async (errorBody, context) => {
4389
+ var _a;
4390
+ const value = await parseBody(errorBody, context);
4391
+ if (value.Error) {
4392
+ value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
4393
+ }
4394
+ return value;
4395
+ };
4388
4396
  const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
4389
4397
  .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
4390
4398
  .join("&");