@aws-sdk/client-xray 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_restJson1.js +33 -27
- package/dist-es/XRay.js +110 -117
- package/dist-es/XRayClient.js +22 -28
- package/dist-es/commands/BatchGetTracesCommand.js +21 -28
- package/dist-es/commands/CreateGroupCommand.js +21 -28
- package/dist-es/commands/CreateSamplingRuleCommand.js +21 -28
- package/dist-es/commands/DeleteGroupCommand.js +21 -28
- package/dist-es/commands/DeleteSamplingRuleCommand.js +21 -28
- package/dist-es/commands/GetEncryptionConfigCommand.js +21 -28
- package/dist-es/commands/GetGroupCommand.js +21 -28
- package/dist-es/commands/GetGroupsCommand.js +21 -28
- package/dist-es/commands/GetInsightCommand.js +21 -28
- package/dist-es/commands/GetInsightEventsCommand.js +21 -28
- package/dist-es/commands/GetInsightImpactGraphCommand.js +21 -28
- package/dist-es/commands/GetInsightSummariesCommand.js +21 -28
- package/dist-es/commands/GetSamplingRulesCommand.js +21 -28
- package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +21 -28
- package/dist-es/commands/GetSamplingTargetsCommand.js +21 -28
- package/dist-es/commands/GetServiceGraphCommand.js +21 -28
- package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +21 -28
- package/dist-es/commands/GetTraceGraphCommand.js +21 -28
- package/dist-es/commands/GetTraceSummariesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutEncryptionConfigCommand.js +21 -28
- package/dist-es/commands/PutTelemetryRecordsCommand.js +21 -28
- package/dist-es/commands/PutTraceSegmentsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSamplingRuleCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/XRayServiceException.js +5 -10
- package/dist-es/models/models_0.js +393 -180
- package/dist-es/pagination/BatchGetTracesPaginator.js +24 -67
- package/dist-es/pagination/GetGroupsPaginator.js +24 -67
- package/dist-es/pagination/GetInsightEventsPaginator.js +25 -68
- package/dist-es/pagination/GetInsightSummariesPaginator.js +25 -68
- package/dist-es/pagination/GetSamplingRulesPaginator.js +24 -67
- package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +24 -67
- package/dist-es/pagination/GetServiceGraphPaginator.js +24 -67
- package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +24 -67
- package/dist-es/pagination/GetTraceGraphPaginator.js +24 -67
- package/dist-es/pagination/GetTraceSummariesPaginator.js +24 -67
- package/dist-es/protocols/Aws_restJson1.js +2041 -2695
- 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-xray
|
|
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-xray
|
|
@@ -657,7 +657,7 @@ exports.deserializeAws_restJson1BatchGetTracesCommand = deserializeAws_restJson1
|
|
|
657
657
|
const deserializeAws_restJson1BatchGetTracesCommandError = async (output, context) => {
|
|
658
658
|
const parsedOutput = {
|
|
659
659
|
...output,
|
|
660
|
-
body: await
|
|
660
|
+
body: await parseErrorBody(output.body, context),
|
|
661
661
|
};
|
|
662
662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
663
|
switch (errorCode) {
|
|
@@ -694,7 +694,7 @@ exports.deserializeAws_restJson1CreateGroupCommand = deserializeAws_restJson1Cre
|
|
|
694
694
|
const deserializeAws_restJson1CreateGroupCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
|
-
body: await
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
698
|
};
|
|
699
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
switch (errorCode) {
|
|
@@ -731,7 +731,7 @@ exports.deserializeAws_restJson1CreateSamplingRuleCommand = deserializeAws_restJ
|
|
|
731
731
|
const deserializeAws_restJson1CreateSamplingRuleCommandError = async (output, context) => {
|
|
732
732
|
const parsedOutput = {
|
|
733
733
|
...output,
|
|
734
|
-
body: await
|
|
734
|
+
body: await parseErrorBody(output.body, context),
|
|
735
735
|
};
|
|
736
736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
737
|
switch (errorCode) {
|
|
@@ -768,7 +768,7 @@ exports.deserializeAws_restJson1DeleteGroupCommand = deserializeAws_restJson1Del
|
|
|
768
768
|
const deserializeAws_restJson1DeleteGroupCommandError = async (output, context) => {
|
|
769
769
|
const parsedOutput = {
|
|
770
770
|
...output,
|
|
771
|
-
body: await
|
|
771
|
+
body: await parseErrorBody(output.body, context),
|
|
772
772
|
};
|
|
773
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
774
|
switch (errorCode) {
|
|
@@ -805,7 +805,7 @@ exports.deserializeAws_restJson1DeleteSamplingRuleCommand = deserializeAws_restJ
|
|
|
805
805
|
const deserializeAws_restJson1DeleteSamplingRuleCommandError = async (output, context) => {
|
|
806
806
|
const parsedOutput = {
|
|
807
807
|
...output,
|
|
808
|
-
body: await
|
|
808
|
+
body: await parseErrorBody(output.body, context),
|
|
809
809
|
};
|
|
810
810
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
811
|
switch (errorCode) {
|
|
@@ -842,7 +842,7 @@ exports.deserializeAws_restJson1GetEncryptionConfigCommand = deserializeAws_rest
|
|
|
842
842
|
const deserializeAws_restJson1GetEncryptionConfigCommandError = async (output, context) => {
|
|
843
843
|
const parsedOutput = {
|
|
844
844
|
...output,
|
|
845
|
-
body: await
|
|
845
|
+
body: await parseErrorBody(output.body, context),
|
|
846
846
|
};
|
|
847
847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
848
|
switch (errorCode) {
|
|
@@ -879,7 +879,7 @@ exports.deserializeAws_restJson1GetGroupCommand = deserializeAws_restJson1GetGro
|
|
|
879
879
|
const deserializeAws_restJson1GetGroupCommandError = async (output, context) => {
|
|
880
880
|
const parsedOutput = {
|
|
881
881
|
...output,
|
|
882
|
-
body: await
|
|
882
|
+
body: await parseErrorBody(output.body, context),
|
|
883
883
|
};
|
|
884
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
885
|
switch (errorCode) {
|
|
@@ -919,7 +919,7 @@ exports.deserializeAws_restJson1GetGroupsCommand = deserializeAws_restJson1GetGr
|
|
|
919
919
|
const deserializeAws_restJson1GetGroupsCommandError = async (output, context) => {
|
|
920
920
|
const parsedOutput = {
|
|
921
921
|
...output,
|
|
922
|
-
body: await
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
923
|
};
|
|
924
924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
925
|
switch (errorCode) {
|
|
@@ -956,7 +956,7 @@ exports.deserializeAws_restJson1GetInsightCommand = deserializeAws_restJson1GetI
|
|
|
956
956
|
const deserializeAws_restJson1GetInsightCommandError = async (output, context) => {
|
|
957
957
|
const parsedOutput = {
|
|
958
958
|
...output,
|
|
959
|
-
body: await
|
|
959
|
+
body: await parseErrorBody(output.body, context),
|
|
960
960
|
};
|
|
961
961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
962
|
switch (errorCode) {
|
|
@@ -996,7 +996,7 @@ exports.deserializeAws_restJson1GetInsightEventsCommand = deserializeAws_restJso
|
|
|
996
996
|
const deserializeAws_restJson1GetInsightEventsCommandError = async (output, context) => {
|
|
997
997
|
const parsedOutput = {
|
|
998
998
|
...output,
|
|
999
|
-
body: await
|
|
999
|
+
body: await parseErrorBody(output.body, context),
|
|
1000
1000
|
};
|
|
1001
1001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
1002
|
switch (errorCode) {
|
|
@@ -1051,7 +1051,7 @@ exports.deserializeAws_restJson1GetInsightImpactGraphCommand = deserializeAws_re
|
|
|
1051
1051
|
const deserializeAws_restJson1GetInsightImpactGraphCommandError = async (output, context) => {
|
|
1052
1052
|
const parsedOutput = {
|
|
1053
1053
|
...output,
|
|
1054
|
-
body: await
|
|
1054
|
+
body: await parseErrorBody(output.body, context),
|
|
1055
1055
|
};
|
|
1056
1056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
1057
|
switch (errorCode) {
|
|
@@ -1091,7 +1091,7 @@ exports.deserializeAws_restJson1GetInsightSummariesCommand = deserializeAws_rest
|
|
|
1091
1091
|
const deserializeAws_restJson1GetInsightSummariesCommandError = async (output, context) => {
|
|
1092
1092
|
const parsedOutput = {
|
|
1093
1093
|
...output,
|
|
1094
|
-
body: await
|
|
1094
|
+
body: await parseErrorBody(output.body, context),
|
|
1095
1095
|
};
|
|
1096
1096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
1097
|
switch (errorCode) {
|
|
@@ -1131,7 +1131,7 @@ exports.deserializeAws_restJson1GetSamplingRulesCommand = deserializeAws_restJso
|
|
|
1131
1131
|
const deserializeAws_restJson1GetSamplingRulesCommandError = async (output, context) => {
|
|
1132
1132
|
const parsedOutput = {
|
|
1133
1133
|
...output,
|
|
1134
|
-
body: await
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
1135
|
};
|
|
1136
1136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
1137
|
switch (errorCode) {
|
|
@@ -1171,7 +1171,7 @@ exports.deserializeAws_restJson1GetSamplingStatisticSummariesCommand = deseriali
|
|
|
1171
1171
|
const deserializeAws_restJson1GetSamplingStatisticSummariesCommandError = async (output, context) => {
|
|
1172
1172
|
const parsedOutput = {
|
|
1173
1173
|
...output,
|
|
1174
|
-
body: await
|
|
1174
|
+
body: await parseErrorBody(output.body, context),
|
|
1175
1175
|
};
|
|
1176
1176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1177
|
switch (errorCode) {
|
|
@@ -1214,7 +1214,7 @@ exports.deserializeAws_restJson1GetSamplingTargetsCommand = deserializeAws_restJ
|
|
|
1214
1214
|
const deserializeAws_restJson1GetSamplingTargetsCommandError = async (output, context) => {
|
|
1215
1215
|
const parsedOutput = {
|
|
1216
1216
|
...output,
|
|
1217
|
-
body: await
|
|
1217
|
+
body: await parseErrorBody(output.body, context),
|
|
1218
1218
|
};
|
|
1219
1219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
1220
|
switch (errorCode) {
|
|
@@ -1263,7 +1263,7 @@ exports.deserializeAws_restJson1GetServiceGraphCommand = deserializeAws_restJson
|
|
|
1263
1263
|
const deserializeAws_restJson1GetServiceGraphCommandError = async (output, context) => {
|
|
1264
1264
|
const parsedOutput = {
|
|
1265
1265
|
...output,
|
|
1266
|
-
body: await
|
|
1266
|
+
body: await parseErrorBody(output.body, context),
|
|
1267
1267
|
};
|
|
1268
1268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1269
|
switch (errorCode) {
|
|
@@ -1306,7 +1306,7 @@ exports.deserializeAws_restJson1GetTimeSeriesServiceStatisticsCommand = deserial
|
|
|
1306
1306
|
const deserializeAws_restJson1GetTimeSeriesServiceStatisticsCommandError = async (output, context) => {
|
|
1307
1307
|
const parsedOutput = {
|
|
1308
1308
|
...output,
|
|
1309
|
-
body: await
|
|
1309
|
+
body: await parseErrorBody(output.body, context),
|
|
1310
1310
|
};
|
|
1311
1311
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1312
|
switch (errorCode) {
|
|
@@ -1346,7 +1346,7 @@ exports.deserializeAws_restJson1GetTraceGraphCommand = deserializeAws_restJson1G
|
|
|
1346
1346
|
const deserializeAws_restJson1GetTraceGraphCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
|
-
body: await
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1350
1350
|
};
|
|
1351
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1352
|
switch (errorCode) {
|
|
@@ -1392,7 +1392,7 @@ exports.deserializeAws_restJson1GetTraceSummariesCommand = deserializeAws_restJs
|
|
|
1392
1392
|
const deserializeAws_restJson1GetTraceSummariesCommandError = async (output, context) => {
|
|
1393
1393
|
const parsedOutput = {
|
|
1394
1394
|
...output,
|
|
1395
|
-
body: await
|
|
1395
|
+
body: await parseErrorBody(output.body, context),
|
|
1396
1396
|
};
|
|
1397
1397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
1398
|
switch (errorCode) {
|
|
@@ -1432,7 +1432,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1432
1432
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1433
1433
|
const parsedOutput = {
|
|
1434
1434
|
...output,
|
|
1435
|
-
body: await
|
|
1435
|
+
body: await parseErrorBody(output.body, context),
|
|
1436
1436
|
};
|
|
1437
1437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1438
|
switch (errorCode) {
|
|
@@ -1472,7 +1472,7 @@ exports.deserializeAws_restJson1PutEncryptionConfigCommand = deserializeAws_rest
|
|
|
1472
1472
|
const deserializeAws_restJson1PutEncryptionConfigCommandError = async (output, context) => {
|
|
1473
1473
|
const parsedOutput = {
|
|
1474
1474
|
...output,
|
|
1475
|
-
body: await
|
|
1475
|
+
body: await parseErrorBody(output.body, context),
|
|
1476
1476
|
};
|
|
1477
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1478
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_restJson1PutTelemetryRecordsCommand = deserializeAws_rest
|
|
|
1506
1506
|
const deserializeAws_restJson1PutTelemetryRecordsCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1543,7 +1543,7 @@ exports.deserializeAws_restJson1PutTraceSegmentsCommand = deserializeAws_restJso
|
|
|
1543
1543
|
const deserializeAws_restJson1PutTraceSegmentsCommandError = async (output, context) => {
|
|
1544
1544
|
const parsedOutput = {
|
|
1545
1545
|
...output,
|
|
1546
|
-
body: await
|
|
1546
|
+
body: await parseErrorBody(output.body, context),
|
|
1547
1547
|
};
|
|
1548
1548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
1549
|
switch (errorCode) {
|
|
@@ -1577,7 +1577,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1577
1577
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1578
1578
|
const parsedOutput = {
|
|
1579
1579
|
...output,
|
|
1580
|
-
body: await
|
|
1580
|
+
body: await parseErrorBody(output.body, context),
|
|
1581
1581
|
};
|
|
1582
1582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1583
1583
|
switch (errorCode) {
|
|
@@ -1617,7 +1617,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1617
1617
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1618
1618
|
const parsedOutput = {
|
|
1619
1619
|
...output,
|
|
1620
|
-
body: await
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
1621
|
};
|
|
1622
1622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
1623
|
switch (errorCode) {
|
|
@@ -1657,7 +1657,7 @@ exports.deserializeAws_restJson1UpdateGroupCommand = deserializeAws_restJson1Upd
|
|
|
1657
1657
|
const deserializeAws_restJson1UpdateGroupCommandError = async (output, context) => {
|
|
1658
1658
|
const parsedOutput = {
|
|
1659
1659
|
...output,
|
|
1660
|
-
body: await
|
|
1660
|
+
body: await parseErrorBody(output.body, context),
|
|
1661
1661
|
};
|
|
1662
1662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1663
|
switch (errorCode) {
|
|
@@ -1694,7 +1694,7 @@ exports.deserializeAws_restJson1UpdateSamplingRuleCommand = deserializeAws_restJ
|
|
|
1694
1694
|
const deserializeAws_restJson1UpdateSamplingRuleCommandError = async (output, context) => {
|
|
1695
1695
|
const parsedOutput = {
|
|
1696
1696
|
...output,
|
|
1697
|
-
body: await
|
|
1697
|
+
body: await parseErrorBody(output.body, context),
|
|
1698
1698
|
};
|
|
1699
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1700
|
switch (errorCode) {
|
|
@@ -2904,6 +2904,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2904
2904
|
}
|
|
2905
2905
|
return {};
|
|
2906
2906
|
});
|
|
2907
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2908
|
+
var _a;
|
|
2909
|
+
const value = await parseBody(errorBody, context);
|
|
2910
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2911
|
+
return value;
|
|
2912
|
+
};
|
|
2907
2913
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2908
2914
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2909
2915
|
const sanitizeErrorCode = (rawValue) => {
|