@aws-sdk/client-license-manager 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +240 -438
- package/dist-es/protocols/Aws_json1_1.js +385 -439
- package/package.json +6 -6
|
@@ -505,7 +505,6 @@ const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) =>
|
|
|
505
505
|
...output,
|
|
506
506
|
body: await parseBody(output.body, context),
|
|
507
507
|
};
|
|
508
|
-
let response;
|
|
509
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
509
|
switch (errorCode) {
|
|
511
510
|
case "AccessDeniedException":
|
|
@@ -531,14 +530,12 @@ const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) =>
|
|
|
531
530
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
532
531
|
default:
|
|
533
532
|
const parsedBody = parsedOutput.body;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
$metadata,
|
|
533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
534
|
+
output,
|
|
535
|
+
parsedBody,
|
|
536
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
537
|
+
errorCode,
|
|
540
538
|
});
|
|
541
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
542
539
|
}
|
|
543
540
|
};
|
|
544
541
|
const deserializeAws_json1_1CheckInLicenseCommand = async (output, context) => {
|
|
@@ -560,7 +557,6 @@ const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context)
|
|
|
560
557
|
...output,
|
|
561
558
|
body: await parseBody(output.body, context),
|
|
562
559
|
};
|
|
563
|
-
let response;
|
|
564
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
561
|
switch (errorCode) {
|
|
566
562
|
case "AccessDeniedException":
|
|
@@ -589,14 +585,12 @@ const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context)
|
|
|
589
585
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
590
586
|
default:
|
|
591
587
|
const parsedBody = parsedOutput.body;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
$metadata,
|
|
588
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
589
|
+
output,
|
|
590
|
+
parsedBody,
|
|
591
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
592
|
+
errorCode,
|
|
598
593
|
});
|
|
599
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
600
594
|
}
|
|
601
595
|
};
|
|
602
596
|
const deserializeAws_json1_1CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
@@ -618,7 +612,6 @@ const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, c
|
|
|
618
612
|
...output,
|
|
619
613
|
body: await parseBody(output.body, context),
|
|
620
614
|
};
|
|
621
|
-
let response;
|
|
622
615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
616
|
switch (errorCode) {
|
|
624
617
|
case "AccessDeniedException":
|
|
@@ -656,14 +649,12 @@ const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, c
|
|
|
656
649
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
657
650
|
default:
|
|
658
651
|
const parsedBody = parsedOutput.body;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
$metadata,
|
|
652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
653
|
+
output,
|
|
654
|
+
parsedBody,
|
|
655
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
656
|
+
errorCode,
|
|
665
657
|
});
|
|
666
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
667
658
|
}
|
|
668
659
|
};
|
|
669
660
|
const deserializeAws_json1_1CheckoutLicenseCommand = async (output, context) => {
|
|
@@ -685,7 +676,6 @@ const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context
|
|
|
685
676
|
...output,
|
|
686
677
|
body: await parseBody(output.body, context),
|
|
687
678
|
};
|
|
688
|
-
let response;
|
|
689
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
680
|
switch (errorCode) {
|
|
691
681
|
case "AccessDeniedException":
|
|
@@ -720,14 +710,12 @@ const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context
|
|
|
720
710
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
721
711
|
default:
|
|
722
712
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
$metadata,
|
|
713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
714
|
+
output,
|
|
715
|
+
parsedBody,
|
|
716
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
717
|
+
errorCode,
|
|
729
718
|
});
|
|
730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
731
719
|
}
|
|
732
720
|
};
|
|
733
721
|
const deserializeAws_json1_1CreateGrantCommand = async (output, context) => {
|
|
@@ -749,7 +737,6 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
749
737
|
...output,
|
|
750
738
|
body: await parseBody(output.body, context),
|
|
751
739
|
};
|
|
752
|
-
let response;
|
|
753
740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
741
|
switch (errorCode) {
|
|
755
742
|
case "AccessDeniedException":
|
|
@@ -775,14 +762,12 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
775
762
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
776
763
|
default:
|
|
777
764
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
$metadata,
|
|
765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
766
|
+
output,
|
|
767
|
+
parsedBody,
|
|
768
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
769
|
+
errorCode,
|
|
784
770
|
});
|
|
785
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
786
771
|
}
|
|
787
772
|
};
|
|
788
773
|
const deserializeAws_json1_1CreateGrantVersionCommand = async (output, context) => {
|
|
@@ -804,7 +789,6 @@ const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, cont
|
|
|
804
789
|
...output,
|
|
805
790
|
body: await parseBody(output.body, context),
|
|
806
791
|
};
|
|
807
|
-
let response;
|
|
808
792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
793
|
switch (errorCode) {
|
|
810
794
|
case "AccessDeniedException":
|
|
@@ -830,14 +814,12 @@ const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, cont
|
|
|
830
814
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
831
815
|
default:
|
|
832
816
|
const parsedBody = parsedOutput.body;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
$metadata,
|
|
817
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
818
|
+
output,
|
|
819
|
+
parsedBody,
|
|
820
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
821
|
+
errorCode,
|
|
839
822
|
});
|
|
840
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
841
823
|
}
|
|
842
824
|
};
|
|
843
825
|
const deserializeAws_json1_1CreateLicenseCommand = async (output, context) => {
|
|
@@ -859,7 +841,6 @@ const deserializeAws_json1_1CreateLicenseCommandError = async (output, context)
|
|
|
859
841
|
...output,
|
|
860
842
|
body: await parseBody(output.body, context),
|
|
861
843
|
};
|
|
862
|
-
let response;
|
|
863
844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
845
|
switch (errorCode) {
|
|
865
846
|
case "AccessDeniedException":
|
|
@@ -885,14 +866,12 @@ const deserializeAws_json1_1CreateLicenseCommandError = async (output, context)
|
|
|
885
866
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
886
867
|
default:
|
|
887
868
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
$metadata,
|
|
869
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
870
|
+
output,
|
|
871
|
+
parsedBody,
|
|
872
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
873
|
+
errorCode,
|
|
894
874
|
});
|
|
895
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
896
875
|
}
|
|
897
876
|
};
|
|
898
877
|
const deserializeAws_json1_1CreateLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -914,7 +893,6 @@ const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (outp
|
|
|
914
893
|
...output,
|
|
915
894
|
body: await parseBody(output.body, context),
|
|
916
895
|
};
|
|
917
|
-
let response;
|
|
918
896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
897
|
switch (errorCode) {
|
|
920
898
|
case "AccessDeniedException":
|
|
@@ -937,14 +915,12 @@ const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (outp
|
|
|
937
915
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
938
916
|
default:
|
|
939
917
|
const parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
$metadata,
|
|
918
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
922
|
+
errorCode,
|
|
946
923
|
});
|
|
947
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
948
924
|
}
|
|
949
925
|
};
|
|
950
926
|
const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
@@ -966,7 +942,6 @@ const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError =
|
|
|
966
942
|
...output,
|
|
967
943
|
body: await parseBody(output.body, context),
|
|
968
944
|
};
|
|
969
|
-
let response;
|
|
970
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
946
|
switch (errorCode) {
|
|
972
947
|
case "AccessDeniedException":
|
|
@@ -989,14 +964,12 @@ const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError =
|
|
|
989
964
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
990
965
|
default:
|
|
991
966
|
const parsedBody = parsedOutput.body;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
$metadata,
|
|
967
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
968
|
+
output,
|
|
969
|
+
parsedBody,
|
|
970
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
971
|
+
errorCode,
|
|
998
972
|
});
|
|
999
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1000
973
|
}
|
|
1001
974
|
};
|
|
1002
975
|
const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
@@ -1018,7 +991,6 @@ const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = as
|
|
|
1018
991
|
...output,
|
|
1019
992
|
body: await parseBody(output.body, context),
|
|
1020
993
|
};
|
|
1021
|
-
let response;
|
|
1022
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
995
|
switch (errorCode) {
|
|
1024
996
|
case "AccessDeniedException":
|
|
@@ -1047,14 +1019,12 @@ const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = as
|
|
|
1047
1019
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1048
1020
|
default:
|
|
1049
1021
|
const parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
$metadata,
|
|
1022
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1023
|
+
output,
|
|
1024
|
+
parsedBody,
|
|
1025
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1026
|
+
errorCode,
|
|
1056
1027
|
});
|
|
1057
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1058
1028
|
}
|
|
1059
1029
|
};
|
|
1060
1030
|
const deserializeAws_json1_1CreateLicenseVersionCommand = async (output, context) => {
|
|
@@ -1076,7 +1046,6 @@ const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, co
|
|
|
1076
1046
|
...output,
|
|
1077
1047
|
body: await parseBody(output.body, context),
|
|
1078
1048
|
};
|
|
1079
|
-
let response;
|
|
1080
1049
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1050
|
switch (errorCode) {
|
|
1082
1051
|
case "AccessDeniedException":
|
|
@@ -1105,14 +1074,12 @@ const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, co
|
|
|
1105
1074
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1106
1075
|
default:
|
|
1107
1076
|
const parsedBody = parsedOutput.body;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
$metadata,
|
|
1077
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1078
|
+
output,
|
|
1079
|
+
parsedBody,
|
|
1080
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1081
|
+
errorCode,
|
|
1114
1082
|
});
|
|
1115
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1083
|
}
|
|
1117
1084
|
};
|
|
1118
1085
|
const deserializeAws_json1_1CreateTokenCommand = async (output, context) => {
|
|
@@ -1134,7 +1101,6 @@ const deserializeAws_json1_1CreateTokenCommandError = async (output, context) =>
|
|
|
1134
1101
|
...output,
|
|
1135
1102
|
body: await parseBody(output.body, context),
|
|
1136
1103
|
};
|
|
1137
|
-
let response;
|
|
1138
1104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1105
|
switch (errorCode) {
|
|
1140
1106
|
case "AccessDeniedException":
|
|
@@ -1163,14 +1129,12 @@ const deserializeAws_json1_1CreateTokenCommandError = async (output, context) =>
|
|
|
1163
1129
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1164
1130
|
default:
|
|
1165
1131
|
const parsedBody = parsedOutput.body;
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
$metadata,
|
|
1132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1133
|
+
output,
|
|
1134
|
+
parsedBody,
|
|
1135
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1136
|
+
errorCode,
|
|
1172
1137
|
});
|
|
1173
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1174
1138
|
}
|
|
1175
1139
|
};
|
|
1176
1140
|
const deserializeAws_json1_1DeleteGrantCommand = async (output, context) => {
|
|
@@ -1192,7 +1156,6 @@ const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) =>
|
|
|
1192
1156
|
...output,
|
|
1193
1157
|
body: await parseBody(output.body, context),
|
|
1194
1158
|
};
|
|
1195
|
-
let response;
|
|
1196
1159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1160
|
switch (errorCode) {
|
|
1198
1161
|
case "AccessDeniedException":
|
|
@@ -1218,14 +1181,12 @@ const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) =>
|
|
|
1218
1181
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1219
1182
|
default:
|
|
1220
1183
|
const parsedBody = parsedOutput.body;
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
$metadata,
|
|
1184
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1185
|
+
output,
|
|
1186
|
+
parsedBody,
|
|
1187
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1188
|
+
errorCode,
|
|
1227
1189
|
});
|
|
1228
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1229
1190
|
}
|
|
1230
1191
|
};
|
|
1231
1192
|
const deserializeAws_json1_1DeleteLicenseCommand = async (output, context) => {
|
|
@@ -1247,7 +1208,6 @@ const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context)
|
|
|
1247
1208
|
...output,
|
|
1248
1209
|
body: await parseBody(output.body, context),
|
|
1249
1210
|
};
|
|
1250
|
-
let response;
|
|
1251
1211
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1212
|
switch (errorCode) {
|
|
1253
1213
|
case "AccessDeniedException":
|
|
@@ -1276,14 +1236,12 @@ const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context)
|
|
|
1276
1236
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1277
1237
|
default:
|
|
1278
1238
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata,
|
|
1239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1240
|
+
output,
|
|
1241
|
+
parsedBody,
|
|
1242
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1243
|
+
errorCode,
|
|
1285
1244
|
});
|
|
1286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1245
|
}
|
|
1288
1246
|
};
|
|
1289
1247
|
const deserializeAws_json1_1DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -1305,7 +1263,6 @@ const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (outp
|
|
|
1305
1263
|
...output,
|
|
1306
1264
|
body: await parseBody(output.body, context),
|
|
1307
1265
|
};
|
|
1308
|
-
let response;
|
|
1309
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1267
|
switch (errorCode) {
|
|
1311
1268
|
case "AccessDeniedException":
|
|
@@ -1325,14 +1282,12 @@ const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (outp
|
|
|
1325
1282
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1326
1283
|
default:
|
|
1327
1284
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
$metadata,
|
|
1285
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1286
|
+
output,
|
|
1287
|
+
parsedBody,
|
|
1288
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1289
|
+
errorCode,
|
|
1334
1290
|
});
|
|
1335
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1336
1291
|
}
|
|
1337
1292
|
};
|
|
1338
1293
|
const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
@@ -1354,7 +1309,6 @@ const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = as
|
|
|
1354
1309
|
...output,
|
|
1355
1310
|
body: await parseBody(output.body, context),
|
|
1356
1311
|
};
|
|
1357
|
-
let response;
|
|
1358
1312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1313
|
switch (errorCode) {
|
|
1360
1314
|
case "AccessDeniedException":
|
|
@@ -1383,14 +1337,12 @@ const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = as
|
|
|
1383
1337
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1384
1338
|
default:
|
|
1385
1339
|
const parsedBody = parsedOutput.body;
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
$metadata,
|
|
1340
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1341
|
+
output,
|
|
1342
|
+
parsedBody,
|
|
1343
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1344
|
+
errorCode,
|
|
1392
1345
|
});
|
|
1393
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1394
1346
|
}
|
|
1395
1347
|
};
|
|
1396
1348
|
const deserializeAws_json1_1DeleteTokenCommand = async (output, context) => {
|
|
@@ -1412,7 +1364,6 @@ const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) =>
|
|
|
1412
1364
|
...output,
|
|
1413
1365
|
body: await parseBody(output.body, context),
|
|
1414
1366
|
};
|
|
1415
|
-
let response;
|
|
1416
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
1368
|
switch (errorCode) {
|
|
1418
1369
|
case "AccessDeniedException":
|
|
@@ -1438,14 +1389,12 @@ const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) =>
|
|
|
1438
1389
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1439
1390
|
default:
|
|
1440
1391
|
const parsedBody = parsedOutput.body;
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
$metadata,
|
|
1392
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1393
|
+
output,
|
|
1394
|
+
parsedBody,
|
|
1395
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1396
|
+
errorCode,
|
|
1447
1397
|
});
|
|
1448
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1449
1398
|
}
|
|
1450
1399
|
};
|
|
1451
1400
|
const deserializeAws_json1_1ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
@@ -1467,7 +1416,6 @@ const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output
|
|
|
1467
1416
|
...output,
|
|
1468
1417
|
body: await parseBody(output.body, context),
|
|
1469
1418
|
};
|
|
1470
|
-
let response;
|
|
1471
1419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1420
|
switch (errorCode) {
|
|
1473
1421
|
case "AccessDeniedException":
|
|
@@ -1493,14 +1441,12 @@ const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output
|
|
|
1493
1441
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1494
1442
|
default:
|
|
1495
1443
|
const parsedBody = parsedOutput.body;
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
$metadata,
|
|
1444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1448
|
+
errorCode,
|
|
1502
1449
|
});
|
|
1503
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1504
1450
|
}
|
|
1505
1451
|
};
|
|
1506
1452
|
const deserializeAws_json1_1GetAccessTokenCommand = async (output, context) => {
|
|
@@ -1522,7 +1468,6 @@ const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context)
|
|
|
1522
1468
|
...output,
|
|
1523
1469
|
body: await parseBody(output.body, context),
|
|
1524
1470
|
};
|
|
1525
|
-
let response;
|
|
1526
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
1472
|
switch (errorCode) {
|
|
1528
1473
|
case "AccessDeniedException":
|
|
@@ -1542,14 +1487,12 @@ const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context)
|
|
|
1542
1487
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1543
1488
|
default:
|
|
1544
1489
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
$metadata,
|
|
1490
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1491
|
+
output,
|
|
1492
|
+
parsedBody,
|
|
1493
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1494
|
+
errorCode,
|
|
1551
1495
|
});
|
|
1552
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1553
1496
|
}
|
|
1554
1497
|
};
|
|
1555
1498
|
const deserializeAws_json1_1GetGrantCommand = async (output, context) => {
|
|
@@ -1571,7 +1514,6 @@ const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
|
1571
1514
|
...output,
|
|
1572
1515
|
body: await parseBody(output.body, context),
|
|
1573
1516
|
};
|
|
1574
|
-
let response;
|
|
1575
1517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1518
|
switch (errorCode) {
|
|
1577
1519
|
case "AccessDeniedException":
|
|
@@ -1597,14 +1539,12 @@ const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
|
1597
1539
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1598
1540
|
default:
|
|
1599
1541
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata,
|
|
1542
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1543
|
+
output,
|
|
1544
|
+
parsedBody,
|
|
1545
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1546
|
+
errorCode,
|
|
1606
1547
|
});
|
|
1607
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1608
1548
|
}
|
|
1609
1549
|
};
|
|
1610
1550
|
const deserializeAws_json1_1GetLicenseCommand = async (output, context) => {
|
|
@@ -1626,7 +1566,6 @@ const deserializeAws_json1_1GetLicenseCommandError = async (output, context) =>
|
|
|
1626
1566
|
...output,
|
|
1627
1567
|
body: await parseBody(output.body, context),
|
|
1628
1568
|
};
|
|
1629
|
-
let response;
|
|
1630
1569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1570
|
switch (errorCode) {
|
|
1632
1571
|
case "AccessDeniedException":
|
|
@@ -1649,14 +1588,12 @@ const deserializeAws_json1_1GetLicenseCommandError = async (output, context) =>
|
|
|
1649
1588
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1650
1589
|
default:
|
|
1651
1590
|
const parsedBody = parsedOutput.body;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
$metadata,
|
|
1591
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1592
|
+
output,
|
|
1593
|
+
parsedBody,
|
|
1594
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1595
|
+
errorCode,
|
|
1658
1596
|
});
|
|
1659
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1660
1597
|
}
|
|
1661
1598
|
};
|
|
1662
1599
|
const deserializeAws_json1_1GetLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -1678,7 +1615,6 @@ const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output,
|
|
|
1678
1615
|
...output,
|
|
1679
1616
|
body: await parseBody(output.body, context),
|
|
1680
1617
|
};
|
|
1681
|
-
let response;
|
|
1682
1618
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1619
|
switch (errorCode) {
|
|
1684
1620
|
case "AccessDeniedException":
|
|
@@ -1698,14 +1634,12 @@ const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output,
|
|
|
1698
1634
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1699
1635
|
default:
|
|
1700
1636
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
$metadata,
|
|
1637
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1638
|
+
output,
|
|
1639
|
+
parsedBody,
|
|
1640
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1641
|
+
errorCode,
|
|
1707
1642
|
});
|
|
1708
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1709
1643
|
}
|
|
1710
1644
|
};
|
|
1711
1645
|
const deserializeAws_json1_1GetLicenseConversionTaskCommand = async (output, context) => {
|
|
@@ -1727,7 +1661,6 @@ const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output
|
|
|
1727
1661
|
...output,
|
|
1728
1662
|
body: await parseBody(output.body, context),
|
|
1729
1663
|
};
|
|
1730
|
-
let response;
|
|
1731
1664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
1665
|
switch (errorCode) {
|
|
1733
1666
|
case "AccessDeniedException":
|
|
@@ -1747,14 +1680,12 @@ const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output
|
|
|
1747
1680
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1748
1681
|
default:
|
|
1749
1682
|
const parsedBody = parsedOutput.body;
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
$metadata,
|
|
1683
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1684
|
+
output,
|
|
1685
|
+
parsedBody,
|
|
1686
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1687
|
+
errorCode,
|
|
1756
1688
|
});
|
|
1757
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1758
1689
|
}
|
|
1759
1690
|
};
|
|
1760
1691
|
const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
@@ -1776,7 +1707,6 @@ const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async
|
|
|
1776
1707
|
...output,
|
|
1777
1708
|
body: await parseBody(output.body, context),
|
|
1778
1709
|
};
|
|
1779
|
-
let response;
|
|
1780
1710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
1711
|
switch (errorCode) {
|
|
1782
1712
|
case "AccessDeniedException":
|
|
@@ -1805,14 +1735,12 @@ const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async
|
|
|
1805
1735
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1806
1736
|
default:
|
|
1807
1737
|
const parsedBody = parsedOutput.body;
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
$metadata,
|
|
1738
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1739
|
+
output,
|
|
1740
|
+
parsedBody,
|
|
1741
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1742
|
+
errorCode,
|
|
1814
1743
|
});
|
|
1815
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1744
|
}
|
|
1817
1745
|
};
|
|
1818
1746
|
const deserializeAws_json1_1GetLicenseUsageCommand = async (output, context) => {
|
|
@@ -1834,7 +1762,6 @@ const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context
|
|
|
1834
1762
|
...output,
|
|
1835
1763
|
body: await parseBody(output.body, context),
|
|
1836
1764
|
};
|
|
1837
|
-
let response;
|
|
1838
1765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1766
|
switch (errorCode) {
|
|
1840
1767
|
case "AccessDeniedException":
|
|
@@ -1857,14 +1784,12 @@ const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context
|
|
|
1857
1784
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1858
1785
|
default:
|
|
1859
1786
|
const parsedBody = parsedOutput.body;
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
$metadata,
|
|
1787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1788
|
+
output,
|
|
1789
|
+
parsedBody,
|
|
1790
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1791
|
+
errorCode,
|
|
1866
1792
|
});
|
|
1867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1868
1793
|
}
|
|
1869
1794
|
};
|
|
1870
1795
|
const deserializeAws_json1_1GetServiceSettingsCommand = async (output, context) => {
|
|
@@ -1886,7 +1811,6 @@ const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, cont
|
|
|
1886
1811
|
...output,
|
|
1887
1812
|
body: await parseBody(output.body, context),
|
|
1888
1813
|
};
|
|
1889
|
-
let response;
|
|
1890
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1815
|
switch (errorCode) {
|
|
1892
1816
|
case "AccessDeniedException":
|
|
@@ -1903,14 +1827,12 @@ const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, cont
|
|
|
1903
1827
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1904
1828
|
default:
|
|
1905
1829
|
const parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
$metadata,
|
|
1830
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1831
|
+
output,
|
|
1832
|
+
parsedBody,
|
|
1833
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1834
|
+
errorCode,
|
|
1912
1835
|
});
|
|
1913
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1914
1836
|
}
|
|
1915
1837
|
};
|
|
1916
1838
|
const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -1932,7 +1854,6 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError
|
|
|
1932
1854
|
...output,
|
|
1933
1855
|
body: await parseBody(output.body, context),
|
|
1934
1856
|
};
|
|
1935
|
-
let response;
|
|
1936
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1858
|
switch (errorCode) {
|
|
1938
1859
|
case "AccessDeniedException":
|
|
@@ -1955,14 +1876,12 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError
|
|
|
1955
1876
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1956
1877
|
default:
|
|
1957
1878
|
const parsedBody = parsedOutput.body;
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
$metadata,
|
|
1879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1880
|
+
output,
|
|
1881
|
+
parsedBody,
|
|
1882
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1883
|
+
errorCode,
|
|
1964
1884
|
});
|
|
1965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1966
1885
|
}
|
|
1967
1886
|
};
|
|
1968
1887
|
const deserializeAws_json1_1ListDistributedGrantsCommand = async (output, context) => {
|
|
@@ -1984,7 +1903,6 @@ const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, c
|
|
|
1984
1903
|
...output,
|
|
1985
1904
|
body: await parseBody(output.body, context),
|
|
1986
1905
|
};
|
|
1987
|
-
let response;
|
|
1988
1906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
1907
|
switch (errorCode) {
|
|
1990
1908
|
case "AccessDeniedException":
|
|
@@ -2010,14 +1928,12 @@ const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, c
|
|
|
2010
1928
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2011
1929
|
default:
|
|
2012
1930
|
const parsedBody = parsedOutput.body;
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
$metadata,
|
|
1931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1932
|
+
output,
|
|
1933
|
+
parsedBody,
|
|
1934
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1935
|
+
errorCode,
|
|
2019
1936
|
});
|
|
2020
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2021
1937
|
}
|
|
2022
1938
|
};
|
|
2023
1939
|
const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
@@ -2039,7 +1955,6 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand
|
|
|
2039
1955
|
...output,
|
|
2040
1956
|
body: await parseBody(output.body, context),
|
|
2041
1957
|
};
|
|
2042
|
-
let response;
|
|
2043
1958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
1959
|
switch (errorCode) {
|
|
2045
1960
|
case "AccessDeniedException":
|
|
@@ -2059,14 +1974,12 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand
|
|
|
2059
1974
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2060
1975
|
default:
|
|
2061
1976
|
const parsedBody = parsedOutput.body;
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
$metadata,
|
|
1977
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1978
|
+
output,
|
|
1979
|
+
parsedBody,
|
|
1980
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
1981
|
+
errorCode,
|
|
2068
1982
|
});
|
|
2069
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2070
1983
|
}
|
|
2071
1984
|
};
|
|
2072
1985
|
const deserializeAws_json1_1ListLicenseConfigurationsCommand = async (output, context) => {
|
|
@@ -2088,7 +2001,6 @@ const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (outpu
|
|
|
2088
2001
|
...output,
|
|
2089
2002
|
body: await parseBody(output.body, context),
|
|
2090
2003
|
};
|
|
2091
|
-
let response;
|
|
2092
2004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
2005
|
switch (errorCode) {
|
|
2094
2006
|
case "AccessDeniedException":
|
|
@@ -2111,14 +2023,12 @@ const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (outpu
|
|
|
2111
2023
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2112
2024
|
default:
|
|
2113
2025
|
const parsedBody = parsedOutput.body;
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
$metadata,
|
|
2026
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2027
|
+
output,
|
|
2028
|
+
parsedBody,
|
|
2029
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2030
|
+
errorCode,
|
|
2120
2031
|
});
|
|
2121
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2122
2032
|
}
|
|
2123
2033
|
};
|
|
2124
2034
|
const deserializeAws_json1_1ListLicenseConversionTasksCommand = async (output, context) => {
|
|
@@ -2140,7 +2050,6 @@ const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (outp
|
|
|
2140
2050
|
...output,
|
|
2141
2051
|
body: await parseBody(output.body, context),
|
|
2142
2052
|
};
|
|
2143
|
-
let response;
|
|
2144
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
2054
|
switch (errorCode) {
|
|
2146
2055
|
case "AccessDeniedException":
|
|
@@ -2160,14 +2069,12 @@ const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (outp
|
|
|
2160
2069
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2161
2070
|
default:
|
|
2162
2071
|
const parsedBody = parsedOutput.body;
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
$metadata,
|
|
2072
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2073
|
+
output,
|
|
2074
|
+
parsedBody,
|
|
2075
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2076
|
+
errorCode,
|
|
2169
2077
|
});
|
|
2170
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2171
2078
|
}
|
|
2172
2079
|
};
|
|
2173
2080
|
const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = async (output, context) => {
|
|
@@ -2189,7 +2096,6 @@ const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = asy
|
|
|
2189
2096
|
...output,
|
|
2190
2097
|
body: await parseBody(output.body, context),
|
|
2191
2098
|
};
|
|
2192
|
-
let response;
|
|
2193
2099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2100
|
switch (errorCode) {
|
|
2195
2101
|
case "AccessDeniedException":
|
|
@@ -2218,14 +2124,12 @@ const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = asy
|
|
|
2218
2124
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2219
2125
|
default:
|
|
2220
2126
|
const parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
$metadata,
|
|
2127
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2128
|
+
output,
|
|
2129
|
+
parsedBody,
|
|
2130
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2131
|
+
errorCode,
|
|
2227
2132
|
});
|
|
2228
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2229
2133
|
}
|
|
2230
2134
|
};
|
|
2231
2135
|
const deserializeAws_json1_1ListLicensesCommand = async (output, context) => {
|
|
@@ -2247,7 +2151,6 @@ const deserializeAws_json1_1ListLicensesCommandError = async (output, context) =
|
|
|
2247
2151
|
...output,
|
|
2248
2152
|
body: await parseBody(output.body, context),
|
|
2249
2153
|
};
|
|
2250
|
-
let response;
|
|
2251
2154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
2155
|
switch (errorCode) {
|
|
2253
2156
|
case "AccessDeniedException":
|
|
@@ -2270,14 +2173,12 @@ const deserializeAws_json1_1ListLicensesCommandError = async (output, context) =
|
|
|
2270
2173
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2271
2174
|
default:
|
|
2272
2175
|
const parsedBody = parsedOutput.body;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
$metadata,
|
|
2176
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2177
|
+
output,
|
|
2178
|
+
parsedBody,
|
|
2179
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2180
|
+
errorCode,
|
|
2279
2181
|
});
|
|
2280
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2281
2182
|
}
|
|
2282
2183
|
};
|
|
2283
2184
|
const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
@@ -2299,7 +2200,6 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = a
|
|
|
2299
2200
|
...output,
|
|
2300
2201
|
body: await parseBody(output.body, context),
|
|
2301
2202
|
};
|
|
2302
|
-
let response;
|
|
2303
2203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
2204
|
switch (errorCode) {
|
|
2305
2205
|
case "AccessDeniedException":
|
|
@@ -2319,14 +2219,12 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = a
|
|
|
2319
2219
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2320
2220
|
default:
|
|
2321
2221
|
const parsedBody = parsedOutput.body;
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
$metadata,
|
|
2222
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2223
|
+
output,
|
|
2224
|
+
parsedBody,
|
|
2225
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2226
|
+
errorCode,
|
|
2328
2227
|
});
|
|
2329
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2330
2228
|
}
|
|
2331
2229
|
};
|
|
2332
2230
|
const deserializeAws_json1_1ListLicenseVersionsCommand = async (output, context) => {
|
|
@@ -2348,7 +2246,6 @@ const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, con
|
|
|
2348
2246
|
...output,
|
|
2349
2247
|
body: await parseBody(output.body, context),
|
|
2350
2248
|
};
|
|
2351
|
-
let response;
|
|
2352
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
2250
|
switch (errorCode) {
|
|
2354
2251
|
case "AccessDeniedException":
|
|
@@ -2368,14 +2265,12 @@ const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, con
|
|
|
2368
2265
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2369
2266
|
default:
|
|
2370
2267
|
const parsedBody = parsedOutput.body;
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
$metadata,
|
|
2268
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2269
|
+
output,
|
|
2270
|
+
parsedBody,
|
|
2271
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2272
|
+
errorCode,
|
|
2377
2273
|
});
|
|
2378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2379
2274
|
}
|
|
2380
2275
|
};
|
|
2381
2276
|
const deserializeAws_json1_1ListReceivedGrantsCommand = async (output, context) => {
|
|
@@ -2397,7 +2292,6 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
2397
2292
|
...output,
|
|
2398
2293
|
body: await parseBody(output.body, context),
|
|
2399
2294
|
};
|
|
2400
|
-
let response;
|
|
2401
2295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2402
2296
|
switch (errorCode) {
|
|
2403
2297
|
case "AccessDeniedException":
|
|
@@ -2423,14 +2317,12 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
2423
2317
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2424
2318
|
default:
|
|
2425
2319
|
const parsedBody = parsedOutput.body;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
$metadata,
|
|
2320
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2321
|
+
output,
|
|
2322
|
+
parsedBody,
|
|
2323
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2324
|
+
errorCode,
|
|
2432
2325
|
});
|
|
2433
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2434
2326
|
}
|
|
2435
2327
|
};
|
|
2436
2328
|
const deserializeAws_json1_1ListReceivedLicensesCommand = async (output, context) => {
|
|
@@ -2452,7 +2344,6 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
2452
2344
|
...output,
|
|
2453
2345
|
body: await parseBody(output.body, context),
|
|
2454
2346
|
};
|
|
2455
|
-
let response;
|
|
2456
2347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
2348
|
switch (errorCode) {
|
|
2458
2349
|
case "AccessDeniedException":
|
|
@@ -2478,14 +2369,12 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
2478
2369
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2479
2370
|
default:
|
|
2480
2371
|
const parsedBody = parsedOutput.body;
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
$metadata,
|
|
2372
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2373
|
+
output,
|
|
2374
|
+
parsedBody,
|
|
2375
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2376
|
+
errorCode,
|
|
2487
2377
|
});
|
|
2488
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2489
2378
|
}
|
|
2490
2379
|
};
|
|
2491
2380
|
const deserializeAws_json1_1ListResourceInventoryCommand = async (output, context) => {
|
|
@@ -2507,7 +2396,6 @@ const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, c
|
|
|
2507
2396
|
...output,
|
|
2508
2397
|
body: await parseBody(output.body, context),
|
|
2509
2398
|
};
|
|
2510
|
-
let response;
|
|
2511
2399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2512
2400
|
switch (errorCode) {
|
|
2513
2401
|
case "AccessDeniedException":
|
|
@@ -2533,14 +2421,12 @@ const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, c
|
|
|
2533
2421
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2534
2422
|
default:
|
|
2535
2423
|
const parsedBody = parsedOutput.body;
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
$metadata,
|
|
2424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2425
|
+
output,
|
|
2426
|
+
parsedBody,
|
|
2427
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2428
|
+
errorCode,
|
|
2542
2429
|
});
|
|
2543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2544
2430
|
}
|
|
2545
2431
|
};
|
|
2546
2432
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2562,7 +2448,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2562
2448
|
...output,
|
|
2563
2449
|
body: await parseBody(output.body, context),
|
|
2564
2450
|
};
|
|
2565
|
-
let response;
|
|
2566
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
2452
|
switch (errorCode) {
|
|
2568
2453
|
case "AccessDeniedException":
|
|
@@ -2582,14 +2467,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2582
2467
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2583
2468
|
default:
|
|
2584
2469
|
const parsedBody = parsedOutput.body;
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
$metadata,
|
|
2470
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2471
|
+
output,
|
|
2472
|
+
parsedBody,
|
|
2473
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2474
|
+
errorCode,
|
|
2591
2475
|
});
|
|
2592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2593
2476
|
}
|
|
2594
2477
|
};
|
|
2595
2478
|
const deserializeAws_json1_1ListTokensCommand = async (output, context) => {
|
|
@@ -2611,7 +2494,6 @@ const deserializeAws_json1_1ListTokensCommandError = async (output, context) =>
|
|
|
2611
2494
|
...output,
|
|
2612
2495
|
body: await parseBody(output.body, context),
|
|
2613
2496
|
};
|
|
2614
|
-
let response;
|
|
2615
2497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2498
|
switch (errorCode) {
|
|
2617
2499
|
case "AccessDeniedException":
|
|
@@ -2631,14 +2513,12 @@ const deserializeAws_json1_1ListTokensCommandError = async (output, context) =>
|
|
|
2631
2513
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2632
2514
|
default:
|
|
2633
2515
|
const parsedBody = parsedOutput.body;
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
$metadata,
|
|
2516
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2517
|
+
output,
|
|
2518
|
+
parsedBody,
|
|
2519
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2520
|
+
errorCode,
|
|
2640
2521
|
});
|
|
2641
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2642
2522
|
}
|
|
2643
2523
|
};
|
|
2644
2524
|
const deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -2660,7 +2540,6 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async
|
|
|
2660
2540
|
...output,
|
|
2661
2541
|
body: await parseBody(output.body, context),
|
|
2662
2542
|
};
|
|
2663
|
-
let response;
|
|
2664
2543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2665
2544
|
switch (errorCode) {
|
|
2666
2545
|
case "AccessDeniedException":
|
|
@@ -2683,14 +2562,12 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async
|
|
|
2683
2562
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2684
2563
|
default:
|
|
2685
2564
|
const parsedBody = parsedOutput.body;
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
$metadata,
|
|
2565
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2566
|
+
output,
|
|
2567
|
+
parsedBody,
|
|
2568
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2569
|
+
errorCode,
|
|
2692
2570
|
});
|
|
2693
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2694
2571
|
}
|
|
2695
2572
|
};
|
|
2696
2573
|
const deserializeAws_json1_1RejectGrantCommand = async (output, context) => {
|
|
@@ -2712,7 +2589,6 @@ const deserializeAws_json1_1RejectGrantCommandError = async (output, context) =>
|
|
|
2712
2589
|
...output,
|
|
2713
2590
|
body: await parseBody(output.body, context),
|
|
2714
2591
|
};
|
|
2715
|
-
let response;
|
|
2716
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
2593
|
switch (errorCode) {
|
|
2718
2594
|
case "AccessDeniedException":
|
|
@@ -2738,14 +2614,12 @@ const deserializeAws_json1_1RejectGrantCommandError = async (output, context) =>
|
|
|
2738
2614
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2739
2615
|
default:
|
|
2740
2616
|
const parsedBody = parsedOutput.body;
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
$metadata,
|
|
2617
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2618
|
+
output,
|
|
2619
|
+
parsedBody,
|
|
2620
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2621
|
+
errorCode,
|
|
2747
2622
|
});
|
|
2748
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2749
2623
|
}
|
|
2750
2624
|
};
|
|
2751
2625
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2767,7 +2641,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2767
2641
|
...output,
|
|
2768
2642
|
body: await parseBody(output.body, context),
|
|
2769
2643
|
};
|
|
2770
|
-
let response;
|
|
2771
2644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
2645
|
switch (errorCode) {
|
|
2773
2646
|
case "AccessDeniedException":
|
|
@@ -2787,14 +2660,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2787
2660
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2788
2661
|
default:
|
|
2789
2662
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
$metadata,
|
|
2663
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2664
|
+
output,
|
|
2665
|
+
parsedBody,
|
|
2666
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2667
|
+
errorCode,
|
|
2796
2668
|
});
|
|
2797
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2798
2669
|
}
|
|
2799
2670
|
};
|
|
2800
2671
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2816,7 +2687,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2816
2687
|
...output,
|
|
2817
2688
|
body: await parseBody(output.body, context),
|
|
2818
2689
|
};
|
|
2819
|
-
let response;
|
|
2820
2690
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2691
|
switch (errorCode) {
|
|
2822
2692
|
case "AccessDeniedException":
|
|
@@ -2836,14 +2706,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2836
2706
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2837
2707
|
default:
|
|
2838
2708
|
const parsedBody = parsedOutput.body;
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
$metadata,
|
|
2709
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2710
|
+
output,
|
|
2711
|
+
parsedBody,
|
|
2712
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2713
|
+
errorCode,
|
|
2845
2714
|
});
|
|
2846
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2847
2715
|
}
|
|
2848
2716
|
};
|
|
2849
2717
|
const deserializeAws_json1_1UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
@@ -2865,7 +2733,6 @@ const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (outp
|
|
|
2865
2733
|
...output,
|
|
2866
2734
|
body: await parseBody(output.body, context),
|
|
2867
2735
|
};
|
|
2868
|
-
let response;
|
|
2869
2736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
2737
|
switch (errorCode) {
|
|
2871
2738
|
case "AccessDeniedException":
|
|
@@ -2888,14 +2755,12 @@ const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (outp
|
|
|
2888
2755
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2889
2756
|
default:
|
|
2890
2757
|
const parsedBody = parsedOutput.body;
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
$metadata,
|
|
2758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2759
|
+
output,
|
|
2760
|
+
parsedBody,
|
|
2761
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2762
|
+
errorCode,
|
|
2897
2763
|
});
|
|
2898
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2899
2764
|
}
|
|
2900
2765
|
};
|
|
2901
2766
|
const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
@@ -2917,7 +2782,6 @@ const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = as
|
|
|
2917
2782
|
...output,
|
|
2918
2783
|
body: await parseBody(output.body, context),
|
|
2919
2784
|
};
|
|
2920
|
-
let response;
|
|
2921
2785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
2786
|
switch (errorCode) {
|
|
2923
2787
|
case "AccessDeniedException":
|
|
@@ -2946,14 +2810,12 @@ const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = as
|
|
|
2946
2810
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2947
2811
|
default:
|
|
2948
2812
|
const parsedBody = parsedOutput.body;
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
$metadata,
|
|
2813
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2814
|
+
output,
|
|
2815
|
+
parsedBody,
|
|
2816
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2817
|
+
errorCode,
|
|
2955
2818
|
});
|
|
2956
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2957
2819
|
}
|
|
2958
2820
|
};
|
|
2959
2821
|
const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
@@ -2975,7 +2837,6 @@ const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError =
|
|
|
2975
2837
|
...output,
|
|
2976
2838
|
body: await parseBody(output.body, context),
|
|
2977
2839
|
};
|
|
2978
|
-
let response;
|
|
2979
2840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
2841
|
switch (errorCode) {
|
|
2981
2842
|
case "AccessDeniedException":
|
|
@@ -3001,14 +2862,12 @@ const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError =
|
|
|
3001
2862
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3002
2863
|
default:
|
|
3003
2864
|
const parsedBody = parsedOutput.body;
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
$metadata,
|
|
2865
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2866
|
+
output,
|
|
2867
|
+
parsedBody,
|
|
2868
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2869
|
+
errorCode,
|
|
3010
2870
|
});
|
|
3011
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3012
2871
|
}
|
|
3013
2872
|
};
|
|
3014
2873
|
const deserializeAws_json1_1UpdateServiceSettingsCommand = async (output, context) => {
|
|
@@ -3030,7 +2889,6 @@ const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, c
|
|
|
3030
2889
|
...output,
|
|
3031
2890
|
body: await parseBody(output.body, context),
|
|
3032
2891
|
};
|
|
3033
|
-
let response;
|
|
3034
2892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
2893
|
switch (errorCode) {
|
|
3036
2894
|
case "AccessDeniedException":
|
|
@@ -3050,14 +2908,12 @@ const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, c
|
|
|
3050
2908
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3051
2909
|
default:
|
|
3052
2910
|
const parsedBody = parsedOutput.body;
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
$metadata,
|
|
2911
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2912
|
+
output,
|
|
2913
|
+
parsedBody,
|
|
2914
|
+
exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
|
|
2915
|
+
errorCode,
|
|
3059
2916
|
});
|
|
3060
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3061
2917
|
}
|
|
3062
2918
|
};
|
|
3063
2919
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3222,9 +3078,6 @@ const serializeAws_json1_1AllowedOperationList = (input, context) => {
|
|
|
3222
3078
|
return input
|
|
3223
3079
|
.filter((e) => e != null)
|
|
3224
3080
|
.map((entry) => {
|
|
3225
|
-
if (entry === null) {
|
|
3226
|
-
return null;
|
|
3227
|
-
}
|
|
3228
3081
|
return entry;
|
|
3229
3082
|
});
|
|
3230
3083
|
};
|
|
@@ -3232,9 +3085,6 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3232
3085
|
return input
|
|
3233
3086
|
.filter((e) => e != null)
|
|
3234
3087
|
.map((entry) => {
|
|
3235
|
-
if (entry === null) {
|
|
3236
|
-
return null;
|
|
3237
|
-
}
|
|
3238
3088
|
return entry;
|
|
3239
3089
|
});
|
|
3240
3090
|
};
|
|
@@ -3465,9 +3315,6 @@ const serializeAws_json1_1EntitlementDataList = (input, context) => {
|
|
|
3465
3315
|
return input
|
|
3466
3316
|
.filter((e) => e != null)
|
|
3467
3317
|
.map((entry) => {
|
|
3468
|
-
if (entry === null) {
|
|
3469
|
-
return null;
|
|
3470
|
-
}
|
|
3471
3318
|
return serializeAws_json1_1EntitlementData(entry, context);
|
|
3472
3319
|
});
|
|
3473
3320
|
};
|
|
@@ -3475,9 +3322,6 @@ const serializeAws_json1_1EntitlementList = (input, context) => {
|
|
|
3475
3322
|
return input
|
|
3476
3323
|
.filter((e) => e != null)
|
|
3477
3324
|
.map((entry) => {
|
|
3478
|
-
if (entry === null) {
|
|
3479
|
-
return null;
|
|
3480
|
-
}
|
|
3481
3325
|
return serializeAws_json1_1Entitlement(entry, context);
|
|
3482
3326
|
});
|
|
3483
3327
|
};
|
|
@@ -3497,9 +3341,6 @@ const serializeAws_json1_1FilterList = (input, context) => {
|
|
|
3497
3341
|
return input
|
|
3498
3342
|
.filter((e) => e != null)
|
|
3499
3343
|
.map((entry) => {
|
|
3500
|
-
if (entry === null) {
|
|
3501
|
-
return null;
|
|
3502
|
-
}
|
|
3503
3344
|
return serializeAws_json1_1Filter(entry, context);
|
|
3504
3345
|
});
|
|
3505
3346
|
};
|
|
@@ -3507,9 +3348,6 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
3507
3348
|
return input
|
|
3508
3349
|
.filter((e) => e != null)
|
|
3509
3350
|
.map((entry) => {
|
|
3510
|
-
if (entry === null) {
|
|
3511
|
-
return null;
|
|
3512
|
-
}
|
|
3513
3351
|
return serializeAws_json1_1Filter(entry, context);
|
|
3514
3352
|
});
|
|
3515
3353
|
};
|
|
@@ -3517,9 +3355,6 @@ const serializeAws_json1_1FilterValues = (input, context) => {
|
|
|
3517
3355
|
return input
|
|
3518
3356
|
.filter((e) => e != null)
|
|
3519
3357
|
.map((entry) => {
|
|
3520
|
-
if (entry === null) {
|
|
3521
|
-
return null;
|
|
3522
|
-
}
|
|
3523
3358
|
return entry;
|
|
3524
3359
|
});
|
|
3525
3360
|
};
|
|
@@ -3579,9 +3414,6 @@ const serializeAws_json1_1InventoryFilterList = (input, context) => {
|
|
|
3579
3414
|
return input
|
|
3580
3415
|
.filter((e) => e != null)
|
|
3581
3416
|
.map((entry) => {
|
|
3582
|
-
if (entry === null) {
|
|
3583
|
-
return null;
|
|
3584
|
-
}
|
|
3585
3417
|
return serializeAws_json1_1InventoryFilter(entry, context);
|
|
3586
3418
|
});
|
|
3587
3419
|
};
|
|
@@ -3606,9 +3438,6 @@ const serializeAws_json1_1LicenseSpecifications = (input, context) => {
|
|
|
3606
3438
|
return input
|
|
3607
3439
|
.filter((e) => e != null)
|
|
3608
3440
|
.map((entry) => {
|
|
3609
|
-
if (entry === null) {
|
|
3610
|
-
return null;
|
|
3611
|
-
}
|
|
3612
3441
|
return serializeAws_json1_1LicenseSpecification(entry, context);
|
|
3613
3442
|
});
|
|
3614
3443
|
};
|
|
@@ -3728,9 +3557,6 @@ const serializeAws_json1_1MaxSize3StringList = (input, context) => {
|
|
|
3728
3557
|
return input
|
|
3729
3558
|
.filter((e) => e != null)
|
|
3730
3559
|
.map((entry) => {
|
|
3731
|
-
if (entry === null) {
|
|
3732
|
-
return null;
|
|
3733
|
-
}
|
|
3734
3560
|
return entry;
|
|
3735
3561
|
});
|
|
3736
3562
|
};
|
|
@@ -3744,9 +3570,6 @@ const serializeAws_json1_1MetadataList = (input, context) => {
|
|
|
3744
3570
|
return input
|
|
3745
3571
|
.filter((e) => e != null)
|
|
3746
3572
|
.map((entry) => {
|
|
3747
|
-
if (entry === null) {
|
|
3748
|
-
return null;
|
|
3749
|
-
}
|
|
3750
3573
|
return serializeAws_json1_1Metadata(entry, context);
|
|
3751
3574
|
});
|
|
3752
3575
|
};
|
|
@@ -3759,9 +3582,6 @@ const serializeAws_json1_1PrincipalArnList = (input, context) => {
|
|
|
3759
3582
|
return input
|
|
3760
3583
|
.filter((e) => e != null)
|
|
3761
3584
|
.map((entry) => {
|
|
3762
|
-
if (entry === null) {
|
|
3763
|
-
return null;
|
|
3764
|
-
}
|
|
3765
3585
|
return entry;
|
|
3766
3586
|
});
|
|
3767
3587
|
};
|
|
@@ -3790,9 +3610,6 @@ const serializeAws_json1_1ProductInformationFilterList = (input, context) => {
|
|
|
3790
3610
|
return input
|
|
3791
3611
|
.filter((e) => e != null)
|
|
3792
3612
|
.map((entry) => {
|
|
3793
|
-
if (entry === null) {
|
|
3794
|
-
return null;
|
|
3795
|
-
}
|
|
3796
3613
|
return serializeAws_json1_1ProductInformationFilter(entry, context);
|
|
3797
3614
|
});
|
|
3798
3615
|
};
|
|
@@ -3800,9 +3617,6 @@ const serializeAws_json1_1ProductInformationList = (input, context) => {
|
|
|
3800
3617
|
return input
|
|
3801
3618
|
.filter((e) => e != null)
|
|
3802
3619
|
.map((entry) => {
|
|
3803
|
-
if (entry === null) {
|
|
3804
|
-
return null;
|
|
3805
|
-
}
|
|
3806
3620
|
return serializeAws_json1_1ProductInformation(entry, context);
|
|
3807
3621
|
});
|
|
3808
3622
|
};
|
|
@@ -3833,9 +3647,6 @@ const serializeAws_json1_1ReportTypeList = (input, context) => {
|
|
|
3833
3647
|
return input
|
|
3834
3648
|
.filter((e) => e != null)
|
|
3835
3649
|
.map((entry) => {
|
|
3836
|
-
if (entry === null) {
|
|
3837
|
-
return null;
|
|
3838
|
-
}
|
|
3839
3650
|
return entry;
|
|
3840
3651
|
});
|
|
3841
3652
|
};
|
|
@@ -3843,9 +3654,6 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
3843
3654
|
return input
|
|
3844
3655
|
.filter((e) => e != null)
|
|
3845
3656
|
.map((entry) => {
|
|
3846
|
-
if (entry === null) {
|
|
3847
|
-
return null;
|
|
3848
|
-
}
|
|
3849
3657
|
return entry;
|
|
3850
3658
|
});
|
|
3851
3659
|
};
|
|
@@ -3859,9 +3667,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
3859
3667
|
return input
|
|
3860
3668
|
.filter((e) => e != null)
|
|
3861
3669
|
.map((entry) => {
|
|
3862
|
-
if (entry === null) {
|
|
3863
|
-
return null;
|
|
3864
|
-
}
|
|
3865
3670
|
return entry;
|
|
3866
3671
|
});
|
|
3867
3672
|
};
|
|
@@ -3869,9 +3674,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3869
3674
|
return input
|
|
3870
3675
|
.filter((e) => e != null)
|
|
3871
3676
|
.map((entry) => {
|
|
3872
|
-
if (entry === null) {
|
|
3873
|
-
return null;
|
|
3874
|
-
}
|
|
3875
3677
|
return serializeAws_json1_1Tag(entry, context);
|
|
3876
3678
|
});
|
|
3877
3679
|
};
|