@aws-sdk/client-license-manager 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +54 -48
- package/dist-es/LicenseManager.js +194 -201
- package/dist-es/LicenseManagerClient.js +22 -28
- package/dist-es/commands/AcceptGrantCommand.js +21 -28
- package/dist-es/commands/CheckInLicenseCommand.js +21 -28
- package/dist-es/commands/CheckoutBorrowLicenseCommand.js +21 -28
- package/dist-es/commands/CheckoutLicenseCommand.js +21 -28
- package/dist-es/commands/CreateGrantCommand.js +21 -28
- package/dist-es/commands/CreateGrantVersionCommand.js +21 -28
- package/dist-es/commands/CreateLicenseCommand.js +21 -28
- package/dist-es/commands/CreateLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateLicenseConversionTaskForResourceCommand.js +21 -28
- package/dist-es/commands/CreateLicenseManagerReportGeneratorCommand.js +21 -28
- package/dist-es/commands/CreateLicenseVersionCommand.js +21 -28
- package/dist-es/commands/CreateTokenCommand.js +21 -28
- package/dist-es/commands/DeleteGrantCommand.js +21 -28
- package/dist-es/commands/DeleteLicenseCommand.js +21 -28
- package/dist-es/commands/DeleteLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteLicenseManagerReportGeneratorCommand.js +21 -28
- package/dist-es/commands/DeleteTokenCommand.js +21 -28
- package/dist-es/commands/ExtendLicenseConsumptionCommand.js +21 -28
- package/dist-es/commands/GetAccessTokenCommand.js +21 -28
- package/dist-es/commands/GetGrantCommand.js +21 -28
- package/dist-es/commands/GetLicenseCommand.js +21 -28
- package/dist-es/commands/GetLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/GetLicenseConversionTaskCommand.js +21 -28
- package/dist-es/commands/GetLicenseManagerReportGeneratorCommand.js +21 -28
- package/dist-es/commands/GetLicenseUsageCommand.js +21 -28
- package/dist-es/commands/GetServiceSettingsCommand.js +21 -28
- package/dist-es/commands/ListAssociationsForLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/ListDistributedGrantsCommand.js +21 -28
- package/dist-es/commands/ListFailuresForLicenseConfigurationOperationsCommand.js +21 -28
- package/dist-es/commands/ListLicenseConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListLicenseConversionTasksCommand.js +21 -28
- package/dist-es/commands/ListLicenseManagerReportGeneratorsCommand.js +21 -28
- package/dist-es/commands/ListLicenseSpecificationsForResourceCommand.js +21 -28
- package/dist-es/commands/ListLicenseVersionsCommand.js +21 -28
- package/dist-es/commands/ListLicensesCommand.js +21 -28
- package/dist-es/commands/ListReceivedGrantsCommand.js +21 -28
- package/dist-es/commands/ListReceivedLicensesCommand.js +21 -28
- package/dist-es/commands/ListResourceInventoryCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTokensCommand.js +21 -28
- package/dist-es/commands/ListUsageForLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/RejectGrantCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateLicenseConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateLicenseManagerReportGeneratorCommand.js +21 -28
- package/dist-es/commands/UpdateLicenseSpecificationsForResourceCommand.js +21 -28
- package/dist-es/commands/UpdateServiceSettingsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LicenseManagerServiceException.js +5 -10
- package/dist-es/models/models_0.js +605 -340
- package/dist-es/protocols/Aws_json1_1.js +3776 -4734
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-license-manager
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-license-manager
|
|
@@ -503,7 +503,7 @@ exports.deserializeAws_json1_1AcceptGrantCommand = deserializeAws_json1_1AcceptG
|
|
|
503
503
|
const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) => {
|
|
504
504
|
const parsedOutput = {
|
|
505
505
|
...output,
|
|
506
|
-
body: await
|
|
506
|
+
body: await parseErrorBody(output.body, context),
|
|
507
507
|
};
|
|
508
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
509
|
switch (errorCode) {
|
|
@@ -555,7 +555,7 @@ exports.deserializeAws_json1_1CheckInLicenseCommand = deserializeAws_json1_1Chec
|
|
|
555
555
|
const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context) => {
|
|
556
556
|
const parsedOutput = {
|
|
557
557
|
...output,
|
|
558
|
-
body: await
|
|
558
|
+
body: await parseErrorBody(output.body, context),
|
|
559
559
|
};
|
|
560
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
561
|
switch (errorCode) {
|
|
@@ -610,7 +610,7 @@ exports.deserializeAws_json1_1CheckoutBorrowLicenseCommand = deserializeAws_json
|
|
|
610
610
|
const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, context) => {
|
|
611
611
|
const parsedOutput = {
|
|
612
612
|
...output,
|
|
613
|
-
body: await
|
|
613
|
+
body: await parseErrorBody(output.body, context),
|
|
614
614
|
};
|
|
615
615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
616
|
switch (errorCode) {
|
|
@@ -674,7 +674,7 @@ exports.deserializeAws_json1_1CheckoutLicenseCommand = deserializeAws_json1_1Che
|
|
|
674
674
|
const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context) => {
|
|
675
675
|
const parsedOutput = {
|
|
676
676
|
...output,
|
|
677
|
-
body: await
|
|
677
|
+
body: await parseErrorBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
680
|
switch (errorCode) {
|
|
@@ -735,7 +735,7 @@ exports.deserializeAws_json1_1CreateGrantCommand = deserializeAws_json1_1CreateG
|
|
|
735
735
|
const deserializeAws_json1_1CreateGrantCommandError = async (output, context) => {
|
|
736
736
|
const parsedOutput = {
|
|
737
737
|
...output,
|
|
738
|
-
body: await
|
|
738
|
+
body: await parseErrorBody(output.body, context),
|
|
739
739
|
};
|
|
740
740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
741
|
switch (errorCode) {
|
|
@@ -787,7 +787,7 @@ exports.deserializeAws_json1_1CreateGrantVersionCommand = deserializeAws_json1_1
|
|
|
787
787
|
const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, context) => {
|
|
788
788
|
const parsedOutput = {
|
|
789
789
|
...output,
|
|
790
|
-
body: await
|
|
790
|
+
body: await parseErrorBody(output.body, context),
|
|
791
791
|
};
|
|
792
792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
793
|
switch (errorCode) {
|
|
@@ -839,7 +839,7 @@ exports.deserializeAws_json1_1CreateLicenseCommand = deserializeAws_json1_1Creat
|
|
|
839
839
|
const deserializeAws_json1_1CreateLicenseCommandError = async (output, context) => {
|
|
840
840
|
const parsedOutput = {
|
|
841
841
|
...output,
|
|
842
|
-
body: await
|
|
842
|
+
body: await parseErrorBody(output.body, context),
|
|
843
843
|
};
|
|
844
844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
845
|
switch (errorCode) {
|
|
@@ -891,7 +891,7 @@ exports.deserializeAws_json1_1CreateLicenseConfigurationCommand = deserializeAws
|
|
|
891
891
|
const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (output, context) => {
|
|
892
892
|
const parsedOutput = {
|
|
893
893
|
...output,
|
|
894
|
-
body: await
|
|
894
|
+
body: await parseErrorBody(output.body, context),
|
|
895
895
|
};
|
|
896
896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
897
|
switch (errorCode) {
|
|
@@ -940,7 +940,7 @@ exports.deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = de
|
|
|
940
940
|
const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError = async (output, context) => {
|
|
941
941
|
const parsedOutput = {
|
|
942
942
|
...output,
|
|
943
|
-
body: await
|
|
943
|
+
body: await parseErrorBody(output.body, context),
|
|
944
944
|
};
|
|
945
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
946
|
switch (errorCode) {
|
|
@@ -989,7 +989,7 @@ exports.deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = deser
|
|
|
989
989
|
const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
|
-
body: await
|
|
992
|
+
body: await parseErrorBody(output.body, context),
|
|
993
993
|
};
|
|
994
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
995
|
switch (errorCode) {
|
|
@@ -1044,7 +1044,7 @@ exports.deserializeAws_json1_1CreateLicenseVersionCommand = deserializeAws_json1
|
|
|
1044
1044
|
const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, context) => {
|
|
1045
1045
|
const parsedOutput = {
|
|
1046
1046
|
...output,
|
|
1047
|
-
body: await
|
|
1047
|
+
body: await parseErrorBody(output.body, context),
|
|
1048
1048
|
};
|
|
1049
1049
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1050
|
switch (errorCode) {
|
|
@@ -1099,7 +1099,7 @@ exports.deserializeAws_json1_1CreateTokenCommand = deserializeAws_json1_1CreateT
|
|
|
1099
1099
|
const deserializeAws_json1_1CreateTokenCommandError = async (output, context) => {
|
|
1100
1100
|
const parsedOutput = {
|
|
1101
1101
|
...output,
|
|
1102
|
-
body: await
|
|
1102
|
+
body: await parseErrorBody(output.body, context),
|
|
1103
1103
|
};
|
|
1104
1104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1105
|
switch (errorCode) {
|
|
@@ -1154,7 +1154,7 @@ exports.deserializeAws_json1_1DeleteGrantCommand = deserializeAws_json1_1DeleteG
|
|
|
1154
1154
|
const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) => {
|
|
1155
1155
|
const parsedOutput = {
|
|
1156
1156
|
...output,
|
|
1157
|
-
body: await
|
|
1157
|
+
body: await parseErrorBody(output.body, context),
|
|
1158
1158
|
};
|
|
1159
1159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
1160
|
switch (errorCode) {
|
|
@@ -1206,7 +1206,7 @@ exports.deserializeAws_json1_1DeleteLicenseCommand = deserializeAws_json1_1Delet
|
|
|
1206
1206
|
const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context) => {
|
|
1207
1207
|
const parsedOutput = {
|
|
1208
1208
|
...output,
|
|
1209
|
-
body: await
|
|
1209
|
+
body: await parseErrorBody(output.body, context),
|
|
1210
1210
|
};
|
|
1211
1211
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1212
|
switch (errorCode) {
|
|
@@ -1261,7 +1261,7 @@ exports.deserializeAws_json1_1DeleteLicenseConfigurationCommand = deserializeAws
|
|
|
1261
1261
|
const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (output, context) => {
|
|
1262
1262
|
const parsedOutput = {
|
|
1263
1263
|
...output,
|
|
1264
|
-
body: await
|
|
1264
|
+
body: await parseErrorBody(output.body, context),
|
|
1265
1265
|
};
|
|
1266
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1267
|
switch (errorCode) {
|
|
@@ -1307,7 +1307,7 @@ exports.deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = deser
|
|
|
1307
1307
|
const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
1308
1308
|
const parsedOutput = {
|
|
1309
1309
|
...output,
|
|
1310
|
-
body: await
|
|
1310
|
+
body: await parseErrorBody(output.body, context),
|
|
1311
1311
|
};
|
|
1312
1312
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1313
|
switch (errorCode) {
|
|
@@ -1362,7 +1362,7 @@ exports.deserializeAws_json1_1DeleteTokenCommand = deserializeAws_json1_1DeleteT
|
|
|
1362
1362
|
const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) => {
|
|
1363
1363
|
const parsedOutput = {
|
|
1364
1364
|
...output,
|
|
1365
|
-
body: await
|
|
1365
|
+
body: await parseErrorBody(output.body, context),
|
|
1366
1366
|
};
|
|
1367
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1368
|
switch (errorCode) {
|
|
@@ -1414,7 +1414,7 @@ exports.deserializeAws_json1_1ExtendLicenseConsumptionCommand = deserializeAws_j
|
|
|
1414
1414
|
const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output, context) => {
|
|
1415
1415
|
const parsedOutput = {
|
|
1416
1416
|
...output,
|
|
1417
|
-
body: await
|
|
1417
|
+
body: await parseErrorBody(output.body, context),
|
|
1418
1418
|
};
|
|
1419
1419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
1420
|
switch (errorCode) {
|
|
@@ -1466,7 +1466,7 @@ exports.deserializeAws_json1_1GetAccessTokenCommand = deserializeAws_json1_1GetA
|
|
|
1466
1466
|
const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context) => {
|
|
1467
1467
|
const parsedOutput = {
|
|
1468
1468
|
...output,
|
|
1469
|
-
body: await
|
|
1469
|
+
body: await parseErrorBody(output.body, context),
|
|
1470
1470
|
};
|
|
1471
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1472
|
switch (errorCode) {
|
|
@@ -1512,7 +1512,7 @@ exports.deserializeAws_json1_1GetGrantCommand = deserializeAws_json1_1GetGrantCo
|
|
|
1512
1512
|
const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
1513
1513
|
const parsedOutput = {
|
|
1514
1514
|
...output,
|
|
1515
|
-
body: await
|
|
1515
|
+
body: await parseErrorBody(output.body, context),
|
|
1516
1516
|
};
|
|
1517
1517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
1518
|
switch (errorCode) {
|
|
@@ -1564,7 +1564,7 @@ exports.deserializeAws_json1_1GetLicenseCommand = deserializeAws_json1_1GetLicen
|
|
|
1564
1564
|
const deserializeAws_json1_1GetLicenseCommandError = async (output, context) => {
|
|
1565
1565
|
const parsedOutput = {
|
|
1566
1566
|
...output,
|
|
1567
|
-
body: await
|
|
1567
|
+
body: await parseErrorBody(output.body, context),
|
|
1568
1568
|
};
|
|
1569
1569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1570
|
switch (errorCode) {
|
|
@@ -1613,7 +1613,7 @@ exports.deserializeAws_json1_1GetLicenseConfigurationCommand = deserializeAws_js
|
|
|
1613
1613
|
const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output, context) => {
|
|
1614
1614
|
const parsedOutput = {
|
|
1615
1615
|
...output,
|
|
1616
|
-
body: await
|
|
1616
|
+
body: await parseErrorBody(output.body, context),
|
|
1617
1617
|
};
|
|
1618
1618
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
1619
|
switch (errorCode) {
|
|
@@ -1659,7 +1659,7 @@ exports.deserializeAws_json1_1GetLicenseConversionTaskCommand = deserializeAws_j
|
|
|
1659
1659
|
const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output, context) => {
|
|
1660
1660
|
const parsedOutput = {
|
|
1661
1661
|
...output,
|
|
1662
|
-
body: await
|
|
1662
|
+
body: await parseErrorBody(output.body, context),
|
|
1663
1663
|
};
|
|
1664
1664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
1665
|
switch (errorCode) {
|
|
@@ -1705,7 +1705,7 @@ exports.deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = deserial
|
|
|
1705
1705
|
const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
1706
1706
|
const parsedOutput = {
|
|
1707
1707
|
...output,
|
|
1708
|
-
body: await
|
|
1708
|
+
body: await parseErrorBody(output.body, context),
|
|
1709
1709
|
};
|
|
1710
1710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
1711
|
switch (errorCode) {
|
|
@@ -1760,7 +1760,7 @@ exports.deserializeAws_json1_1GetLicenseUsageCommand = deserializeAws_json1_1Get
|
|
|
1760
1760
|
const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context) => {
|
|
1761
1761
|
const parsedOutput = {
|
|
1762
1762
|
...output,
|
|
1763
|
-
body: await
|
|
1763
|
+
body: await parseErrorBody(output.body, context),
|
|
1764
1764
|
};
|
|
1765
1765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1766
|
switch (errorCode) {
|
|
@@ -1809,7 +1809,7 @@ exports.deserializeAws_json1_1GetServiceSettingsCommand = deserializeAws_json1_1
|
|
|
1809
1809
|
const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, context) => {
|
|
1810
1810
|
const parsedOutput = {
|
|
1811
1811
|
...output,
|
|
1812
|
-
body: await
|
|
1812
|
+
body: await parseErrorBody(output.body, context),
|
|
1813
1813
|
};
|
|
1814
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1815
|
switch (errorCode) {
|
|
@@ -1852,7 +1852,7 @@ exports.deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = d
|
|
|
1852
1852
|
const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError = async (output, context) => {
|
|
1853
1853
|
const parsedOutput = {
|
|
1854
1854
|
...output,
|
|
1855
|
-
body: await
|
|
1855
|
+
body: await parseErrorBody(output.body, context),
|
|
1856
1856
|
};
|
|
1857
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1858
|
switch (errorCode) {
|
|
@@ -1901,7 +1901,7 @@ exports.deserializeAws_json1_1ListDistributedGrantsCommand = deserializeAws_json
|
|
|
1901
1901
|
const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, context) => {
|
|
1902
1902
|
const parsedOutput = {
|
|
1903
1903
|
...output,
|
|
1904
|
-
body: await
|
|
1904
|
+
body: await parseErrorBody(output.body, context),
|
|
1905
1905
|
};
|
|
1906
1906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1907
1907
|
switch (errorCode) {
|
|
@@ -1953,7 +1953,7 @@ exports.deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsComma
|
|
|
1953
1953
|
const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommandError = async (output, context) => {
|
|
1954
1954
|
const parsedOutput = {
|
|
1955
1955
|
...output,
|
|
1956
|
-
body: await
|
|
1956
|
+
body: await parseErrorBody(output.body, context),
|
|
1957
1957
|
};
|
|
1958
1958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
1959
|
switch (errorCode) {
|
|
@@ -1999,7 +1999,7 @@ exports.deserializeAws_json1_1ListLicenseConfigurationsCommand = deserializeAws_
|
|
|
1999
1999
|
const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (output, context) => {
|
|
2000
2000
|
const parsedOutput = {
|
|
2001
2001
|
...output,
|
|
2002
|
-
body: await
|
|
2002
|
+
body: await parseErrorBody(output.body, context),
|
|
2003
2003
|
};
|
|
2004
2004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2005
|
switch (errorCode) {
|
|
@@ -2048,7 +2048,7 @@ exports.deserializeAws_json1_1ListLicenseConversionTasksCommand = deserializeAws
|
|
|
2048
2048
|
const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (output, context) => {
|
|
2049
2049
|
const parsedOutput = {
|
|
2050
2050
|
...output,
|
|
2051
|
-
body: await
|
|
2051
|
+
body: await parseErrorBody(output.body, context),
|
|
2052
2052
|
};
|
|
2053
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2054
|
switch (errorCode) {
|
|
@@ -2094,7 +2094,7 @@ exports.deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = deseri
|
|
|
2094
2094
|
const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = async (output, context) => {
|
|
2095
2095
|
const parsedOutput = {
|
|
2096
2096
|
...output,
|
|
2097
|
-
body: await
|
|
2097
|
+
body: await parseErrorBody(output.body, context),
|
|
2098
2098
|
};
|
|
2099
2099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
2100
|
switch (errorCode) {
|
|
@@ -2149,7 +2149,7 @@ exports.deserializeAws_json1_1ListLicensesCommand = deserializeAws_json1_1ListLi
|
|
|
2149
2149
|
const deserializeAws_json1_1ListLicensesCommandError = async (output, context) => {
|
|
2150
2150
|
const parsedOutput = {
|
|
2151
2151
|
...output,
|
|
2152
|
-
body: await
|
|
2152
|
+
body: await parseErrorBody(output.body, context),
|
|
2153
2153
|
};
|
|
2154
2154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
2155
|
switch (errorCode) {
|
|
@@ -2198,7 +2198,7 @@ exports.deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = dese
|
|
|
2198
2198
|
const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = async (output, context) => {
|
|
2199
2199
|
const parsedOutput = {
|
|
2200
2200
|
...output,
|
|
2201
|
-
body: await
|
|
2201
|
+
body: await parseErrorBody(output.body, context),
|
|
2202
2202
|
};
|
|
2203
2203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
2204
|
switch (errorCode) {
|
|
@@ -2244,7 +2244,7 @@ exports.deserializeAws_json1_1ListLicenseVersionsCommand = deserializeAws_json1_
|
|
|
2244
2244
|
const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, context) => {
|
|
2245
2245
|
const parsedOutput = {
|
|
2246
2246
|
...output,
|
|
2247
|
-
body: await
|
|
2247
|
+
body: await parseErrorBody(output.body, context),
|
|
2248
2248
|
};
|
|
2249
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
2250
|
switch (errorCode) {
|
|
@@ -2290,7 +2290,7 @@ exports.deserializeAws_json1_1ListReceivedGrantsCommand = deserializeAws_json1_1
|
|
|
2290
2290
|
const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, context) => {
|
|
2291
2291
|
const parsedOutput = {
|
|
2292
2292
|
...output,
|
|
2293
|
-
body: await
|
|
2293
|
+
body: await parseErrorBody(output.body, context),
|
|
2294
2294
|
};
|
|
2295
2295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
2296
|
switch (errorCode) {
|
|
@@ -2342,7 +2342,7 @@ exports.deserializeAws_json1_1ListReceivedLicensesCommand = deserializeAws_json1
|
|
|
2342
2342
|
const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, context) => {
|
|
2343
2343
|
const parsedOutput = {
|
|
2344
2344
|
...output,
|
|
2345
|
-
body: await
|
|
2345
|
+
body: await parseErrorBody(output.body, context),
|
|
2346
2346
|
};
|
|
2347
2347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
2348
|
switch (errorCode) {
|
|
@@ -2394,7 +2394,7 @@ exports.deserializeAws_json1_1ListResourceInventoryCommand = deserializeAws_json
|
|
|
2394
2394
|
const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, context) => {
|
|
2395
2395
|
const parsedOutput = {
|
|
2396
2396
|
...output,
|
|
2397
|
-
body: await
|
|
2397
|
+
body: await parseErrorBody(output.body, context),
|
|
2398
2398
|
};
|
|
2399
2399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2400
|
switch (errorCode) {
|
|
@@ -2446,7 +2446,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2446
2446
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2447
2447
|
const parsedOutput = {
|
|
2448
2448
|
...output,
|
|
2449
|
-
body: await
|
|
2449
|
+
body: await parseErrorBody(output.body, context),
|
|
2450
2450
|
};
|
|
2451
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
2452
|
switch (errorCode) {
|
|
@@ -2492,7 +2492,7 @@ exports.deserializeAws_json1_1ListTokensCommand = deserializeAws_json1_1ListToke
|
|
|
2492
2492
|
const deserializeAws_json1_1ListTokensCommandError = async (output, context) => {
|
|
2493
2493
|
const parsedOutput = {
|
|
2494
2494
|
...output,
|
|
2495
|
-
body: await
|
|
2495
|
+
body: await parseErrorBody(output.body, context),
|
|
2496
2496
|
};
|
|
2497
2497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2498
2498
|
switch (errorCode) {
|
|
@@ -2538,7 +2538,7 @@ exports.deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = deserial
|
|
|
2538
2538
|
const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async (output, context) => {
|
|
2539
2539
|
const parsedOutput = {
|
|
2540
2540
|
...output,
|
|
2541
|
-
body: await
|
|
2541
|
+
body: await parseErrorBody(output.body, context),
|
|
2542
2542
|
};
|
|
2543
2543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2544
|
switch (errorCode) {
|
|
@@ -2587,7 +2587,7 @@ exports.deserializeAws_json1_1RejectGrantCommand = deserializeAws_json1_1RejectG
|
|
|
2587
2587
|
const deserializeAws_json1_1RejectGrantCommandError = async (output, context) => {
|
|
2588
2588
|
const parsedOutput = {
|
|
2589
2589
|
...output,
|
|
2590
|
-
body: await
|
|
2590
|
+
body: await parseErrorBody(output.body, context),
|
|
2591
2591
|
};
|
|
2592
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2593
|
switch (errorCode) {
|
|
@@ -2639,7 +2639,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2639
2639
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2640
2640
|
const parsedOutput = {
|
|
2641
2641
|
...output,
|
|
2642
|
-
body: await
|
|
2642
|
+
body: await parseErrorBody(output.body, context),
|
|
2643
2643
|
};
|
|
2644
2644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
2645
|
switch (errorCode) {
|
|
@@ -2685,7 +2685,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2685
2685
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2686
2686
|
const parsedOutput = {
|
|
2687
2687
|
...output,
|
|
2688
|
-
body: await
|
|
2688
|
+
body: await parseErrorBody(output.body, context),
|
|
2689
2689
|
};
|
|
2690
2690
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
2691
|
switch (errorCode) {
|
|
@@ -2731,7 +2731,7 @@ exports.deserializeAws_json1_1UpdateLicenseConfigurationCommand = deserializeAws
|
|
|
2731
2731
|
const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (output, context) => {
|
|
2732
2732
|
const parsedOutput = {
|
|
2733
2733
|
...output,
|
|
2734
|
-
body: await
|
|
2734
|
+
body: await parseErrorBody(output.body, context),
|
|
2735
2735
|
};
|
|
2736
2736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2737
2737
|
switch (errorCode) {
|
|
@@ -2780,7 +2780,7 @@ exports.deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = deser
|
|
|
2780
2780
|
const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
2781
2781
|
const parsedOutput = {
|
|
2782
2782
|
...output,
|
|
2783
|
-
body: await
|
|
2783
|
+
body: await parseErrorBody(output.body, context),
|
|
2784
2784
|
};
|
|
2785
2785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2786
|
switch (errorCode) {
|
|
@@ -2835,7 +2835,7 @@ exports.deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = de
|
|
|
2835
2835
|
const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError = async (output, context) => {
|
|
2836
2836
|
const parsedOutput = {
|
|
2837
2837
|
...output,
|
|
2838
|
-
body: await
|
|
2838
|
+
body: await parseErrorBody(output.body, context),
|
|
2839
2839
|
};
|
|
2840
2840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
2841
|
switch (errorCode) {
|
|
@@ -2887,7 +2887,7 @@ exports.deserializeAws_json1_1UpdateServiceSettingsCommand = deserializeAws_json
|
|
|
2887
2887
|
const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, context) => {
|
|
2888
2888
|
const parsedOutput = {
|
|
2889
2889
|
...output,
|
|
2890
|
-
body: await
|
|
2890
|
+
body: await parseErrorBody(output.body, context),
|
|
2891
2891
|
};
|
|
2892
2892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
2893
|
switch (errorCode) {
|
|
@@ -4835,6 +4835,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4835
4835
|
}
|
|
4836
4836
|
return {};
|
|
4837
4837
|
});
|
|
4838
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4839
|
+
var _a;
|
|
4840
|
+
const value = await parseBody(errorBody, context);
|
|
4841
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4842
|
+
return value;
|
|
4843
|
+
};
|
|
4838
4844
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4839
4845
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4840
4846
|
const sanitizeErrorCode = (rawValue) => {
|