@aws-sdk/client-license-manager 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +529 -634
- package/dist-es/protocols/Aws_json1_1.js +408 -513
- package/package.json +26 -26
|
@@ -506,8 +506,7 @@ const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) =>
|
|
|
506
506
|
body: await parseBody(output.body, context),
|
|
507
507
|
};
|
|
508
508
|
let response;
|
|
509
|
-
|
|
510
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
510
|
switch (errorCode) {
|
|
512
511
|
case "AccessDeniedException":
|
|
513
512
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -532,10 +531,12 @@ const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) =>
|
|
|
532
531
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
533
532
|
default:
|
|
534
533
|
const parsedBody = parsedOutput.body;
|
|
534
|
+
const $metadata = deserializeMetadata(output);
|
|
535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
535
536
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
536
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
537
538
|
$fault: "client",
|
|
538
|
-
$metadata
|
|
539
|
+
$metadata,
|
|
539
540
|
});
|
|
540
541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
541
542
|
}
|
|
@@ -560,8 +561,7 @@ const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context)
|
|
|
560
561
|
body: await parseBody(output.body, context),
|
|
561
562
|
};
|
|
562
563
|
let response;
|
|
563
|
-
|
|
564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
565
|
switch (errorCode) {
|
|
566
566
|
case "AccessDeniedException":
|
|
567
567
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -589,10 +589,12 @@ const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context)
|
|
|
589
589
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
590
590
|
default:
|
|
591
591
|
const parsedBody = parsedOutput.body;
|
|
592
|
+
const $metadata = deserializeMetadata(output);
|
|
593
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
592
594
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
595
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
594
596
|
$fault: "client",
|
|
595
|
-
$metadata
|
|
597
|
+
$metadata,
|
|
596
598
|
});
|
|
597
599
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
598
600
|
}
|
|
@@ -617,8 +619,7 @@ const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, c
|
|
|
617
619
|
body: await parseBody(output.body, context),
|
|
618
620
|
};
|
|
619
621
|
let response;
|
|
620
|
-
|
|
621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
623
|
switch (errorCode) {
|
|
623
624
|
case "AccessDeniedException":
|
|
624
625
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -655,10 +656,12 @@ const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, c
|
|
|
655
656
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
656
657
|
default:
|
|
657
658
|
const parsedBody = parsedOutput.body;
|
|
659
|
+
const $metadata = deserializeMetadata(output);
|
|
660
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
658
661
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
660
663
|
$fault: "client",
|
|
661
|
-
$metadata
|
|
664
|
+
$metadata,
|
|
662
665
|
});
|
|
663
666
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
667
|
}
|
|
@@ -683,8 +686,7 @@ const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context
|
|
|
683
686
|
body: await parseBody(output.body, context),
|
|
684
687
|
};
|
|
685
688
|
let response;
|
|
686
|
-
|
|
687
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
690
|
switch (errorCode) {
|
|
689
691
|
case "AccessDeniedException":
|
|
690
692
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -718,10 +720,12 @@ const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context
|
|
|
718
720
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
719
721
|
default:
|
|
720
722
|
const parsedBody = parsedOutput.body;
|
|
723
|
+
const $metadata = deserializeMetadata(output);
|
|
724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
721
725
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
723
727
|
$fault: "client",
|
|
724
|
-
$metadata
|
|
728
|
+
$metadata,
|
|
725
729
|
});
|
|
726
730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
727
731
|
}
|
|
@@ -746,8 +750,7 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
746
750
|
body: await parseBody(output.body, context),
|
|
747
751
|
};
|
|
748
752
|
let response;
|
|
749
|
-
|
|
750
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
754
|
switch (errorCode) {
|
|
752
755
|
case "AccessDeniedException":
|
|
753
756
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -772,10 +775,12 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
772
775
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
773
776
|
default:
|
|
774
777
|
const parsedBody = parsedOutput.body;
|
|
778
|
+
const $metadata = deserializeMetadata(output);
|
|
779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
775
780
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
777
782
|
$fault: "client",
|
|
778
|
-
$metadata
|
|
783
|
+
$metadata,
|
|
779
784
|
});
|
|
780
785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
781
786
|
}
|
|
@@ -800,8 +805,7 @@ const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, cont
|
|
|
800
805
|
body: await parseBody(output.body, context),
|
|
801
806
|
};
|
|
802
807
|
let response;
|
|
803
|
-
|
|
804
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
809
|
switch (errorCode) {
|
|
806
810
|
case "AccessDeniedException":
|
|
807
811
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -826,10 +830,12 @@ const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, cont
|
|
|
826
830
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
827
831
|
default:
|
|
828
832
|
const parsedBody = parsedOutput.body;
|
|
833
|
+
const $metadata = deserializeMetadata(output);
|
|
834
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
829
835
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
836
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
831
837
|
$fault: "client",
|
|
832
|
-
$metadata
|
|
838
|
+
$metadata,
|
|
833
839
|
});
|
|
834
840
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
835
841
|
}
|
|
@@ -854,8 +860,7 @@ const deserializeAws_json1_1CreateLicenseCommandError = async (output, context)
|
|
|
854
860
|
body: await parseBody(output.body, context),
|
|
855
861
|
};
|
|
856
862
|
let response;
|
|
857
|
-
|
|
858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
864
|
switch (errorCode) {
|
|
860
865
|
case "AccessDeniedException":
|
|
861
866
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -880,10 +885,12 @@ const deserializeAws_json1_1CreateLicenseCommandError = async (output, context)
|
|
|
880
885
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
881
886
|
default:
|
|
882
887
|
const parsedBody = parsedOutput.body;
|
|
888
|
+
const $metadata = deserializeMetadata(output);
|
|
889
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
883
890
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
885
892
|
$fault: "client",
|
|
886
|
-
$metadata
|
|
893
|
+
$metadata,
|
|
887
894
|
});
|
|
888
895
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
889
896
|
}
|
|
@@ -908,8 +915,7 @@ const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (outp
|
|
|
908
915
|
body: await parseBody(output.body, context),
|
|
909
916
|
};
|
|
910
917
|
let response;
|
|
911
|
-
|
|
912
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
919
|
switch (errorCode) {
|
|
914
920
|
case "AccessDeniedException":
|
|
915
921
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -931,10 +937,12 @@ const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (outp
|
|
|
931
937
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
932
938
|
default:
|
|
933
939
|
const parsedBody = parsedOutput.body;
|
|
940
|
+
const $metadata = deserializeMetadata(output);
|
|
941
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
934
942
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
943
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
936
944
|
$fault: "client",
|
|
937
|
-
$metadata
|
|
945
|
+
$metadata,
|
|
938
946
|
});
|
|
939
947
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
940
948
|
}
|
|
@@ -959,8 +967,7 @@ const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError =
|
|
|
959
967
|
body: await parseBody(output.body, context),
|
|
960
968
|
};
|
|
961
969
|
let response;
|
|
962
|
-
|
|
963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
971
|
switch (errorCode) {
|
|
965
972
|
case "AccessDeniedException":
|
|
966
973
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -982,10 +989,12 @@ const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError =
|
|
|
982
989
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
983
990
|
default:
|
|
984
991
|
const parsedBody = parsedOutput.body;
|
|
992
|
+
const $metadata = deserializeMetadata(output);
|
|
993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
985
994
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
987
996
|
$fault: "client",
|
|
988
|
-
$metadata
|
|
997
|
+
$metadata,
|
|
989
998
|
});
|
|
990
999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
991
1000
|
}
|
|
@@ -1010,8 +1019,7 @@ const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = as
|
|
|
1010
1019
|
body: await parseBody(output.body, context),
|
|
1011
1020
|
};
|
|
1012
1021
|
let response;
|
|
1013
|
-
|
|
1014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1023
|
switch (errorCode) {
|
|
1016
1024
|
case "AccessDeniedException":
|
|
1017
1025
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1039,10 +1047,12 @@ const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = as
|
|
|
1039
1047
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1040
1048
|
default:
|
|
1041
1049
|
const parsedBody = parsedOutput.body;
|
|
1050
|
+
const $metadata = deserializeMetadata(output);
|
|
1051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1042
1052
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1044
1054
|
$fault: "client",
|
|
1045
|
-
$metadata
|
|
1055
|
+
$metadata,
|
|
1046
1056
|
});
|
|
1047
1057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
1058
|
}
|
|
@@ -1067,8 +1077,7 @@ const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, co
|
|
|
1067
1077
|
body: await parseBody(output.body, context),
|
|
1068
1078
|
};
|
|
1069
1079
|
let response;
|
|
1070
|
-
|
|
1071
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
1081
|
switch (errorCode) {
|
|
1073
1082
|
case "AccessDeniedException":
|
|
1074
1083
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1096,10 +1105,12 @@ const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, co
|
|
|
1096
1105
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1097
1106
|
default:
|
|
1098
1107
|
const parsedBody = parsedOutput.body;
|
|
1108
|
+
const $metadata = deserializeMetadata(output);
|
|
1109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1099
1110
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1101
1112
|
$fault: "client",
|
|
1102
|
-
$metadata
|
|
1113
|
+
$metadata,
|
|
1103
1114
|
});
|
|
1104
1115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1105
1116
|
}
|
|
@@ -1124,8 +1135,7 @@ const deserializeAws_json1_1CreateTokenCommandError = async (output, context) =>
|
|
|
1124
1135
|
body: await parseBody(output.body, context),
|
|
1125
1136
|
};
|
|
1126
1137
|
let response;
|
|
1127
|
-
|
|
1128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1139
|
switch (errorCode) {
|
|
1130
1140
|
case "AccessDeniedException":
|
|
1131
1141
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1153,10 +1163,12 @@ const deserializeAws_json1_1CreateTokenCommandError = async (output, context) =>
|
|
|
1153
1163
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1154
1164
|
default:
|
|
1155
1165
|
const parsedBody = parsedOutput.body;
|
|
1166
|
+
const $metadata = deserializeMetadata(output);
|
|
1167
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1156
1168
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1158
1170
|
$fault: "client",
|
|
1159
|
-
$metadata
|
|
1171
|
+
$metadata,
|
|
1160
1172
|
});
|
|
1161
1173
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1162
1174
|
}
|
|
@@ -1181,8 +1193,7 @@ const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) =>
|
|
|
1181
1193
|
body: await parseBody(output.body, context),
|
|
1182
1194
|
};
|
|
1183
1195
|
let response;
|
|
1184
|
-
|
|
1185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1197
|
switch (errorCode) {
|
|
1187
1198
|
case "AccessDeniedException":
|
|
1188
1199
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1207,10 +1218,12 @@ const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) =>
|
|
|
1207
1218
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1208
1219
|
default:
|
|
1209
1220
|
const parsedBody = parsedOutput.body;
|
|
1221
|
+
const $metadata = deserializeMetadata(output);
|
|
1222
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1210
1223
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1224
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1212
1225
|
$fault: "client",
|
|
1213
|
-
$metadata
|
|
1226
|
+
$metadata,
|
|
1214
1227
|
});
|
|
1215
1228
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1216
1229
|
}
|
|
@@ -1235,8 +1248,7 @@ const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context)
|
|
|
1235
1248
|
body: await parseBody(output.body, context),
|
|
1236
1249
|
};
|
|
1237
1250
|
let response;
|
|
1238
|
-
|
|
1239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1252
|
switch (errorCode) {
|
|
1241
1253
|
case "AccessDeniedException":
|
|
1242
1254
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1264,10 +1276,12 @@ const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context)
|
|
|
1264
1276
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1265
1277
|
default:
|
|
1266
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
|
+
const $metadata = deserializeMetadata(output);
|
|
1280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1267
1281
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1269
1283
|
$fault: "client",
|
|
1270
|
-
$metadata
|
|
1284
|
+
$metadata,
|
|
1271
1285
|
});
|
|
1272
1286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1273
1287
|
}
|
|
@@ -1292,8 +1306,7 @@ const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (outp
|
|
|
1292
1306
|
body: await parseBody(output.body, context),
|
|
1293
1307
|
};
|
|
1294
1308
|
let response;
|
|
1295
|
-
|
|
1296
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1310
|
switch (errorCode) {
|
|
1298
1311
|
case "AccessDeniedException":
|
|
1299
1312
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1312,10 +1325,12 @@ const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (outp
|
|
|
1312
1325
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1313
1326
|
default:
|
|
1314
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
|
+
const $metadata = deserializeMetadata(output);
|
|
1329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1315
1330
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1317
1332
|
$fault: "client",
|
|
1318
|
-
$metadata
|
|
1333
|
+
$metadata,
|
|
1319
1334
|
});
|
|
1320
1335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1321
1336
|
}
|
|
@@ -1340,8 +1355,7 @@ const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = as
|
|
|
1340
1355
|
body: await parseBody(output.body, context),
|
|
1341
1356
|
};
|
|
1342
1357
|
let response;
|
|
1343
|
-
|
|
1344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1359
|
switch (errorCode) {
|
|
1346
1360
|
case "AccessDeniedException":
|
|
1347
1361
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1369,10 +1383,12 @@ const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = as
|
|
|
1369
1383
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1370
1384
|
default:
|
|
1371
1385
|
const parsedBody = parsedOutput.body;
|
|
1386
|
+
const $metadata = deserializeMetadata(output);
|
|
1387
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1372
1388
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1389
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1374
1390
|
$fault: "client",
|
|
1375
|
-
$metadata
|
|
1391
|
+
$metadata,
|
|
1376
1392
|
});
|
|
1377
1393
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1378
1394
|
}
|
|
@@ -1397,8 +1413,7 @@ const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) =>
|
|
|
1397
1413
|
body: await parseBody(output.body, context),
|
|
1398
1414
|
};
|
|
1399
1415
|
let response;
|
|
1400
|
-
|
|
1401
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
1417
|
switch (errorCode) {
|
|
1403
1418
|
case "AccessDeniedException":
|
|
1404
1419
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1423,10 +1438,12 @@ const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) =>
|
|
|
1423
1438
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1424
1439
|
default:
|
|
1425
1440
|
const parsedBody = parsedOutput.body;
|
|
1441
|
+
const $metadata = deserializeMetadata(output);
|
|
1442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1426
1443
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1428
1445
|
$fault: "client",
|
|
1429
|
-
$metadata
|
|
1446
|
+
$metadata,
|
|
1430
1447
|
});
|
|
1431
1448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1432
1449
|
}
|
|
@@ -1451,8 +1468,7 @@ const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output
|
|
|
1451
1468
|
body: await parseBody(output.body, context),
|
|
1452
1469
|
};
|
|
1453
1470
|
let response;
|
|
1454
|
-
|
|
1455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1472
|
switch (errorCode) {
|
|
1457
1473
|
case "AccessDeniedException":
|
|
1458
1474
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1477,10 +1493,12 @@ const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output
|
|
|
1477
1493
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1478
1494
|
default:
|
|
1479
1495
|
const parsedBody = parsedOutput.body;
|
|
1496
|
+
const $metadata = deserializeMetadata(output);
|
|
1497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1480
1498
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1482
1500
|
$fault: "client",
|
|
1483
|
-
$metadata
|
|
1501
|
+
$metadata,
|
|
1484
1502
|
});
|
|
1485
1503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1486
1504
|
}
|
|
@@ -1505,8 +1523,7 @@ const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context)
|
|
|
1505
1523
|
body: await parseBody(output.body, context),
|
|
1506
1524
|
};
|
|
1507
1525
|
let response;
|
|
1508
|
-
|
|
1509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1527
|
switch (errorCode) {
|
|
1511
1528
|
case "AccessDeniedException":
|
|
1512
1529
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1525,10 +1542,12 @@ const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context)
|
|
|
1525
1542
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1526
1543
|
default:
|
|
1527
1544
|
const parsedBody = parsedOutput.body;
|
|
1545
|
+
const $metadata = deserializeMetadata(output);
|
|
1546
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1547
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1548
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1549
|
$fault: "client",
|
|
1531
|
-
$metadata
|
|
1550
|
+
$metadata,
|
|
1532
1551
|
});
|
|
1533
1552
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1534
1553
|
}
|
|
@@ -1553,8 +1572,7 @@ const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
|
1553
1572
|
body: await parseBody(output.body, context),
|
|
1554
1573
|
};
|
|
1555
1574
|
let response;
|
|
1556
|
-
|
|
1557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
1576
|
switch (errorCode) {
|
|
1559
1577
|
case "AccessDeniedException":
|
|
1560
1578
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1579,10 +1597,12 @@ const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
|
1579
1597
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1580
1598
|
default:
|
|
1581
1599
|
const parsedBody = parsedOutput.body;
|
|
1600
|
+
const $metadata = deserializeMetadata(output);
|
|
1601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1582
1602
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1584
1604
|
$fault: "client",
|
|
1585
|
-
$metadata
|
|
1605
|
+
$metadata,
|
|
1586
1606
|
});
|
|
1587
1607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1588
1608
|
}
|
|
@@ -1607,8 +1627,7 @@ const deserializeAws_json1_1GetLicenseCommandError = async (output, context) =>
|
|
|
1607
1627
|
body: await parseBody(output.body, context),
|
|
1608
1628
|
};
|
|
1609
1629
|
let response;
|
|
1610
|
-
|
|
1611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1631
|
switch (errorCode) {
|
|
1613
1632
|
case "AccessDeniedException":
|
|
1614
1633
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1630,10 +1649,12 @@ const deserializeAws_json1_1GetLicenseCommandError = async (output, context) =>
|
|
|
1630
1649
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1631
1650
|
default:
|
|
1632
1651
|
const parsedBody = parsedOutput.body;
|
|
1652
|
+
const $metadata = deserializeMetadata(output);
|
|
1653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1633
1654
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1635
1656
|
$fault: "client",
|
|
1636
|
-
$metadata
|
|
1657
|
+
$metadata,
|
|
1637
1658
|
});
|
|
1638
1659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1639
1660
|
}
|
|
@@ -1658,8 +1679,7 @@ const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output,
|
|
|
1658
1679
|
body: await parseBody(output.body, context),
|
|
1659
1680
|
};
|
|
1660
1681
|
let response;
|
|
1661
|
-
|
|
1662
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1683
|
switch (errorCode) {
|
|
1664
1684
|
case "AccessDeniedException":
|
|
1665
1685
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1678,10 +1698,12 @@ const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output,
|
|
|
1678
1698
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1679
1699
|
default:
|
|
1680
1700
|
const parsedBody = parsedOutput.body;
|
|
1701
|
+
const $metadata = deserializeMetadata(output);
|
|
1702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1681
1703
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1683
1705
|
$fault: "client",
|
|
1684
|
-
$metadata
|
|
1706
|
+
$metadata,
|
|
1685
1707
|
});
|
|
1686
1708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1687
1709
|
}
|
|
@@ -1706,8 +1728,7 @@ const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output
|
|
|
1706
1728
|
body: await parseBody(output.body, context),
|
|
1707
1729
|
};
|
|
1708
1730
|
let response;
|
|
1709
|
-
|
|
1710
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
1732
|
switch (errorCode) {
|
|
1712
1733
|
case "AccessDeniedException":
|
|
1713
1734
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1726,10 +1747,12 @@ const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output
|
|
|
1726
1747
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1727
1748
|
default:
|
|
1728
1749
|
const parsedBody = parsedOutput.body;
|
|
1750
|
+
const $metadata = deserializeMetadata(output);
|
|
1751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1729
1752
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1731
1754
|
$fault: "client",
|
|
1732
|
-
$metadata
|
|
1755
|
+
$metadata,
|
|
1733
1756
|
});
|
|
1734
1757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1758
|
}
|
|
@@ -1754,8 +1777,7 @@ const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async
|
|
|
1754
1777
|
body: await parseBody(output.body, context),
|
|
1755
1778
|
};
|
|
1756
1779
|
let response;
|
|
1757
|
-
|
|
1758
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
1781
|
switch (errorCode) {
|
|
1760
1782
|
case "AccessDeniedException":
|
|
1761
1783
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1783,10 +1805,12 @@ const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async
|
|
|
1783
1805
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1784
1806
|
default:
|
|
1785
1807
|
const parsedBody = parsedOutput.body;
|
|
1808
|
+
const $metadata = deserializeMetadata(output);
|
|
1809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1786
1810
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1788
1812
|
$fault: "client",
|
|
1789
|
-
$metadata
|
|
1813
|
+
$metadata,
|
|
1790
1814
|
});
|
|
1791
1815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1792
1816
|
}
|
|
@@ -1811,8 +1835,7 @@ const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context
|
|
|
1811
1835
|
body: await parseBody(output.body, context),
|
|
1812
1836
|
};
|
|
1813
1837
|
let response;
|
|
1814
|
-
|
|
1815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1839
|
switch (errorCode) {
|
|
1817
1840
|
case "AccessDeniedException":
|
|
1818
1841
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1834,10 +1857,12 @@ const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context
|
|
|
1834
1857
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1835
1858
|
default:
|
|
1836
1859
|
const parsedBody = parsedOutput.body;
|
|
1860
|
+
const $metadata = deserializeMetadata(output);
|
|
1861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1837
1862
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1839
1864
|
$fault: "client",
|
|
1840
|
-
$metadata
|
|
1865
|
+
$metadata,
|
|
1841
1866
|
});
|
|
1842
1867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1843
1868
|
}
|
|
@@ -1862,8 +1887,7 @@ const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, cont
|
|
|
1862
1887
|
body: await parseBody(output.body, context),
|
|
1863
1888
|
};
|
|
1864
1889
|
let response;
|
|
1865
|
-
|
|
1866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
1891
|
switch (errorCode) {
|
|
1868
1892
|
case "AccessDeniedException":
|
|
1869
1893
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1879,10 +1903,12 @@ const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, cont
|
|
|
1879
1903
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1880
1904
|
default:
|
|
1881
1905
|
const parsedBody = parsedOutput.body;
|
|
1906
|
+
const $metadata = deserializeMetadata(output);
|
|
1907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1882
1908
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1884
1910
|
$fault: "client",
|
|
1885
|
-
$metadata
|
|
1911
|
+
$metadata,
|
|
1886
1912
|
});
|
|
1887
1913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1888
1914
|
}
|
|
@@ -1907,8 +1933,7 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError
|
|
|
1907
1933
|
body: await parseBody(output.body, context),
|
|
1908
1934
|
};
|
|
1909
1935
|
let response;
|
|
1910
|
-
|
|
1911
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1937
|
switch (errorCode) {
|
|
1913
1938
|
case "AccessDeniedException":
|
|
1914
1939
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1930,10 +1955,12 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError
|
|
|
1930
1955
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1931
1956
|
default:
|
|
1932
1957
|
const parsedBody = parsedOutput.body;
|
|
1958
|
+
const $metadata = deserializeMetadata(output);
|
|
1959
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1933
1960
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1935
1962
|
$fault: "client",
|
|
1936
|
-
$metadata
|
|
1963
|
+
$metadata,
|
|
1937
1964
|
});
|
|
1938
1965
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1939
1966
|
}
|
|
@@ -1958,8 +1985,7 @@ const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, c
|
|
|
1958
1985
|
body: await parseBody(output.body, context),
|
|
1959
1986
|
};
|
|
1960
1987
|
let response;
|
|
1961
|
-
|
|
1962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1989
|
switch (errorCode) {
|
|
1964
1990
|
case "AccessDeniedException":
|
|
1965
1991
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -1984,10 +2010,12 @@ const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, c
|
|
|
1984
2010
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1985
2011
|
default:
|
|
1986
2012
|
const parsedBody = parsedOutput.body;
|
|
2013
|
+
const $metadata = deserializeMetadata(output);
|
|
2014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1987
2015
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1989
2017
|
$fault: "client",
|
|
1990
|
-
$metadata
|
|
2018
|
+
$metadata,
|
|
1991
2019
|
});
|
|
1992
2020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1993
2021
|
}
|
|
@@ -2012,8 +2040,7 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand
|
|
|
2012
2040
|
body: await parseBody(output.body, context),
|
|
2013
2041
|
};
|
|
2014
2042
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2044
|
switch (errorCode) {
|
|
2018
2045
|
case "AccessDeniedException":
|
|
2019
2046
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2032,10 +2059,12 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand
|
|
|
2032
2059
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2033
2060
|
default:
|
|
2034
2061
|
const parsedBody = parsedOutput.body;
|
|
2062
|
+
const $metadata = deserializeMetadata(output);
|
|
2063
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2064
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2065
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2066
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2067
|
+
$metadata,
|
|
2039
2068
|
});
|
|
2040
2069
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
2070
|
}
|
|
@@ -2060,8 +2089,7 @@ const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (outpu
|
|
|
2060
2089
|
body: await parseBody(output.body, context),
|
|
2061
2090
|
};
|
|
2062
2091
|
let response;
|
|
2063
|
-
|
|
2064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
2093
|
switch (errorCode) {
|
|
2066
2094
|
case "AccessDeniedException":
|
|
2067
2095
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2083,10 +2111,12 @@ const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (outpu
|
|
|
2083
2111
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2084
2112
|
default:
|
|
2085
2113
|
const parsedBody = parsedOutput.body;
|
|
2114
|
+
const $metadata = deserializeMetadata(output);
|
|
2115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2086
2116
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2117
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2088
2118
|
$fault: "client",
|
|
2089
|
-
$metadata
|
|
2119
|
+
$metadata,
|
|
2090
2120
|
});
|
|
2091
2121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2092
2122
|
}
|
|
@@ -2111,8 +2141,7 @@ const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (outp
|
|
|
2111
2141
|
body: await parseBody(output.body, context),
|
|
2112
2142
|
};
|
|
2113
2143
|
let response;
|
|
2114
|
-
|
|
2115
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2145
|
switch (errorCode) {
|
|
2117
2146
|
case "AccessDeniedException":
|
|
2118
2147
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2131,10 +2160,12 @@ const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (outp
|
|
|
2131
2160
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2132
2161
|
default:
|
|
2133
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2134
2165
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2135
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2136
2167
|
$fault: "client",
|
|
2137
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2138
2169
|
});
|
|
2139
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2140
2171
|
}
|
|
@@ -2159,8 +2190,7 @@ const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = asy
|
|
|
2159
2190
|
body: await parseBody(output.body, context),
|
|
2160
2191
|
};
|
|
2161
2192
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2194
|
switch (errorCode) {
|
|
2165
2195
|
case "AccessDeniedException":
|
|
2166
2196
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2188,10 +2218,12 @@ const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = asy
|
|
|
2188
2218
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2189
2219
|
default:
|
|
2190
2220
|
const parsedBody = parsedOutput.body;
|
|
2221
|
+
const $metadata = deserializeMetadata(output);
|
|
2222
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2191
2223
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2224
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2193
2225
|
$fault: "client",
|
|
2194
|
-
$metadata
|
|
2226
|
+
$metadata,
|
|
2195
2227
|
});
|
|
2196
2228
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2197
2229
|
}
|
|
@@ -2216,8 +2248,7 @@ const deserializeAws_json1_1ListLicensesCommandError = async (output, context) =
|
|
|
2216
2248
|
body: await parseBody(output.body, context),
|
|
2217
2249
|
};
|
|
2218
2250
|
let response;
|
|
2219
|
-
|
|
2220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2252
|
switch (errorCode) {
|
|
2222
2253
|
case "AccessDeniedException":
|
|
2223
2254
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2239,10 +2270,12 @@ const deserializeAws_json1_1ListLicensesCommandError = async (output, context) =
|
|
|
2239
2270
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2240
2271
|
default:
|
|
2241
2272
|
const parsedBody = parsedOutput.body;
|
|
2273
|
+
const $metadata = deserializeMetadata(output);
|
|
2274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2242
2275
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2243
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2244
2277
|
$fault: "client",
|
|
2245
|
-
$metadata
|
|
2278
|
+
$metadata,
|
|
2246
2279
|
});
|
|
2247
2280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2281
|
}
|
|
@@ -2267,8 +2300,7 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = a
|
|
|
2267
2300
|
body: await parseBody(output.body, context),
|
|
2268
2301
|
};
|
|
2269
2302
|
let response;
|
|
2270
|
-
|
|
2271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2304
|
switch (errorCode) {
|
|
2273
2305
|
case "AccessDeniedException":
|
|
2274
2306
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2287,10 +2319,12 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = a
|
|
|
2287
2319
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2288
2320
|
default:
|
|
2289
2321
|
const parsedBody = parsedOutput.body;
|
|
2322
|
+
const $metadata = deserializeMetadata(output);
|
|
2323
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2324
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2325
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2326
|
$fault: "client",
|
|
2293
|
-
$metadata
|
|
2327
|
+
$metadata,
|
|
2294
2328
|
});
|
|
2295
2329
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2296
2330
|
}
|
|
@@ -2315,8 +2349,7 @@ const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, con
|
|
|
2315
2349
|
body: await parseBody(output.body, context),
|
|
2316
2350
|
};
|
|
2317
2351
|
let response;
|
|
2318
|
-
|
|
2319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2353
|
switch (errorCode) {
|
|
2321
2354
|
case "AccessDeniedException":
|
|
2322
2355
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2335,10 +2368,12 @@ const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, con
|
|
|
2335
2368
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2336
2369
|
default:
|
|
2337
2370
|
const parsedBody = parsedOutput.body;
|
|
2371
|
+
const $metadata = deserializeMetadata(output);
|
|
2372
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2338
2373
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2339
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2340
2375
|
$fault: "client",
|
|
2341
|
-
$metadata
|
|
2376
|
+
$metadata,
|
|
2342
2377
|
});
|
|
2343
2378
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2344
2379
|
}
|
|
@@ -2363,8 +2398,7 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
2363
2398
|
body: await parseBody(output.body, context),
|
|
2364
2399
|
};
|
|
2365
2400
|
let response;
|
|
2366
|
-
|
|
2367
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
2402
|
switch (errorCode) {
|
|
2369
2403
|
case "AccessDeniedException":
|
|
2370
2404
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2389,10 +2423,12 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
2389
2423
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2390
2424
|
default:
|
|
2391
2425
|
const parsedBody = parsedOutput.body;
|
|
2426
|
+
const $metadata = deserializeMetadata(output);
|
|
2427
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2392
2428
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2429
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2394
2430
|
$fault: "client",
|
|
2395
|
-
$metadata
|
|
2431
|
+
$metadata,
|
|
2396
2432
|
});
|
|
2397
2433
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2398
2434
|
}
|
|
@@ -2417,8 +2453,7 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
2417
2453
|
body: await parseBody(output.body, context),
|
|
2418
2454
|
};
|
|
2419
2455
|
let response;
|
|
2420
|
-
|
|
2421
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
2457
|
switch (errorCode) {
|
|
2423
2458
|
case "AccessDeniedException":
|
|
2424
2459
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2443,10 +2478,12 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
2443
2478
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2444
2479
|
default:
|
|
2445
2480
|
const parsedBody = parsedOutput.body;
|
|
2481
|
+
const $metadata = deserializeMetadata(output);
|
|
2482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2446
2483
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2447
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2448
2485
|
$fault: "client",
|
|
2449
|
-
$metadata
|
|
2486
|
+
$metadata,
|
|
2450
2487
|
});
|
|
2451
2488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2452
2489
|
}
|
|
@@ -2471,8 +2508,7 @@ const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, c
|
|
|
2471
2508
|
body: await parseBody(output.body, context),
|
|
2472
2509
|
};
|
|
2473
2510
|
let response;
|
|
2474
|
-
|
|
2475
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
2512
|
switch (errorCode) {
|
|
2477
2513
|
case "AccessDeniedException":
|
|
2478
2514
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2497,10 +2533,12 @@ const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, c
|
|
|
2497
2533
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2498
2534
|
default:
|
|
2499
2535
|
const parsedBody = parsedOutput.body;
|
|
2536
|
+
const $metadata = deserializeMetadata(output);
|
|
2537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2500
2538
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2502
2540
|
$fault: "client",
|
|
2503
|
-
$metadata
|
|
2541
|
+
$metadata,
|
|
2504
2542
|
});
|
|
2505
2543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2506
2544
|
}
|
|
@@ -2525,8 +2563,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2525
2563
|
body: await parseBody(output.body, context),
|
|
2526
2564
|
};
|
|
2527
2565
|
let response;
|
|
2528
|
-
|
|
2529
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
2567
|
switch (errorCode) {
|
|
2531
2568
|
case "AccessDeniedException":
|
|
2532
2569
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2545,10 +2582,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2545
2582
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2546
2583
|
default:
|
|
2547
2584
|
const parsedBody = parsedOutput.body;
|
|
2585
|
+
const $metadata = deserializeMetadata(output);
|
|
2586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2548
2587
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2550
2589
|
$fault: "client",
|
|
2551
|
-
$metadata
|
|
2590
|
+
$metadata,
|
|
2552
2591
|
});
|
|
2553
2592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2554
2593
|
}
|
|
@@ -2573,8 +2612,7 @@ const deserializeAws_json1_1ListTokensCommandError = async (output, context) =>
|
|
|
2573
2612
|
body: await parseBody(output.body, context),
|
|
2574
2613
|
};
|
|
2575
2614
|
let response;
|
|
2576
|
-
|
|
2577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
2616
|
switch (errorCode) {
|
|
2579
2617
|
case "AccessDeniedException":
|
|
2580
2618
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2593,10 +2631,12 @@ const deserializeAws_json1_1ListTokensCommandError = async (output, context) =>
|
|
|
2593
2631
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2594
2632
|
default:
|
|
2595
2633
|
const parsedBody = parsedOutput.body;
|
|
2634
|
+
const $metadata = deserializeMetadata(output);
|
|
2635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2596
2636
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2597
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2598
2638
|
$fault: "client",
|
|
2599
|
-
$metadata
|
|
2639
|
+
$metadata,
|
|
2600
2640
|
});
|
|
2601
2641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2602
2642
|
}
|
|
@@ -2621,8 +2661,7 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async
|
|
|
2621
2661
|
body: await parseBody(output.body, context),
|
|
2622
2662
|
};
|
|
2623
2663
|
let response;
|
|
2624
|
-
|
|
2625
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
2665
|
switch (errorCode) {
|
|
2627
2666
|
case "AccessDeniedException":
|
|
2628
2667
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2644,10 +2683,12 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async
|
|
|
2644
2683
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2645
2684
|
default:
|
|
2646
2685
|
const parsedBody = parsedOutput.body;
|
|
2686
|
+
const $metadata = deserializeMetadata(output);
|
|
2687
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2647
2688
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2649
2690
|
$fault: "client",
|
|
2650
|
-
$metadata
|
|
2691
|
+
$metadata,
|
|
2651
2692
|
});
|
|
2652
2693
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2653
2694
|
}
|
|
@@ -2672,8 +2713,7 @@ const deserializeAws_json1_1RejectGrantCommandError = async (output, context) =>
|
|
|
2672
2713
|
body: await parseBody(output.body, context),
|
|
2673
2714
|
};
|
|
2674
2715
|
let response;
|
|
2675
|
-
|
|
2676
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
2717
|
switch (errorCode) {
|
|
2678
2718
|
case "AccessDeniedException":
|
|
2679
2719
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2698,10 +2738,12 @@ const deserializeAws_json1_1RejectGrantCommandError = async (output, context) =>
|
|
|
2698
2738
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2699
2739
|
default:
|
|
2700
2740
|
const parsedBody = parsedOutput.body;
|
|
2741
|
+
const $metadata = deserializeMetadata(output);
|
|
2742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2701
2743
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2703
2745
|
$fault: "client",
|
|
2704
|
-
$metadata
|
|
2746
|
+
$metadata,
|
|
2705
2747
|
});
|
|
2706
2748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2707
2749
|
}
|
|
@@ -2726,8 +2768,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2726
2768
|
body: await parseBody(output.body, context),
|
|
2727
2769
|
};
|
|
2728
2770
|
let response;
|
|
2729
|
-
|
|
2730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
2772
|
switch (errorCode) {
|
|
2732
2773
|
case "AccessDeniedException":
|
|
2733
2774
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2746,10 +2787,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2746
2787
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2747
2788
|
default:
|
|
2748
2789
|
const parsedBody = parsedOutput.body;
|
|
2790
|
+
const $metadata = deserializeMetadata(output);
|
|
2791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2749
2792
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2751
2794
|
$fault: "client",
|
|
2752
|
-
$metadata
|
|
2795
|
+
$metadata,
|
|
2753
2796
|
});
|
|
2754
2797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2755
2798
|
}
|
|
@@ -2774,8 +2817,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2774
2817
|
body: await parseBody(output.body, context),
|
|
2775
2818
|
};
|
|
2776
2819
|
let response;
|
|
2777
|
-
|
|
2778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2821
|
switch (errorCode) {
|
|
2780
2822
|
case "AccessDeniedException":
|
|
2781
2823
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2794,10 +2836,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2794
2836
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2795
2837
|
default:
|
|
2796
2838
|
const parsedBody = parsedOutput.body;
|
|
2839
|
+
const $metadata = deserializeMetadata(output);
|
|
2840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2797
2841
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2799
2843
|
$fault: "client",
|
|
2800
|
-
$metadata
|
|
2844
|
+
$metadata,
|
|
2801
2845
|
});
|
|
2802
2846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2803
2847
|
}
|
|
@@ -2822,8 +2866,7 @@ const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (outp
|
|
|
2822
2866
|
body: await parseBody(output.body, context),
|
|
2823
2867
|
};
|
|
2824
2868
|
let response;
|
|
2825
|
-
|
|
2826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
2870
|
switch (errorCode) {
|
|
2828
2871
|
case "AccessDeniedException":
|
|
2829
2872
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2845,10 +2888,12 @@ const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (outp
|
|
|
2845
2888
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2846
2889
|
default:
|
|
2847
2890
|
const parsedBody = parsedOutput.body;
|
|
2891
|
+
const $metadata = deserializeMetadata(output);
|
|
2892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2848
2893
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2849
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2850
2895
|
$fault: "client",
|
|
2851
|
-
$metadata
|
|
2896
|
+
$metadata,
|
|
2852
2897
|
});
|
|
2853
2898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2854
2899
|
}
|
|
@@ -2873,8 +2918,7 @@ const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = as
|
|
|
2873
2918
|
body: await parseBody(output.body, context),
|
|
2874
2919
|
};
|
|
2875
2920
|
let response;
|
|
2876
|
-
|
|
2877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2922
|
switch (errorCode) {
|
|
2879
2923
|
case "AccessDeniedException":
|
|
2880
2924
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2902,10 +2946,12 @@ const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = as
|
|
|
2902
2946
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2903
2947
|
default:
|
|
2904
2948
|
const parsedBody = parsedOutput.body;
|
|
2949
|
+
const $metadata = deserializeMetadata(output);
|
|
2950
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2905
2951
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2952
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2907
2953
|
$fault: "client",
|
|
2908
|
-
$metadata
|
|
2954
|
+
$metadata,
|
|
2909
2955
|
});
|
|
2910
2956
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2957
|
}
|
|
@@ -2930,8 +2976,7 @@ const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError =
|
|
|
2930
2976
|
body: await parseBody(output.body, context),
|
|
2931
2977
|
};
|
|
2932
2978
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2980
|
switch (errorCode) {
|
|
2936
2981
|
case "AccessDeniedException":
|
|
2937
2982
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -2956,10 +3001,12 @@ const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError =
|
|
|
2956
3001
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2957
3002
|
default:
|
|
2958
3003
|
const parsedBody = parsedOutput.body;
|
|
3004
|
+
const $metadata = deserializeMetadata(output);
|
|
3005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2959
3006
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2960
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2961
3008
|
$fault: "client",
|
|
2962
|
-
$metadata
|
|
3009
|
+
$metadata,
|
|
2963
3010
|
});
|
|
2964
3011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2965
3012
|
}
|
|
@@ -2984,8 +3031,7 @@ const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, c
|
|
|
2984
3031
|
body: await parseBody(output.body, context),
|
|
2985
3032
|
};
|
|
2986
3033
|
let response;
|
|
2987
|
-
|
|
2988
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
3035
|
switch (errorCode) {
|
|
2990
3036
|
case "AccessDeniedException":
|
|
2991
3037
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
@@ -3004,10 +3050,12 @@ const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, c
|
|
|
3004
3050
|
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3005
3051
|
default:
|
|
3006
3052
|
const parsedBody = parsedOutput.body;
|
|
3053
|
+
const $metadata = deserializeMetadata(output);
|
|
3054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3007
3055
|
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
3008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3009
3057
|
$fault: "client",
|
|
3010
|
-
$metadata
|
|
3058
|
+
$metadata,
|
|
3011
3059
|
});
|
|
3012
3060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3013
3061
|
}
|
|
@@ -3167,7 +3215,7 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
3167
3215
|
};
|
|
3168
3216
|
const serializeAws_json1_1AcceptGrantRequest = (input, context) => {
|
|
3169
3217
|
return {
|
|
3170
|
-
...(input.GrantArn
|
|
3218
|
+
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3171
3219
|
};
|
|
3172
3220
|
};
|
|
3173
3221
|
const serializeAws_json1_1AllowedOperationList = (input, context) => {
|
|
@@ -3192,264 +3240,225 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3192
3240
|
};
|
|
3193
3241
|
const serializeAws_json1_1BorrowConfiguration = (input, context) => {
|
|
3194
3242
|
return {
|
|
3195
|
-
...(input.AllowEarlyCheckIn
|
|
3196
|
-
|
|
3197
|
-
...(input.MaxTimeToLiveInMinutes !== undefined &&
|
|
3198
|
-
input.MaxTimeToLiveInMinutes !== null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
|
|
3243
|
+
...(input.AllowEarlyCheckIn != null && { AllowEarlyCheckIn: input.AllowEarlyCheckIn }),
|
|
3244
|
+
...(input.MaxTimeToLiveInMinutes != null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
|
|
3199
3245
|
};
|
|
3200
3246
|
};
|
|
3201
3247
|
const serializeAws_json1_1CheckInLicenseRequest = (input, context) => {
|
|
3202
3248
|
return {
|
|
3203
|
-
...(input.Beneficiary
|
|
3204
|
-
...(input.LicenseConsumptionToken
|
|
3205
|
-
input.LicenseConsumptionToken !== null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
|
|
3249
|
+
...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
|
|
3250
|
+
...(input.LicenseConsumptionToken != null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
|
|
3206
3251
|
};
|
|
3207
3252
|
};
|
|
3208
3253
|
const serializeAws_json1_1CheckoutBorrowLicenseRequest = (input, context) => {
|
|
3209
3254
|
return {
|
|
3210
|
-
...(input.CheckoutMetadata
|
|
3211
|
-
input.CheckoutMetadata !== null && {
|
|
3255
|
+
...(input.CheckoutMetadata != null && {
|
|
3212
3256
|
CheckoutMetadata: serializeAws_json1_1MetadataList(input.CheckoutMetadata, context),
|
|
3213
3257
|
}),
|
|
3214
|
-
...(input.ClientToken
|
|
3215
|
-
...(input.DigitalSignatureMethod
|
|
3216
|
-
|
|
3217
|
-
...(input.Entitlements !== undefined &&
|
|
3218
|
-
input.Entitlements !== null && {
|
|
3258
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3259
|
+
...(input.DigitalSignatureMethod != null && { DigitalSignatureMethod: input.DigitalSignatureMethod }),
|
|
3260
|
+
...(input.Entitlements != null && {
|
|
3219
3261
|
Entitlements: serializeAws_json1_1EntitlementDataList(input.Entitlements, context),
|
|
3220
3262
|
}),
|
|
3221
|
-
...(input.LicenseArn
|
|
3222
|
-
...(input.NodeId
|
|
3263
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3264
|
+
...(input.NodeId != null && { NodeId: input.NodeId }),
|
|
3223
3265
|
};
|
|
3224
3266
|
};
|
|
3225
3267
|
const serializeAws_json1_1CheckoutLicenseRequest = (input, context) => {
|
|
3226
3268
|
return {
|
|
3227
|
-
...(input.Beneficiary
|
|
3228
|
-
...(input.CheckoutType
|
|
3229
|
-
...(input.ClientToken
|
|
3230
|
-
...(input.Entitlements
|
|
3231
|
-
input.Entitlements !== null && {
|
|
3269
|
+
...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
|
|
3270
|
+
...(input.CheckoutType != null && { CheckoutType: input.CheckoutType }),
|
|
3271
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3272
|
+
...(input.Entitlements != null && {
|
|
3232
3273
|
Entitlements: serializeAws_json1_1EntitlementDataList(input.Entitlements, context),
|
|
3233
3274
|
}),
|
|
3234
|
-
...(input.KeyFingerprint
|
|
3235
|
-
|
|
3236
|
-
...(input.
|
|
3237
|
-
...(input.ProductSKU !== undefined && input.ProductSKU !== null && { ProductSKU: input.ProductSKU }),
|
|
3275
|
+
...(input.KeyFingerprint != null && { KeyFingerprint: input.KeyFingerprint }),
|
|
3276
|
+
...(input.NodeId != null && { NodeId: input.NodeId }),
|
|
3277
|
+
...(input.ProductSKU != null && { ProductSKU: input.ProductSKU }),
|
|
3238
3278
|
};
|
|
3239
3279
|
};
|
|
3240
3280
|
const serializeAws_json1_1ConsumptionConfiguration = (input, context) => {
|
|
3241
3281
|
return {
|
|
3242
|
-
...(input.BorrowConfiguration
|
|
3243
|
-
input.BorrowConfiguration !== null && {
|
|
3282
|
+
...(input.BorrowConfiguration != null && {
|
|
3244
3283
|
BorrowConfiguration: serializeAws_json1_1BorrowConfiguration(input.BorrowConfiguration, context),
|
|
3245
3284
|
}),
|
|
3246
|
-
...(input.ProvisionalConfiguration
|
|
3247
|
-
input.ProvisionalConfiguration !== null && {
|
|
3285
|
+
...(input.ProvisionalConfiguration != null && {
|
|
3248
3286
|
ProvisionalConfiguration: serializeAws_json1_1ProvisionalConfiguration(input.ProvisionalConfiguration, context),
|
|
3249
3287
|
}),
|
|
3250
|
-
...(input.RenewType
|
|
3288
|
+
...(input.RenewType != null && { RenewType: input.RenewType }),
|
|
3251
3289
|
};
|
|
3252
3290
|
};
|
|
3253
3291
|
const serializeAws_json1_1CreateGrantRequest = (input, context) => {
|
|
3254
3292
|
return {
|
|
3255
|
-
...(input.AllowedOperations
|
|
3256
|
-
input.AllowedOperations !== null && {
|
|
3293
|
+
...(input.AllowedOperations != null && {
|
|
3257
3294
|
AllowedOperations: serializeAws_json1_1AllowedOperationList(input.AllowedOperations, context),
|
|
3258
3295
|
}),
|
|
3259
|
-
...(input.ClientToken
|
|
3260
|
-
...(input.GrantName
|
|
3261
|
-
...(input.HomeRegion
|
|
3262
|
-
...(input.LicenseArn
|
|
3263
|
-
...(input.Principals
|
|
3264
|
-
input.Principals !== null && { Principals: serializeAws_json1_1PrincipalArnList(input.Principals, context) }),
|
|
3296
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3297
|
+
...(input.GrantName != null && { GrantName: input.GrantName }),
|
|
3298
|
+
...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
|
|
3299
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3300
|
+
...(input.Principals != null && { Principals: serializeAws_json1_1PrincipalArnList(input.Principals, context) }),
|
|
3265
3301
|
};
|
|
3266
3302
|
};
|
|
3267
3303
|
const serializeAws_json1_1CreateGrantVersionRequest = (input, context) => {
|
|
3268
3304
|
return {
|
|
3269
|
-
...(input.AllowedOperations
|
|
3270
|
-
input.AllowedOperations !== null && {
|
|
3305
|
+
...(input.AllowedOperations != null && {
|
|
3271
3306
|
AllowedOperations: serializeAws_json1_1AllowedOperationList(input.AllowedOperations, context),
|
|
3272
3307
|
}),
|
|
3273
|
-
...(input.ClientToken
|
|
3274
|
-
...(input.GrantArn
|
|
3275
|
-
...(input.GrantName
|
|
3276
|
-
...(input.SourceVersion
|
|
3277
|
-
...(input.Status
|
|
3278
|
-
...(input.StatusReason
|
|
3308
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3309
|
+
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3310
|
+
...(input.GrantName != null && { GrantName: input.GrantName }),
|
|
3311
|
+
...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
|
|
3312
|
+
...(input.Status != null && { Status: input.Status }),
|
|
3313
|
+
...(input.StatusReason != null && { StatusReason: input.StatusReason }),
|
|
3279
3314
|
};
|
|
3280
3315
|
};
|
|
3281
3316
|
const serializeAws_json1_1CreateLicenseConfigurationRequest = (input, context) => {
|
|
3282
3317
|
return {
|
|
3283
|
-
...(input.Description
|
|
3284
|
-
...(input.DisassociateWhenNotFound
|
|
3285
|
-
|
|
3286
|
-
...(input.
|
|
3287
|
-
...(input.
|
|
3288
|
-
|
|
3289
|
-
...(input.
|
|
3290
|
-
|
|
3291
|
-
...(input.LicenseRules !== undefined &&
|
|
3292
|
-
input.LicenseRules !== null && { LicenseRules: serializeAws_json1_1StringList(input.LicenseRules, context) }),
|
|
3293
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3294
|
-
...(input.ProductInformationList !== undefined &&
|
|
3295
|
-
input.ProductInformationList !== null && {
|
|
3318
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3319
|
+
...(input.DisassociateWhenNotFound != null && { DisassociateWhenNotFound: input.DisassociateWhenNotFound }),
|
|
3320
|
+
...(input.LicenseCount != null && { LicenseCount: input.LicenseCount }),
|
|
3321
|
+
...(input.LicenseCountHardLimit != null && { LicenseCountHardLimit: input.LicenseCountHardLimit }),
|
|
3322
|
+
...(input.LicenseCountingType != null && { LicenseCountingType: input.LicenseCountingType }),
|
|
3323
|
+
...(input.LicenseRules != null && { LicenseRules: serializeAws_json1_1StringList(input.LicenseRules, context) }),
|
|
3324
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3325
|
+
...(input.ProductInformationList != null && {
|
|
3296
3326
|
ProductInformationList: serializeAws_json1_1ProductInformationList(input.ProductInformationList, context),
|
|
3297
3327
|
}),
|
|
3298
|
-
...(input.Tags
|
|
3328
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3299
3329
|
};
|
|
3300
3330
|
};
|
|
3301
3331
|
const serializeAws_json1_1CreateLicenseConversionTaskForResourceRequest = (input, context) => {
|
|
3302
3332
|
return {
|
|
3303
|
-
...(input.DestinationLicenseContext
|
|
3304
|
-
input.DestinationLicenseContext !== null && {
|
|
3333
|
+
...(input.DestinationLicenseContext != null && {
|
|
3305
3334
|
DestinationLicenseContext: serializeAws_json1_1LicenseConversionContext(input.DestinationLicenseContext, context),
|
|
3306
3335
|
}),
|
|
3307
|
-
...(input.ResourceArn
|
|
3308
|
-
...(input.SourceLicenseContext
|
|
3309
|
-
input.SourceLicenseContext !== null && {
|
|
3336
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3337
|
+
...(input.SourceLicenseContext != null && {
|
|
3310
3338
|
SourceLicenseContext: serializeAws_json1_1LicenseConversionContext(input.SourceLicenseContext, context),
|
|
3311
3339
|
}),
|
|
3312
3340
|
};
|
|
3313
3341
|
};
|
|
3314
3342
|
const serializeAws_json1_1CreateLicenseManagerReportGeneratorRequest = (input, context) => {
|
|
3315
3343
|
return {
|
|
3316
|
-
...(input.ClientToken
|
|
3317
|
-
...(input.Description
|
|
3318
|
-
...(input.ReportContext
|
|
3319
|
-
input.ReportContext !== null && {
|
|
3344
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3345
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3346
|
+
...(input.ReportContext != null && {
|
|
3320
3347
|
ReportContext: serializeAws_json1_1ReportContext(input.ReportContext, context),
|
|
3321
3348
|
}),
|
|
3322
|
-
...(input.ReportFrequency
|
|
3323
|
-
input.ReportFrequency !== null && {
|
|
3349
|
+
...(input.ReportFrequency != null && {
|
|
3324
3350
|
ReportFrequency: serializeAws_json1_1ReportFrequency(input.ReportFrequency, context),
|
|
3325
3351
|
}),
|
|
3326
|
-
...(input.ReportGeneratorName
|
|
3327
|
-
|
|
3328
|
-
...(input.
|
|
3329
|
-
...(input.Type !== undefined &&
|
|
3330
|
-
input.Type !== null && { Type: serializeAws_json1_1ReportTypeList(input.Type, context) }),
|
|
3352
|
+
...(input.ReportGeneratorName != null && { ReportGeneratorName: input.ReportGeneratorName }),
|
|
3353
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3354
|
+
...(input.Type != null && { Type: serializeAws_json1_1ReportTypeList(input.Type, context) }),
|
|
3331
3355
|
};
|
|
3332
3356
|
};
|
|
3333
3357
|
const serializeAws_json1_1CreateLicenseRequest = (input, context) => {
|
|
3334
3358
|
return {
|
|
3335
|
-
...(input.Beneficiary
|
|
3336
|
-
...(input.ClientToken
|
|
3337
|
-
...(input.ConsumptionConfiguration
|
|
3338
|
-
input.ConsumptionConfiguration !== null && {
|
|
3359
|
+
...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
|
|
3360
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3361
|
+
...(input.ConsumptionConfiguration != null && {
|
|
3339
3362
|
ConsumptionConfiguration: serializeAws_json1_1ConsumptionConfiguration(input.ConsumptionConfiguration, context),
|
|
3340
3363
|
}),
|
|
3341
|
-
...(input.Entitlements
|
|
3342
|
-
input.Entitlements !== null && {
|
|
3364
|
+
...(input.Entitlements != null && {
|
|
3343
3365
|
Entitlements: serializeAws_json1_1EntitlementList(input.Entitlements, context),
|
|
3344
3366
|
}),
|
|
3345
|
-
...(input.HomeRegion
|
|
3346
|
-
...(input.Issuer
|
|
3347
|
-
|
|
3348
|
-
...(input.LicenseMetadata !== undefined &&
|
|
3349
|
-
input.LicenseMetadata !== null && {
|
|
3367
|
+
...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
|
|
3368
|
+
...(input.Issuer != null && { Issuer: serializeAws_json1_1Issuer(input.Issuer, context) }),
|
|
3369
|
+
...(input.LicenseMetadata != null && {
|
|
3350
3370
|
LicenseMetadata: serializeAws_json1_1MetadataList(input.LicenseMetadata, context),
|
|
3351
3371
|
}),
|
|
3352
|
-
...(input.LicenseName
|
|
3353
|
-
...(input.ProductName
|
|
3354
|
-
...(input.ProductSKU
|
|
3355
|
-
...(input.Validity
|
|
3356
|
-
input.Validity !== null && { Validity: serializeAws_json1_1DatetimeRange(input.Validity, context) }),
|
|
3372
|
+
...(input.LicenseName != null && { LicenseName: input.LicenseName }),
|
|
3373
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
3374
|
+
...(input.ProductSKU != null && { ProductSKU: input.ProductSKU }),
|
|
3375
|
+
...(input.Validity != null && { Validity: serializeAws_json1_1DatetimeRange(input.Validity, context) }),
|
|
3357
3376
|
};
|
|
3358
3377
|
};
|
|
3359
3378
|
const serializeAws_json1_1CreateLicenseVersionRequest = (input, context) => {
|
|
3360
3379
|
return {
|
|
3361
|
-
...(input.ClientToken
|
|
3362
|
-
...(input.ConsumptionConfiguration
|
|
3363
|
-
input.ConsumptionConfiguration !== null && {
|
|
3380
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3381
|
+
...(input.ConsumptionConfiguration != null && {
|
|
3364
3382
|
ConsumptionConfiguration: serializeAws_json1_1ConsumptionConfiguration(input.ConsumptionConfiguration, context),
|
|
3365
3383
|
}),
|
|
3366
|
-
...(input.Entitlements
|
|
3367
|
-
input.Entitlements !== null && {
|
|
3384
|
+
...(input.Entitlements != null && {
|
|
3368
3385
|
Entitlements: serializeAws_json1_1EntitlementList(input.Entitlements, context),
|
|
3369
3386
|
}),
|
|
3370
|
-
...(input.HomeRegion
|
|
3371
|
-
...(input.Issuer
|
|
3372
|
-
|
|
3373
|
-
...(input.
|
|
3374
|
-
...(input.LicenseMetadata !== undefined &&
|
|
3375
|
-
input.LicenseMetadata !== null && {
|
|
3387
|
+
...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
|
|
3388
|
+
...(input.Issuer != null && { Issuer: serializeAws_json1_1Issuer(input.Issuer, context) }),
|
|
3389
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3390
|
+
...(input.LicenseMetadata != null && {
|
|
3376
3391
|
LicenseMetadata: serializeAws_json1_1MetadataList(input.LicenseMetadata, context),
|
|
3377
3392
|
}),
|
|
3378
|
-
...(input.LicenseName
|
|
3379
|
-
...(input.ProductName
|
|
3380
|
-
...(input.SourceVersion
|
|
3381
|
-
...(input.Status
|
|
3382
|
-
...(input.Validity
|
|
3383
|
-
input.Validity !== null && { Validity: serializeAws_json1_1DatetimeRange(input.Validity, context) }),
|
|
3393
|
+
...(input.LicenseName != null && { LicenseName: input.LicenseName }),
|
|
3394
|
+
...(input.ProductName != null && { ProductName: input.ProductName }),
|
|
3395
|
+
...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
|
|
3396
|
+
...(input.Status != null && { Status: input.Status }),
|
|
3397
|
+
...(input.Validity != null && { Validity: serializeAws_json1_1DatetimeRange(input.Validity, context) }),
|
|
3384
3398
|
};
|
|
3385
3399
|
};
|
|
3386
3400
|
const serializeAws_json1_1CreateTokenRequest = (input, context) => {
|
|
3387
3401
|
return {
|
|
3388
|
-
...(input.ClientToken
|
|
3389
|
-
...(input.ExpirationInDays
|
|
3390
|
-
|
|
3391
|
-
...(input.
|
|
3392
|
-
...(input.
|
|
3393
|
-
input.RoleArns !== null && { RoleArns: serializeAws_json1_1ArnList(input.RoleArns, context) }),
|
|
3394
|
-
...(input.TokenProperties !== undefined &&
|
|
3395
|
-
input.TokenProperties !== null && {
|
|
3402
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3403
|
+
...(input.ExpirationInDays != null && { ExpirationInDays: input.ExpirationInDays }),
|
|
3404
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3405
|
+
...(input.RoleArns != null && { RoleArns: serializeAws_json1_1ArnList(input.RoleArns, context) }),
|
|
3406
|
+
...(input.TokenProperties != null && {
|
|
3396
3407
|
TokenProperties: serializeAws_json1_1MaxSize3StringList(input.TokenProperties, context),
|
|
3397
3408
|
}),
|
|
3398
3409
|
};
|
|
3399
3410
|
};
|
|
3400
3411
|
const serializeAws_json1_1DatetimeRange = (input, context) => {
|
|
3401
3412
|
return {
|
|
3402
|
-
...(input.Begin
|
|
3403
|
-
...(input.End
|
|
3413
|
+
...(input.Begin != null && { Begin: input.Begin }),
|
|
3414
|
+
...(input.End != null && { End: input.End }),
|
|
3404
3415
|
};
|
|
3405
3416
|
};
|
|
3406
3417
|
const serializeAws_json1_1DeleteGrantRequest = (input, context) => {
|
|
3407
3418
|
return {
|
|
3408
|
-
...(input.GrantArn
|
|
3409
|
-
...(input.StatusReason
|
|
3410
|
-
...(input.Version
|
|
3419
|
+
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3420
|
+
...(input.StatusReason != null && { StatusReason: input.StatusReason }),
|
|
3421
|
+
...(input.Version != null && { Version: input.Version }),
|
|
3411
3422
|
};
|
|
3412
3423
|
};
|
|
3413
3424
|
const serializeAws_json1_1DeleteLicenseConfigurationRequest = (input, context) => {
|
|
3414
3425
|
return {
|
|
3415
|
-
...(input.LicenseConfigurationArn
|
|
3416
|
-
input.LicenseConfigurationArn !== null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3426
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3417
3427
|
};
|
|
3418
3428
|
};
|
|
3419
3429
|
const serializeAws_json1_1DeleteLicenseManagerReportGeneratorRequest = (input, context) => {
|
|
3420
3430
|
return {
|
|
3421
|
-
...(input.LicenseManagerReportGeneratorArn
|
|
3422
|
-
input.LicenseManagerReportGeneratorArn !== null && {
|
|
3431
|
+
...(input.LicenseManagerReportGeneratorArn != null && {
|
|
3423
3432
|
LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
|
|
3424
3433
|
}),
|
|
3425
3434
|
};
|
|
3426
3435
|
};
|
|
3427
3436
|
const serializeAws_json1_1DeleteLicenseRequest = (input, context) => {
|
|
3428
3437
|
return {
|
|
3429
|
-
...(input.LicenseArn
|
|
3430
|
-
...(input.SourceVersion
|
|
3438
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3439
|
+
...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
|
|
3431
3440
|
};
|
|
3432
3441
|
};
|
|
3433
3442
|
const serializeAws_json1_1DeleteTokenRequest = (input, context) => {
|
|
3434
3443
|
return {
|
|
3435
|
-
...(input.TokenId
|
|
3444
|
+
...(input.TokenId != null && { TokenId: input.TokenId }),
|
|
3436
3445
|
};
|
|
3437
3446
|
};
|
|
3438
3447
|
const serializeAws_json1_1Entitlement = (input, context) => {
|
|
3439
3448
|
return {
|
|
3440
|
-
...(input.AllowCheckIn
|
|
3441
|
-
...(input.MaxCount
|
|
3442
|
-
...(input.Name
|
|
3443
|
-
...(input.Overage
|
|
3444
|
-
...(input.Unit
|
|
3445
|
-
...(input.Value
|
|
3449
|
+
...(input.AllowCheckIn != null && { AllowCheckIn: input.AllowCheckIn }),
|
|
3450
|
+
...(input.MaxCount != null && { MaxCount: input.MaxCount }),
|
|
3451
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3452
|
+
...(input.Overage != null && { Overage: input.Overage }),
|
|
3453
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
3454
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3446
3455
|
};
|
|
3447
3456
|
};
|
|
3448
3457
|
const serializeAws_json1_1EntitlementData = (input, context) => {
|
|
3449
3458
|
return {
|
|
3450
|
-
...(input.Name
|
|
3451
|
-
...(input.Unit
|
|
3452
|
-
...(input.Value
|
|
3459
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3460
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
3461
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3453
3462
|
};
|
|
3454
3463
|
};
|
|
3455
3464
|
const serializeAws_json1_1EntitlementDataList = (input, context) => {
|
|
@@ -3474,16 +3483,14 @@ const serializeAws_json1_1EntitlementList = (input, context) => {
|
|
|
3474
3483
|
};
|
|
3475
3484
|
const serializeAws_json1_1ExtendLicenseConsumptionRequest = (input, context) => {
|
|
3476
3485
|
return {
|
|
3477
|
-
...(input.DryRun
|
|
3478
|
-
...(input.LicenseConsumptionToken
|
|
3479
|
-
input.LicenseConsumptionToken !== null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
|
|
3486
|
+
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
3487
|
+
...(input.LicenseConsumptionToken != null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
|
|
3480
3488
|
};
|
|
3481
3489
|
};
|
|
3482
3490
|
const serializeAws_json1_1Filter = (input, context) => {
|
|
3483
3491
|
return {
|
|
3484
|
-
...(input.Name
|
|
3485
|
-
...(input.Values
|
|
3486
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
3492
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3493
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }),
|
|
3487
3494
|
};
|
|
3488
3495
|
};
|
|
3489
3496
|
const serializeAws_json1_1FilterList = (input, context) => {
|
|
@@ -3518,48 +3525,44 @@ const serializeAws_json1_1FilterValues = (input, context) => {
|
|
|
3518
3525
|
};
|
|
3519
3526
|
const serializeAws_json1_1GetAccessTokenRequest = (input, context) => {
|
|
3520
3527
|
return {
|
|
3521
|
-
...(input.Token
|
|
3522
|
-
...(input.TokenProperties
|
|
3523
|
-
input.TokenProperties !== null && {
|
|
3528
|
+
...(input.Token != null && { Token: input.Token }),
|
|
3529
|
+
...(input.TokenProperties != null && {
|
|
3524
3530
|
TokenProperties: serializeAws_json1_1MaxSize3StringList(input.TokenProperties, context),
|
|
3525
3531
|
}),
|
|
3526
3532
|
};
|
|
3527
3533
|
};
|
|
3528
3534
|
const serializeAws_json1_1GetGrantRequest = (input, context) => {
|
|
3529
3535
|
return {
|
|
3530
|
-
...(input.GrantArn
|
|
3531
|
-
...(input.Version
|
|
3536
|
+
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3537
|
+
...(input.Version != null && { Version: input.Version }),
|
|
3532
3538
|
};
|
|
3533
3539
|
};
|
|
3534
3540
|
const serializeAws_json1_1GetLicenseConfigurationRequest = (input, context) => {
|
|
3535
3541
|
return {
|
|
3536
|
-
...(input.LicenseConfigurationArn
|
|
3537
|
-
input.LicenseConfigurationArn !== null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3542
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3538
3543
|
};
|
|
3539
3544
|
};
|
|
3540
3545
|
const serializeAws_json1_1GetLicenseConversionTaskRequest = (input, context) => {
|
|
3541
3546
|
return {
|
|
3542
|
-
...(input.LicenseConversionTaskId
|
|
3543
|
-
input.LicenseConversionTaskId !== null && { LicenseConversionTaskId: input.LicenseConversionTaskId }),
|
|
3547
|
+
...(input.LicenseConversionTaskId != null && { LicenseConversionTaskId: input.LicenseConversionTaskId }),
|
|
3544
3548
|
};
|
|
3545
3549
|
};
|
|
3546
3550
|
const serializeAws_json1_1GetLicenseManagerReportGeneratorRequest = (input, context) => {
|
|
3547
3551
|
return {
|
|
3548
|
-
...(input.LicenseManagerReportGeneratorArn
|
|
3549
|
-
input.LicenseManagerReportGeneratorArn !== null && {
|
|
3552
|
+
...(input.LicenseManagerReportGeneratorArn != null && {
|
|
3550
3553
|
LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
|
|
3551
3554
|
}),
|
|
3552
3555
|
};
|
|
3553
3556
|
};
|
|
3554
3557
|
const serializeAws_json1_1GetLicenseRequest = (input, context) => {
|
|
3555
3558
|
return {
|
|
3556
|
-
...(input.LicenseArn
|
|
3557
|
-
...(input.Version
|
|
3559
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3560
|
+
...(input.Version != null && { Version: input.Version }),
|
|
3558
3561
|
};
|
|
3559
3562
|
};
|
|
3560
3563
|
const serializeAws_json1_1GetLicenseUsageRequest = (input, context) => {
|
|
3561
3564
|
return {
|
|
3562
|
-
...(input.LicenseArn
|
|
3565
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3563
3566
|
};
|
|
3564
3567
|
};
|
|
3565
3568
|
const serializeAws_json1_1GetServiceSettingsRequest = (input, context) => {
|
|
@@ -3567,9 +3570,9 @@ const serializeAws_json1_1GetServiceSettingsRequest = (input, context) => {
|
|
|
3567
3570
|
};
|
|
3568
3571
|
const serializeAws_json1_1InventoryFilter = (input, context) => {
|
|
3569
3572
|
return {
|
|
3570
|
-
...(input.Condition
|
|
3571
|
-
...(input.Name
|
|
3572
|
-
...(input.Value
|
|
3573
|
+
...(input.Condition != null && { Condition: input.Condition }),
|
|
3574
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3575
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3573
3576
|
};
|
|
3574
3577
|
};
|
|
3575
3578
|
const serializeAws_json1_1InventoryFilterList = (input, context) => {
|
|
@@ -3584,22 +3587,19 @@ const serializeAws_json1_1InventoryFilterList = (input, context) => {
|
|
|
3584
3587
|
};
|
|
3585
3588
|
const serializeAws_json1_1Issuer = (input, context) => {
|
|
3586
3589
|
return {
|
|
3587
|
-
...(input.Name
|
|
3588
|
-
...(input.SignKey
|
|
3590
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3591
|
+
...(input.SignKey != null && { SignKey: input.SignKey }),
|
|
3589
3592
|
};
|
|
3590
3593
|
};
|
|
3591
3594
|
const serializeAws_json1_1LicenseConversionContext = (input, context) => {
|
|
3592
3595
|
return {
|
|
3593
|
-
...(input.UsageOperation
|
|
3594
|
-
input.UsageOperation !== null && { UsageOperation: input.UsageOperation }),
|
|
3596
|
+
...(input.UsageOperation != null && { UsageOperation: input.UsageOperation }),
|
|
3595
3597
|
};
|
|
3596
3598
|
};
|
|
3597
3599
|
const serializeAws_json1_1LicenseSpecification = (input, context) => {
|
|
3598
3600
|
return {
|
|
3599
|
-
...(input.AmiAssociationScope
|
|
3600
|
-
|
|
3601
|
-
...(input.LicenseConfigurationArn !== undefined &&
|
|
3602
|
-
input.LicenseConfigurationArn !== null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3601
|
+
...(input.AmiAssociationScope != null && { AmiAssociationScope: input.AmiAssociationScope }),
|
|
3602
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3603
3603
|
};
|
|
3604
3604
|
};
|
|
3605
3605
|
const serializeAws_json1_1LicenseSpecifications = (input, context) => {
|
|
@@ -3614,133 +3614,114 @@ const serializeAws_json1_1LicenseSpecifications = (input, context) => {
|
|
|
3614
3614
|
};
|
|
3615
3615
|
const serializeAws_json1_1ListAssociationsForLicenseConfigurationRequest = (input, context) => {
|
|
3616
3616
|
return {
|
|
3617
|
-
...(input.LicenseConfigurationArn
|
|
3618
|
-
|
|
3619
|
-
...(input.
|
|
3620
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3617
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3618
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3619
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3621
3620
|
};
|
|
3622
3621
|
};
|
|
3623
3622
|
const serializeAws_json1_1ListDistributedGrantsRequest = (input, context) => {
|
|
3624
3623
|
return {
|
|
3625
|
-
...(input.Filters
|
|
3626
|
-
|
|
3627
|
-
...(input.
|
|
3628
|
-
|
|
3629
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3630
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3624
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3625
|
+
...(input.GrantArns != null && { GrantArns: serializeAws_json1_1ArnList(input.GrantArns, context) }),
|
|
3626
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3627
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3631
3628
|
};
|
|
3632
3629
|
};
|
|
3633
3630
|
const serializeAws_json1_1ListFailuresForLicenseConfigurationOperationsRequest = (input, context) => {
|
|
3634
3631
|
return {
|
|
3635
|
-
...(input.LicenseConfigurationArn
|
|
3636
|
-
|
|
3637
|
-
...(input.
|
|
3638
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3632
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3633
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3634
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3639
3635
|
};
|
|
3640
3636
|
};
|
|
3641
3637
|
const serializeAws_json1_1ListLicenseConfigurationsRequest = (input, context) => {
|
|
3642
3638
|
return {
|
|
3643
|
-
...(input.Filters
|
|
3644
|
-
|
|
3645
|
-
...(input.LicenseConfigurationArns !== undefined &&
|
|
3646
|
-
input.LicenseConfigurationArns !== null && {
|
|
3639
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3640
|
+
...(input.LicenseConfigurationArns != null && {
|
|
3647
3641
|
LicenseConfigurationArns: serializeAws_json1_1StringList(input.LicenseConfigurationArns, context),
|
|
3648
3642
|
}),
|
|
3649
|
-
...(input.MaxResults
|
|
3650
|
-
...(input.NextToken
|
|
3643
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3644
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3651
3645
|
};
|
|
3652
3646
|
};
|
|
3653
3647
|
const serializeAws_json1_1ListLicenseConversionTasksRequest = (input, context) => {
|
|
3654
3648
|
return {
|
|
3655
|
-
...(input.Filters
|
|
3656
|
-
|
|
3657
|
-
...(input.
|
|
3658
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3649
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3650
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3651
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3659
3652
|
};
|
|
3660
3653
|
};
|
|
3661
3654
|
const serializeAws_json1_1ListLicenseManagerReportGeneratorsRequest = (input, context) => {
|
|
3662
3655
|
return {
|
|
3663
|
-
...(input.Filters
|
|
3664
|
-
|
|
3665
|
-
...(input.
|
|
3666
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3656
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3657
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3658
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3667
3659
|
};
|
|
3668
3660
|
};
|
|
3669
3661
|
const serializeAws_json1_1ListLicenseSpecificationsForResourceRequest = (input, context) => {
|
|
3670
3662
|
return {
|
|
3671
|
-
...(input.MaxResults
|
|
3672
|
-
...(input.NextToken
|
|
3673
|
-
...(input.ResourceArn
|
|
3663
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3664
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3665
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3674
3666
|
};
|
|
3675
3667
|
};
|
|
3676
3668
|
const serializeAws_json1_1ListLicensesRequest = (input, context) => {
|
|
3677
3669
|
return {
|
|
3678
|
-
...(input.Filters
|
|
3679
|
-
|
|
3680
|
-
...(input.
|
|
3681
|
-
|
|
3682
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3683
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3670
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3671
|
+
...(input.LicenseArns != null && { LicenseArns: serializeAws_json1_1ArnList(input.LicenseArns, context) }),
|
|
3672
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3673
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3684
3674
|
};
|
|
3685
3675
|
};
|
|
3686
3676
|
const serializeAws_json1_1ListLicenseVersionsRequest = (input, context) => {
|
|
3687
3677
|
return {
|
|
3688
|
-
...(input.LicenseArn
|
|
3689
|
-
...(input.MaxResults
|
|
3690
|
-
...(input.NextToken
|
|
3678
|
+
...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
|
|
3679
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3680
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3691
3681
|
};
|
|
3692
3682
|
};
|
|
3693
3683
|
const serializeAws_json1_1ListReceivedGrantsRequest = (input, context) => {
|
|
3694
3684
|
return {
|
|
3695
|
-
...(input.Filters
|
|
3696
|
-
|
|
3697
|
-
...(input.
|
|
3698
|
-
|
|
3699
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3700
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3685
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3686
|
+
...(input.GrantArns != null && { GrantArns: serializeAws_json1_1ArnList(input.GrantArns, context) }),
|
|
3687
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3688
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3701
3689
|
};
|
|
3702
3690
|
};
|
|
3703
3691
|
const serializeAws_json1_1ListReceivedLicensesRequest = (input, context) => {
|
|
3704
3692
|
return {
|
|
3705
|
-
...(input.Filters
|
|
3706
|
-
|
|
3707
|
-
...(input.
|
|
3708
|
-
|
|
3709
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3710
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3693
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3694
|
+
...(input.LicenseArns != null && { LicenseArns: serializeAws_json1_1ArnList(input.LicenseArns, context) }),
|
|
3695
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3696
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3711
3697
|
};
|
|
3712
3698
|
};
|
|
3713
3699
|
const serializeAws_json1_1ListResourceInventoryRequest = (input, context) => {
|
|
3714
3700
|
return {
|
|
3715
|
-
...(input.Filters
|
|
3716
|
-
|
|
3717
|
-
...(input.
|
|
3718
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3701
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }),
|
|
3702
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3703
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3719
3704
|
};
|
|
3720
3705
|
};
|
|
3721
3706
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
3722
3707
|
return {
|
|
3723
|
-
...(input.ResourceArn
|
|
3708
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3724
3709
|
};
|
|
3725
3710
|
};
|
|
3726
3711
|
const serializeAws_json1_1ListTokensRequest = (input, context) => {
|
|
3727
3712
|
return {
|
|
3728
|
-
...(input.Filters
|
|
3729
|
-
|
|
3730
|
-
...(input.
|
|
3731
|
-
...(input.
|
|
3732
|
-
...(input.TokenIds !== undefined &&
|
|
3733
|
-
input.TokenIds !== null && { TokenIds: serializeAws_json1_1StringList(input.TokenIds, context) }),
|
|
3713
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3714
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3715
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3716
|
+
...(input.TokenIds != null && { TokenIds: serializeAws_json1_1StringList(input.TokenIds, context) }),
|
|
3734
3717
|
};
|
|
3735
3718
|
};
|
|
3736
3719
|
const serializeAws_json1_1ListUsageForLicenseConfigurationRequest = (input, context) => {
|
|
3737
3720
|
return {
|
|
3738
|
-
...(input.Filters
|
|
3739
|
-
|
|
3740
|
-
...(input.
|
|
3741
|
-
|
|
3742
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3743
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3721
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
3722
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3723
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3724
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3744
3725
|
};
|
|
3745
3726
|
};
|
|
3746
3727
|
const serializeAws_json1_1MaxSize3StringList = (input, context) => {
|
|
@@ -3755,8 +3736,8 @@ const serializeAws_json1_1MaxSize3StringList = (input, context) => {
|
|
|
3755
3736
|
};
|
|
3756
3737
|
const serializeAws_json1_1Metadata = (input, context) => {
|
|
3757
3738
|
return {
|
|
3758
|
-
...(input.Name
|
|
3759
|
-
...(input.Value
|
|
3739
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3740
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3760
3741
|
};
|
|
3761
3742
|
};
|
|
3762
3743
|
const serializeAws_json1_1MetadataList = (input, context) => {
|
|
@@ -3771,8 +3752,7 @@ const serializeAws_json1_1MetadataList = (input, context) => {
|
|
|
3771
3752
|
};
|
|
3772
3753
|
const serializeAws_json1_1OrganizationConfiguration = (input, context) => {
|
|
3773
3754
|
return {
|
|
3774
|
-
...(input.EnableIntegration
|
|
3775
|
-
input.EnableIntegration !== null && { EnableIntegration: input.EnableIntegration }),
|
|
3755
|
+
...(input.EnableIntegration != null && { EnableIntegration: input.EnableIntegration }),
|
|
3776
3756
|
};
|
|
3777
3757
|
};
|
|
3778
3758
|
const serializeAws_json1_1PrincipalArnList = (input, context) => {
|
|
@@ -3787,25 +3767,21 @@ const serializeAws_json1_1PrincipalArnList = (input, context) => {
|
|
|
3787
3767
|
};
|
|
3788
3768
|
const serializeAws_json1_1ProductInformation = (input, context) => {
|
|
3789
3769
|
return {
|
|
3790
|
-
...(input.ProductInformationFilterList
|
|
3791
|
-
input.ProductInformationFilterList !== null && {
|
|
3770
|
+
...(input.ProductInformationFilterList != null && {
|
|
3792
3771
|
ProductInformationFilterList: serializeAws_json1_1ProductInformationFilterList(input.ProductInformationFilterList, context),
|
|
3793
3772
|
}),
|
|
3794
|
-
...(input.ResourceType
|
|
3773
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
3795
3774
|
};
|
|
3796
3775
|
};
|
|
3797
3776
|
const serializeAws_json1_1ProductInformationFilter = (input, context) => {
|
|
3798
3777
|
return {
|
|
3799
|
-
...(input.ProductInformationFilterComparator
|
|
3800
|
-
input.ProductInformationFilterComparator !== null && {
|
|
3778
|
+
...(input.ProductInformationFilterComparator != null && {
|
|
3801
3779
|
ProductInformationFilterComparator: input.ProductInformationFilterComparator,
|
|
3802
3780
|
}),
|
|
3803
|
-
...(input.ProductInformationFilterName
|
|
3804
|
-
input.ProductInformationFilterName !== null && {
|
|
3781
|
+
...(input.ProductInformationFilterName != null && {
|
|
3805
3782
|
ProductInformationFilterName: input.ProductInformationFilterName,
|
|
3806
3783
|
}),
|
|
3807
|
-
...(input.ProductInformationFilterValue
|
|
3808
|
-
input.ProductInformationFilterValue !== null && {
|
|
3784
|
+
...(input.ProductInformationFilterValue != null && {
|
|
3809
3785
|
ProductInformationFilterValue: serializeAws_json1_1StringList(input.ProductInformationFilterValue, context),
|
|
3810
3786
|
}),
|
|
3811
3787
|
};
|
|
@@ -3832,27 +3808,25 @@ const serializeAws_json1_1ProductInformationList = (input, context) => {
|
|
|
3832
3808
|
};
|
|
3833
3809
|
const serializeAws_json1_1ProvisionalConfiguration = (input, context) => {
|
|
3834
3810
|
return {
|
|
3835
|
-
...(input.MaxTimeToLiveInMinutes
|
|
3836
|
-
input.MaxTimeToLiveInMinutes !== null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
|
|
3811
|
+
...(input.MaxTimeToLiveInMinutes != null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
|
|
3837
3812
|
};
|
|
3838
3813
|
};
|
|
3839
3814
|
const serializeAws_json1_1RejectGrantRequest = (input, context) => {
|
|
3840
3815
|
return {
|
|
3841
|
-
...(input.GrantArn
|
|
3816
|
+
...(input.GrantArn != null && { GrantArn: input.GrantArn }),
|
|
3842
3817
|
};
|
|
3843
3818
|
};
|
|
3844
3819
|
const serializeAws_json1_1ReportContext = (input, context) => {
|
|
3845
3820
|
return {
|
|
3846
|
-
...(input.licenseConfigurationArns
|
|
3847
|
-
input.licenseConfigurationArns !== null && {
|
|
3821
|
+
...(input.licenseConfigurationArns != null && {
|
|
3848
3822
|
licenseConfigurationArns: serializeAws_json1_1ArnList(input.licenseConfigurationArns, context),
|
|
3849
3823
|
}),
|
|
3850
3824
|
};
|
|
3851
3825
|
};
|
|
3852
3826
|
const serializeAws_json1_1ReportFrequency = (input, context) => {
|
|
3853
3827
|
return {
|
|
3854
|
-
...(input.period
|
|
3855
|
-
...(input.value
|
|
3828
|
+
...(input.period != null && { period: input.period }),
|
|
3829
|
+
...(input.value != null && { value: input.value }),
|
|
3856
3830
|
};
|
|
3857
3831
|
};
|
|
3858
3832
|
const serializeAws_json1_1ReportTypeList = (input, context) => {
|
|
@@ -3877,8 +3851,8 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
3877
3851
|
};
|
|
3878
3852
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
3879
3853
|
return {
|
|
3880
|
-
...(input.Key
|
|
3881
|
-
...(input.Value
|
|
3854
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3855
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3882
3856
|
};
|
|
3883
3857
|
};
|
|
3884
3858
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -3903,85 +3877,69 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3903
3877
|
};
|
|
3904
3878
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
3905
3879
|
return {
|
|
3906
|
-
...(input.ResourceArn
|
|
3907
|
-
...(input.Tags
|
|
3880
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3881
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3908
3882
|
};
|
|
3909
3883
|
};
|
|
3910
3884
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3911
3885
|
return {
|
|
3912
|
-
...(input.ResourceArn
|
|
3913
|
-
...(input.TagKeys
|
|
3914
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
3886
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3887
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
3915
3888
|
};
|
|
3916
3889
|
};
|
|
3917
3890
|
const serializeAws_json1_1UpdateLicenseConfigurationRequest = (input, context) => {
|
|
3918
3891
|
return {
|
|
3919
|
-
...(input.Description
|
|
3920
|
-
...(input.DisassociateWhenNotFound
|
|
3921
|
-
|
|
3922
|
-
...(input.
|
|
3923
|
-
|
|
3924
|
-
...(input.
|
|
3925
|
-
|
|
3926
|
-
...(input.
|
|
3927
|
-
...(input.
|
|
3928
|
-
input.LicenseCountHardLimit !== null && { LicenseCountHardLimit: input.LicenseCountHardLimit }),
|
|
3929
|
-
...(input.LicenseRules !== undefined &&
|
|
3930
|
-
input.LicenseRules !== null && { LicenseRules: serializeAws_json1_1StringList(input.LicenseRules, context) }),
|
|
3931
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3932
|
-
...(input.ProductInformationList !== undefined &&
|
|
3933
|
-
input.ProductInformationList !== null && {
|
|
3892
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3893
|
+
...(input.DisassociateWhenNotFound != null && { DisassociateWhenNotFound: input.DisassociateWhenNotFound }),
|
|
3894
|
+
...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
|
|
3895
|
+
...(input.LicenseConfigurationStatus != null && { LicenseConfigurationStatus: input.LicenseConfigurationStatus }),
|
|
3896
|
+
...(input.LicenseCount != null && { LicenseCount: input.LicenseCount }),
|
|
3897
|
+
...(input.LicenseCountHardLimit != null && { LicenseCountHardLimit: input.LicenseCountHardLimit }),
|
|
3898
|
+
...(input.LicenseRules != null && { LicenseRules: serializeAws_json1_1StringList(input.LicenseRules, context) }),
|
|
3899
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3900
|
+
...(input.ProductInformationList != null && {
|
|
3934
3901
|
ProductInformationList: serializeAws_json1_1ProductInformationList(input.ProductInformationList, context),
|
|
3935
3902
|
}),
|
|
3936
3903
|
};
|
|
3937
3904
|
};
|
|
3938
3905
|
const serializeAws_json1_1UpdateLicenseManagerReportGeneratorRequest = (input, context) => {
|
|
3939
3906
|
return {
|
|
3940
|
-
...(input.ClientToken
|
|
3941
|
-
...(input.Description
|
|
3942
|
-
...(input.LicenseManagerReportGeneratorArn
|
|
3943
|
-
input.LicenseManagerReportGeneratorArn !== null && {
|
|
3907
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
3908
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3909
|
+
...(input.LicenseManagerReportGeneratorArn != null && {
|
|
3944
3910
|
LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
|
|
3945
3911
|
}),
|
|
3946
|
-
...(input.ReportContext
|
|
3947
|
-
input.ReportContext !== null && {
|
|
3912
|
+
...(input.ReportContext != null && {
|
|
3948
3913
|
ReportContext: serializeAws_json1_1ReportContext(input.ReportContext, context),
|
|
3949
3914
|
}),
|
|
3950
|
-
...(input.ReportFrequency
|
|
3951
|
-
input.ReportFrequency !== null && {
|
|
3915
|
+
...(input.ReportFrequency != null && {
|
|
3952
3916
|
ReportFrequency: serializeAws_json1_1ReportFrequency(input.ReportFrequency, context),
|
|
3953
3917
|
}),
|
|
3954
|
-
...(input.ReportGeneratorName
|
|
3955
|
-
|
|
3956
|
-
...(input.Type !== undefined &&
|
|
3957
|
-
input.Type !== null && { Type: serializeAws_json1_1ReportTypeList(input.Type, context) }),
|
|
3918
|
+
...(input.ReportGeneratorName != null && { ReportGeneratorName: input.ReportGeneratorName }),
|
|
3919
|
+
...(input.Type != null && { Type: serializeAws_json1_1ReportTypeList(input.Type, context) }),
|
|
3958
3920
|
};
|
|
3959
3921
|
};
|
|
3960
3922
|
const serializeAws_json1_1UpdateLicenseSpecificationsForResourceRequest = (input, context) => {
|
|
3961
3923
|
return {
|
|
3962
|
-
...(input.AddLicenseSpecifications
|
|
3963
|
-
input.AddLicenseSpecifications !== null && {
|
|
3924
|
+
...(input.AddLicenseSpecifications != null && {
|
|
3964
3925
|
AddLicenseSpecifications: serializeAws_json1_1LicenseSpecifications(input.AddLicenseSpecifications, context),
|
|
3965
3926
|
}),
|
|
3966
|
-
...(input.RemoveLicenseSpecifications
|
|
3967
|
-
input.RemoveLicenseSpecifications !== null && {
|
|
3927
|
+
...(input.RemoveLicenseSpecifications != null && {
|
|
3968
3928
|
RemoveLicenseSpecifications: serializeAws_json1_1LicenseSpecifications(input.RemoveLicenseSpecifications, context),
|
|
3969
3929
|
}),
|
|
3970
|
-
...(input.ResourceArn
|
|
3930
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3971
3931
|
};
|
|
3972
3932
|
};
|
|
3973
3933
|
const serializeAws_json1_1UpdateServiceSettingsRequest = (input, context) => {
|
|
3974
3934
|
return {
|
|
3975
|
-
...(input.EnableCrossAccountsDiscovery
|
|
3976
|
-
input.EnableCrossAccountsDiscovery !== null && {
|
|
3935
|
+
...(input.EnableCrossAccountsDiscovery != null && {
|
|
3977
3936
|
EnableCrossAccountsDiscovery: input.EnableCrossAccountsDiscovery,
|
|
3978
3937
|
}),
|
|
3979
|
-
...(input.OrganizationConfiguration
|
|
3980
|
-
input.OrganizationConfiguration !== null && {
|
|
3938
|
+
...(input.OrganizationConfiguration != null && {
|
|
3981
3939
|
OrganizationConfiguration: serializeAws_json1_1OrganizationConfiguration(input.OrganizationConfiguration, context),
|
|
3982
3940
|
}),
|
|
3983
|
-
...(input.S3BucketArn
|
|
3984
|
-
...(input.SnsTopicArn
|
|
3941
|
+
...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
|
|
3942
|
+
...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
|
|
3985
3943
|
};
|
|
3986
3944
|
};
|
|
3987
3945
|
const deserializeAws_json1_1AcceptGrantResponse = (output, context) => {
|
|
@@ -4025,7 +3983,7 @@ const deserializeAws_json1_1AuthorizationException = (output, context) => {
|
|
|
4025
3983
|
};
|
|
4026
3984
|
const deserializeAws_json1_1AutomatedDiscoveryInformation = (output, context) => {
|
|
4027
3985
|
return {
|
|
4028
|
-
LastRunTime: output.LastRunTime
|
|
3986
|
+
LastRunTime: output.LastRunTime != null
|
|
4029
3987
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRunTime)))
|
|
4030
3988
|
: undefined,
|
|
4031
3989
|
};
|
|
@@ -4041,10 +3999,10 @@ const deserializeAws_json1_1CheckInLicenseResponse = (output, context) => {
|
|
|
4041
3999
|
};
|
|
4042
4000
|
const deserializeAws_json1_1CheckoutBorrowLicenseResponse = (output, context) => {
|
|
4043
4001
|
return {
|
|
4044
|
-
CheckoutMetadata: output.CheckoutMetadata
|
|
4002
|
+
CheckoutMetadata: output.CheckoutMetadata != null
|
|
4045
4003
|
? deserializeAws_json1_1MetadataList(output.CheckoutMetadata, context)
|
|
4046
4004
|
: undefined,
|
|
4047
|
-
EntitlementsAllowed: output.EntitlementsAllowed
|
|
4005
|
+
EntitlementsAllowed: output.EntitlementsAllowed != null
|
|
4048
4006
|
? deserializeAws_json1_1EntitlementDataList(output.EntitlementsAllowed, context)
|
|
4049
4007
|
: undefined,
|
|
4050
4008
|
Expiration: (0, smithy_client_1.expectString)(output.Expiration),
|
|
@@ -4058,7 +4016,7 @@ const deserializeAws_json1_1CheckoutBorrowLicenseResponse = (output, context) =>
|
|
|
4058
4016
|
const deserializeAws_json1_1CheckoutLicenseResponse = (output, context) => {
|
|
4059
4017
|
return {
|
|
4060
4018
|
CheckoutType: (0, smithy_client_1.expectString)(output.CheckoutType),
|
|
4061
|
-
EntitlementsAllowed: output.EntitlementsAllowed
|
|
4019
|
+
EntitlementsAllowed: output.EntitlementsAllowed != null
|
|
4062
4020
|
? deserializeAws_json1_1EntitlementDataList(output.EntitlementsAllowed, context)
|
|
4063
4021
|
: undefined,
|
|
4064
4022
|
Expiration: (0, smithy_client_1.expectString)(output.Expiration),
|
|
@@ -4093,10 +4051,10 @@ const deserializeAws_json1_1ConsumedLicenseSummaryList = (output, context) => {
|
|
|
4093
4051
|
};
|
|
4094
4052
|
const deserializeAws_json1_1ConsumptionConfiguration = (output, context) => {
|
|
4095
4053
|
return {
|
|
4096
|
-
BorrowConfiguration: output.BorrowConfiguration
|
|
4054
|
+
BorrowConfiguration: output.BorrowConfiguration != null
|
|
4097
4055
|
? deserializeAws_json1_1BorrowConfiguration(output.BorrowConfiguration, context)
|
|
4098
4056
|
: undefined,
|
|
4099
|
-
ProvisionalConfiguration: output.ProvisionalConfiguration
|
|
4057
|
+
ProvisionalConfiguration: output.ProvisionalConfiguration != null
|
|
4100
4058
|
? deserializeAws_json1_1ProvisionalConfiguration(output.ProvisionalConfiguration, context)
|
|
4101
4059
|
: undefined,
|
|
4102
4060
|
RenewType: (0, smithy_client_1.expectString)(output.RenewType),
|
|
@@ -4267,17 +4225,15 @@ const deserializeAws_json1_1GetAccessTokenResponse = (output, context) => {
|
|
|
4267
4225
|
};
|
|
4268
4226
|
const deserializeAws_json1_1GetGrantResponse = (output, context) => {
|
|
4269
4227
|
return {
|
|
4270
|
-
Grant: output.Grant
|
|
4271
|
-
? deserializeAws_json1_1Grant(output.Grant, context)
|
|
4272
|
-
: undefined,
|
|
4228
|
+
Grant: output.Grant != null ? deserializeAws_json1_1Grant(output.Grant, context) : undefined,
|
|
4273
4229
|
};
|
|
4274
4230
|
};
|
|
4275
4231
|
const deserializeAws_json1_1GetLicenseConfigurationResponse = (output, context) => {
|
|
4276
4232
|
return {
|
|
4277
|
-
AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation
|
|
4233
|
+
AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation != null
|
|
4278
4234
|
? deserializeAws_json1_1AutomatedDiscoveryInformation(output.AutomatedDiscoveryInformation, context)
|
|
4279
4235
|
: undefined,
|
|
4280
|
-
ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList
|
|
4236
|
+
ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList != null
|
|
4281
4237
|
? deserializeAws_json1_1ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context)
|
|
4282
4238
|
: undefined,
|
|
4283
4239
|
ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
|
|
@@ -4288,72 +4244,60 @@ const deserializeAws_json1_1GetLicenseConfigurationResponse = (output, context)
|
|
|
4288
4244
|
LicenseCount: (0, smithy_client_1.expectLong)(output.LicenseCount),
|
|
4289
4245
|
LicenseCountHardLimit: (0, smithy_client_1.expectBoolean)(output.LicenseCountHardLimit),
|
|
4290
4246
|
LicenseCountingType: (0, smithy_client_1.expectString)(output.LicenseCountingType),
|
|
4291
|
-
LicenseRules: output.LicenseRules
|
|
4292
|
-
|
|
4293
|
-
: undefined,
|
|
4294
|
-
ManagedResourceSummaryList: output.ManagedResourceSummaryList !== undefined && output.ManagedResourceSummaryList !== null
|
|
4247
|
+
LicenseRules: output.LicenseRules != null ? deserializeAws_json1_1StringList(output.LicenseRules, context) : undefined,
|
|
4248
|
+
ManagedResourceSummaryList: output.ManagedResourceSummaryList != null
|
|
4295
4249
|
? deserializeAws_json1_1ManagedResourceSummaryList(output.ManagedResourceSummaryList, context)
|
|
4296
4250
|
: undefined,
|
|
4297
4251
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4298
4252
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
4299
|
-
ProductInformationList: output.ProductInformationList
|
|
4253
|
+
ProductInformationList: output.ProductInformationList != null
|
|
4300
4254
|
? deserializeAws_json1_1ProductInformationList(output.ProductInformationList, context)
|
|
4301
4255
|
: undefined,
|
|
4302
4256
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4303
|
-
Tags: output.Tags
|
|
4304
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
4305
|
-
: undefined,
|
|
4257
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
4306
4258
|
};
|
|
4307
4259
|
};
|
|
4308
4260
|
const deserializeAws_json1_1GetLicenseConversionTaskResponse = (output, context) => {
|
|
4309
4261
|
return {
|
|
4310
|
-
DestinationLicenseContext: output.DestinationLicenseContext
|
|
4262
|
+
DestinationLicenseContext: output.DestinationLicenseContext != null
|
|
4311
4263
|
? deserializeAws_json1_1LicenseConversionContext(output.DestinationLicenseContext, context)
|
|
4312
4264
|
: undefined,
|
|
4313
|
-
EndTime: output.EndTime
|
|
4314
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
4315
|
-
: undefined,
|
|
4265
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4316
4266
|
LicenseConversionTaskId: (0, smithy_client_1.expectString)(output.LicenseConversionTaskId),
|
|
4317
|
-
LicenseConversionTime: output.LicenseConversionTime
|
|
4267
|
+
LicenseConversionTime: output.LicenseConversionTime != null
|
|
4318
4268
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LicenseConversionTime)))
|
|
4319
4269
|
: undefined,
|
|
4320
4270
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4321
|
-
SourceLicenseContext: output.SourceLicenseContext
|
|
4271
|
+
SourceLicenseContext: output.SourceLicenseContext != null
|
|
4322
4272
|
? deserializeAws_json1_1LicenseConversionContext(output.SourceLicenseContext, context)
|
|
4323
4273
|
: undefined,
|
|
4324
|
-
StartTime: output.StartTime
|
|
4325
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4326
|
-
: undefined,
|
|
4274
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4327
4275
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4328
4276
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
4329
4277
|
};
|
|
4330
4278
|
};
|
|
4331
4279
|
const deserializeAws_json1_1GetLicenseManagerReportGeneratorResponse = (output, context) => {
|
|
4332
4280
|
return {
|
|
4333
|
-
ReportGenerator: output.ReportGenerator
|
|
4281
|
+
ReportGenerator: output.ReportGenerator != null
|
|
4334
4282
|
? deserializeAws_json1_1ReportGenerator(output.ReportGenerator, context)
|
|
4335
4283
|
: undefined,
|
|
4336
4284
|
};
|
|
4337
4285
|
};
|
|
4338
4286
|
const deserializeAws_json1_1GetLicenseResponse = (output, context) => {
|
|
4339
4287
|
return {
|
|
4340
|
-
License: output.License
|
|
4341
|
-
? deserializeAws_json1_1License(output.License, context)
|
|
4342
|
-
: undefined,
|
|
4288
|
+
License: output.License != null ? deserializeAws_json1_1License(output.License, context) : undefined,
|
|
4343
4289
|
};
|
|
4344
4290
|
};
|
|
4345
4291
|
const deserializeAws_json1_1GetLicenseUsageResponse = (output, context) => {
|
|
4346
4292
|
return {
|
|
4347
|
-
LicenseUsage: output.LicenseUsage
|
|
4348
|
-
? deserializeAws_json1_1LicenseUsage(output.LicenseUsage, context)
|
|
4349
|
-
: undefined,
|
|
4293
|
+
LicenseUsage: output.LicenseUsage != null ? deserializeAws_json1_1LicenseUsage(output.LicenseUsage, context) : undefined,
|
|
4350
4294
|
};
|
|
4351
4295
|
};
|
|
4352
4296
|
const deserializeAws_json1_1GetServiceSettingsResponse = (output, context) => {
|
|
4353
4297
|
return {
|
|
4354
4298
|
EnableCrossAccountsDiscovery: (0, smithy_client_1.expectBoolean)(output.EnableCrossAccountsDiscovery),
|
|
4355
4299
|
LicenseManagerResourceShareArn: (0, smithy_client_1.expectString)(output.LicenseManagerResourceShareArn),
|
|
4356
|
-
OrganizationConfiguration: output.OrganizationConfiguration
|
|
4300
|
+
OrganizationConfiguration: output.OrganizationConfiguration != null
|
|
4357
4301
|
? deserializeAws_json1_1OrganizationConfiguration(output.OrganizationConfiguration, context)
|
|
4358
4302
|
: undefined,
|
|
4359
4303
|
S3BucketArn: (0, smithy_client_1.expectString)(output.S3BucketArn),
|
|
@@ -4365,7 +4309,7 @@ const deserializeAws_json1_1Grant = (output, context) => {
|
|
|
4365
4309
|
GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
|
|
4366
4310
|
GrantName: (0, smithy_client_1.expectString)(output.GrantName),
|
|
4367
4311
|
GrantStatus: (0, smithy_client_1.expectString)(output.GrantStatus),
|
|
4368
|
-
GrantedOperations: output.GrantedOperations
|
|
4312
|
+
GrantedOperations: output.GrantedOperations != null
|
|
4369
4313
|
? deserializeAws_json1_1AllowedOperationList(output.GrantedOperations, context)
|
|
4370
4314
|
: undefined,
|
|
4371
4315
|
GranteePrincipalArn: (0, smithy_client_1.expectString)(output.GranteePrincipalArn),
|
|
@@ -4379,31 +4323,23 @@ const deserializeAws_json1_1Grant = (output, context) => {
|
|
|
4379
4323
|
const deserializeAws_json1_1GrantedLicense = (output, context) => {
|
|
4380
4324
|
return {
|
|
4381
4325
|
Beneficiary: (0, smithy_client_1.expectString)(output.Beneficiary),
|
|
4382
|
-
ConsumptionConfiguration: output.ConsumptionConfiguration
|
|
4326
|
+
ConsumptionConfiguration: output.ConsumptionConfiguration != null
|
|
4383
4327
|
? deserializeAws_json1_1ConsumptionConfiguration(output.ConsumptionConfiguration, context)
|
|
4384
4328
|
: undefined,
|
|
4385
4329
|
CreateTime: (0, smithy_client_1.expectString)(output.CreateTime),
|
|
4386
|
-
Entitlements: output.Entitlements
|
|
4387
|
-
? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
|
|
4388
|
-
: undefined,
|
|
4330
|
+
Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
|
|
4389
4331
|
HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
|
|
4390
|
-
Issuer: output.Issuer
|
|
4391
|
-
? deserializeAws_json1_1IssuerDetails(output.Issuer, context)
|
|
4392
|
-
: undefined,
|
|
4332
|
+
Issuer: output.Issuer != null ? deserializeAws_json1_1IssuerDetails(output.Issuer, context) : undefined,
|
|
4393
4333
|
LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
|
|
4394
|
-
LicenseMetadata: output.LicenseMetadata
|
|
4395
|
-
? deserializeAws_json1_1MetadataList(output.LicenseMetadata, context)
|
|
4396
|
-
: undefined,
|
|
4334
|
+
LicenseMetadata: output.LicenseMetadata != null ? deserializeAws_json1_1MetadataList(output.LicenseMetadata, context) : undefined,
|
|
4397
4335
|
LicenseName: (0, smithy_client_1.expectString)(output.LicenseName),
|
|
4398
4336
|
ProductName: (0, smithy_client_1.expectString)(output.ProductName),
|
|
4399
4337
|
ProductSKU: (0, smithy_client_1.expectString)(output.ProductSKU),
|
|
4400
|
-
ReceivedMetadata: output.ReceivedMetadata
|
|
4338
|
+
ReceivedMetadata: output.ReceivedMetadata != null
|
|
4401
4339
|
? deserializeAws_json1_1ReceivedMetadata(output.ReceivedMetadata, context)
|
|
4402
4340
|
: undefined,
|
|
4403
4341
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4404
|
-
Validity: output.Validity
|
|
4405
|
-
? deserializeAws_json1_1DatetimeRange(output.Validity, context)
|
|
4406
|
-
: undefined,
|
|
4342
|
+
Validity: output.Validity != null ? deserializeAws_json1_1DatetimeRange(output.Validity, context) : undefined,
|
|
4407
4343
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
4408
4344
|
};
|
|
4409
4345
|
};
|
|
@@ -4449,37 +4385,29 @@ const deserializeAws_json1_1IssuerDetails = (output, context) => {
|
|
|
4449
4385
|
const deserializeAws_json1_1License = (output, context) => {
|
|
4450
4386
|
return {
|
|
4451
4387
|
Beneficiary: (0, smithy_client_1.expectString)(output.Beneficiary),
|
|
4452
|
-
ConsumptionConfiguration: output.ConsumptionConfiguration
|
|
4388
|
+
ConsumptionConfiguration: output.ConsumptionConfiguration != null
|
|
4453
4389
|
? deserializeAws_json1_1ConsumptionConfiguration(output.ConsumptionConfiguration, context)
|
|
4454
4390
|
: undefined,
|
|
4455
4391
|
CreateTime: (0, smithy_client_1.expectString)(output.CreateTime),
|
|
4456
|
-
Entitlements: output.Entitlements
|
|
4457
|
-
? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
|
|
4458
|
-
: undefined,
|
|
4392
|
+
Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
|
|
4459
4393
|
HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
|
|
4460
|
-
Issuer: output.Issuer
|
|
4461
|
-
? deserializeAws_json1_1IssuerDetails(output.Issuer, context)
|
|
4462
|
-
: undefined,
|
|
4394
|
+
Issuer: output.Issuer != null ? deserializeAws_json1_1IssuerDetails(output.Issuer, context) : undefined,
|
|
4463
4395
|
LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
|
|
4464
|
-
LicenseMetadata: output.LicenseMetadata
|
|
4465
|
-
? deserializeAws_json1_1MetadataList(output.LicenseMetadata, context)
|
|
4466
|
-
: undefined,
|
|
4396
|
+
LicenseMetadata: output.LicenseMetadata != null ? deserializeAws_json1_1MetadataList(output.LicenseMetadata, context) : undefined,
|
|
4467
4397
|
LicenseName: (0, smithy_client_1.expectString)(output.LicenseName),
|
|
4468
4398
|
ProductName: (0, smithy_client_1.expectString)(output.ProductName),
|
|
4469
4399
|
ProductSKU: (0, smithy_client_1.expectString)(output.ProductSKU),
|
|
4470
4400
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4471
|
-
Validity: output.Validity
|
|
4472
|
-
? deserializeAws_json1_1DatetimeRange(output.Validity, context)
|
|
4473
|
-
: undefined,
|
|
4401
|
+
Validity: output.Validity != null ? deserializeAws_json1_1DatetimeRange(output.Validity, context) : undefined,
|
|
4474
4402
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
4475
4403
|
};
|
|
4476
4404
|
};
|
|
4477
4405
|
const deserializeAws_json1_1LicenseConfiguration = (output, context) => {
|
|
4478
4406
|
return {
|
|
4479
|
-
AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation
|
|
4407
|
+
AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation != null
|
|
4480
4408
|
? deserializeAws_json1_1AutomatedDiscoveryInformation(output.AutomatedDiscoveryInformation, context)
|
|
4481
4409
|
: undefined,
|
|
4482
|
-
ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList
|
|
4410
|
+
ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList != null
|
|
4483
4411
|
? deserializeAws_json1_1ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context)
|
|
4484
4412
|
: undefined,
|
|
4485
4413
|
ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
|
|
@@ -4490,15 +4418,13 @@ const deserializeAws_json1_1LicenseConfiguration = (output, context) => {
|
|
|
4490
4418
|
LicenseCount: (0, smithy_client_1.expectLong)(output.LicenseCount),
|
|
4491
4419
|
LicenseCountHardLimit: (0, smithy_client_1.expectBoolean)(output.LicenseCountHardLimit),
|
|
4492
4420
|
LicenseCountingType: (0, smithy_client_1.expectString)(output.LicenseCountingType),
|
|
4493
|
-
LicenseRules: output.LicenseRules
|
|
4494
|
-
|
|
4495
|
-
: undefined,
|
|
4496
|
-
ManagedResourceSummaryList: output.ManagedResourceSummaryList !== undefined && output.ManagedResourceSummaryList !== null
|
|
4421
|
+
LicenseRules: output.LicenseRules != null ? deserializeAws_json1_1StringList(output.LicenseRules, context) : undefined,
|
|
4422
|
+
ManagedResourceSummaryList: output.ManagedResourceSummaryList != null
|
|
4497
4423
|
? deserializeAws_json1_1ManagedResourceSummaryList(output.ManagedResourceSummaryList, context)
|
|
4498
4424
|
: undefined,
|
|
4499
4425
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4500
4426
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
4501
|
-
ProductInformationList: output.ProductInformationList
|
|
4427
|
+
ProductInformationList: output.ProductInformationList != null
|
|
4502
4428
|
? deserializeAws_json1_1ProductInformationList(output.ProductInformationList, context)
|
|
4503
4429
|
: undefined,
|
|
4504
4430
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -4507,7 +4433,7 @@ const deserializeAws_json1_1LicenseConfiguration = (output, context) => {
|
|
|
4507
4433
|
const deserializeAws_json1_1LicenseConfigurationAssociation = (output, context) => {
|
|
4508
4434
|
return {
|
|
4509
4435
|
AmiAssociationScope: (0, smithy_client_1.expectString)(output.AmiAssociationScope),
|
|
4510
|
-
AssociationTime: output.AssociationTime
|
|
4436
|
+
AssociationTime: output.AssociationTime != null
|
|
4511
4437
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AssociationTime)))
|
|
4512
4438
|
: undefined,
|
|
4513
4439
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
@@ -4539,7 +4465,7 @@ const deserializeAws_json1_1LicenseConfigurations = (output, context) => {
|
|
|
4539
4465
|
};
|
|
4540
4466
|
const deserializeAws_json1_1LicenseConfigurationUsage = (output, context) => {
|
|
4541
4467
|
return {
|
|
4542
|
-
AssociationTime: output.AssociationTime
|
|
4468
|
+
AssociationTime: output.AssociationTime != null
|
|
4543
4469
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AssociationTime)))
|
|
4544
4470
|
: undefined,
|
|
4545
4471
|
ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
|
|
@@ -4567,23 +4493,19 @@ const deserializeAws_json1_1LicenseConversionContext = (output, context) => {
|
|
|
4567
4493
|
};
|
|
4568
4494
|
const deserializeAws_json1_1LicenseConversionTask = (output, context) => {
|
|
4569
4495
|
return {
|
|
4570
|
-
DestinationLicenseContext: output.DestinationLicenseContext
|
|
4496
|
+
DestinationLicenseContext: output.DestinationLicenseContext != null
|
|
4571
4497
|
? deserializeAws_json1_1LicenseConversionContext(output.DestinationLicenseContext, context)
|
|
4572
4498
|
: undefined,
|
|
4573
|
-
EndTime: output.EndTime
|
|
4574
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
4575
|
-
: undefined,
|
|
4499
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4576
4500
|
LicenseConversionTaskId: (0, smithy_client_1.expectString)(output.LicenseConversionTaskId),
|
|
4577
|
-
LicenseConversionTime: output.LicenseConversionTime
|
|
4501
|
+
LicenseConversionTime: output.LicenseConversionTime != null
|
|
4578
4502
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LicenseConversionTime)))
|
|
4579
4503
|
: undefined,
|
|
4580
4504
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4581
|
-
SourceLicenseContext: output.SourceLicenseContext
|
|
4505
|
+
SourceLicenseContext: output.SourceLicenseContext != null
|
|
4582
4506
|
? deserializeAws_json1_1LicenseConversionContext(output.SourceLicenseContext, context)
|
|
4583
4507
|
: undefined,
|
|
4584
|
-
StartTime: output.StartTime
|
|
4585
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4586
|
-
: undefined,
|
|
4508
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4587
4509
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4588
4510
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
4589
4511
|
};
|
|
@@ -4613,12 +4535,10 @@ const deserializeAws_json1_1LicenseList = (output, context) => {
|
|
|
4613
4535
|
const deserializeAws_json1_1LicenseOperationFailure = (output, context) => {
|
|
4614
4536
|
return {
|
|
4615
4537
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4616
|
-
FailureTime: output.FailureTime
|
|
4538
|
+
FailureTime: output.FailureTime != null
|
|
4617
4539
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FailureTime)))
|
|
4618
4540
|
: undefined,
|
|
4619
|
-
MetadataList: output.MetadataList
|
|
4620
|
-
? deserializeAws_json1_1MetadataList(output.MetadataList, context)
|
|
4621
|
-
: undefined,
|
|
4541
|
+
MetadataList: output.MetadataList != null ? deserializeAws_json1_1MetadataList(output.MetadataList, context) : undefined,
|
|
4622
4542
|
OperationName: (0, smithy_client_1.expectString)(output.OperationName),
|
|
4623
4543
|
OperationRequestedBy: (0, smithy_client_1.expectString)(output.OperationRequestedBy),
|
|
4624
4544
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
@@ -4656,7 +4576,7 @@ const deserializeAws_json1_1LicenseSpecifications = (output, context) => {
|
|
|
4656
4576
|
};
|
|
4657
4577
|
const deserializeAws_json1_1LicenseUsage = (output, context) => {
|
|
4658
4578
|
return {
|
|
4659
|
-
EntitlementUsages: output.EntitlementUsages
|
|
4579
|
+
EntitlementUsages: output.EntitlementUsages != null
|
|
4660
4580
|
? deserializeAws_json1_1EntitlementUsageList(output.EntitlementUsages, context)
|
|
4661
4581
|
: undefined,
|
|
4662
4582
|
};
|
|
@@ -4668,7 +4588,7 @@ const deserializeAws_json1_1LicenseUsageException = (output, context) => {
|
|
|
4668
4588
|
};
|
|
4669
4589
|
const deserializeAws_json1_1ListAssociationsForLicenseConfigurationResponse = (output, context) => {
|
|
4670
4590
|
return {
|
|
4671
|
-
LicenseConfigurationAssociations: output.LicenseConfigurationAssociations
|
|
4591
|
+
LicenseConfigurationAssociations: output.LicenseConfigurationAssociations != null
|
|
4672
4592
|
? deserializeAws_json1_1LicenseConfigurationAssociations(output.LicenseConfigurationAssociations, context)
|
|
4673
4593
|
: undefined,
|
|
4674
4594
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4676,15 +4596,13 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationResponse = (o
|
|
|
4676
4596
|
};
|
|
4677
4597
|
const deserializeAws_json1_1ListDistributedGrantsResponse = (output, context) => {
|
|
4678
4598
|
return {
|
|
4679
|
-
Grants: output.Grants
|
|
4680
|
-
? deserializeAws_json1_1GrantList(output.Grants, context)
|
|
4681
|
-
: undefined,
|
|
4599
|
+
Grants: output.Grants != null ? deserializeAws_json1_1GrantList(output.Grants, context) : undefined,
|
|
4682
4600
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4683
4601
|
};
|
|
4684
4602
|
};
|
|
4685
4603
|
const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsResponse = (output, context) => {
|
|
4686
4604
|
return {
|
|
4687
|
-
LicenseOperationFailureList: output.LicenseOperationFailureList
|
|
4605
|
+
LicenseOperationFailureList: output.LicenseOperationFailureList != null
|
|
4688
4606
|
? deserializeAws_json1_1LicenseOperationFailureList(output.LicenseOperationFailureList, context)
|
|
4689
4607
|
: undefined,
|
|
4690
4608
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4692,7 +4610,7 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsRespons
|
|
|
4692
4610
|
};
|
|
4693
4611
|
const deserializeAws_json1_1ListLicenseConfigurationsResponse = (output, context) => {
|
|
4694
4612
|
return {
|
|
4695
|
-
LicenseConfigurations: output.LicenseConfigurations
|
|
4613
|
+
LicenseConfigurations: output.LicenseConfigurations != null
|
|
4696
4614
|
? deserializeAws_json1_1LicenseConfigurations(output.LicenseConfigurations, context)
|
|
4697
4615
|
: undefined,
|
|
4698
4616
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4700,7 +4618,7 @@ const deserializeAws_json1_1ListLicenseConfigurationsResponse = (output, context
|
|
|
4700
4618
|
};
|
|
4701
4619
|
const deserializeAws_json1_1ListLicenseConversionTasksResponse = (output, context) => {
|
|
4702
4620
|
return {
|
|
4703
|
-
LicenseConversionTasks: output.LicenseConversionTasks
|
|
4621
|
+
LicenseConversionTasks: output.LicenseConversionTasks != null
|
|
4704
4622
|
? deserializeAws_json1_1LicenseConversionTasks(output.LicenseConversionTasks, context)
|
|
4705
4623
|
: undefined,
|
|
4706
4624
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4709,14 +4627,14 @@ const deserializeAws_json1_1ListLicenseConversionTasksResponse = (output, contex
|
|
|
4709
4627
|
const deserializeAws_json1_1ListLicenseManagerReportGeneratorsResponse = (output, context) => {
|
|
4710
4628
|
return {
|
|
4711
4629
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4712
|
-
ReportGenerators: output.ReportGenerators
|
|
4630
|
+
ReportGenerators: output.ReportGenerators != null
|
|
4713
4631
|
? deserializeAws_json1_1ReportGeneratorList(output.ReportGenerators, context)
|
|
4714
4632
|
: undefined,
|
|
4715
4633
|
};
|
|
4716
4634
|
};
|
|
4717
4635
|
const deserializeAws_json1_1ListLicenseSpecificationsForResourceResponse = (output, context) => {
|
|
4718
4636
|
return {
|
|
4719
|
-
LicenseSpecifications: output.LicenseSpecifications
|
|
4637
|
+
LicenseSpecifications: output.LicenseSpecifications != null
|
|
4720
4638
|
? deserializeAws_json1_1LicenseSpecifications(output.LicenseSpecifications, context)
|
|
4721
4639
|
: undefined,
|
|
4722
4640
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4724,62 +4642,50 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceResponse = (outp
|
|
|
4724
4642
|
};
|
|
4725
4643
|
const deserializeAws_json1_1ListLicensesResponse = (output, context) => {
|
|
4726
4644
|
return {
|
|
4727
|
-
Licenses: output.Licenses
|
|
4728
|
-
? deserializeAws_json1_1LicenseList(output.Licenses, context)
|
|
4729
|
-
: undefined,
|
|
4645
|
+
Licenses: output.Licenses != null ? deserializeAws_json1_1LicenseList(output.Licenses, context) : undefined,
|
|
4730
4646
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4731
4647
|
};
|
|
4732
4648
|
};
|
|
4733
4649
|
const deserializeAws_json1_1ListLicenseVersionsResponse = (output, context) => {
|
|
4734
4650
|
return {
|
|
4735
|
-
Licenses: output.Licenses
|
|
4736
|
-
? deserializeAws_json1_1LicenseList(output.Licenses, context)
|
|
4737
|
-
: undefined,
|
|
4651
|
+
Licenses: output.Licenses != null ? deserializeAws_json1_1LicenseList(output.Licenses, context) : undefined,
|
|
4738
4652
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4739
4653
|
};
|
|
4740
4654
|
};
|
|
4741
4655
|
const deserializeAws_json1_1ListReceivedGrantsResponse = (output, context) => {
|
|
4742
4656
|
return {
|
|
4743
|
-
Grants: output.Grants
|
|
4744
|
-
? deserializeAws_json1_1GrantList(output.Grants, context)
|
|
4745
|
-
: undefined,
|
|
4657
|
+
Grants: output.Grants != null ? deserializeAws_json1_1GrantList(output.Grants, context) : undefined,
|
|
4746
4658
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4747
4659
|
};
|
|
4748
4660
|
};
|
|
4749
4661
|
const deserializeAws_json1_1ListReceivedLicensesResponse = (output, context) => {
|
|
4750
4662
|
return {
|
|
4751
|
-
Licenses: output.Licenses
|
|
4752
|
-
? deserializeAws_json1_1GrantedLicenseList(output.Licenses, context)
|
|
4753
|
-
: undefined,
|
|
4663
|
+
Licenses: output.Licenses != null ? deserializeAws_json1_1GrantedLicenseList(output.Licenses, context) : undefined,
|
|
4754
4664
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4755
4665
|
};
|
|
4756
4666
|
};
|
|
4757
4667
|
const deserializeAws_json1_1ListResourceInventoryResponse = (output, context) => {
|
|
4758
4668
|
return {
|
|
4759
4669
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4760
|
-
ResourceInventoryList: output.ResourceInventoryList
|
|
4670
|
+
ResourceInventoryList: output.ResourceInventoryList != null
|
|
4761
4671
|
? deserializeAws_json1_1ResourceInventoryList(output.ResourceInventoryList, context)
|
|
4762
4672
|
: undefined,
|
|
4763
4673
|
};
|
|
4764
4674
|
};
|
|
4765
4675
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
4766
4676
|
return {
|
|
4767
|
-
Tags: output.Tags
|
|
4768
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
4769
|
-
: undefined,
|
|
4677
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
4770
4678
|
};
|
|
4771
4679
|
};
|
|
4772
4680
|
const deserializeAws_json1_1ListTokensResponse = (output, context) => {
|
|
4773
4681
|
return {
|
|
4774
4682
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4775
|
-
Tokens: output.Tokens
|
|
4776
|
-
? deserializeAws_json1_1TokenList(output.Tokens, context)
|
|
4777
|
-
: undefined,
|
|
4683
|
+
Tokens: output.Tokens != null ? deserializeAws_json1_1TokenList(output.Tokens, context) : undefined,
|
|
4778
4684
|
};
|
|
4779
4685
|
};
|
|
4780
4686
|
const deserializeAws_json1_1ListUsageForLicenseConfigurationResponse = (output, context) => {
|
|
4781
4687
|
return {
|
|
4782
|
-
LicenseConfigurationUsageList: output.LicenseConfigurationUsageList
|
|
4688
|
+
LicenseConfigurationUsageList: output.LicenseConfigurationUsageList != null
|
|
4783
4689
|
? deserializeAws_json1_1LicenseConfigurationUsageList(output.LicenseConfigurationUsageList, context)
|
|
4784
4690
|
: undefined,
|
|
4785
4691
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -4842,7 +4748,7 @@ const deserializeAws_json1_1OrganizationConfiguration = (output, context) => {
|
|
|
4842
4748
|
};
|
|
4843
4749
|
const deserializeAws_json1_1ProductInformation = (output, context) => {
|
|
4844
4750
|
return {
|
|
4845
|
-
ProductInformationFilterList: output.ProductInformationFilterList
|
|
4751
|
+
ProductInformationFilterList: output.ProductInformationFilterList != null
|
|
4846
4752
|
? deserializeAws_json1_1ProductInformationFilterList(output.ProductInformationFilterList, context)
|
|
4847
4753
|
: undefined,
|
|
4848
4754
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
@@ -4852,7 +4758,7 @@ const deserializeAws_json1_1ProductInformationFilter = (output, context) => {
|
|
|
4852
4758
|
return {
|
|
4853
4759
|
ProductInformationFilterComparator: (0, smithy_client_1.expectString)(output.ProductInformationFilterComparator),
|
|
4854
4760
|
ProductInformationFilterName: (0, smithy_client_1.expectString)(output.ProductInformationFilterName),
|
|
4855
|
-
ProductInformationFilterValue: output.ProductInformationFilterValue
|
|
4761
|
+
ProductInformationFilterValue: output.ProductInformationFilterValue != null
|
|
4856
4762
|
? deserializeAws_json1_1StringList(output.ProductInformationFilterValue, context)
|
|
4857
4763
|
: undefined,
|
|
4858
4764
|
};
|
|
@@ -4891,7 +4797,7 @@ const deserializeAws_json1_1RateLimitExceededException = (output, context) => {
|
|
|
4891
4797
|
};
|
|
4892
4798
|
const deserializeAws_json1_1ReceivedMetadata = (output, context) => {
|
|
4893
4799
|
return {
|
|
4894
|
-
AllowedOperations: output.AllowedOperations
|
|
4800
|
+
AllowedOperations: output.AllowedOperations != null
|
|
4895
4801
|
? deserializeAws_json1_1AllowedOperationList(output.AllowedOperations, context)
|
|
4896
4802
|
: undefined,
|
|
4897
4803
|
ReceivedStatus: (0, smithy_client_1.expectString)(output.ReceivedStatus),
|
|
@@ -4913,7 +4819,7 @@ const deserializeAws_json1_1RejectGrantResponse = (output, context) => {
|
|
|
4913
4819
|
};
|
|
4914
4820
|
const deserializeAws_json1_1ReportContext = (output, context) => {
|
|
4915
4821
|
return {
|
|
4916
|
-
licenseConfigurationArns: output.licenseConfigurationArns
|
|
4822
|
+
licenseConfigurationArns: output.licenseConfigurationArns != null
|
|
4917
4823
|
? deserializeAws_json1_1ArnList(output.licenseConfigurationArns, context)
|
|
4918
4824
|
: undefined,
|
|
4919
4825
|
};
|
|
@@ -4932,23 +4838,15 @@ const deserializeAws_json1_1ReportGenerator = (output, context) => {
|
|
|
4932
4838
|
LastRunFailureReason: (0, smithy_client_1.expectString)(output.LastRunFailureReason),
|
|
4933
4839
|
LastRunStatus: (0, smithy_client_1.expectString)(output.LastRunStatus),
|
|
4934
4840
|
LicenseManagerReportGeneratorArn: (0, smithy_client_1.expectString)(output.LicenseManagerReportGeneratorArn),
|
|
4935
|
-
ReportContext: output.ReportContext
|
|
4936
|
-
? deserializeAws_json1_1ReportContext(output.ReportContext, context)
|
|
4937
|
-
: undefined,
|
|
4841
|
+
ReportContext: output.ReportContext != null ? deserializeAws_json1_1ReportContext(output.ReportContext, context) : undefined,
|
|
4938
4842
|
ReportCreatorAccount: (0, smithy_client_1.expectString)(output.ReportCreatorAccount),
|
|
4939
|
-
ReportFrequency: output.ReportFrequency
|
|
4843
|
+
ReportFrequency: output.ReportFrequency != null
|
|
4940
4844
|
? deserializeAws_json1_1ReportFrequency(output.ReportFrequency, context)
|
|
4941
4845
|
: undefined,
|
|
4942
4846
|
ReportGeneratorName: (0, smithy_client_1.expectString)(output.ReportGeneratorName),
|
|
4943
|
-
ReportType: output.ReportType
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
S3Location: output.S3Location !== undefined && output.S3Location !== null
|
|
4947
|
-
? deserializeAws_json1_1S3Location(output.S3Location, context)
|
|
4948
|
-
: undefined,
|
|
4949
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4950
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
4951
|
-
: undefined,
|
|
4847
|
+
ReportType: output.ReportType != null ? deserializeAws_json1_1ReportTypeList(output.ReportType, context) : undefined,
|
|
4848
|
+
S3Location: output.S3Location != null ? deserializeAws_json1_1S3Location(output.S3Location, context) : undefined,
|
|
4849
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
4952
4850
|
};
|
|
4953
4851
|
};
|
|
4954
4852
|
const deserializeAws_json1_1ReportGeneratorList = (output, context) => {
|
|
@@ -5050,12 +4948,10 @@ const deserializeAws_json1_1TokenData = (output, context) => {
|
|
|
5050
4948
|
return {
|
|
5051
4949
|
ExpirationTime: (0, smithy_client_1.expectString)(output.ExpirationTime),
|
|
5052
4950
|
LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
|
|
5053
|
-
RoleArns: output.RoleArns
|
|
5054
|
-
? deserializeAws_json1_1ArnList(output.RoleArns, context)
|
|
5055
|
-
: undefined,
|
|
4951
|
+
RoleArns: output.RoleArns != null ? deserializeAws_json1_1ArnList(output.RoleArns, context) : undefined,
|
|
5056
4952
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5057
4953
|
TokenId: (0, smithy_client_1.expectString)(output.TokenId),
|
|
5058
|
-
TokenProperties: output.TokenProperties
|
|
4954
|
+
TokenProperties: output.TokenProperties != null
|
|
5059
4955
|
? deserializeAws_json1_1MaxSize3StringList(output.TokenProperties, context)
|
|
5060
4956
|
: undefined,
|
|
5061
4957
|
TokenType: (0, smithy_client_1.expectString)(output.TokenType),
|
|
@@ -5159,5 +5055,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
5159
5055
|
if (data["__type"] !== undefined) {
|
|
5160
5056
|
return sanitizeErrorCode(data["__type"]);
|
|
5161
5057
|
}
|
|
5162
|
-
return "";
|
|
5163
5058
|
};
|