@aws-sdk/client-xray 3.693.0 → 3.698.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.
Files changed (44) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/index.js +506 -24
  3. package/dist-es/XRay.js +16 -0
  4. package/dist-es/commands/CancelTraceRetrievalCommand.js +22 -0
  5. package/dist-es/commands/GetIndexingRulesCommand.js +22 -0
  6. package/dist-es/commands/GetRetrievedTracesGraphCommand.js +22 -0
  7. package/dist-es/commands/GetTraceSegmentDestinationCommand.js +22 -0
  8. package/dist-es/commands/ListRetrievedTracesCommand.js +22 -0
  9. package/dist-es/commands/StartTraceRetrievalCommand.js +22 -0
  10. package/dist-es/commands/UpdateIndexingRuleCommand.js +22 -0
  11. package/dist-es/commands/UpdateTraceSegmentDestinationCommand.js +22 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/models_0.js +50 -14
  14. package/dist-es/protocols/Aws_restJson1.js +294 -4
  15. package/dist-types/XRay.d.ts +59 -0
  16. package/dist-types/XRayClient.d.ts +10 -2
  17. package/dist-types/commands/BatchGetTracesCommand.d.ts +4 -1
  18. package/dist-types/commands/CancelTraceRetrievalCommand.d.ts +81 -0
  19. package/dist-types/commands/GetIndexingRulesCommand.d.ts +91 -0
  20. package/dist-types/commands/GetRetrievedTracesGraphCommand.d.ts +185 -0
  21. package/dist-types/commands/GetTraceSegmentDestinationCommand.d.ts +78 -0
  22. package/dist-types/commands/GetTraceSummariesCommand.d.ts +2 -2
  23. package/dist-types/commands/ListRetrievedTracesCommand.d.ts +104 -0
  24. package/dist-types/commands/PutTraceSegmentsCommand.d.ts +14 -4
  25. package/dist-types/commands/StartTraceRetrievalCommand.d.ts +90 -0
  26. package/dist-types/commands/UpdateIndexingRuleCommand.d.ts +98 -0
  27. package/dist-types/commands/UpdateTraceSegmentDestinationCommand.d.ts +80 -0
  28. package/dist-types/commands/index.d.ts +8 -0
  29. package/dist-types/models/models_0.d.ts +826 -256
  30. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  31. package/dist-types/ts3.4/XRay.d.ts +139 -0
  32. package/dist-types/ts3.4/XRayClient.d.ts +50 -2
  33. package/dist-types/ts3.4/commands/CancelTraceRetrievalCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/GetIndexingRulesCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/GetRetrievedTracesGraphCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/GetTraceSegmentDestinationCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/ListRetrievedTracesCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/StartTraceRetrievalCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/UpdateIndexingRuleCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/UpdateTraceSegmentDestinationCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +213 -61
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  44. package/package.json +35 -35
@@ -1,7 +1,7 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { InvalidPolicyRevisionIdException, InvalidRequestException, LockoutPreventionException, MalformedPolicyDocumentException, PolicyCountLimitExceededException, PolicySizeLimitExceededException, ResourceNotFoundException, RuleLimitExceededException, ThrottledException, TooManyTagsException, } from "../models/models_0";
4
+ import { IndexingRuleValueUpdate, InvalidPolicyRevisionIdException, InvalidRequestException, LockoutPreventionException, MalformedPolicyDocumentException, PolicyCountLimitExceededException, PolicySizeLimitExceededException, ResourceNotFoundException, RuleLimitExceededException, ThrottledException, TooManyTagsException, } from "../models/models_0";
5
5
  import { XRayServiceException as __BaseException } from "../models/XRayServiceException";
