@aws-sdk/client-inspector 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 +43 -37
- package/dist-es/Inspector.js +150 -157
- package/dist-es/InspectorClient.js +22 -28
- package/dist-es/commands/AddAttributesToFindingsCommand.js +21 -28
- package/dist-es/commands/CreateAssessmentTargetCommand.js +21 -28
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +21 -28
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +21 -28
- package/dist-es/commands/CreateResourceGroupCommand.js +21 -28
- package/dist-es/commands/DeleteAssessmentRunCommand.js +22 -29
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +22 -29
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +22 -29
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +21 -28
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +21 -28
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +21 -28
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +22 -29
- package/dist-es/commands/DescribeExclusionsCommand.js +21 -28
- package/dist-es/commands/DescribeFindingsCommand.js +21 -28
- package/dist-es/commands/DescribeResourceGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeRulesPackagesCommand.js +21 -28
- package/dist-es/commands/GetAssessmentReportCommand.js +21 -28
- package/dist-es/commands/GetExclusionsPreviewCommand.js +21 -28
- package/dist-es/commands/GetTelemetryMetadataCommand.js +21 -28
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +21 -28
- package/dist-es/commands/ListAssessmentRunsCommand.js +21 -28
- package/dist-es/commands/ListAssessmentTargetsCommand.js +21 -28
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +21 -28
- package/dist-es/commands/ListEventSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListExclusionsCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListRulesPackagesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PreviewAgentsCommand.js +21 -28
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +22 -29
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +21 -28
- package/dist-es/commands/SetTagsForResourceCommand.js +22 -29
- package/dist-es/commands/StartAssessmentRunCommand.js +21 -28
- package/dist-es/commands/StopAssessmentRunCommand.js +22 -29
- package/dist-es/commands/SubscribeToEventCommand.js +22 -29
- package/dist-es/commands/UnsubscribeFromEventCommand.js +22 -29
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/InspectorServiceException.js +5 -10
- package/dist-es/models/models_0.js +431 -238
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js +25 -68
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +25 -68
- package/dist-es/pagination/ListAssessmentRunsPaginator.js +25 -68
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js +25 -68
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js +25 -68
- package/dist-es/pagination/ListExclusionsPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListRulesPackagesPaginator.js +25 -68
- package/dist-es/pagination/PreviewAgentsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2604 -3344
- 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-inspector
|
|
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-inspector
|
|
@@ -392,7 +392,7 @@ exports.deserializeAws_json1_1AddAttributesToFindingsCommand = deserializeAws_js
|
|
|
392
392
|
const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output, context) => {
|
|
393
393
|
const parsedOutput = {
|
|
394
394
|
...output,
|
|
395
|
-
body: await
|
|
395
|
+
body: await parseErrorBody(output.body, context),
|
|
396
396
|
};
|
|
397
397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
398
|
switch (errorCode) {
|
|
@@ -438,7 +438,7 @@ exports.deserializeAws_json1_1CreateAssessmentTargetCommand = deserializeAws_jso
|
|
|
438
438
|
const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output, context) => {
|
|
439
439
|
const parsedOutput = {
|
|
440
440
|
...output,
|
|
441
|
-
body: await
|
|
441
|
+
body: await parseErrorBody(output.body, context),
|
|
442
442
|
};
|
|
443
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
444
|
switch (errorCode) {
|
|
@@ -490,7 +490,7 @@ exports.deserializeAws_json1_1CreateAssessmentTemplateCommand = deserializeAws_j
|
|
|
490
490
|
const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output, context) => {
|
|
491
491
|
const parsedOutput = {
|
|
492
492
|
...output,
|
|
493
|
-
body: await
|
|
493
|
+
body: await parseErrorBody(output.body, context),
|
|
494
494
|
};
|
|
495
495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
496
|
switch (errorCode) {
|
|
@@ -539,7 +539,7 @@ exports.deserializeAws_json1_1CreateExclusionsPreviewCommand = deserializeAws_js
|
|
|
539
539
|
const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output, context) => {
|
|
540
540
|
const parsedOutput = {
|
|
541
541
|
...output,
|
|
542
|
-
body: await
|
|
542
|
+
body: await parseErrorBody(output.body, context),
|
|
543
543
|
};
|
|
544
544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
545
|
switch (errorCode) {
|
|
@@ -588,7 +588,7 @@ exports.deserializeAws_json1_1CreateResourceGroupCommand = deserializeAws_json1_
|
|
|
588
588
|
const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, context) => {
|
|
589
589
|
const parsedOutput = {
|
|
590
590
|
...output,
|
|
591
|
-
body: await
|
|
591
|
+
body: await parseErrorBody(output.body, context),
|
|
592
592
|
};
|
|
593
593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
594
|
switch (errorCode) {
|
|
@@ -631,7 +631,7 @@ exports.deserializeAws_json1_1DeleteAssessmentRunCommand = deserializeAws_json1_
|
|
|
631
631
|
const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, context) => {
|
|
632
632
|
const parsedOutput = {
|
|
633
633
|
...output,
|
|
634
|
-
body: await
|
|
634
|
+
body: await parseErrorBody(output.body, context),
|
|
635
635
|
};
|
|
636
636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
switch (errorCode) {
|
|
@@ -677,7 +677,7 @@ exports.deserializeAws_json1_1DeleteAssessmentTargetCommand = deserializeAws_jso
|
|
|
677
677
|
const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output, context) => {
|
|
678
678
|
const parsedOutput = {
|
|
679
679
|
...output,
|
|
680
|
-
body: await
|
|
680
|
+
body: await parseErrorBody(output.body, context),
|
|
681
681
|
};
|
|
682
682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
683
|
switch (errorCode) {
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_json1_1DeleteAssessmentTemplateCommand = deserializeAws_j
|
|
|
723
723
|
const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_json1_1DescribeAssessmentRunsCommand = deserializeAws_jso
|
|
|
772
772
|
const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -809,7 +809,7 @@ exports.deserializeAws_json1_1DescribeAssessmentTargetsCommand = deserializeAws_
|
|
|
809
809
|
const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (output, context) => {
|
|
810
810
|
const parsedOutput = {
|
|
811
811
|
...output,
|
|
812
|
-
body: await
|
|
812
|
+
body: await parseErrorBody(output.body, context),
|
|
813
813
|
};
|
|
814
814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
815
|
switch (errorCode) {
|
|
@@ -846,7 +846,7 @@ exports.deserializeAws_json1_1DescribeAssessmentTemplatesCommand = deserializeAw
|
|
|
846
846
|
const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
|
-
body: await
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
850
|
};
|
|
851
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
852
|
switch (errorCode) {
|
|
@@ -883,7 +883,7 @@ exports.deserializeAws_json1_1DescribeCrossAccountAccessRoleCommand = deserializ
|
|
|
883
883
|
const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
884
884
|
const parsedOutput = {
|
|
885
885
|
...output,
|
|
886
|
-
body: await
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
887
|
};
|
|
888
888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
889
|
switch (errorCode) {
|
|
@@ -917,7 +917,7 @@ exports.deserializeAws_json1_1DescribeExclusionsCommand = deserializeAws_json1_1
|
|
|
917
917
|
const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, context) => {
|
|
918
918
|
const parsedOutput = {
|
|
919
919
|
...output,
|
|
920
|
-
body: await
|
|
920
|
+
body: await parseErrorBody(output.body, context),
|
|
921
921
|
};
|
|
922
922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
923
|
switch (errorCode) {
|
|
@@ -954,7 +954,7 @@ exports.deserializeAws_json1_1DescribeFindingsCommand = deserializeAws_json1_1De
|
|
|
954
954
|
const deserializeAws_json1_1DescribeFindingsCommandError = async (output, context) => {
|
|
955
955
|
const parsedOutput = {
|
|
956
956
|
...output,
|
|
957
|
-
body: await
|
|
957
|
+
body: await parseErrorBody(output.body, context),
|
|
958
958
|
};
|
|
959
959
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
960
|
switch (errorCode) {
|
|
@@ -991,7 +991,7 @@ exports.deserializeAws_json1_1DescribeResourceGroupsCommand = deserializeAws_jso
|
|
|
991
991
|
const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output, context) => {
|
|
992
992
|
const parsedOutput = {
|
|
993
993
|
...output,
|
|
994
|
-
body: await
|
|
994
|
+
body: await parseErrorBody(output.body, context),
|
|
995
995
|
};
|
|
996
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
997
|
switch (errorCode) {
|
|
@@ -1028,7 +1028,7 @@ exports.deserializeAws_json1_1DescribeRulesPackagesCommand = deserializeAws_json
|
|
|
1028
1028
|
const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
|
-
body: await
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
1032
|
};
|
|
1033
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
switch (errorCode) {
|
|
@@ -1065,7 +1065,7 @@ exports.deserializeAws_json1_1GetAssessmentReportCommand = deserializeAws_json1_
|
|
|
1065
1065
|
const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
|
-
body: await
|
|
1068
|
+
body: await parseErrorBody(output.body, context),
|
|
1069
1069
|
};
|
|
1070
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
switch (errorCode) {
|
|
@@ -1117,7 +1117,7 @@ exports.deserializeAws_json1_1GetExclusionsPreviewCommand = deserializeAws_json1
|
|
|
1117
1117
|
const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, context) => {
|
|
1118
1118
|
const parsedOutput = {
|
|
1119
1119
|
...output,
|
|
1120
|
-
body: await
|
|
1120
|
+
body: await parseErrorBody(output.body, context),
|
|
1121
1121
|
};
|
|
1122
1122
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
1123
|
switch (errorCode) {
|
|
@@ -1160,7 +1160,7 @@ exports.deserializeAws_json1_1GetTelemetryMetadataCommand = deserializeAws_json1
|
|
|
1160
1160
|
const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, context) => {
|
|
1161
1161
|
const parsedOutput = {
|
|
1162
1162
|
...output,
|
|
1163
|
-
body: await
|
|
1163
|
+
body: await parseErrorBody(output.body, context),
|
|
1164
1164
|
};
|
|
1165
1165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
1166
|
switch (errorCode) {
|
|
@@ -1203,7 +1203,7 @@ exports.deserializeAws_json1_1ListAssessmentRunAgentsCommand = deserializeAws_js
|
|
|
1203
1203
|
const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
|
-
body: await
|
|
1206
|
+
body: await parseErrorBody(output.body, context),
|
|
1207
1207
|
};
|
|
1208
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1209
|
switch (errorCode) {
|
|
@@ -1246,7 +1246,7 @@ exports.deserializeAws_json1_1ListAssessmentRunsCommand = deserializeAws_json1_1
|
|
|
1246
1246
|
const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, context) => {
|
|
1247
1247
|
const parsedOutput = {
|
|
1248
1248
|
...output,
|
|
1249
|
-
body: await
|
|
1249
|
+
body: await parseErrorBody(output.body, context),
|
|
1250
1250
|
};
|
|
1251
1251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1252
|
switch (errorCode) {
|
|
@@ -1289,7 +1289,7 @@ exports.deserializeAws_json1_1ListAssessmentTargetsCommand = deserializeAws_json
|
|
|
1289
1289
|
const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, context) => {
|
|
1290
1290
|
const parsedOutput = {
|
|
1291
1291
|
...output,
|
|
1292
|
-
body: await
|
|
1292
|
+
body: await parseErrorBody(output.body, context),
|
|
1293
1293
|
};
|
|
1294
1294
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
1295
|
switch (errorCode) {
|
|
@@ -1329,7 +1329,7 @@ exports.deserializeAws_json1_1ListAssessmentTemplatesCommand = deserializeAws_js
|
|
|
1329
1329
|
const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output, context) => {
|
|
1330
1330
|
const parsedOutput = {
|
|
1331
1331
|
...output,
|
|
1332
|
-
body: await
|
|
1332
|
+
body: await parseErrorBody(output.body, context),
|
|
1333
1333
|
};
|
|
1334
1334
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1335
|
switch (errorCode) {
|
|
@@ -1372,7 +1372,7 @@ exports.deserializeAws_json1_1ListEventSubscriptionsCommand = deserializeAws_jso
|
|
|
1372
1372
|
const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output, context) => {
|
|
1373
1373
|
const parsedOutput = {
|
|
1374
1374
|
...output,
|
|
1375
|
-
body: await
|
|
1375
|
+
body: await parseErrorBody(output.body, context),
|
|
1376
1376
|
};
|
|
1377
1377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1378
|
switch (errorCode) {
|
|
@@ -1415,7 +1415,7 @@ exports.deserializeAws_json1_1ListExclusionsCommand = deserializeAws_json1_1List
|
|
|
1415
1415
|
const deserializeAws_json1_1ListExclusionsCommandError = async (output, context) => {
|
|
1416
1416
|
const parsedOutput = {
|
|
1417
1417
|
...output,
|
|
1418
|
-
body: await
|
|
1418
|
+
body: await parseErrorBody(output.body, context),
|
|
1419
1419
|
};
|
|
1420
1420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
1421
|
switch (errorCode) {
|
|
@@ -1458,7 +1458,7 @@ exports.deserializeAws_json1_1ListFindingsCommand = deserializeAws_json1_1ListFi
|
|
|
1458
1458
|
const deserializeAws_json1_1ListFindingsCommandError = async (output, context) => {
|
|
1459
1459
|
const parsedOutput = {
|
|
1460
1460
|
...output,
|
|
1461
|
-
body: await
|
|
1461
|
+
body: await parseErrorBody(output.body, context),
|
|
1462
1462
|
};
|
|
1463
1463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
1464
|
switch (errorCode) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_json1_1ListRulesPackagesCommand = deserializeAws_json1_1L
|
|
|
1501
1501
|
const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1541,7 +1541,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1541
1541
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
|
-
body: await
|
|
1544
|
+
body: await parseErrorBody(output.body, context),
|
|
1545
1545
|
};
|
|
1546
1546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1547
|
switch (errorCode) {
|
|
@@ -1584,7 +1584,7 @@ exports.deserializeAws_json1_1PreviewAgentsCommand = deserializeAws_json1_1Previ
|
|
|
1584
1584
|
const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context) => {
|
|
1585
1585
|
const parsedOutput = {
|
|
1586
1586
|
...output,
|
|
1587
|
-
body: await
|
|
1587
|
+
body: await parseErrorBody(output.body, context),
|
|
1588
1588
|
};
|
|
1589
1589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1590
|
switch (errorCode) {
|
|
@@ -1627,7 +1627,7 @@ exports.deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand = deserializ
|
|
|
1627
1627
|
const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
1628
1628
|
const parsedOutput = {
|
|
1629
1629
|
...output,
|
|
1630
|
-
body: await
|
|
1630
|
+
body: await parseErrorBody(output.body, context),
|
|
1631
1631
|
};
|
|
1632
1632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1633
|
switch (errorCode) {
|
|
@@ -1673,7 +1673,7 @@ exports.deserializeAws_json1_1RemoveAttributesFromFindingsCommand = deserializeA
|
|
|
1673
1673
|
const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (output, context) => {
|
|
1674
1674
|
const parsedOutput = {
|
|
1675
1675
|
...output,
|
|
1676
|
-
body: await
|
|
1676
|
+
body: await parseErrorBody(output.body, context),
|
|
1677
1677
|
};
|
|
1678
1678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
1679
|
switch (errorCode) {
|
|
@@ -1716,7 +1716,7 @@ exports.deserializeAws_json1_1SetTagsForResourceCommand = deserializeAws_json1_1
|
|
|
1716
1716
|
const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, context) => {
|
|
1717
1717
|
const parsedOutput = {
|
|
1718
1718
|
...output,
|
|
1719
|
-
body: await
|
|
1719
|
+
body: await parseErrorBody(output.body, context),
|
|
1720
1720
|
};
|
|
1721
1721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1722
|
switch (errorCode) {
|
|
@@ -1762,7 +1762,7 @@ exports.deserializeAws_json1_1StartAssessmentRunCommand = deserializeAws_json1_1
|
|
|
1762
1762
|
const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, context) => {
|
|
1763
1763
|
const parsedOutput = {
|
|
1764
1764
|
...output,
|
|
1765
|
-
body: await
|
|
1765
|
+
body: await parseErrorBody(output.body, context),
|
|
1766
1766
|
};
|
|
1767
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1768
|
switch (errorCode) {
|
|
@@ -1814,7 +1814,7 @@ exports.deserializeAws_json1_1StopAssessmentRunCommand = deserializeAws_json1_1S
|
|
|
1814
1814
|
const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, context) => {
|
|
1815
1815
|
const parsedOutput = {
|
|
1816
1816
|
...output,
|
|
1817
|
-
body: await
|
|
1817
|
+
body: await parseErrorBody(output.body, context),
|
|
1818
1818
|
};
|
|
1819
1819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
1820
|
switch (errorCode) {
|
|
@@ -1857,7 +1857,7 @@ exports.deserializeAws_json1_1SubscribeToEventCommand = deserializeAws_json1_1Su
|
|
|
1857
1857
|
const deserializeAws_json1_1SubscribeToEventCommandError = async (output, context) => {
|
|
1858
1858
|
const parsedOutput = {
|
|
1859
1859
|
...output,
|
|
1860
|
-
body: await
|
|
1860
|
+
body: await parseErrorBody(output.body, context),
|
|
1861
1861
|
};
|
|
1862
1862
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
1863
|
switch (errorCode) {
|
|
@@ -1903,7 +1903,7 @@ exports.deserializeAws_json1_1UnsubscribeFromEventCommand = deserializeAws_json1
|
|
|
1903
1903
|
const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, context) => {
|
|
1904
1904
|
const parsedOutput = {
|
|
1905
1905
|
...output,
|
|
1906
|
-
body: await
|
|
1906
|
+
body: await parseErrorBody(output.body, context),
|
|
1907
1907
|
};
|
|
1908
1908
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
1909
|
switch (errorCode) {
|
|
@@ -1946,7 +1946,7 @@ exports.deserializeAws_json1_1UpdateAssessmentTargetCommand = deserializeAws_jso
|
|
|
1946
1946
|
const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output, context) => {
|
|
1947
1947
|
const parsedOutput = {
|
|
1948
1948
|
...output,
|
|
1949
|
-
body: await
|
|
1949
|
+
body: await parseErrorBody(output.body, context),
|
|
1950
1950
|
};
|
|
1951
1951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
1952
|
switch (errorCode) {
|
|
@@ -3499,6 +3499,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3499
3499
|
}
|
|
3500
3500
|
return {};
|
|
3501
3501
|
});
|
|
3502
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3503
|
+
var _a;
|
|
3504
|
+
const value = await parseBody(errorBody, context);
|
|
3505
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3506
|
+
return value;
|
|
3507
|
+
};
|
|
3502
3508
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3503
3509
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3504
3510
|
const sanitizeErrorCode = (rawValue) => {
|