@aws-sdk/client-kms 3.180.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist-cjs/protocols/Aws_json1_1.js +92 -86
- package/dist-es/protocols/Aws_json1_1.js +177 -164
- package/package.json +3 -3
|
@@ -523,7 +523,7 @@ exports.deserializeAws_json1_1CancelKeyDeletionCommand = deserializeAws_json1_1C
|
|
|
523
523
|
const deserializeAws_json1_1CancelKeyDeletionCommandError = async (output, context) => {
|
|
524
524
|
const parsedOutput = {
|
|
525
525
|
...output,
|
|
526
|
-
body: await
|
|
526
|
+
body: await parseErrorBody(output.body, context),
|
|
527
527
|
};
|
|
528
528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
529
|
switch (errorCode) {
|
|
@@ -569,7 +569,7 @@ exports.deserializeAws_json1_1ConnectCustomKeyStoreCommand = deserializeAws_json
|
|
|
569
569
|
const deserializeAws_json1_1ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
570
570
|
const parsedOutput = {
|
|
571
571
|
...output,
|
|
572
|
-
body: await
|
|
572
|
+
body: await parseErrorBody(output.body, context),
|
|
573
573
|
};
|
|
574
574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
575
|
switch (errorCode) {
|
|
@@ -612,7 +612,7 @@ exports.deserializeAws_json1_1CreateAliasCommand = deserializeAws_json1_1CreateA
|
|
|
612
612
|
const deserializeAws_json1_1CreateAliasCommandError = async (output, context) => {
|
|
613
613
|
const parsedOutput = {
|
|
614
614
|
...output,
|
|
615
|
-
body: await
|
|
615
|
+
body: await parseErrorBody(output.body, context),
|
|
616
616
|
};
|
|
617
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
618
|
switch (errorCode) {
|
|
@@ -664,7 +664,7 @@ exports.deserializeAws_json1_1CreateCustomKeyStoreCommand = deserializeAws_json1
|
|
|
664
664
|
const deserializeAws_json1_1CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
665
665
|
const parsedOutput = {
|
|
666
666
|
...output,
|
|
667
|
-
body: await
|
|
667
|
+
body: await parseErrorBody(output.body, context),
|
|
668
668
|
};
|
|
669
669
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
670
|
switch (errorCode) {
|
|
@@ -716,7 +716,7 @@ exports.deserializeAws_json1_1CreateGrantCommand = deserializeAws_json1_1CreateG
|
|
|
716
716
|
const deserializeAws_json1_1CreateGrantCommandError = async (output, context) => {
|
|
717
717
|
const parsedOutput = {
|
|
718
718
|
...output,
|
|
719
|
-
body: await
|
|
719
|
+
body: await parseErrorBody(output.body, context),
|
|
720
720
|
};
|
|
721
721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
722
|
switch (errorCode) {
|
|
@@ -771,7 +771,7 @@ exports.deserializeAws_json1_1CreateKeyCommand = deserializeAws_json1_1CreateKey
|
|
|
771
771
|
const deserializeAws_json1_1CreateKeyCommandError = async (output, context) => {
|
|
772
772
|
const parsedOutput = {
|
|
773
773
|
...output,
|
|
774
|
-
body: await
|
|
774
|
+
body: await parseErrorBody(output.body, context),
|
|
775
775
|
};
|
|
776
776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
777
|
switch (errorCode) {
|
|
@@ -832,7 +832,7 @@ exports.deserializeAws_json1_1DecryptCommand = deserializeAws_json1_1DecryptComm
|
|
|
832
832
|
const deserializeAws_json1_1DecryptCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
|
-
body: await
|
|
835
|
+
body: await parseErrorBody(output.body, context),
|
|
836
836
|
};
|
|
837
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
838
|
switch (errorCode) {
|
|
@@ -854,15 +854,15 @@ const deserializeAws_json1_1DecryptCommandError = async (output, context) => {
|
|
|
854
854
|
case "InvalidKeyUsageException":
|
|
855
855
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
856
856
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
857
|
-
case "KeyUnavailableException":
|
|
858
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
859
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
860
857
|
case "KMSInternalException":
|
|
861
858
|
case "com.amazonaws.kms#KMSInternalException":
|
|
862
859
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
863
860
|
case "KMSInvalidStateException":
|
|
864
861
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
865
862
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
863
|
+
case "KeyUnavailableException":
|
|
864
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
865
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
866
866
|
case "NotFoundException":
|
|
867
867
|
case "com.amazonaws.kms#NotFoundException":
|
|
868
868
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -890,7 +890,7 @@ exports.deserializeAws_json1_1DeleteAliasCommand = deserializeAws_json1_1DeleteA
|
|
|
890
890
|
const deserializeAws_json1_1DeleteAliasCommandError = async (output, context) => {
|
|
891
891
|
const parsedOutput = {
|
|
892
892
|
...output,
|
|
893
|
-
body: await
|
|
893
|
+
body: await parseErrorBody(output.body, context),
|
|
894
894
|
};
|
|
895
895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
896
|
switch (errorCode) {
|
|
@@ -933,7 +933,7 @@ exports.deserializeAws_json1_1DeleteCustomKeyStoreCommand = deserializeAws_json1
|
|
|
933
933
|
const deserializeAws_json1_1DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
934
934
|
const parsedOutput = {
|
|
935
935
|
...output,
|
|
936
|
-
body: await
|
|
936
|
+
body: await parseErrorBody(output.body, context),
|
|
937
937
|
};
|
|
938
938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
939
|
switch (errorCode) {
|
|
@@ -973,7 +973,7 @@ exports.deserializeAws_json1_1DeleteImportedKeyMaterialCommand = deserializeAws_
|
|
|
973
973
|
const deserializeAws_json1_1DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
974
974
|
const parsedOutput = {
|
|
975
975
|
...output,
|
|
976
|
-
body: await
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
977
|
};
|
|
978
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
979
|
switch (errorCode) {
|
|
@@ -1022,7 +1022,7 @@ exports.deserializeAws_json1_1DescribeCustomKeyStoresCommand = deserializeAws_js
|
|
|
1022
1022
|
const deserializeAws_json1_1DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
1023
1023
|
const parsedOutput = {
|
|
1024
1024
|
...output,
|
|
1025
|
-
body: await
|
|
1025
|
+
body: await parseErrorBody(output.body, context),
|
|
1026
1026
|
};
|
|
1027
1027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
1028
|
switch (errorCode) {
|
|
@@ -1062,7 +1062,7 @@ exports.deserializeAws_json1_1DescribeKeyCommand = deserializeAws_json1_1Describ
|
|
|
1062
1062
|
const deserializeAws_json1_1DescribeKeyCommandError = async (output, context) => {
|
|
1063
1063
|
const parsedOutput = {
|
|
1064
1064
|
...output,
|
|
1065
|
-
body: await
|
|
1065
|
+
body: await parseErrorBody(output.body, context),
|
|
1066
1066
|
};
|
|
1067
1067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
1068
|
switch (errorCode) {
|
|
@@ -1102,7 +1102,7 @@ exports.deserializeAws_json1_1DisableKeyCommand = deserializeAws_json1_1DisableK
|
|
|
1102
1102
|
const deserializeAws_json1_1DisableKeyCommandError = async (output, context) => {
|
|
1103
1103
|
const parsedOutput = {
|
|
1104
1104
|
...output,
|
|
1105
|
-
body: await
|
|
1105
|
+
body: await parseErrorBody(output.body, context),
|
|
1106
1106
|
};
|
|
1107
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
1108
|
switch (errorCode) {
|
|
@@ -1145,7 +1145,7 @@ exports.deserializeAws_json1_1DisableKeyRotationCommand = deserializeAws_json1_1
|
|
|
1145
1145
|
const deserializeAws_json1_1DisableKeyRotationCommandError = async (output, context) => {
|
|
1146
1146
|
const parsedOutput = {
|
|
1147
1147
|
...output,
|
|
1148
|
-
body: await
|
|
1148
|
+
body: await parseErrorBody(output.body, context),
|
|
1149
1149
|
};
|
|
1150
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1151
|
switch (errorCode) {
|
|
@@ -1197,7 +1197,7 @@ exports.deserializeAws_json1_1DisconnectCustomKeyStoreCommand = deserializeAws_j
|
|
|
1197
1197
|
const deserializeAws_json1_1DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
1198
1198
|
const parsedOutput = {
|
|
1199
1199
|
...output,
|
|
1200
|
-
body: await
|
|
1200
|
+
body: await parseErrorBody(output.body, context),
|
|
1201
1201
|
};
|
|
1202
1202
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
1203
|
switch (errorCode) {
|
|
@@ -1234,7 +1234,7 @@ exports.deserializeAws_json1_1EnableKeyCommand = deserializeAws_json1_1EnableKey
|
|
|
1234
1234
|
const deserializeAws_json1_1EnableKeyCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
@@ -1280,7 +1280,7 @@ exports.deserializeAws_json1_1EnableKeyRotationCommand = deserializeAws_json1_1E
|
|
|
1280
1280
|
const deserializeAws_json1_1EnableKeyRotationCommandError = async (output, context) => {
|
|
1281
1281
|
const parsedOutput = {
|
|
1282
1282
|
...output,
|
|
1283
|
-
body: await
|
|
1283
|
+
body: await parseErrorBody(output.body, context),
|
|
1284
1284
|
};
|
|
1285
1285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1286
|
switch (errorCode) {
|
|
@@ -1332,7 +1332,7 @@ exports.deserializeAws_json1_1EncryptCommand = deserializeAws_json1_1EncryptComm
|
|
|
1332
1332
|
const deserializeAws_json1_1EncryptCommandError = async (output, context) => {
|
|
1333
1333
|
const parsedOutput = {
|
|
1334
1334
|
...output,
|
|
1335
|
-
body: await
|
|
1335
|
+
body: await parseErrorBody(output.body, context),
|
|
1336
1336
|
};
|
|
1337
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
1338
|
switch (errorCode) {
|
|
@@ -1348,15 +1348,15 @@ const deserializeAws_json1_1EncryptCommandError = async (output, context) => {
|
|
|
1348
1348
|
case "InvalidKeyUsageException":
|
|
1349
1349
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1350
1350
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1351
|
-
case "KeyUnavailableException":
|
|
1352
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1353
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1354
1351
|
case "KMSInternalException":
|
|
1355
1352
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1356
1353
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1357
1354
|
case "KMSInvalidStateException":
|
|
1358
1355
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1359
1356
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1357
|
+
case "KeyUnavailableException":
|
|
1358
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1359
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1360
1360
|
case "NotFoundException":
|
|
1361
1361
|
case "com.amazonaws.kms#NotFoundException":
|
|
1362
1362
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1387,7 +1387,7 @@ exports.deserializeAws_json1_1GenerateDataKeyCommand = deserializeAws_json1_1Gen
|
|
|
1387
1387
|
const deserializeAws_json1_1GenerateDataKeyCommandError = async (output, context) => {
|
|
1388
1388
|
const parsedOutput = {
|
|
1389
1389
|
...output,
|
|
1390
|
-
body: await
|
|
1390
|
+
body: await parseErrorBody(output.body, context),
|
|
1391
1391
|
};
|
|
1392
1392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
1393
|
switch (errorCode) {
|
|
@@ -1403,15 +1403,15 @@ const deserializeAws_json1_1GenerateDataKeyCommandError = async (output, context
|
|
|
1403
1403
|
case "InvalidKeyUsageException":
|
|
1404
1404
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1405
1405
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1406
|
-
case "KeyUnavailableException":
|
|
1407
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1408
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1409
1406
|
case "KMSInternalException":
|
|
1410
1407
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1411
1408
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1412
1409
|
case "KMSInvalidStateException":
|
|
1413
1410
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1414
1411
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1412
|
+
case "KeyUnavailableException":
|
|
1413
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1414
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1415
1415
|
case "NotFoundException":
|
|
1416
1416
|
case "com.amazonaws.kms#NotFoundException":
|
|
1417
1417
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1442,7 +1442,7 @@ exports.deserializeAws_json1_1GenerateDataKeyPairCommand = deserializeAws_json1_
|
|
|
1442
1442
|
const deserializeAws_json1_1GenerateDataKeyPairCommandError = async (output, context) => {
|
|
1443
1443
|
const parsedOutput = {
|
|
1444
1444
|
...output,
|
|
1445
|
-
body: await
|
|
1445
|
+
body: await parseErrorBody(output.body, context),
|
|
1446
1446
|
};
|
|
1447
1447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1448
1448
|
switch (errorCode) {
|
|
@@ -1458,15 +1458,15 @@ const deserializeAws_json1_1GenerateDataKeyPairCommandError = async (output, con
|
|
|
1458
1458
|
case "InvalidKeyUsageException":
|
|
1459
1459
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1460
1460
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1461
|
-
case "KeyUnavailableException":
|
|
1462
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1463
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1464
1461
|
case "KMSInternalException":
|
|
1465
1462
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1466
1463
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1467
1464
|
case "KMSInvalidStateException":
|
|
1468
1465
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1469
1466
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1467
|
+
case "KeyUnavailableException":
|
|
1468
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1469
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1470
1470
|
case "NotFoundException":
|
|
1471
1471
|
case "com.amazonaws.kms#NotFoundException":
|
|
1472
1472
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1500,7 +1500,7 @@ exports.deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand = deser
|
|
|
1500
1500
|
const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommandError = async (output, context) => {
|
|
1501
1501
|
const parsedOutput = {
|
|
1502
1502
|
...output,
|
|
1503
|
-
body: await
|
|
1503
|
+
body: await parseErrorBody(output.body, context),
|
|
1504
1504
|
};
|
|
1505
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1506
|
switch (errorCode) {
|
|
@@ -1516,15 +1516,15 @@ const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommandError = as
|
|
|
1516
1516
|
case "InvalidKeyUsageException":
|
|
1517
1517
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1518
1518
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1519
|
-
case "KeyUnavailableException":
|
|
1520
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1521
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1522
1519
|
case "KMSInternalException":
|
|
1523
1520
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1524
1521
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1525
1522
|
case "KMSInvalidStateException":
|
|
1526
1523
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1527
1524
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1525
|
+
case "KeyUnavailableException":
|
|
1526
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1527
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1528
1528
|
case "NotFoundException":
|
|
1529
1529
|
case "com.amazonaws.kms#NotFoundException":
|
|
1530
1530
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1558,7 +1558,7 @@ exports.deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand = deseriali
|
|
|
1558
1558
|
const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommandError = async (output, context) => {
|
|
1559
1559
|
const parsedOutput = {
|
|
1560
1560
|
...output,
|
|
1561
|
-
body: await
|
|
1561
|
+
body: await parseErrorBody(output.body, context),
|
|
1562
1562
|
};
|
|
1563
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1564
|
switch (errorCode) {
|
|
@@ -1574,15 +1574,15 @@ const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommandError = async
|
|
|
1574
1574
|
case "InvalidKeyUsageException":
|
|
1575
1575
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1576
1576
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1577
|
-
case "KeyUnavailableException":
|
|
1578
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1579
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1580
1577
|
case "KMSInternalException":
|
|
1581
1578
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1582
1579
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1583
1580
|
case "KMSInvalidStateException":
|
|
1584
1581
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1585
1582
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1583
|
+
case "KeyUnavailableException":
|
|
1584
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1585
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1586
1586
|
case "NotFoundException":
|
|
1587
1587
|
case "com.amazonaws.kms#NotFoundException":
|
|
1588
1588
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1613,7 +1613,7 @@ exports.deserializeAws_json1_1GenerateMacCommand = deserializeAws_json1_1Generat
|
|
|
1613
1613
|
const deserializeAws_json1_1GenerateMacCommandError = 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) {
|
|
@@ -1626,15 +1626,15 @@ const deserializeAws_json1_1GenerateMacCommandError = async (output, context) =>
|
|
|
1626
1626
|
case "InvalidKeyUsageException":
|
|
1627
1627
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1628
1628
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1629
|
-
case "KeyUnavailableException":
|
|
1630
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1631
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1632
1629
|
case "KMSInternalException":
|
|
1633
1630
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1634
1631
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1635
1632
|
case "KMSInvalidStateException":
|
|
1636
1633
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1637
1634
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1635
|
+
case "KeyUnavailableException":
|
|
1636
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1637
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1638
1638
|
case "NotFoundException":
|
|
1639
1639
|
case "com.amazonaws.kms#NotFoundException":
|
|
1640
1640
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1665,7 +1665,7 @@ exports.deserializeAws_json1_1GenerateRandomCommand = deserializeAws_json1_1Gene
|
|
|
1665
1665
|
const deserializeAws_json1_1GenerateRandomCommandError = async (output, context) => {
|
|
1666
1666
|
const parsedOutput = {
|
|
1667
1667
|
...output,
|
|
1668
|
-
body: await
|
|
1668
|
+
body: await parseErrorBody(output.body, context),
|
|
1669
1669
|
};
|
|
1670
1670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
1671
|
switch (errorCode) {
|
|
@@ -1708,7 +1708,7 @@ exports.deserializeAws_json1_1GetKeyPolicyCommand = deserializeAws_json1_1GetKey
|
|
|
1708
1708
|
const deserializeAws_json1_1GetKeyPolicyCommandError = async (output, context) => {
|
|
1709
1709
|
const parsedOutput = {
|
|
1710
1710
|
...output,
|
|
1711
|
-
body: await
|
|
1711
|
+
body: await parseErrorBody(output.body, context),
|
|
1712
1712
|
};
|
|
1713
1713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1714
|
switch (errorCode) {
|
|
@@ -1754,7 +1754,7 @@ exports.deserializeAws_json1_1GetKeyRotationStatusCommand = deserializeAws_json1
|
|
|
1754
1754
|
const deserializeAws_json1_1GetKeyRotationStatusCommandError = async (output, context) => {
|
|
1755
1755
|
const parsedOutput = {
|
|
1756
1756
|
...output,
|
|
1757
|
-
body: await
|
|
1757
|
+
body: await parseErrorBody(output.body, context),
|
|
1758
1758
|
};
|
|
1759
1759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1760
|
switch (errorCode) {
|
|
@@ -1803,7 +1803,7 @@ exports.deserializeAws_json1_1GetParametersForImportCommand = deserializeAws_jso
|
|
|
1803
1803
|
const deserializeAws_json1_1GetParametersForImportCommandError = async (output, context) => {
|
|
1804
1804
|
const parsedOutput = {
|
|
1805
1805
|
...output,
|
|
1806
|
-
body: await
|
|
1806
|
+
body: await parseErrorBody(output.body, context),
|
|
1807
1807
|
};
|
|
1808
1808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
1809
|
switch (errorCode) {
|
|
@@ -1852,7 +1852,7 @@ exports.deserializeAws_json1_1GetPublicKeyCommand = deserializeAws_json1_1GetPub
|
|
|
1852
1852
|
const deserializeAws_json1_1GetPublicKeyCommandError = 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) {
|
|
@@ -1871,15 +1871,15 @@ const deserializeAws_json1_1GetPublicKeyCommandError = async (output, context) =
|
|
|
1871
1871
|
case "InvalidKeyUsageException":
|
|
1872
1872
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
1873
1873
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
1874
|
-
case "KeyUnavailableException":
|
|
1875
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1876
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1877
1874
|
case "KMSInternalException":
|
|
1878
1875
|
case "com.amazonaws.kms#KMSInternalException":
|
|
1879
1876
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
1880
1877
|
case "KMSInvalidStateException":
|
|
1881
1878
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1882
1879
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
1880
|
+
case "KeyUnavailableException":
|
|
1881
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
1882
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
1883
1883
|
case "NotFoundException":
|
|
1884
1884
|
case "com.amazonaws.kms#NotFoundException":
|
|
1885
1885
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -1913,7 +1913,7 @@ exports.deserializeAws_json1_1ImportKeyMaterialCommand = deserializeAws_json1_1I
|
|
|
1913
1913
|
const deserializeAws_json1_1ImportKeyMaterialCommandError = async (output, context) => {
|
|
1914
1914
|
const parsedOutput = {
|
|
1915
1915
|
...output,
|
|
1916
|
-
body: await
|
|
1916
|
+
body: await parseErrorBody(output.body, context),
|
|
1917
1917
|
};
|
|
1918
1918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
switch (errorCode) {
|
|
@@ -1974,7 +1974,7 @@ exports.deserializeAws_json1_1ListAliasesCommand = deserializeAws_json1_1ListAli
|
|
|
1974
1974
|
const deserializeAws_json1_1ListAliasesCommandError = async (output, context) => {
|
|
1975
1975
|
const parsedOutput = {
|
|
1976
1976
|
...output,
|
|
1977
|
-
body: await
|
|
1977
|
+
body: await parseErrorBody(output.body, context),
|
|
1978
1978
|
};
|
|
1979
1979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
1980
|
switch (errorCode) {
|
|
@@ -2020,7 +2020,7 @@ exports.deserializeAws_json1_1ListGrantsCommand = deserializeAws_json1_1ListGran
|
|
|
2020
2020
|
const deserializeAws_json1_1ListGrantsCommandError = async (output, context) => {
|
|
2021
2021
|
const parsedOutput = {
|
|
2022
2022
|
...output,
|
|
2023
|
-
body: await
|
|
2023
|
+
body: await parseErrorBody(output.body, context),
|
|
2024
2024
|
};
|
|
2025
2025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
2026
|
switch (errorCode) {
|
|
@@ -2072,7 +2072,7 @@ exports.deserializeAws_json1_1ListKeyPoliciesCommand = deserializeAws_json1_1Lis
|
|
|
2072
2072
|
const deserializeAws_json1_1ListKeyPoliciesCommandError = async (output, context) => {
|
|
2073
2073
|
const parsedOutput = {
|
|
2074
2074
|
...output,
|
|
2075
|
-
body: await
|
|
2075
|
+
body: await parseErrorBody(output.body, context),
|
|
2076
2076
|
};
|
|
2077
2077
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2078
2078
|
switch (errorCode) {
|
|
@@ -2118,7 +2118,7 @@ exports.deserializeAws_json1_1ListKeysCommand = deserializeAws_json1_1ListKeysCo
|
|
|
2118
2118
|
const deserializeAws_json1_1ListKeysCommandError = async (output, context) => {
|
|
2119
2119
|
const parsedOutput = {
|
|
2120
2120
|
...output,
|
|
2121
|
-
body: await
|
|
2121
|
+
body: await parseErrorBody(output.body, context),
|
|
2122
2122
|
};
|
|
2123
2123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2124
|
switch (errorCode) {
|
|
@@ -2158,7 +2158,7 @@ exports.deserializeAws_json1_1ListResourceTagsCommand = deserializeAws_json1_1Li
|
|
|
2158
2158
|
const deserializeAws_json1_1ListResourceTagsCommandError = async (output, context) => {
|
|
2159
2159
|
const parsedOutput = {
|
|
2160
2160
|
...output,
|
|
2161
|
-
body: await
|
|
2161
|
+
body: await parseErrorBody(output.body, context),
|
|
2162
2162
|
};
|
|
2163
2163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2164
|
switch (errorCode) {
|
|
@@ -2201,7 +2201,7 @@ exports.deserializeAws_json1_1ListRetirableGrantsCommand = deserializeAws_json1_
|
|
|
2201
2201
|
const deserializeAws_json1_1ListRetirableGrantsCommandError = async (output, context) => {
|
|
2202
2202
|
const parsedOutput = {
|
|
2203
2203
|
...output,
|
|
2204
|
-
body: await
|
|
2204
|
+
body: await parseErrorBody(output.body, context),
|
|
2205
2205
|
};
|
|
2206
2206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
2207
|
switch (errorCode) {
|
|
@@ -2244,7 +2244,7 @@ exports.deserializeAws_json1_1PutKeyPolicyCommand = deserializeAws_json1_1PutKey
|
|
|
2244
2244
|
const deserializeAws_json1_1PutKeyPolicyCommandError = 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) {
|
|
@@ -2299,7 +2299,7 @@ exports.deserializeAws_json1_1ReEncryptCommand = deserializeAws_json1_1ReEncrypt
|
|
|
2299
2299
|
const deserializeAws_json1_1ReEncryptCommandError = async (output, context) => {
|
|
2300
2300
|
const parsedOutput = {
|
|
2301
2301
|
...output,
|
|
2302
|
-
body: await
|
|
2302
|
+
body: await parseErrorBody(output.body, context),
|
|
2303
2303
|
};
|
|
2304
2304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2305
2305
|
switch (errorCode) {
|
|
@@ -2321,15 +2321,15 @@ const deserializeAws_json1_1ReEncryptCommandError = async (output, context) => {
|
|
|
2321
2321
|
case "InvalidKeyUsageException":
|
|
2322
2322
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2323
2323
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
2324
|
-
case "KeyUnavailableException":
|
|
2325
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2326
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2327
2324
|
case "KMSInternalException":
|
|
2328
2325
|
case "com.amazonaws.kms#KMSInternalException":
|
|
2329
2326
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
2330
2327
|
case "KMSInvalidStateException":
|
|
2331
2328
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2332
2329
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
2330
|
+
case "KeyUnavailableException":
|
|
2331
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2332
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2333
2333
|
case "NotFoundException":
|
|
2334
2334
|
case "com.amazonaws.kms#NotFoundException":
|
|
2335
2335
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2360,7 +2360,7 @@ exports.deserializeAws_json1_1ReplicateKeyCommand = deserializeAws_json1_1Replic
|
|
|
2360
2360
|
const deserializeAws_json1_1ReplicateKeyCommandError = async (output, context) => {
|
|
2361
2361
|
const parsedOutput = {
|
|
2362
2362
|
...output,
|
|
2363
|
-
body: await
|
|
2363
|
+
body: await parseErrorBody(output.body, context),
|
|
2364
2364
|
};
|
|
2365
2365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
2366
|
switch (errorCode) {
|
|
@@ -2418,7 +2418,7 @@ exports.deserializeAws_json1_1RetireGrantCommand = deserializeAws_json1_1RetireG
|
|
|
2418
2418
|
const deserializeAws_json1_1RetireGrantCommandError = async (output, context) => {
|
|
2419
2419
|
const parsedOutput = {
|
|
2420
2420
|
...output,
|
|
2421
|
-
body: await
|
|
2421
|
+
body: await parseErrorBody(output.body, context),
|
|
2422
2422
|
};
|
|
2423
2423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2424
|
switch (errorCode) {
|
|
@@ -2467,7 +2467,7 @@ exports.deserializeAws_json1_1RevokeGrantCommand = deserializeAws_json1_1RevokeG
|
|
|
2467
2467
|
const deserializeAws_json1_1RevokeGrantCommandError = async (output, context) => {
|
|
2468
2468
|
const parsedOutput = {
|
|
2469
2469
|
...output,
|
|
2470
|
-
body: await
|
|
2470
|
+
body: await parseErrorBody(output.body, context),
|
|
2471
2471
|
};
|
|
2472
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
2473
|
switch (errorCode) {
|
|
@@ -2516,7 +2516,7 @@ exports.deserializeAws_json1_1ScheduleKeyDeletionCommand = deserializeAws_json1_
|
|
|
2516
2516
|
const deserializeAws_json1_1ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
2517
2517
|
const parsedOutput = {
|
|
2518
2518
|
...output,
|
|
2519
|
-
body: await
|
|
2519
|
+
body: await parseErrorBody(output.body, context),
|
|
2520
2520
|
};
|
|
2521
2521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
2522
|
switch (errorCode) {
|
|
@@ -2562,7 +2562,7 @@ exports.deserializeAws_json1_1SignCommand = deserializeAws_json1_1SignCommand;
|
|
|
2562
2562
|
const deserializeAws_json1_1SignCommandError = async (output, context) => {
|
|
2563
2563
|
const parsedOutput = {
|
|
2564
2564
|
...output,
|
|
2565
|
-
body: await
|
|
2565
|
+
body: await parseErrorBody(output.body, context),
|
|
2566
2566
|
};
|
|
2567
2567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
2568
|
switch (errorCode) {
|
|
@@ -2578,15 +2578,15 @@ const deserializeAws_json1_1SignCommandError = async (output, context) => {
|
|
|
2578
2578
|
case "InvalidKeyUsageException":
|
|
2579
2579
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2580
2580
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
2581
|
-
case "KeyUnavailableException":
|
|
2582
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2583
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2584
2581
|
case "KMSInternalException":
|
|
2585
2582
|
case "com.amazonaws.kms#KMSInternalException":
|
|
2586
2583
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
2587
2584
|
case "KMSInvalidStateException":
|
|
2588
2585
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2589
2586
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
2587
|
+
case "KeyUnavailableException":
|
|
2588
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2589
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2590
2590
|
case "NotFoundException":
|
|
2591
2591
|
case "com.amazonaws.kms#NotFoundException":
|
|
2592
2592
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2614,7 +2614,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2614
2614
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2615
2615
|
const parsedOutput = {
|
|
2616
2616
|
...output,
|
|
2617
|
-
body: await
|
|
2617
|
+
body: await parseErrorBody(output.body, context),
|
|
2618
2618
|
};
|
|
2619
2619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
2620
|
switch (errorCode) {
|
|
@@ -2660,7 +2660,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2660
2660
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2661
2661
|
const parsedOutput = {
|
|
2662
2662
|
...output,
|
|
2663
|
-
body: await
|
|
2663
|
+
body: await parseErrorBody(output.body, context),
|
|
2664
2664
|
};
|
|
2665
2665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2666
|
switch (errorCode) {
|
|
@@ -2703,7 +2703,7 @@ exports.deserializeAws_json1_1UpdateAliasCommand = deserializeAws_json1_1UpdateA
|
|
|
2703
2703
|
const deserializeAws_json1_1UpdateAliasCommandError = async (output, context) => {
|
|
2704
2704
|
const parsedOutput = {
|
|
2705
2705
|
...output,
|
|
2706
|
-
body: await
|
|
2706
|
+
body: await parseErrorBody(output.body, context),
|
|
2707
2707
|
};
|
|
2708
2708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
2709
|
switch (errorCode) {
|
|
@@ -2749,7 +2749,7 @@ exports.deserializeAws_json1_1UpdateCustomKeyStoreCommand = deserializeAws_json1
|
|
|
2749
2749
|
const deserializeAws_json1_1UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
2750
2750
|
const parsedOutput = {
|
|
2751
2751
|
...output,
|
|
2752
|
-
body: await
|
|
2752
|
+
body: await parseErrorBody(output.body, context),
|
|
2753
2753
|
};
|
|
2754
2754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2755
|
switch (errorCode) {
|
|
@@ -2801,7 +2801,7 @@ exports.deserializeAws_json1_1UpdateKeyDescriptionCommand = deserializeAws_json1
|
|
|
2801
2801
|
const deserializeAws_json1_1UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
2802
2802
|
const parsedOutput = {
|
|
2803
2803
|
...output,
|
|
2804
|
-
body: await
|
|
2804
|
+
body: await parseErrorBody(output.body, context),
|
|
2805
2805
|
};
|
|
2806
2806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2807
2807
|
switch (errorCode) {
|
|
@@ -2844,7 +2844,7 @@ exports.deserializeAws_json1_1UpdatePrimaryRegionCommand = deserializeAws_json1_
|
|
|
2844
2844
|
const deserializeAws_json1_1UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
2845
2845
|
const parsedOutput = {
|
|
2846
2846
|
...output,
|
|
2847
|
-
body: await
|
|
2847
|
+
body: await parseErrorBody(output.body, context),
|
|
2848
2848
|
};
|
|
2849
2849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
2850
|
switch (errorCode) {
|
|
@@ -2893,7 +2893,7 @@ exports.deserializeAws_json1_1VerifyCommand = deserializeAws_json1_1VerifyComman
|
|
|
2893
2893
|
const deserializeAws_json1_1VerifyCommandError = async (output, context) => {
|
|
2894
2894
|
const parsedOutput = {
|
|
2895
2895
|
...output,
|
|
2896
|
-
body: await
|
|
2896
|
+
body: await parseErrorBody(output.body, context),
|
|
2897
2897
|
};
|
|
2898
2898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
2899
|
switch (errorCode) {
|
|
@@ -2909,9 +2909,6 @@ const deserializeAws_json1_1VerifyCommandError = async (output, context) => {
|
|
|
2909
2909
|
case "InvalidKeyUsageException":
|
|
2910
2910
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2911
2911
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
2912
|
-
case "KeyUnavailableException":
|
|
2913
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2914
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2915
2912
|
case "KMSInternalException":
|
|
2916
2913
|
case "com.amazonaws.kms#KMSInternalException":
|
|
2917
2914
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
@@ -2921,6 +2918,9 @@ const deserializeAws_json1_1VerifyCommandError = async (output, context) => {
|
|
|
2921
2918
|
case "KMSInvalidStateException":
|
|
2922
2919
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2923
2920
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
2921
|
+
case "KeyUnavailableException":
|
|
2922
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2923
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2924
2924
|
case "NotFoundException":
|
|
2925
2925
|
case "com.amazonaws.kms#NotFoundException":
|
|
2926
2926
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2951,7 +2951,7 @@ exports.deserializeAws_json1_1VerifyMacCommand = deserializeAws_json1_1VerifyMac
|
|
|
2951
2951
|
const deserializeAws_json1_1VerifyMacCommandError = async (output, context) => {
|
|
2952
2952
|
const parsedOutput = {
|
|
2953
2953
|
...output,
|
|
2954
|
-
body: await
|
|
2954
|
+
body: await parseErrorBody(output.body, context),
|
|
2955
2955
|
};
|
|
2956
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2957
|
switch (errorCode) {
|
|
@@ -2964,9 +2964,6 @@ const deserializeAws_json1_1VerifyMacCommandError = async (output, context) => {
|
|
|
2964
2964
|
case "InvalidKeyUsageException":
|
|
2965
2965
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2966
2966
|
throw await deserializeAws_json1_1InvalidKeyUsageExceptionResponse(parsedOutput, context);
|
|
2967
|
-
case "KeyUnavailableException":
|
|
2968
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2969
|
-
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2970
2967
|
case "KMSInternalException":
|
|
2971
2968
|
case "com.amazonaws.kms#KMSInternalException":
|
|
2972
2969
|
throw await deserializeAws_json1_1KMSInternalExceptionResponse(parsedOutput, context);
|
|
@@ -2976,6 +2973,9 @@ const deserializeAws_json1_1VerifyMacCommandError = async (output, context) => {
|
|
|
2976
2973
|
case "KMSInvalidStateException":
|
|
2977
2974
|
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2978
2975
|
throw await deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context);
|
|
2976
|
+
case "KeyUnavailableException":
|
|
2977
|
+
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2978
|
+
throw await deserializeAws_json1_1KeyUnavailableExceptionResponse(parsedOutput, context);
|
|
2979
2979
|
case "NotFoundException":
|
|
2980
2980
|
case "com.amazonaws.kms#NotFoundException":
|
|
2981
2981
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -4418,6 +4418,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4418
4418
|
}
|
|
4419
4419
|
return {};
|
|
4420
4420
|
});
|
|
4421
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4422
|
+
var _a;
|
|
4423
|
+
const value = await parseBody(errorBody, context);
|
|
4424
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4425
|
+
return value;
|
|
4426
|
+
};
|
|
4421
4427
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4422
4428
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4423
4429
|
const sanitizeErrorCode = (rawValue) => {
|