6
6
  export const se_BatchGetTracesCommand = async (input, context) => {
7
7
  const b = rb(input, context);
@@ -17,6 +17,19 @@ export const se_BatchGetTracesCommand = async (input, context) => {
17
17
  b.m("POST").h(headers).b(body);
18
18
  return b.build();
19
19
  };
20
+ export const se_CancelTraceRetrievalCommand = async (input, context) => {
21
+ const b = rb(input, context);
22
+ const headers = {
23
+ "content-type": "application/json",
24
+ };
25
+ b.bp("/CancelTraceRetrieval");
26
+ let body;
27
+ body = JSON.stringify(take(input, {
28
+ RetrievalToken: [],
29
+ }));
30
+ b.m("POST").h(headers).b(body);
31
+ return b.build();
32
+ };
20
33
  export const se_CreateGroupCommand = async (input, context) => {
21
34
  const b = rb(input, context);
22
35
  const headers = {
@@ -124,6 +137,19 @@ export const se_GetGroupsCommand = async (input, context) => {
124
137
  b.m("POST").h(headers).b(body);
125
138
  return b.build();
126
139
  };
140
+ export const se_GetIndexingRulesCommand = async (input, context) => {
141
+ const b = rb(input, context);
142
+ const headers = {
143
+ "content-type": "application/json",
144
+ };
145
+ b.bp("/GetIndexingRules");
146
+ let body;
147
+ body = JSON.stringify(take(input, {
148
+ NextToken: [],
149
+ }));
150
+ b.m("POST").h(headers).b(body);
151
+ return b.build();
152
+ };
127
153
  export const se_GetInsightCommand = async (input, context) => {
128
154
  const b = rb(input, context);
129
155
  const headers = {
@@ -187,6 +213,20 @@ export const se_GetInsightSummariesCommand = async (input, context) => {
187
213
  b.m("POST").h(headers).b(body);
188
214
  return b.build();
189
215
  };
216
+ export const se_GetRetrievedTracesGraphCommand = async (input, context) => {
217
+ const b = rb(input, context);
218
+ const headers = {
219
+ "content-type": "application/json",
220
+ };
221
+ b.bp("/GetRetrievedTracesGraph");
222
+ let body;
223
+ body = JSON.stringify(take(input, {
224
+ NextToken: [],
225
+ RetrievalToken: [],
226
+ }));
227
+ b.m("POST").h(headers).b(body);
228
+ return b.build();
229
+ };
190
230
  export const se_GetSamplingRulesCommand = async (input, context) => {
191
231
  const b = rb(input, context);
192
232
  const headers = {
@@ -277,6 +317,14 @@ export const se_GetTraceGraphCommand = async (input, context) => {
277
317
  b.m("POST").h(headers).b(body);
278
318
  return b.build();
279
319
  };
320
+ export const se_GetTraceSegmentDestinationCommand = async (input, context) => {
321
+ const b = rb(input, context);
322
+ const headers = {};
323
+ b.bp("/GetTraceSegmentDestination");
324
+ let body;
325
+ b.m("POST").h(headers).b(body);
326
+ return b.build();
327
+ };
280
328
  export const se_GetTraceSummariesCommand = async (input, context) => {
281
329
  const b = rb(input, context);
282
330
  const headers = {
@@ -309,6 +357,21 @@ export const se_ListResourcePoliciesCommand = async (input, context) => {
309
357
  b.m("POST").h(headers).b(body);
310
358
  return b.build();
311
359
  };
360
+ export const se_ListRetrievedTracesCommand = async (input, context) => {
361
+ const b = rb(input, context);
362
+ const headers = {
363
+ "content-type": "application/json",
364
+ };
365
+ b.bp("/ListRetrievedTraces");
366
+ let body;
367
+ body = JSON.stringify(take(input, {
368
+ NextToken: [],
369
+ RetrievalToken: [],
370
+ TraceFormat: [],
371
+ }));
372
+ b.m("POST").h(headers).b(body);
373
+ return b.build();
374
+ };
312
375
  export const se_ListTagsForResourceCommand = async (input, context) => {
313
376
  const b = rb(input, context);
314
377
  const headers = {
@@ -382,6 +445,21 @@ export const se_PutTraceSegmentsCommand = async (input, context) => {
382
445
  b.m("POST").h(headers).b(body);
383
446
  return b.build();
384
447
  };
448
+ export const se_StartTraceRetrievalCommand = async (input, context) => {
449
+ const b = rb(input, context);
450
+ const headers = {
451
+ "content-type": "application/json",
452
+ };
453
+ b.bp("/StartTraceRetrieval");
454
+ let body;
455
+ body = JSON.stringify(take(input, {
456
+ EndTime: (_) => _.getTime() / 1000,
457
+ StartTime: (_) => _.getTime() / 1000,
458
+ TraceIds: (_) => _json(_),
459
+ }));
460
+ b.m("POST").h(headers).b(body);
461
+ return b.build();
462
+ };
385
463
  export const se_TagResourceCommand = async (input, context) => {
386
464
  const b = rb(input, context);
387
465
  const headers = {
@@ -426,6 +504,20 @@ export const se_UpdateGroupCommand = async (input, context) => {
426
504
  b.m("POST").h(headers).b(body);
427
505
  return b.build();
428
506
  };
507
+ export const se_UpdateIndexingRuleCommand = async (input, context) => {
508
+ const b = rb(input, context);
509
+ const headers = {
510
+ "content-type": "application/json",
511
+ };
512
+ b.bp("/UpdateIndexingRule");
513
+ let body;
514
+ body = JSON.stringify(take(input, {
515
+ Name: [],
516
+ Rule: (_) => se_IndexingRuleValueUpdate(_, context),
517
+ }));
518
+ b.m("POST").h(headers).b(body);
519
+ return b.build();
520
+ };
429
521
  export const se_UpdateSamplingRuleCommand = async (input, context) => {
430
522
  const b = rb(input, context);
431
523
  const headers = {
@@ -439,6 +531,19 @@ export const se_UpdateSamplingRuleCommand = async (input, context) => {
439
531
  b.m("POST").h(headers).b(body);
440
532
  return b.build();
441
533
  };
534
+ export const se_UpdateTraceSegmentDestinationCommand = async (input, context) => {
535
+ const b = rb(input, context);
536
+ const headers = {
537
+ "content-type": "application/json",
538
+ };
539
+ b.bp("/UpdateTraceSegmentDestination");
540
+ let body;
541
+ body = JSON.stringify(take(input, {
542
+ Destination: [],
543
+ }));
544
+ b.m("POST").h(headers).b(body);
545
+ return b.build();
546
+ };
442
547
  export const de_BatchGetTracesCommand = async (output, context) => {
443
548
  if (output.statusCode !== 200 && output.statusCode >= 300) {
444
549
  return de_CommandError(output, context);
@@ -455,6 +560,16 @@ export const de_BatchGetTracesCommand = async (output, context) => {
455
560
  Object.assign(contents, doc);
456
561
  return contents;
457
562
  };
563
+ export const de_CancelTraceRetrievalCommand = async (output, context) => {
564
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
565
+ return de_CommandError(output, context);
566
+ }
567
+ const contents = map({
568
+ $metadata: deserializeMetadata(output),
569
+ });
570
+ await collectBody(output.body, context);
571
+ return contents;
572
+ };
458
573
  export const de_CreateGroupCommand = async (output, context) => {
459
574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
460
575
  return de_CommandError(output, context);
@@ -560,6 +675,21 @@ export const de_GetGroupsCommand = async (output, context) => {
560
675
  Object.assign(contents, doc);
561
676
  return contents;
562
677
  };
678
+ export const de_GetIndexingRulesCommand = async (output, context) => {
679
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
680
+ return de_CommandError(output, context);
681
+ }
682
+ const contents = map({
683
+ $metadata: deserializeMetadata(output),
684
+ });
685
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
686
+ const doc = take(data, {
687
+ IndexingRules: (_) => de_IndexingRuleList(_, context),
688
+ NextToken: __expectString,
689
+ });
690
+ Object.assign(contents, doc);
691
+ return contents;
692
+ };
563
693
  export const de_GetInsightCommand = async (output, context) => {
564
694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
565
695
  return de_CommandError(output, context);
@@ -624,6 +754,22 @@ export const de_GetInsightSummariesCommand = async (output, context) => {
624
754
  Object.assign(contents, doc);
625
755
  return contents;
626
756
  };
757
+ export const de_GetRetrievedTracesGraphCommand = async (output, context) => {
758
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
759
+ return de_CommandError(output, context);
760
+ }
761
+ const contents = map({
762
+ $metadata: deserializeMetadata(output),
763
+ });
764
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
765
+ const doc = take(data, {
766
+ NextToken: __expectString,
767
+ RetrievalStatus: __expectString,
768
+ Services: (_) => de_RetrievedServicesList(_, context),
769
+ });
770
+ Object.assign(contents, doc);
771
+ return contents;
772
+ };
627
773
  export const de_GetSamplingRulesCommand = async (output, context) => {
628
774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
629
775
  return de_CommandError(output, context);
@@ -719,6 +865,21 @@ export const de_GetTraceGraphCommand = async (output, context) => {
719
865
  Object.assign(contents, doc);
720
866
  return contents;
721
867
  };
868
+ export const de_GetTraceSegmentDestinationCommand = async (output, context) => {
869
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
870
+ return de_CommandError(output, context);
871
+ }
872
+ const contents = map({
873
+ $metadata: deserializeMetadata(output),
874
+ });
875
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
876
+ const doc = take(data, {
877
+ Destination: __expectString,
878
+ Status: __expectString,
879
+ });
880
+ Object.assign(contents, doc);
881
+ return contents;
882
+ };
722
883
  export const de_GetTraceSummariesCommand = async (output, context) => {
723
884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
724
885
  return de_CommandError(output, context);
@@ -751,6 +912,23 @@ export const de_ListResourcePoliciesCommand = async (output, context) => {
751
912
  Object.assign(contents, doc);
752
913
  return contents;
753
914
  };
915
+ export const de_ListRetrievedTracesCommand = async (output, context) => {
916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
917
+ return de_CommandError(output, context);
918
+ }
919
+ const contents = map({
920
+ $metadata: deserializeMetadata(output),
921
+ });
922
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
923
+ const doc = take(data, {
924
+ NextToken: __expectString,
925
+ RetrievalStatus: __expectString,
926
+ TraceFormat: __expectString,
927
+ Traces: (_) => de_TraceSpanList(_, context),
928
+ });
929
+ Object.assign(contents, doc);
930
+ return contents;
931
+ };
754
932
  export const de_ListTagsForResourceCommand = async (output, context) => {
755
933
  if (output.statusCode !== 200 && output.statusCode >= 300) {
756
934
  return de_CommandError(output, context);
@@ -818,6 +996,20 @@ export const de_PutTraceSegmentsCommand = async (output, context) => {
818
996
  Object.assign(contents, doc);
819
997
  return contents;
820
998
  };
999
+ export const de_StartTraceRetrievalCommand = async (output, context) => {
1000
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
+ return de_CommandError(output, context);
1002
+ }
1003
+ const contents = map({
1004
+ $metadata: deserializeMetadata(output),
1005
+ });
1006
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1007
+ const doc = take(data, {
1008
+ RetrievalToken: __expectString,
1009
+ });
1010
+ Object.assign(contents, doc);
1011
+ return contents;
1012
+ };
821
1013
  export const de_TagResourceCommand = async (output, context) => {
822
1014
  if (output.statusCode !== 200 && output.statusCode >= 300) {
823
1015
  return de_CommandError(output, context);
@@ -852,6 +1044,20 @@ export const de_UpdateGroupCommand = async (output, context) => {
852
1044
  Object.assign(contents, doc);
853
1045
  return contents;
854
1046
  };
1047
+ export const de_UpdateIndexingRuleCommand = async (output, context) => {
1048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1049
+ return de_CommandError(output, context);
1050
+ }
1051
+ const contents = map({
1052
+ $metadata: deserializeMetadata(output),
1053
+ });
1054
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1055
+ const doc = take(data, {
1056
+ IndexingRule: (_) => de_IndexingRule(_, context),
1057
+ });
1058
+ Object.assign(contents, doc);
1059
+ return contents;
1060
+ };
855
1061
  export const de_UpdateSamplingRuleCommand = async (output, context) => {
856
1062
  if (output.statusCode !== 200 && output.statusCode >= 300) {
857
1063
  return de_CommandError(output, context);
@@ -866,6 +1072,21 @@ export const de_UpdateSamplingRuleCommand = async (output, context) => {
866
1072
  Object.assign(contents, doc);
867
1073
  return contents;
868
1074
  };
1075
+ export const de_UpdateTraceSegmentDestinationCommand = async (output, context) => {
1076
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1077
+ return de_CommandError(output, context);
1078
+ }
1079
+ const contents = map({
1080
+ $metadata: deserializeMetadata(output),
1081
+ });
1082
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1083
+ const doc = take(data, {
1084
+ Destination: __expectString,
1085
+ Status: __expectString,
1086
+ });
1087
+ Object.assign(contents, doc);
1088
+ return contents;
1089
+ };
869
1090
  const de_CommandError = async (output, context) => {
870
1091
  const parsedOutput = {
871
1092
  ...output,
@@ -879,15 +1100,15 @@ const de_CommandError = async (output, context) => {
879
1100
  case "ThrottledException":
880
1101
  case "com.amazonaws.xray#ThrottledException":
881
1102
  throw await de_ThrottledExceptionRes(parsedOutput, context);
1103
+ case "ResourceNotFoundException":
1104
+ case "com.amazonaws.xray#ResourceNotFoundException":
1105
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
882
1106
  case "RuleLimitExceededException":
883
1107
  case "com.amazonaws.xray#RuleLimitExceededException":
884
1108
  throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
885
1109
  case "InvalidPolicyRevisionIdException":
886
1110
  case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
887
1111
  throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
888
- case "ResourceNotFoundException":
889
- case "com.amazonaws.xray#ResourceNotFoundException":
890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
891
1112
  case "LockoutPreventionException":
892
1113
  case "com.amazonaws.xray#LockoutPreventionException":
893
1114
  throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
@@ -1045,6 +1266,17 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1045
1266
  });
1046
1267
  return __decorateServiceException(exception, parsedOutput.body);
1047
1268
  };
1269
+ const se_IndexingRuleValueUpdate = (input, context) => {
1270
+ return IndexingRuleValueUpdate.visit(input, {
1271
+ Probabilistic: (value) => ({ Probabilistic: se_ProbabilisticRuleValueUpdate(value, context) }),
1272
+ _: (name, value) => ({ name: value }),
1273
+ });
1274
+ };
1275
+ const se_ProbabilisticRuleValueUpdate = (input, context) => {
1276
+ return take(input, {
1277
+ DesiredSamplingPercentage: __serializeFloat,
1278
+ });
1279
+ };
1048
1280
  const se_SamplingRule = (input, context) => {
1049
1281
  return take(input, {
1050
1282
  Attributes: _json,
@@ -1182,6 +1414,29 @@ const de_HistogramEntry = (output, context) => {
1182
1414
  Value: __limitedParseDouble,
1183
1415
  });
1184
1416
  };
1417
+ const de_IndexingRule = (output, context) => {
1418
+ return take(output, {
1419
+ ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1420
+ Name: __expectString,
1421
+ Rule: (_) => de_IndexingRuleValue(__expectUnion(_), context),
1422
+ });
1423
+ };
1424
+ const de_IndexingRuleList = (output, context) => {
1425
+ const retVal = (output || [])
1426
+ .filter((e) => e != null)
1427
+ .map((entry) => {
1428
+ return de_IndexingRule(entry, context);
1429
+ });
1430
+ return retVal;
1431
+ };
1432
+ const de_IndexingRuleValue = (output, context) => {
1433
+ if (output.Probabilistic != null) {
1434
+ return {
1435
+ Probabilistic: de_ProbabilisticRuleValue(output.Probabilistic, context),
1436
+ };
1437
+ }
1438
+ return { $unknown: Object.entries(output)[0] };
1439
+ };
1185
1440
  const de_Insight = (output, context) => {
1186
1441
  return take(output, {
1187
1442
  Categories: _json,
@@ -1240,6 +1495,12 @@ const de_InsightSummaryList = (output, context) => {
1240
1495
  });
1241
1496
  return retVal;
1242
1497
  };
1498
+ const de_ProbabilisticRuleValue = (output, context) => {
1499
+ return take(output, {
1500
+ ActualSamplingPercentage: __limitedParseDouble,
1501
+ DesiredSamplingPercentage: __limitedParseDouble,
1502
+ });
1503
+ };
1243
1504
  const de_ResourcePolicy = (output, context) => {
1244
1505
  return take(output, {
1245
1506
  LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1303,6 +1564,27 @@ const de_ResponseTimeRootCauseServices = (output, context) => {
1303
1564
  });
1304
1565
  return retVal;
1305
1566
  };
1567
+ const de_RetrievedService = (output, context) => {
1568
+ return take(output, {
1569
+ Links: _json,
1570
+ Service: (_) => de_Service(_, context),
1571
+ });
1572
+ };
1573
+ const de_RetrievedServicesList = (output, context) => {
1574
+ const retVal = (output || [])
1575
+ .filter((e) => e != null)
1576
+ .map((entry) => {
1577
+ return de_RetrievedService(entry, context);
1578
+ });
1579
+ return retVal;
1580
+ };
1581
+ const de_RetrievedTrace = (output, context) => {
1582
+ return take(output, {
1583
+ Duration: __limitedParseDouble,
1584
+ Id: __expectString,
1585
+ Spans: _json,
1586
+ });
1587
+ };
1306
1588
  const de_SamplingRule = (output, context) => {
1307
1589
  return take(output, {
1308
1590
  Attributes: _json,
@@ -1436,6 +1718,14 @@ const de_TraceList = (output, context) => {
1436
1718
  });
1437
1719
  return retVal;
1438
1720
  };
1721
+ const de_TraceSpanList = (output, context) => {
1722
+ const retVal = (output || [])
1723
+ .filter((e) => e != null)
1724
+ .map((entry) => {
1725
+ return de_RetrievedTrace(entry, context);
1726
+ });
1727
+ return retVal;
1728
+ };
1439
1729
  const de_TraceSummary = (output, context) => {
1440
1730
  return take(output, {
1441
1731
  Annotations: (_) => de_Annotations(_, context),
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BatchGetTracesCommandInput, BatchGetTracesCommandOutput } from "./commands/BatchGetTracesCommand";
3
+ import { CancelTraceRetrievalCommandInput, CancelTraceRetrievalCommandOutput } from "./commands/CancelTraceRetrievalCommand";
3
4
  import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
4
5
  import { CreateSamplingRuleCommandInput, CreateSamplingRuleCommandOutput } from "./commands/CreateSamplingRuleCommand";
5
6
  import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
@@ -8,27 +9,34 @@ import { DeleteSamplingRuleCommandInput, DeleteSamplingRuleCommandOutput } from
8
9
  import { GetEncryptionConfigCommandInput, GetEncryptionConfigCommandOutput } from "./commands/GetEncryptionConfigCommand";
9
10
  import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
10
11
  import { GetGroupsCommandInput, GetGroupsCommandOutput } from "./commands/GetGroupsCommand";
12
+ import { GetIndexingRulesCommandInput, GetIndexingRulesCommandOutput } from "./commands/GetIndexingRulesCommand";
11
13
  import { GetInsightCommandInput, GetInsightCommandOutput } from "./commands/GetInsightCommand";
12
14
  import { GetInsightEventsCommandInput, GetInsightEventsCommandOutput } from "./commands/GetInsightEventsCommand";
13
15
  import { GetInsightImpactGraphCommandInput, GetInsightImpactGraphCommandOutput } from "./commands/GetInsightImpactGraphCommand";
14
16
  import { GetInsightSummariesCommandInput, GetInsightSummariesCommandOutput } from "./commands/GetInsightSummariesCommand";
17
+ import { GetRetrievedTracesGraphCommandInput, GetRetrievedTracesGraphCommandOutput } from "./commands/GetRetrievedTracesGraphCommand";
15
18
  import { GetSamplingRulesCommandInput, GetSamplingRulesCommandOutput } from "./commands/GetSamplingRulesCommand";
16
19
  import { GetSamplingStatisticSummariesCommandInput, GetSamplingStatisticSummariesCommandOutput } from "./commands/GetSamplingStatisticSummariesCommand";
17
20
  import { GetSamplingTargetsCommandInput, GetSamplingTargetsCommandOutput } from "./commands/GetSamplingTargetsCommand";
18
21
  import { GetServiceGraphCommandInput, GetServiceGraphCommandOutput } from "./commands/GetServiceGraphCommand";
19
22
  import { GetTimeSeriesServiceStatisticsCommandInput, GetTimeSeriesServiceStatisticsCommandOutput } from "./commands/GetTimeSeriesServiceStatisticsCommand";
20
23
  import { GetTraceGraphCommandInput, GetTraceGraphCommandOutput } from "./commands/GetTraceGraphCommand";
24
+ import { GetTraceSegmentDestinationCommandInput, GetTraceSegmentDestinationCommandOutput } from "./commands/GetTraceSegmentDestinationCommand";
21
25
  import { GetTraceSummariesCommandInput, GetTraceSummariesCommandOutput } from "./commands/GetTraceSummariesCommand";
22
26
  import { ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput } from "./commands/ListResourcePoliciesCommand";
27
+ import { ListRetrievedTracesCommandInput, ListRetrievedTracesCommandOutput } from "./commands/ListRetrievedTracesCommand";
23
28
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
24
29
  import { PutEncryptionConfigCommandInput, PutEncryptionConfigCommandOutput } from "./commands/PutEncryptionConfigCommand";
25
30
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
26
31
  import { PutTelemetryRecordsCommandInput, PutTelemetryRecordsCommandOutput } from "./commands/PutTelemetryRecordsCommand";
27
32
  import { PutTraceSegmentsCommandInput, PutTraceSegmentsCommandOutput } from "./commands/PutTraceSegmentsCommand";
33
+ import { StartTraceRetrievalCommandInput, StartTraceRetrievalCommandOutput } from "./commands/StartTraceRetrievalCommand";
28
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
36
  import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
37
+ import { UpdateIndexingRuleCommandInput, UpdateIndexingRuleCommandOutput } from "./commands/UpdateIndexingRuleCommand";
31
38
  import { UpdateSamplingRuleCommandInput, UpdateSamplingRuleCommandOutput } from "./commands/UpdateSamplingRuleCommand";
39
+ import { UpdateTraceSegmentDestinationCommandInput, UpdateTraceSegmentDestinationCommandOutput } from "./commands/UpdateTraceSegmentDestinationCommand";
32
40
  import { XRayClient } from "./XRayClient";
33
41
  export interface XRay {
34
42
  /**
@@ -37,6 +45,12 @@ export interface XRay {
37
45
  batchGetTraces(args: BatchGetTracesCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetTracesCommandOutput>;
38
46
  batchGetTraces(args: BatchGetTracesCommandInput, cb: (err: any, data?: BatchGetTracesCommandOutput) => void): void;
39
47
  batchGetTraces(args: BatchGetTracesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetTracesCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link CancelTraceRetrievalCommand}
50
+ */
51
+ cancelTraceRetrieval(args: CancelTraceRetrievalCommandInput, options?: __HttpHandlerOptions): Promise<CancelTraceRetrievalCommandOutput>;
52
+ cancelTraceRetrieval(args: CancelTraceRetrievalCommandInput, cb: (err: any, data?: CancelTraceRetrievalCommandOutput) => void): void;
53
+ cancelTraceRetrieval(args: CancelTraceRetrievalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelTraceRetrievalCommandOutput) => void): void;
40
54
  /**
41
55
  * @see {@link CreateGroupCommand}
42
56
  */
@@ -90,6 +104,13 @@ export interface XRay {
90
104
  getGroups(args: GetGroupsCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupsCommandOutput>;
91
105
  getGroups(args: GetGroupsCommandInput, cb: (err: any, data?: GetGroupsCommandOutput) => void): void;
92
106
  getGroups(args: GetGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupsCommandOutput) => void): void;
107
+ /**
108
+ * @see {@link GetIndexingRulesCommand}
109
+ */
110
+ getIndexingRules(): Promise<GetIndexingRulesCommandOutput>;
111
+ getIndexingRules(args: GetIndexingRulesCommandInput, options?: __HttpHandlerOptions): Promise<GetIndexingRulesCommandOutput>;
112
+ getIndexingRules(args: GetIndexingRulesCommandInput, cb: (err: any, data?: GetIndexingRulesCommandOutput) => void): void;
113
+ getIndexingRules(args: GetIndexingRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIndexingRulesCommandOutput) => void): void;
93
114
  /**
94
115
  * @see {@link GetInsightCommand}
95
116
  */
@@ -114,6 +135,12 @@ export interface XRay {
114
135
  getInsightSummaries(args: GetInsightSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightSummariesCommandOutput>;
115
136
  getInsightSummaries(args: GetInsightSummariesCommandInput, cb: (err: any, data?: GetInsightSummariesCommandOutput) => void): void;
116
137
  getInsightSummaries(args: GetInsightSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightSummariesCommandOutput) => void): void;
138
+ /**
139
+ * @see {@link GetRetrievedTracesGraphCommand}
140
+ */
141
+ getRetrievedTracesGraph(args: GetRetrievedTracesGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetRetrievedTracesGraphCommandOutput>;
142
+ getRetrievedTracesGraph(args: GetRetrievedTracesGraphCommandInput, cb: (err: any, data?: GetRetrievedTracesGraphCommandOutput) => void): void;
143
+ getRetrievedTracesGraph(args: GetRetrievedTracesGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRetrievedTracesGraphCommandOutput) => void): void;
117
144
  /**
118
145
  * @see {@link GetSamplingRulesCommand}
119
146
  */
@@ -152,6 +179,13 @@ export interface XRay {
152
179
  getTraceGraph(args: GetTraceGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetTraceGraphCommandOutput>;
153
180
  getTraceGraph(args: GetTraceGraphCommandInput, cb: (err: any, data?: GetTraceGraphCommandOutput) => void): void;
154
181
  getTraceGraph(args: GetTraceGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraceGraphCommandOutput) => void): void;
182
+ /**
183
+ * @see {@link GetTraceSegmentDestinationCommand}
184
+ */
185
+ getTraceSegmentDestination(): Promise<GetTraceSegmentDestinationCommandOutput>;
186
+ getTraceSegmentDestination(args: GetTraceSegmentDestinationCommandInput, options?: __HttpHandlerOptions): Promise<GetTraceSegmentDestinationCommandOutput>;
187
+ getTraceSegmentDestination(args: GetTraceSegmentDestinationCommandInput, cb: (err: any, data?: GetTraceSegmentDestinationCommandOutput) => void): void;
188
+ getTraceSegmentDestination(args: GetTraceSegmentDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraceSegmentDestinationCommandOutput) => void): void;
155
189
  /**
156
190
  * @see {@link GetTraceSummariesCommand}
157
191
  */
@@ -165,6 +199,12 @@ export interface XRay {
165
199
  listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcePoliciesCommandOutput>;
166
200
  listResourcePolicies(args: ListResourcePoliciesCommandInput, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
167
201
  listResourcePolicies(args: ListResourcePoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
202
+ /**
203
+ * @see {@link ListRetrievedTracesCommand}
204
+ */
205
+ listRetrievedTraces(args: ListRetrievedTracesCommandInput, options?: __HttpHandlerOptions): Promise<ListRetrievedTracesCommandOutput>;
206
+ listRetrievedTraces(args: ListRetrievedTracesCommandInput, cb: (err: any, data?: ListRetrievedTracesCommandOutput) => void): void;
207
+ listRetrievedTraces(args: ListRetrievedTracesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRetrievedTracesCommandOutput) => void): void;
168
208
  /**
169
209
  * @see {@link ListTagsForResourceCommand}
170
210
  */
@@ -195,6 +235,12 @@ export interface XRay {
195
235
  putTraceSegments(args: PutTraceSegmentsCommandInput, options?: __HttpHandlerOptions): Promise<PutTraceSegmentsCommandOutput>;
196
236
  putTraceSegments(args: PutTraceSegmentsCommandInput, cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void): void;
197
237
  putTraceSegments(args: PutTraceSegmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void): void;
238
+ /**
239
+ * @see {@link StartTraceRetrievalCommand}
240
+ */
241
+ startTraceRetrieval(args: StartTraceRetrievalCommandInput, options?: __HttpHandlerOptions): Promise<StartTraceRetrievalCommandOutput>;
242
+ startTraceRetrieval(args: StartTraceRetrievalCommandInput, cb: (err: any, data?: StartTraceRetrievalCommandOutput) => void): void;
243
+ startTraceRetrieval(args: StartTraceRetrievalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTraceRetrievalCommandOutput) => void): void;
198
244
  /**
199
245
  * @see {@link TagResourceCommand}
200
246
  */
@@ -214,12 +260,25 @@ export interface XRay {
214
260
  updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
215
261
  updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
216
262
  updateGroup(args: UpdateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
263
+ /**
264
+ * @see {@link UpdateIndexingRuleCommand}
265
+ */
266
+ updateIndexingRule(args: UpdateIndexingRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateIndexingRuleCommandOutput>;
267
+ updateIndexingRule(args: UpdateIndexingRuleCommandInput, cb: (err: any, data?: UpdateIndexingRuleCommandOutput) => void): void;
268
+ updateIndexingRule(args: UpdateIndexingRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateIndexingRuleCommandOutput) => void): void;
217
269
  /**
218
270
  * @see {@link UpdateSamplingRuleCommand}
219
271
  */
220
272
  updateSamplingRule(args: UpdateSamplingRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSamplingRuleCommandOutput>;
221
273
  updateSamplingRule(args: UpdateSamplingRuleCommandInput, cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void): void;
222
274
  updateSamplingRule(args: UpdateSamplingRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void): void;
275
+ /**
276
+ * @see {@link UpdateTraceSegmentDestinationCommand}
277
+ */
278
+ updateTraceSegmentDestination(): Promise<UpdateTraceSegmentDestinationCommandOutput>;
279
+ updateTraceSegmentDestination(args: UpdateTraceSegmentDestinationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTraceSegmentDestinationCommandOutput>;
280
+ updateTraceSegmentDestination(args: UpdateTraceSegmentDestinationCommandInput, cb: (err: any, data?: UpdateTraceSegmentDestinationCommandOutput) => void): void;
281
+ updateTraceSegmentDestination(args: UpdateTraceSegmentDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTraceSegmentDestinationCommandOutput) => void): void;
223
282
  }
224
283
  /**
225
284
  * <p>Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps