@aws-sdk/client-xray 3.927.0 → 3.929.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 (59) hide show
  1. package/dist-cjs/index.js +1651 -2118
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/XRayClient.js +2 -0
  4. package/dist-es/commands/BatchGetTracesCommand.js +3 -9
  5. package/dist-es/commands/CancelTraceRetrievalCommand.js +3 -9
  6. package/dist-es/commands/CreateGroupCommand.js +3 -9
  7. package/dist-es/commands/CreateSamplingRuleCommand.js +3 -9
  8. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  10. package/dist-es/commands/DeleteSamplingRuleCommand.js +3 -9
  11. package/dist-es/commands/GetEncryptionConfigCommand.js +3 -9
  12. package/dist-es/commands/GetGroupCommand.js +3 -9
  13. package/dist-es/commands/GetGroupsCommand.js +3 -9
  14. package/dist-es/commands/GetIndexingRulesCommand.js +3 -9
  15. package/dist-es/commands/GetInsightCommand.js +3 -9
  16. package/dist-es/commands/GetInsightEventsCommand.js +3 -9
  17. package/dist-es/commands/GetInsightImpactGraphCommand.js +3 -9
  18. package/dist-es/commands/GetInsightSummariesCommand.js +3 -9
  19. package/dist-es/commands/GetRetrievedTracesGraphCommand.js +3 -9
  20. package/dist-es/commands/GetSamplingRulesCommand.js +3 -9
  21. package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +3 -9
  22. package/dist-es/commands/GetSamplingTargetsCommand.js +3 -9
  23. package/dist-es/commands/GetServiceGraphCommand.js +3 -9
  24. package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +3 -9
  25. package/dist-es/commands/GetTraceGraphCommand.js +3 -9
  26. package/dist-es/commands/GetTraceSegmentDestinationCommand.js +3 -9
  27. package/dist-es/commands/GetTraceSummariesCommand.js +3 -9
  28. package/dist-es/commands/ListResourcePoliciesCommand.js +3 -9
  29. package/dist-es/commands/ListRetrievedTracesCommand.js +3 -9
  30. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  31. package/dist-es/commands/PutEncryptionConfigCommand.js +3 -9
  32. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  33. package/dist-es/commands/PutTelemetryRecordsCommand.js +3 -9
  34. package/dist-es/commands/PutTraceSegmentsCommand.js +3 -9
  35. package/dist-es/commands/StartTraceRetrievalCommand.js +3 -9
  36. package/dist-es/commands/TagResourceCommand.js +3 -9
  37. package/dist-es/commands/UntagResourceCommand.js +3 -9
  38. package/dist-es/commands/UpdateGroupCommand.js +3 -9
  39. package/dist-es/commands/UpdateIndexingRuleCommand.js +3 -9
  40. package/dist-es/commands/UpdateSamplingRuleCommand.js +3 -9
  41. package/dist-es/commands/UpdateTraceSegmentDestinationCommand.js +3 -9
  42. package/dist-es/runtimeConfig.shared.js +2 -0
  43. package/dist-es/schemas/schemas_0.js +1554 -0
  44. package/dist-types/XRayClient.d.ts +10 -1
  45. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  46. package/dist-types/runtimeConfig.d.ts +1 -0
  47. package/dist-types/runtimeConfig.native.d.ts +1 -0
  48. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  49. package/dist-types/schemas/schemas_0.d.ts +250 -0
  50. package/dist-types/ts3.4/XRayClient.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +256 -0
  56. package/package.json +5 -5
  57. package/dist-es/protocols/Aws_restJson1.js +0 -1823
  58. package/dist-types/protocols/Aws_restJson1.d.ts +0 -344
  59. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -461
@@ -1,1823 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
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 { IndexingRuleValueUpdate, InvalidPolicyRevisionIdException, InvalidRequestException, LockoutPreventionException, MalformedPolicyDocumentException, PolicyCountLimitExceededException, PolicySizeLimitExceededException, ResourceNotFoundException, RuleLimitExceededException, ThrottledException, TooManyTagsException, } from "../models/models_0";
5
- import { XRayServiceException as __BaseException } from "../models/XRayServiceException";
6
- export const se_BatchGetTracesCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/Traces");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- NextToken: [],
15
- TraceIds: (_) => _json(_),
16
- }));
17
- b.m("POST").h(headers).b(body);
18
- return b.build();
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
- };
33
- export const se_CreateGroupCommand = async (input, context) => {
34
- const b = rb(input, context);
35
- const headers = {
36
- "content-type": "application/json",
37
- };
38
- b.bp("/CreateGroup");
39
- let body;
40
- body = JSON.stringify(take(input, {
41
- FilterExpression: [],
42
- GroupName: [],
43
- InsightsConfiguration: (_) => _json(_),
44
- Tags: (_) => _json(_),
45
- }));
46
- b.m("POST").h(headers).b(body);
47
- return b.build();
48
- };
49
- export const se_CreateSamplingRuleCommand = async (input, context) => {
50
- const b = rb(input, context);
51
- const headers = {
52
- "content-type": "application/json",
53
- };
54
- b.bp("/CreateSamplingRule");
55
- let body;
56
- body = JSON.stringify(take(input, {
57
- SamplingRule: (_) => se_SamplingRule(_, context),
58
- Tags: (_) => _json(_),
59
- }));
60
- b.m("POST").h(headers).b(body);
61
- return b.build();
62
- };
63
- export const se_DeleteGroupCommand = async (input, context) => {
64
- const b = rb(input, context);
65
- const headers = {
66
- "content-type": "application/json",
67
- };
68
- b.bp("/DeleteGroup");
69
- let body;
70
- body = JSON.stringify(take(input, {
71
- GroupARN: [],
72
- GroupName: [],
73
- }));
74
- b.m("POST").h(headers).b(body);
75
- return b.build();
76
- };
77
- export const se_DeleteResourcePolicyCommand = async (input, context) => {
78
- const b = rb(input, context);
79
- const headers = {
80
- "content-type": "application/json",
81
- };
82
- b.bp("/DeleteResourcePolicy");
83
- let body;
84
- body = JSON.stringify(take(input, {
85
- PolicyName: [],
86
- PolicyRevisionId: [],
87
- }));
88
- b.m("POST").h(headers).b(body);
89
- return b.build();
90
- };
91
- export const se_DeleteSamplingRuleCommand = async (input, context) => {
92
- const b = rb(input, context);
93
- const headers = {
94
- "content-type": "application/json",
95
- };
96
- b.bp("/DeleteSamplingRule");
97
- let body;
98
- body = JSON.stringify(take(input, {
99
- RuleARN: [],
100
- RuleName: [],
101
- }));
102
- b.m("POST").h(headers).b(body);
103
- return b.build();
104
- };
105
- export const se_GetEncryptionConfigCommand = async (input, context) => {
106
- const b = rb(input, context);
107
- const headers = {};
108
- b.bp("/EncryptionConfig");
109
- let body;
110
- b.m("POST").h(headers).b(body);
111
- return b.build();
112
- };
113
- export const se_GetGroupCommand = async (input, context) => {
114
- const b = rb(input, context);
115
- const headers = {
116
- "content-type": "application/json",
117
- };
118
- b.bp("/GetGroup");
119
- let body;
120
- body = JSON.stringify(take(input, {
121
- GroupARN: [],
122
- GroupName: [],
123
- }));
124
- b.m("POST").h(headers).b(body);
125
- return b.build();
126
- };
127
- export const se_GetGroupsCommand = async (input, context) => {
128
- const b = rb(input, context);
129
- const headers = {
130
- "content-type": "application/json",
131
- };
132
- b.bp("/Groups");
133
- let body;
134
- body = JSON.stringify(take(input, {
135
- NextToken: [],
136
- }));
137
- b.m("POST").h(headers).b(body);
138
- return b.build();
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
- };
153
- export const se_GetInsightCommand = async (input, context) => {
154
- const b = rb(input, context);
155
- const headers = {
156
- "content-type": "application/json",
157
- };
158
- b.bp("/Insight");
159
- let body;
160
- body = JSON.stringify(take(input, {
161
- InsightId: [],
162
- }));
163
- b.m("POST").h(headers).b(body);
164
- return b.build();
165
- };
166
- export const se_GetInsightEventsCommand = async (input, context) => {
167
- const b = rb(input, context);
168
- const headers = {
169
- "content-type": "application/json",
170
- };
171
- b.bp("/InsightEvents");
172
- let body;
173
- body = JSON.stringify(take(input, {
174
- InsightId: [],
175
- MaxResults: [],
176
- NextToken: [],
177
- }));
178
- b.m("POST").h(headers).b(body);
179
- return b.build();
180
- };
181
- export const se_GetInsightImpactGraphCommand = async (input, context) => {
182
- const b = rb(input, context);
183
- const headers = {
184
- "content-type": "application/json",
185
- };
186
- b.bp("/InsightImpactGraph");
187
- let body;
188
- body = JSON.stringify(take(input, {
189
- EndTime: (_) => _.getTime() / 1_000,
190
- InsightId: [],
191
- NextToken: [],
192
- StartTime: (_) => _.getTime() / 1_000,
193
- }));
194
- b.m("POST").h(headers).b(body);
195
- return b.build();
196
- };
197
- export const se_GetInsightSummariesCommand = async (input, context) => {
198
- const b = rb(input, context);
199
- const headers = {
200
- "content-type": "application/json",
201
- };
202
- b.bp("/InsightSummaries");
203
- let body;
204
- body = JSON.stringify(take(input, {
205
- EndTime: (_) => _.getTime() / 1_000,
206
- GroupARN: [],
207
- GroupName: [],
208
- MaxResults: [],
209
- NextToken: [],
210
- StartTime: (_) => _.getTime() / 1_000,
211
- States: (_) => _json(_),
212
- }));
213
- b.m("POST").h(headers).b(body);
214
- return b.build();
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
- };
230
- export const se_GetSamplingRulesCommand = async (input, context) => {
231
- const b = rb(input, context);
232
- const headers = {
233
- "content-type": "application/json",
234
- };
235
- b.bp("/GetSamplingRules");
236
- let body;
237
- body = JSON.stringify(take(input, {
238
- NextToken: [],
239
- }));
240
- b.m("POST").h(headers).b(body);
241
- return b.build();
242
- };
243
- export const se_GetSamplingStatisticSummariesCommand = async (input, context) => {
244
- const b = rb(input, context);
245
- const headers = {
246
- "content-type": "application/json",
247
- };
248
- b.bp("/SamplingStatisticSummaries");
249
- let body;
250
- body = JSON.stringify(take(input, {
251
- NextToken: [],
252
- }));
253
- b.m("POST").h(headers).b(body);
254
- return b.build();
255
- };
256
- export const se_GetSamplingTargetsCommand = async (input, context) => {
257
- const b = rb(input, context);
258
- const headers = {
259
- "content-type": "application/json",
260
- };
261
- b.bp("/SamplingTargets");
262
- let body;
263
- body = JSON.stringify(take(input, {
264
- SamplingBoostStatisticsDocuments: (_) => se_SamplingBoostStatisticsDocumentList(_, context),
265
- SamplingStatisticsDocuments: (_) => se_SamplingStatisticsDocumentList(_, context),
266
- }));
267
- b.m("POST").h(headers).b(body);
268
- return b.build();
269
- };
270
- export const se_GetServiceGraphCommand = async (input, context) => {
271
- const b = rb(input, context);
272
- const headers = {
273
- "content-type": "application/json",
274
- };
275
- b.bp("/ServiceGraph");
276
- let body;
277
- body = JSON.stringify(take(input, {
278
- EndTime: (_) => _.getTime() / 1_000,
279
- GroupARN: [],
280
- GroupName: [],
281
- NextToken: [],
282
- StartTime: (_) => _.getTime() / 1_000,
283
- }));
284
- b.m("POST").h(headers).b(body);
285
- return b.build();
286
- };
287
- export const se_GetTimeSeriesServiceStatisticsCommand = async (input, context) => {
288
- const b = rb(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/TimeSeriesServiceStatistics");
293
- let body;
294
- body = JSON.stringify(take(input, {
295
- EndTime: (_) => _.getTime() / 1_000,
296
- EntitySelectorExpression: [],
297
- ForecastStatistics: [],
298
- GroupARN: [],
299
- GroupName: [],
300
- NextToken: [],
301
- Period: [],
302
- StartTime: (_) => _.getTime() / 1_000,
303
- }));
304
- b.m("POST").h(headers).b(body);
305
- return b.build();
306
- };
307
- export const se_GetTraceGraphCommand = async (input, context) => {
308
- const b = rb(input, context);
309
- const headers = {
310
- "content-type": "application/json",
311
- };
312
- b.bp("/TraceGraph");
313
- let body;
314
- body = JSON.stringify(take(input, {
315
- NextToken: [],
316
- TraceIds: (_) => _json(_),
317
- }));
318
- b.m("POST").h(headers).b(body);
319
- return b.build();
320
- };
321
- export const se_GetTraceSegmentDestinationCommand = async (input, context) => {
322
- const b = rb(input, context);
323
- const headers = {};
324
- b.bp("/GetTraceSegmentDestination");
325
- let body;
326
- b.m("POST").h(headers).b(body);
327
- return b.build();
328
- };
329
- export const se_GetTraceSummariesCommand = async (input, context) => {
330
- const b = rb(input, context);
331
- const headers = {
332
- "content-type": "application/json",
333
- };
334
- b.bp("/TraceSummaries");
335
- let body;
336
- body = JSON.stringify(take(input, {
337
- EndTime: (_) => _.getTime() / 1_000,
338
- FilterExpression: [],
339
- NextToken: [],
340
- Sampling: [],
341
- SamplingStrategy: (_) => se_SamplingStrategy(_, context),
342
- StartTime: (_) => _.getTime() / 1_000,
343
- TimeRangeType: [],
344
- }));
345
- b.m("POST").h(headers).b(body);
346
- return b.build();
347
- };
348
- export const se_ListResourcePoliciesCommand = async (input, context) => {
349
- const b = rb(input, context);
350
- const headers = {
351
- "content-type": "application/json",
352
- };
353
- b.bp("/ListResourcePolicies");
354
- let body;
355
- body = JSON.stringify(take(input, {
356
- NextToken: [],
357
- }));
358
- b.m("POST").h(headers).b(body);
359
- return b.build();
360
- };
361
- export const se_ListRetrievedTracesCommand = async (input, context) => {
362
- const b = rb(input, context);
363
- const headers = {
364
- "content-type": "application/json",
365
- };
366
- b.bp("/ListRetrievedTraces");
367
- let body;
368
- body = JSON.stringify(take(input, {
369
- NextToken: [],
370
- RetrievalToken: [],
371
- TraceFormat: [],
372
- }));
373
- b.m("POST").h(headers).b(body);
374
- return b.build();
375
- };
376
- export const se_ListTagsForResourceCommand = async (input, context) => {
377
- const b = rb(input, context);
378
- const headers = {
379
- "content-type": "application/json",
380
- };
381
- b.bp("/ListTagsForResource");
382
- let body;
383
- body = JSON.stringify(take(input, {
384
- NextToken: [],
385
- ResourceARN: [],
386
- }));
387
- b.m("POST").h(headers).b(body);
388
- return b.build();
389
- };
390
- export const se_PutEncryptionConfigCommand = async (input, context) => {
391
- const b = rb(input, context);
392
- const headers = {
393
- "content-type": "application/json",
394
- };
395
- b.bp("/PutEncryptionConfig");
396
- let body;
397
- body = JSON.stringify(take(input, {
398
- KeyId: [],
399
- Type: [],
400
- }));
401
- b.m("POST").h(headers).b(body);
402
- return b.build();
403
- };
404
- export const se_PutResourcePolicyCommand = async (input, context) => {
405
- const b = rb(input, context);
406
- const headers = {
407
- "content-type": "application/json",
408
- };
409
- b.bp("/PutResourcePolicy");
410
- let body;
411
- body = JSON.stringify(take(input, {
412
- BypassPolicyLockoutCheck: [],
413
- PolicyDocument: [],
414
- PolicyName: [],
415
- PolicyRevisionId: [],
416
- }));
417
- b.m("POST").h(headers).b(body);
418
- return b.build();
419
- };
420
- export const se_PutTelemetryRecordsCommand = async (input, context) => {
421
- const b = rb(input, context);
422
- const headers = {
423
- "content-type": "application/json",
424
- };
425
- b.bp("/TelemetryRecords");
426
- let body;
427
- body = JSON.stringify(take(input, {
428
- EC2InstanceId: [],
429
- Hostname: [],
430
- ResourceARN: [],
431
- TelemetryRecords: (_) => se_TelemetryRecordList(_, context),
432
- }));
433
- b.m("POST").h(headers).b(body);
434
- return b.build();
435
- };
436
- export const se_PutTraceSegmentsCommand = async (input, context) => {
437
- const b = rb(input, context);
438
- const headers = {
439
- "content-type": "application/json",
440
- };
441
- b.bp("/TraceSegments");
442
- let body;
443
- body = JSON.stringify(take(input, {
444
- TraceSegmentDocuments: (_) => _json(_),
445
- }));
446
- b.m("POST").h(headers).b(body);
447
- return b.build();
448
- };
449
- export const se_StartTraceRetrievalCommand = async (input, context) => {
450
- const b = rb(input, context);
451
- const headers = {
452
- "content-type": "application/json",
453
- };
454
- b.bp("/StartTraceRetrieval");
455
- let body;
456
- body = JSON.stringify(take(input, {
457
- EndTime: (_) => _.getTime() / 1_000,
458
- StartTime: (_) => _.getTime() / 1_000,
459
- TraceIds: (_) => _json(_),
460
- }));
461
- b.m("POST").h(headers).b(body);
462
- return b.build();
463
- };
464
- export const se_TagResourceCommand = async (input, context) => {
465
- const b = rb(input, context);
466
- const headers = {
467
- "content-type": "application/json",
468
- };
469
- b.bp("/TagResource");
470
- let body;
471
- body = JSON.stringify(take(input, {
472
- ResourceARN: [],
473
- Tags: (_) => _json(_),
474
- }));
475
- b.m("POST").h(headers).b(body);
476
- return b.build();
477
- };
478
- export const se_UntagResourceCommand = async (input, context) => {
479
- const b = rb(input, context);
480
- const headers = {
481
- "content-type": "application/json",
482
- };
483
- b.bp("/UntagResource");
484
- let body;
485
- body = JSON.stringify(take(input, {
486
- ResourceARN: [],
487
- TagKeys: (_) => _json(_),
488
- }));
489
- b.m("POST").h(headers).b(body);
490
- return b.build();
491
- };
492
- export const se_UpdateGroupCommand = async (input, context) => {
493
- const b = rb(input, context);
494
- const headers = {
495
- "content-type": "application/json",
496
- };
497
- b.bp("/UpdateGroup");
498
- let body;
499
- body = JSON.stringify(take(input, {
500
- FilterExpression: [],
501
- GroupARN: [],
502
- GroupName: [],
503
- InsightsConfiguration: (_) => _json(_),
504
- }));
505
- b.m("POST").h(headers).b(body);
506
- return b.build();
507
- };
508
- export const se_UpdateIndexingRuleCommand = async (input, context) => {
509
- const b = rb(input, context);
510
- const headers = {
511
- "content-type": "application/json",
512
- };
513
- b.bp("/UpdateIndexingRule");
514
- let body;
515
- body = JSON.stringify(take(input, {
516
- Name: [],
517
- Rule: (_) => se_IndexingRuleValueUpdate(_, context),
518
- }));
519
- b.m("POST").h(headers).b(body);
520
- return b.build();
521
- };
522
- export const se_UpdateSamplingRuleCommand = async (input, context) => {
523
- const b = rb(input, context);
524
- const headers = {
525
- "content-type": "application/json",
526
- };
527
- b.bp("/UpdateSamplingRule");
528
- let body;
529
- body = JSON.stringify(take(input, {
530
- SamplingRuleUpdate: (_) => se_SamplingRuleUpdate(_, context),
531
- }));
532
- b.m("POST").h(headers).b(body);
533
- return b.build();
534
- };
535
- export const se_UpdateTraceSegmentDestinationCommand = async (input, context) => {
536
- const b = rb(input, context);
537
- const headers = {
538
- "content-type": "application/json",
539
- };
540
- b.bp("/UpdateTraceSegmentDestination");
541
- let body;
542
- body = JSON.stringify(take(input, {
543
- Destination: [],
544
- }));
545
- b.m("POST").h(headers).b(body);
546
- return b.build();
547
- };
548
- export const de_BatchGetTracesCommand = async (output, context) => {
549
- if (output.statusCode !== 200 && output.statusCode >= 300) {
550
- return de_CommandError(output, context);
551
- }
552
- const contents = map({
553
- $metadata: deserializeMetadata(output),
554
- });
555
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
556
- const doc = take(data, {
557
- NextToken: __expectString,
558
- Traces: (_) => de_TraceList(_, context),
559
- UnprocessedTraceIds: _json,
560
- });
561
- Object.assign(contents, doc);
562
- return contents;
563
- };
564
- export const de_CancelTraceRetrievalCommand = async (output, context) => {
565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return de_CommandError(output, context);
567
- }
568
- const contents = map({
569
- $metadata: deserializeMetadata(output),
570
- });
571
- await collectBody(output.body, context);
572
- return contents;
573
- };
574
- export const de_CreateGroupCommand = async (output, context) => {
575
- if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const contents = map({
579
- $metadata: deserializeMetadata(output),
580
- });
581
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
582
- const doc = take(data, {
583
- Group: _json,
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- export const de_CreateSamplingRuleCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
596
- const doc = take(data, {
597
- SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
598
- });
599
- Object.assign(contents, doc);
600
- return contents;
601
- };
602
- export const de_DeleteGroupCommand = async (output, context) => {
603
- if (output.statusCode !== 200 && output.statusCode >= 300) {
604
- return de_CommandError(output, context);
605
- }
606
- const contents = map({
607
- $metadata: deserializeMetadata(output),
608
- });
609
- await collectBody(output.body, context);
610
- return contents;
611
- };
612
- export const de_DeleteResourcePolicyCommand = async (output, context) => {
613
- if (output.statusCode !== 200 && output.statusCode >= 300) {
614
- return de_CommandError(output, context);
615
- }
616
- const contents = map({
617
- $metadata: deserializeMetadata(output),
618
- });
619
- await collectBody(output.body, context);
620
- return contents;
621
- };
622
- export const de_DeleteSamplingRuleCommand = async (output, context) => {
623
- if (output.statusCode !== 200 && output.statusCode >= 300) {
624
- return de_CommandError(output, context);
625
- }
626
- const contents = map({
627
- $metadata: deserializeMetadata(output),
628
- });
629
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
630
- const doc = take(data, {
631
- SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
632
- });
633
- Object.assign(contents, doc);
634
- return contents;
635
- };
636
- export const de_GetEncryptionConfigCommand = async (output, context) => {
637
- if (output.statusCode !== 200 && output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const contents = map({
641
- $metadata: deserializeMetadata(output),
642
- });
643
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
644
- const doc = take(data, {
645
- EncryptionConfig: _json,
646
- });
647
- Object.assign(contents, doc);
648
- return contents;
649
- };
650
- export const de_GetGroupCommand = async (output, context) => {
651
- if (output.statusCode !== 200 && output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const contents = map({
655
- $metadata: deserializeMetadata(output),
656
- });
657
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
658
- const doc = take(data, {
659
- Group: _json,
660
- });
661
- Object.assign(contents, doc);
662
- return contents;
663
- };
664
- export const de_GetGroupsCommand = async (output, context) => {
665
- if (output.statusCode !== 200 && output.statusCode >= 300) {
666
- return de_CommandError(output, context);
667
- }
668
- const contents = map({
669
- $metadata: deserializeMetadata(output),
670
- });
671
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
672
- const doc = take(data, {
673
- Groups: _json,
674
- NextToken: __expectString,
675
- });
676
- Object.assign(contents, doc);
677
- return contents;
678
- };
679
- export const de_GetIndexingRulesCommand = async (output, context) => {
680
- if (output.statusCode !== 200 && output.statusCode >= 300) {
681
- return de_CommandError(output, context);
682
- }
683
- const contents = map({
684
- $metadata: deserializeMetadata(output),
685
- });
686
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
687
- const doc = take(data, {
688
- IndexingRules: (_) => de_IndexingRuleList(_, context),
689
- NextToken: __expectString,
690
- });
691
- Object.assign(contents, doc);
692
- return contents;
693
- };
694
- export const de_GetInsightCommand = async (output, context) => {
695
- if (output.statusCode !== 200 && output.statusCode >= 300) {
696
- return de_CommandError(output, context);
697
- }
698
- const contents = map({
699
- $metadata: deserializeMetadata(output),
700
- });
701
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
702
- const doc = take(data, {
703
- Insight: (_) => de_Insight(_, context),
704
- });
705
- Object.assign(contents, doc);
706
- return contents;
707
- };
708
- export const de_GetInsightEventsCommand = async (output, context) => {
709
- if (output.statusCode !== 200 && output.statusCode >= 300) {
710
- return de_CommandError(output, context);
711
- }
712
- const contents = map({
713
- $metadata: deserializeMetadata(output),
714
- });
715
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
716
- const doc = take(data, {
717
- InsightEvents: (_) => de_InsightEventList(_, context),
718
- NextToken: __expectString,
719
- });
720
- Object.assign(contents, doc);
721
- return contents;
722
- };
723
- export const de_GetInsightImpactGraphCommand = async (output, context) => {
724
- if (output.statusCode !== 200 && output.statusCode >= 300) {
725
- return de_CommandError(output, context);
726
- }
727
- const contents = map({
728
- $metadata: deserializeMetadata(output),
729
- });
730
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
731
- const doc = take(data, {
732
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
733
- InsightId: __expectString,
734
- NextToken: __expectString,
735
- ServiceGraphEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
736
- ServiceGraphStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
737
- Services: _json,
738
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
739
- });
740
- Object.assign(contents, doc);
741
- return contents;
742
- };
743
- export const de_GetInsightSummariesCommand = async (output, context) => {
744
- if (output.statusCode !== 200 && output.statusCode >= 300) {
745
- return de_CommandError(output, context);
746
- }
747
- const contents = map({
748
- $metadata: deserializeMetadata(output),
749
- });
750
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
751
- const doc = take(data, {
752
- InsightSummaries: (_) => de_InsightSummaryList(_, context),
753
- NextToken: __expectString,
754
- });
755
- Object.assign(contents, doc);
756
- return contents;
757
- };
758
- export const de_GetRetrievedTracesGraphCommand = async (output, context) => {
759
- if (output.statusCode !== 200 && output.statusCode >= 300) {
760
- return de_CommandError(output, context);
761
- }
762
- const contents = map({
763
- $metadata: deserializeMetadata(output),
764
- });
765
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
766
- const doc = take(data, {
767
- NextToken: __expectString,
768
- RetrievalStatus: __expectString,
769
- Services: (_) => de_RetrievedServicesList(_, context),
770
- });
771
- Object.assign(contents, doc);
772
- return contents;
773
- };
774
- export const de_GetSamplingRulesCommand = async (output, context) => {
775
- if (output.statusCode !== 200 && output.statusCode >= 300) {
776
- return de_CommandError(output, context);
777
- }
778
- const contents = map({
779
- $metadata: deserializeMetadata(output),
780
- });
781
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
782
- const doc = take(data, {
783
- NextToken: __expectString,
784
- SamplingRuleRecords: (_) => de_SamplingRuleRecordList(_, context),
785
- });
786
- Object.assign(contents, doc);
787
- return contents;
788
- };
789
- export const de_GetSamplingStatisticSummariesCommand = async (output, context) => {
790
- if (output.statusCode !== 200 && output.statusCode >= 300) {
791
- return de_CommandError(output, context);
792
- }
793
- const contents = map({
794
- $metadata: deserializeMetadata(output),
795
- });
796
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
797
- const doc = take(data, {
798
- NextToken: __expectString,
799
- SamplingStatisticSummaries: (_) => de_SamplingStatisticSummaryList(_, context),
800
- });
801
- Object.assign(contents, doc);
802
- return contents;
803
- };
804
- export const de_GetSamplingTargetsCommand = async (output, context) => {
805
- if (output.statusCode !== 200 && output.statusCode >= 300) {
806
- return de_CommandError(output, context);
807
- }
808
- const contents = map({
809
- $metadata: deserializeMetadata(output),
810
- });
811
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
812
- const doc = take(data, {
813
- LastRuleModification: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
814
- SamplingTargetDocuments: (_) => de_SamplingTargetDocumentList(_, context),
815
- UnprocessedBoostStatistics: _json,
816
- UnprocessedStatistics: _json,
817
- });
818
- Object.assign(contents, doc);
819
- return contents;
820
- };
821
- export const de_GetServiceGraphCommand = async (output, context) => {
822
- if (output.statusCode !== 200 && output.statusCode >= 300) {
823
- return de_CommandError(output, context);
824
- }
825
- const contents = map({
826
- $metadata: deserializeMetadata(output),
827
- });
828
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
829
- const doc = take(data, {
830
- ContainsOldGroupVersions: __expectBoolean,
831
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
832
- NextToken: __expectString,
833
- Services: (_) => de_ServiceList(_, context),
834
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
835
- });
836
- Object.assign(contents, doc);
837
- return contents;
838
- };
839
- export const de_GetTimeSeriesServiceStatisticsCommand = async (output, context) => {
840
- if (output.statusCode !== 200 && output.statusCode >= 300) {
841
- return de_CommandError(output, context);
842
- }
843
- const contents = map({
844
- $metadata: deserializeMetadata(output),
845
- });
846
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
847
- const doc = take(data, {
848
- ContainsOldGroupVersions: __expectBoolean,
849
- NextToken: __expectString,
850
- TimeSeriesServiceStatistics: (_) => de_TimeSeriesServiceStatisticsList(_, context),
851
- });
852
- Object.assign(contents, doc);
853
- return contents;
854
- };
855
- export const de_GetTraceGraphCommand = async (output, context) => {
856
- if (output.statusCode !== 200 && output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const contents = map({
860
- $metadata: deserializeMetadata(output),
861
- });
862
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
863
- const doc = take(data, {
864
- NextToken: __expectString,
865
- Services: (_) => de_ServiceList(_, context),
866
- });
867
- Object.assign(contents, doc);
868
- return contents;
869
- };
870
- export const de_GetTraceSegmentDestinationCommand = async (output, context) => {
871
- if (output.statusCode !== 200 && output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const contents = map({
875
- $metadata: deserializeMetadata(output),
876
- });
877
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
878
- const doc = take(data, {
879
- Destination: __expectString,
880
- Status: __expectString,
881
- });
882
- Object.assign(contents, doc);
883
- return contents;
884
- };
885
- export const de_GetTraceSummariesCommand = async (output, context) => {
886
- if (output.statusCode !== 200 && output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const contents = map({
890
- $metadata: deserializeMetadata(output),
891
- });
892
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
893
- const doc = take(data, {
894
- ApproximateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
895
- NextToken: __expectString,
896
- TraceSummaries: (_) => de_TraceSummaryList(_, context),
897
- TracesProcessedCount: __expectLong,
898
- });
899
- Object.assign(contents, doc);
900
- return contents;
901
- };
902
- export const de_ListResourcePoliciesCommand = async (output, context) => {
903
- if (output.statusCode !== 200 && output.statusCode >= 300) {
904
- return de_CommandError(output, context);
905
- }
906
- const contents = map({
907
- $metadata: deserializeMetadata(output),
908
- });
909
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
910
- const doc = take(data, {
911
- NextToken: __expectString,
912
- ResourcePolicies: (_) => de_ResourcePolicyList(_, context),
913
- });
914
- Object.assign(contents, doc);
915
- return contents;
916
- };
917
- export const de_ListRetrievedTracesCommand = async (output, context) => {
918
- if (output.statusCode !== 200 && output.statusCode >= 300) {
919
- return de_CommandError(output, context);
920
- }
921
- const contents = map({
922
- $metadata: deserializeMetadata(output),
923
- });
924
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
925
- const doc = take(data, {
926
- NextToken: __expectString,
927
- RetrievalStatus: __expectString,
928
- TraceFormat: __expectString,
929
- Traces: (_) => de_TraceSpanList(_, context),
930
- });
931
- Object.assign(contents, doc);
932
- return contents;
933
- };
934
- export const de_ListTagsForResourceCommand = async (output, context) => {
935
- if (output.statusCode !== 200 && output.statusCode >= 300) {
936
- return de_CommandError(output, context);
937
- }
938
- const contents = map({
939
- $metadata: deserializeMetadata(output),
940
- });
941
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
942
- const doc = take(data, {
943
- NextToken: __expectString,
944
- Tags: _json,
945
- });
946
- Object.assign(contents, doc);
947
- return contents;
948
- };
949
- export const de_PutEncryptionConfigCommand = async (output, context) => {
950
- if (output.statusCode !== 200 && output.statusCode >= 300) {
951
- return de_CommandError(output, context);
952
- }
953
- const contents = map({
954
- $metadata: deserializeMetadata(output),
955
- });
956
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
957
- const doc = take(data, {
958
- EncryptionConfig: _json,
959
- });
960
- Object.assign(contents, doc);
961
- return contents;
962
- };
963
- export const de_PutResourcePolicyCommand = async (output, context) => {
964
- if (output.statusCode !== 200 && output.statusCode >= 300) {
965
- return de_CommandError(output, context);
966
- }
967
- const contents = map({
968
- $metadata: deserializeMetadata(output),
969
- });
970
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
971
- const doc = take(data, {
972
- ResourcePolicy: (_) => de_ResourcePolicy(_, context),
973
- });
974
- Object.assign(contents, doc);
975
- return contents;
976
- };
977
- export const de_PutTelemetryRecordsCommand = async (output, context) => {
978
- if (output.statusCode !== 200 && output.statusCode >= 300) {
979
- return de_CommandError(output, context);
980
- }
981
- const contents = map({
982
- $metadata: deserializeMetadata(output),
983
- });
984
- await collectBody(output.body, context);
985
- return contents;
986
- };
987
- export const de_PutTraceSegmentsCommand = async (output, context) => {
988
- if (output.statusCode !== 200 && output.statusCode >= 300) {
989
- return de_CommandError(output, context);
990
- }
991
- const contents = map({
992
- $metadata: deserializeMetadata(output),
993
- });
994
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
995
- const doc = take(data, {
996
- UnprocessedTraceSegments: _json,
997
- });
998
- Object.assign(contents, doc);
999
- return contents;
1000
- };
1001
- export const de_StartTraceRetrievalCommand = async (output, context) => {
1002
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1003
- return de_CommandError(output, context);
1004
- }
1005
- const contents = map({
1006
- $metadata: deserializeMetadata(output),
1007
- });
1008
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1009
- const doc = take(data, {
1010
- RetrievalToken: __expectString,
1011
- });
1012
- Object.assign(contents, doc);
1013
- return contents;
1014
- };
1015
- export const de_TagResourceCommand = async (output, context) => {
1016
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1017
- return de_CommandError(output, context);
1018
- }
1019
- const contents = map({
1020
- $metadata: deserializeMetadata(output),
1021
- });
1022
- await collectBody(output.body, context);
1023
- return contents;
1024
- };
1025
- export const de_UntagResourceCommand = async (output, context) => {
1026
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1027
- return de_CommandError(output, context);
1028
- }
1029
- const contents = map({
1030
- $metadata: deserializeMetadata(output),
1031
- });
1032
- await collectBody(output.body, context);
1033
- return contents;
1034
- };
1035
- export const de_UpdateGroupCommand = async (output, context) => {
1036
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1037
- return de_CommandError(output, context);
1038
- }
1039
- const contents = map({
1040
- $metadata: deserializeMetadata(output),
1041
- });
1042
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1043
- const doc = take(data, {
1044
- Group: _json,
1045
- });
1046
- Object.assign(contents, doc);
1047
- return contents;
1048
- };
1049
- export const de_UpdateIndexingRuleCommand = async (output, context) => {
1050
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1051
- return de_CommandError(output, context);
1052
- }
1053
- const contents = map({
1054
- $metadata: deserializeMetadata(output),
1055
- });
1056
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1057
- const doc = take(data, {
1058
- IndexingRule: (_) => de_IndexingRule(_, context),
1059
- });
1060
- Object.assign(contents, doc);
1061
- return contents;
1062
- };
1063
- export const de_UpdateSamplingRuleCommand = async (output, context) => {
1064
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1065
- return de_CommandError(output, context);
1066
- }
1067
- const contents = map({
1068
- $metadata: deserializeMetadata(output),
1069
- });
1070
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1071
- const doc = take(data, {
1072
- SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context),
1073
- });
1074
- Object.assign(contents, doc);
1075
- return contents;
1076
- };
1077
- export const de_UpdateTraceSegmentDestinationCommand = async (output, context) => {
1078
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- const contents = map({
1082
- $metadata: deserializeMetadata(output),
1083
- });
1084
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1085
- const doc = take(data, {
1086
- Destination: __expectString,
1087
- Status: __expectString,
1088
- });
1089
- Object.assign(contents, doc);
1090
- return contents;
1091
- };
1092
- const de_CommandError = async (output, context) => {
1093
- const parsedOutput = {
1094
- ...output,
1095
- body: await parseErrorBody(output.body, context),
1096
- };
1097
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1098
- switch (errorCode) {
1099
- case "InvalidRequestException":
1100
- case "com.amazonaws.xray#InvalidRequestException":
1101
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1102
- case "ThrottledException":
1103
- case "com.amazonaws.xray#ThrottledException":
1104
- throw await de_ThrottledExceptionRes(parsedOutput, context);
1105
- case "ResourceNotFoundException":
1106
- case "com.amazonaws.xray#ResourceNotFoundException":
1107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1108
- case "RuleLimitExceededException":
1109
- case "com.amazonaws.xray#RuleLimitExceededException":
1110
- throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
1111
- case "InvalidPolicyRevisionIdException":
1112
- case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1113
- throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1114
- case "LockoutPreventionException":
1115
- case "com.amazonaws.xray#LockoutPreventionException":
1116
- throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
1117
- case "MalformedPolicyDocumentException":
1118
- case "com.amazonaws.xray#MalformedPolicyDocumentException":
1119
- throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
1120
- case "PolicyCountLimitExceededException":
1121
- case "com.amazonaws.xray#PolicyCountLimitExceededException":
1122
- throw await de_PolicyCountLimitExceededExceptionRes(parsedOutput, context);
1123
- case "PolicySizeLimitExceededException":
1124
- case "com.amazonaws.xray#PolicySizeLimitExceededException":
1125
- throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
1126
- case "TooManyTagsException":
1127
- case "com.amazonaws.xray#TooManyTagsException":
1128
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1129
- default:
1130
- const parsedBody = parsedOutput.body;
1131
- return throwDefaultError({
1132
- output,
1133
- parsedBody,
1134
- errorCode,
1135
- });
1136
- }
1137
- };
1138
- const throwDefaultError = withBaseException(__BaseException);
1139
- const de_InvalidPolicyRevisionIdExceptionRes = async (parsedOutput, context) => {
1140
- const contents = map({});
1141
- const data = parsedOutput.body;
1142
- const doc = take(data, {
1143
- Message: __expectString,
1144
- });
1145
- Object.assign(contents, doc);
1146
- const exception = new InvalidPolicyRevisionIdException({
1147
- $metadata: deserializeMetadata(parsedOutput),
1148
- ...contents,
1149
- });
1150
- return __decorateServiceException(exception, parsedOutput.body);
1151
- };
1152
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1153
- const contents = map({});
1154
- const data = parsedOutput.body;
1155
- const doc = take(data, {
1156
- Message: __expectString,
1157
- });
1158
- Object.assign(contents, doc);
1159
- const exception = new InvalidRequestException({
1160
- $metadata: deserializeMetadata(parsedOutput),
1161
- ...contents,
1162
- });
1163
- return __decorateServiceException(exception, parsedOutput.body);
1164
- };
1165
- const de_LockoutPreventionExceptionRes = async (parsedOutput, context) => {
1166
- const contents = map({});
1167
- const data = parsedOutput.body;
1168
- const doc = take(data, {
1169
- Message: __expectString,
1170
- });
1171
- Object.assign(contents, doc);
1172
- const exception = new LockoutPreventionException({
1173
- $metadata: deserializeMetadata(parsedOutput),
1174
- ...contents,
1175
- });
1176
- return __decorateServiceException(exception, parsedOutput.body);
1177
- };
1178
- const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
1179
- const contents = map({});
1180
- const data = parsedOutput.body;
1181
- const doc = take(data, {
1182
- Message: __expectString,
1183
- });
1184
- Object.assign(contents, doc);
1185
- const exception = new MalformedPolicyDocumentException({
1186
- $metadata: deserializeMetadata(parsedOutput),
1187
- ...contents,
1188
- });
1189
- return __decorateServiceException(exception, parsedOutput.body);
1190
- };
1191
- const de_PolicyCountLimitExceededExceptionRes = async (parsedOutput, context) => {
1192
- const contents = map({});
1193
- const data = parsedOutput.body;
1194
- const doc = take(data, {
1195
- Message: __expectString,
1196
- });
1197
- Object.assign(contents, doc);
1198
- const exception = new PolicyCountLimitExceededException({
1199
- $metadata: deserializeMetadata(parsedOutput),
1200
- ...contents,
1201
- });
1202
- return __decorateServiceException(exception, parsedOutput.body);
1203
- };
1204
- const de_PolicySizeLimitExceededExceptionRes = async (parsedOutput, context) => {
1205
- const contents = map({});
1206
- const data = parsedOutput.body;
1207
- const doc = take(data, {
1208
- Message: __expectString,
1209
- });
1210
- Object.assign(contents, doc);
1211
- const exception = new PolicySizeLimitExceededException({
1212
- $metadata: deserializeMetadata(parsedOutput),
1213
- ...contents,
1214
- });
1215
- return __decorateServiceException(exception, parsedOutput.body);
1216
- };
1217
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1218
- const contents = map({});
1219
- const data = parsedOutput.body;
1220
- const doc = take(data, {
1221
- Message: __expectString,
1222
- ResourceName: __expectString,
1223
- });
1224
- Object.assign(contents, doc);
1225
- const exception = new ResourceNotFoundException({
1226
- $metadata: deserializeMetadata(parsedOutput),
1227
- ...contents,
1228
- });
1229
- return __decorateServiceException(exception, parsedOutput.body);
1230
- };
1231
- const de_RuleLimitExceededExceptionRes = async (parsedOutput, context) => {
1232
- const contents = map({});
1233
- const data = parsedOutput.body;
1234
- const doc = take(data, {
1235
- Message: __expectString,
1236
- });
1237
- Object.assign(contents, doc);
1238
- const exception = new RuleLimitExceededException({
1239
- $metadata: deserializeMetadata(parsedOutput),
1240
- ...contents,
1241
- });
1242
- return __decorateServiceException(exception, parsedOutput.body);
1243
- };
1244
- const de_ThrottledExceptionRes = async (parsedOutput, context) => {
1245
- const contents = map({});
1246
- const data = parsedOutput.body;
1247
- const doc = take(data, {
1248
- Message: __expectString,
1249
- });
1250
- Object.assign(contents, doc);
1251
- const exception = new ThrottledException({
1252
- $metadata: deserializeMetadata(parsedOutput),
1253
- ...contents,
1254
- });
1255
- return __decorateServiceException(exception, parsedOutput.body);
1256
- };
1257
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1258
- const contents = map({});
1259
- const data = parsedOutput.body;
1260
- const doc = take(data, {
1261
- Message: __expectString,
1262
- ResourceName: __expectString,
1263
- });
1264
- Object.assign(contents, doc);
1265
- const exception = new TooManyTagsException({
1266
- $metadata: deserializeMetadata(parsedOutput),
1267
- ...contents,
1268
- });
1269
- return __decorateServiceException(exception, parsedOutput.body);
1270
- };
1271
- const se_IndexingRuleValueUpdate = (input, context) => {
1272
- return IndexingRuleValueUpdate.visit(input, {
1273
- Probabilistic: (value) => ({ Probabilistic: se_ProbabilisticRuleValueUpdate(value, context) }),
1274
- _: (name, value) => ({ [name]: value }),
1275
- });
1276
- };
1277
- const se_ProbabilisticRuleValueUpdate = (input, context) => {
1278
- return take(input, {
1279
- DesiredSamplingPercentage: __serializeFloat,
1280
- });
1281
- };
1282
- const se_SamplingBoostStatisticsDocument = (input, context) => {
1283
- return take(input, {
1284
- AnomalyCount: [],
1285
- RuleName: [],
1286
- SampledAnomalyCount: [],
1287
- ServiceName: [],
1288
- Timestamp: (_) => _.getTime() / 1_000,
1289
- TotalCount: [],
1290
- });
1291
- };
1292
- const se_SamplingBoostStatisticsDocumentList = (input, context) => {
1293
- return input
1294
- .filter((e) => e != null)
1295
- .map((entry) => {
1296
- return se_SamplingBoostStatisticsDocument(entry, context);
1297
- });
1298
- };
1299
- const se_SamplingRateBoost = (input, context) => {
1300
- return take(input, {
1301
- CooldownWindowMinutes: [],
1302
- MaxRate: __serializeFloat,
1303
- });
1304
- };
1305
- const se_SamplingRule = (input, context) => {
1306
- return take(input, {
1307
- Attributes: _json,
1308
- FixedRate: __serializeFloat,
1309
- HTTPMethod: [],
1310
- Host: [],
1311
- Priority: [],
1312
- ReservoirSize: [],
1313
- ResourceARN: [],
1314
- RuleARN: [],
1315
- RuleName: [],
1316
- SamplingRateBoost: (_) => se_SamplingRateBoost(_, context),
1317
- ServiceName: [],
1318
- ServiceType: [],
1319
- URLPath: [],
1320
- Version: [],
1321
- });
1322
- };
1323
- const se_SamplingRuleUpdate = (input, context) => {
1324
- return take(input, {
1325
- Attributes: _json,
1326
- FixedRate: __serializeFloat,
1327
- HTTPMethod: [],
1328
- Host: [],
1329
- Priority: [],
1330
- ReservoirSize: [],
1331
- ResourceARN: [],
1332
- RuleARN: [],
1333
- RuleName: [],
1334
- SamplingRateBoost: (_) => se_SamplingRateBoost(_, context),
1335
- ServiceName: [],
1336
- ServiceType: [],
1337
- URLPath: [],
1338
- });
1339
- };
1340
- const se_SamplingStatisticsDocument = (input, context) => {
1341
- return take(input, {
1342
- BorrowCount: [],
1343
- ClientID: [],
1344
- RequestCount: [],
1345
- RuleName: [],
1346
- SampledCount: [],
1347
- Timestamp: (_) => _.getTime() / 1_000,
1348
- });
1349
- };
1350
- const se_SamplingStatisticsDocumentList = (input, context) => {
1351
- return input
1352
- .filter((e) => e != null)
1353
- .map((entry) => {
1354
- return se_SamplingStatisticsDocument(entry, context);
1355
- });
1356
- };
1357
- const se_SamplingStrategy = (input, context) => {
1358
- return take(input, {
1359
- Name: [],
1360
- Value: __serializeFloat,
1361
- });
1362
- };
1363
- const se_TelemetryRecord = (input, context) => {
1364
- return take(input, {
1365
- BackendConnectionErrors: _json,
1366
- SegmentsReceivedCount: [],
1367
- SegmentsRejectedCount: [],
1368
- SegmentsSentCount: [],
1369
- SegmentsSpilloverCount: [],
1370
- Timestamp: (_) => _.getTime() / 1_000,
1371
- });
1372
- };
1373
- const se_TelemetryRecordList = (input, context) => {
1374
- return input
1375
- .filter((e) => e != null)
1376
- .map((entry) => {
1377
- return se_TelemetryRecord(entry, context);
1378
- });
1379
- };
1380
- const de_Annotations = (output, context) => {
1381
- return Object.entries(output).reduce((acc, [key, value]) => {
1382
- if (value === null) {
1383
- return acc;
1384
- }
1385
- acc[key] = de_ValuesWithServiceIds(value, context);
1386
- return acc;
1387
- }, {});
1388
- };
1389
- const de_AnnotationValue = (output, context) => {
1390
- if (__expectBoolean(output.BooleanValue) !== undefined) {
1391
- return { BooleanValue: __expectBoolean(output.BooleanValue) };
1392
- }
1393
- if (__limitedParseDouble(output.NumberValue) !== undefined) {
1394
- return { NumberValue: __limitedParseDouble(output.NumberValue) };
1395
- }
1396
- if (__expectString(output.StringValue) !== undefined) {
1397
- return { StringValue: __expectString(output.StringValue) };
1398
- }
1399
- return { $unknown: Object.entries(output)[0] };
1400
- };
1401
- const de_Edge = (output, context) => {
1402
- return take(output, {
1403
- Aliases: _json,
1404
- EdgeType: __expectString,
1405
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1406
- ReceivedEventAgeHistogram: (_) => de_Histogram(_, context),
1407
- ReferenceId: __expectInt32,
1408
- ResponseTimeHistogram: (_) => de_Histogram(_, context),
1409
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1410
- SummaryStatistics: (_) => de_EdgeStatistics(_, context),
1411
- });
1412
- };
1413
- const de_EdgeList = (output, context) => {
1414
- const retVal = (output || [])
1415
- .filter((e) => e != null)
1416
- .map((entry) => {
1417
- return de_Edge(entry, context);
1418
- });
1419
- return retVal;
1420
- };
1421
- const de_EdgeStatistics = (output, context) => {
1422
- return take(output, {
1423
- ErrorStatistics: _json,
1424
- FaultStatistics: _json,
1425
- OkCount: __expectLong,
1426
- TotalCount: __expectLong,
1427
- TotalResponseTime: __limitedParseDouble,
1428
- });
1429
- };
1430
- const de_Histogram = (output, context) => {
1431
- const retVal = (output || [])
1432
- .filter((e) => e != null)
1433
- .map((entry) => {
1434
- return de_HistogramEntry(entry, context);
1435
- });
1436
- return retVal;
1437
- };
1438
- const de_HistogramEntry = (output, context) => {
1439
- return take(output, {
1440
- Count: __expectInt32,
1441
- Value: __limitedParseDouble,
1442
- });
1443
- };
1444
- const de_IndexingRule = (output, context) => {
1445
- return take(output, {
1446
- ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1447
- Name: __expectString,
1448
- Rule: (_) => de_IndexingRuleValue(__expectUnion(_), context),
1449
- });
1450
- };
1451
- const de_IndexingRuleList = (output, context) => {
1452
- const retVal = (output || [])
1453
- .filter((e) => e != null)
1454
- .map((entry) => {
1455
- return de_IndexingRule(entry, context);
1456
- });
1457
- return retVal;
1458
- };
1459
- const de_IndexingRuleValue = (output, context) => {
1460
- if (output.Probabilistic != null) {
1461
- return {
1462
- Probabilistic: de_ProbabilisticRuleValue(output.Probabilistic, context),
1463
- };
1464
- }
1465
- return { $unknown: Object.entries(output)[0] };
1466
- };
1467
- const de_Insight = (output, context) => {
1468
- return take(output, {
1469
- Categories: _json,
1470
- ClientRequestImpactStatistics: _json,
1471
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1472
- GroupARN: __expectString,
1473
- GroupName: __expectString,
1474
- InsightId: __expectString,
1475
- RootCauseServiceId: _json,
1476
- RootCauseServiceRequestImpactStatistics: _json,
1477
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1478
- State: __expectString,
1479
- Summary: __expectString,
1480
- TopAnomalousServices: _json,
1481
- });
1482
- };
1483
- const de_InsightEvent = (output, context) => {
1484
- return take(output, {
1485
- ClientRequestImpactStatistics: _json,
1486
- EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1487
- RootCauseServiceRequestImpactStatistics: _json,
1488
- Summary: __expectString,
1489
- TopAnomalousServices: _json,
1490
- });
1491
- };
1492
- const de_InsightEventList = (output, context) => {
1493
- const retVal = (output || [])
1494
- .filter((e) => e != null)
1495
- .map((entry) => {
1496
- return de_InsightEvent(entry, context);
1497
- });
1498
- return retVal;
1499
- };
1500
- const de_InsightSummary = (output, context) => {
1501
- return take(output, {
1502
- Categories: _json,
1503
- ClientRequestImpactStatistics: _json,
1504
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1505
- GroupARN: __expectString,
1506
- GroupName: __expectString,
1507
- InsightId: __expectString,
1508
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1509
- RootCauseServiceId: _json,
1510
- RootCauseServiceRequestImpactStatistics: _json,
1511
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1512
- State: __expectString,
1513
- Summary: __expectString,
1514
- TopAnomalousServices: _json,
1515
- });
1516
- };
1517
- const de_InsightSummaryList = (output, context) => {
1518
- const retVal = (output || [])
1519
- .filter((e) => e != null)
1520
- .map((entry) => {
1521
- return de_InsightSummary(entry, context);
1522
- });
1523
- return retVal;
1524
- };
1525
- const de_ProbabilisticRuleValue = (output, context) => {
1526
- return take(output, {
1527
- ActualSamplingPercentage: __limitedParseDouble,
1528
- DesiredSamplingPercentage: __limitedParseDouble,
1529
- });
1530
- };
1531
- const de_ResourcePolicy = (output, context) => {
1532
- return take(output, {
1533
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1534
- PolicyDocument: __expectString,
1535
- PolicyName: __expectString,
1536
- PolicyRevisionId: __expectString,
1537
- });
1538
- };
1539
- const de_ResourcePolicyList = (output, context) => {
1540
- const retVal = (output || [])
1541
- .filter((e) => e != null)
1542
- .map((entry) => {
1543
- return de_ResourcePolicy(entry, context);
1544
- });
1545
- return retVal;
1546
- };
1547
- const de_ResponseTimeRootCause = (output, context) => {
1548
- return take(output, {
1549
- ClientImpacting: __expectBoolean,
1550
- Services: (_) => de_ResponseTimeRootCauseServices(_, context),
1551
- });
1552
- };
1553
- const de_ResponseTimeRootCauseEntity = (output, context) => {
1554
- return take(output, {
1555
- Coverage: __limitedParseDouble,
1556
- Name: __expectString,
1557
- Remote: __expectBoolean,
1558
- });
1559
- };
1560
- const de_ResponseTimeRootCauseEntityPath = (output, context) => {
1561
- const retVal = (output || [])
1562
- .filter((e) => e != null)
1563
- .map((entry) => {
1564
- return de_ResponseTimeRootCauseEntity(entry, context);
1565
- });
1566
- return retVal;
1567
- };
1568
- const de_ResponseTimeRootCauses = (output, context) => {
1569
- const retVal = (output || [])
1570
- .filter((e) => e != null)
1571
- .map((entry) => {
1572
- return de_ResponseTimeRootCause(entry, context);
1573
- });
1574
- return retVal;
1575
- };
1576
- const de_ResponseTimeRootCauseService = (output, context) => {
1577
- return take(output, {
1578
- AccountId: __expectString,
1579
- EntityPath: (_) => de_ResponseTimeRootCauseEntityPath(_, context),
1580
- Inferred: __expectBoolean,
1581
- Name: __expectString,
1582
- Names: _json,
1583
- Type: __expectString,
1584
- });
1585
- };
1586
- const de_ResponseTimeRootCauseServices = (output, context) => {
1587
- const retVal = (output || [])
1588
- .filter((e) => e != null)
1589
- .map((entry) => {
1590
- return de_ResponseTimeRootCauseService(entry, context);
1591
- });
1592
- return retVal;
1593
- };
1594
- const de_RetrievedService = (output, context) => {
1595
- return take(output, {
1596
- Links: _json,
1597
- Service: (_) => de_Service(_, context),
1598
- });
1599
- };
1600
- const de_RetrievedServicesList = (output, context) => {
1601
- const retVal = (output || [])
1602
- .filter((e) => e != null)
1603
- .map((entry) => {
1604
- return de_RetrievedService(entry, context);
1605
- });
1606
- return retVal;
1607
- };
1608
- const de_RetrievedTrace = (output, context) => {
1609
- return take(output, {
1610
- Duration: __limitedParseDouble,
1611
- Id: __expectString,
1612
- Spans: _json,
1613
- });
1614
- };
1615
- const de_SamplingBoost = (output, context) => {
1616
- return take(output, {
1617
- BoostRate: __limitedParseDouble,
1618
- BoostRateTTL: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1619
- });
1620
- };
1621
- const de_SamplingRateBoost = (output, context) => {
1622
- return take(output, {
1623
- CooldownWindowMinutes: __expectInt32,
1624
- MaxRate: __limitedParseDouble,
1625
- });
1626
- };
1627
- const de_SamplingRule = (output, context) => {
1628
- return take(output, {
1629
- Attributes: _json,
1630
- FixedRate: __limitedParseDouble,
1631
- HTTPMethod: __expectString,
1632
- Host: __expectString,
1633
- Priority: __expectInt32,
1634
- ReservoirSize: __expectInt32,
1635
- ResourceARN: __expectString,
1636
- RuleARN: __expectString,
1637
- RuleName: __expectString,
1638
- SamplingRateBoost: (_) => de_SamplingRateBoost(_, context),
1639
- ServiceName: __expectString,
1640
- ServiceType: __expectString,
1641
- URLPath: __expectString,
1642
- Version: __expectInt32,
1643
- });
1644
- };
1645
- const de_SamplingRuleRecord = (output, context) => {
1646
- return take(output, {
1647
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1648
- ModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1649
- SamplingRule: (_) => de_SamplingRule(_, context),
1650
- });
1651
- };
1652
- const de_SamplingRuleRecordList = (output, context) => {
1653
- const retVal = (output || [])
1654
- .filter((e) => e != null)
1655
- .map((entry) => {
1656
- return de_SamplingRuleRecord(entry, context);
1657
- });
1658
- return retVal;
1659
- };
1660
- const de_SamplingStatisticSummary = (output, context) => {
1661
- return take(output, {
1662
- BorrowCount: __expectInt32,
1663
- RequestCount: __expectInt32,
1664
- RuleName: __expectString,
1665
- SampledCount: __expectInt32,
1666
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1667
- });
1668
- };
1669
- const de_SamplingStatisticSummaryList = (output, context) => {
1670
- const retVal = (output || [])
1671
- .filter((e) => e != null)
1672
- .map((entry) => {
1673
- return de_SamplingStatisticSummary(entry, context);
1674
- });
1675
- return retVal;
1676
- };
1677
- const de_SamplingTargetDocument = (output, context) => {
1678
- return take(output, {
1679
- FixedRate: __limitedParseDouble,
1680
- Interval: __expectInt32,
1681
- ReservoirQuota: __expectInt32,
1682
- ReservoirQuotaTTL: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1683
- RuleName: __expectString,
1684
- SamplingBoost: (_) => de_SamplingBoost(_, context),
1685
- });
1686
- };
1687
- const de_SamplingTargetDocumentList = (output, context) => {
1688
- const retVal = (output || [])
1689
- .filter((e) => e != null)
1690
- .map((entry) => {
1691
- return de_SamplingTargetDocument(entry, context);
1692
- });
1693
- return retVal;
1694
- };
1695
- const de_Service = (output, context) => {
1696
- return take(output, {
1697
- AccountId: __expectString,
1698
- DurationHistogram: (_) => de_Histogram(_, context),
1699
- Edges: (_) => de_EdgeList(_, context),
1700
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1701
- Name: __expectString,
1702
- Names: _json,
1703
- ReferenceId: __expectInt32,
1704
- ResponseTimeHistogram: (_) => de_Histogram(_, context),
1705
- Root: __expectBoolean,
1706
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1707
- State: __expectString,
1708
- SummaryStatistics: (_) => de_ServiceStatistics(_, context),
1709
- Type: __expectString,
1710
- });
1711
- };
1712
- const de_ServiceList = (output, context) => {
1713
- const retVal = (output || [])
1714
- .filter((e) => e != null)
1715
- .map((entry) => {
1716
- return de_Service(entry, context);
1717
- });
1718
- return retVal;
1719
- };
1720
- const de_ServiceStatistics = (output, context) => {
1721
- return take(output, {
1722
- ErrorStatistics: _json,
1723
- FaultStatistics: _json,
1724
- OkCount: __expectLong,
1725
- TotalCount: __expectLong,
1726
- TotalResponseTime: __limitedParseDouble,
1727
- });
1728
- };
1729
- const de_TimeSeriesServiceStatistics = (output, context) => {
1730
- return take(output, {
1731
- EdgeSummaryStatistics: (_) => de_EdgeStatistics(_, context),
1732
- ResponseTimeHistogram: (_) => de_Histogram(_, context),
1733
- ServiceForecastStatistics: _json,
1734
- ServiceSummaryStatistics: (_) => de_ServiceStatistics(_, context),
1735
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1736
- });
1737
- };
1738
- const de_TimeSeriesServiceStatisticsList = (output, context) => {
1739
- const retVal = (output || [])
1740
- .filter((e) => e != null)
1741
- .map((entry) => {
1742
- return de_TimeSeriesServiceStatistics(entry, context);
1743
- });
1744
- return retVal;
1745
- };
1746
- const de_Trace = (output, context) => {
1747
- return take(output, {
1748
- Duration: __limitedParseDouble,
1749
- Id: __expectString,
1750
- LimitExceeded: __expectBoolean,
1751
- Segments: _json,
1752
- });
1753
- };
1754
- const de_TraceList = (output, context) => {
1755
- const retVal = (output || [])
1756
- .filter((e) => e != null)
1757
- .map((entry) => {
1758
- return de_Trace(entry, context);
1759
- });
1760
- return retVal;
1761
- };
1762
- const de_TraceSpanList = (output, context) => {
1763
- const retVal = (output || [])
1764
- .filter((e) => e != null)
1765
- .map((entry) => {
1766
- return de_RetrievedTrace(entry, context);
1767
- });
1768
- return retVal;
1769
- };
1770
- const de_TraceSummary = (output, context) => {
1771
- return take(output, {
1772
- Annotations: (_) => de_Annotations(_, context),
1773
- AvailabilityZones: _json,
1774
- Duration: __limitedParseDouble,
1775
- EntryPoint: _json,
1776
- ErrorRootCauses: _json,
1777
- FaultRootCauses: _json,
1778
- HasError: __expectBoolean,
1779
- HasFault: __expectBoolean,
1780
- HasThrottle: __expectBoolean,
1781
- Http: _json,
1782
- Id: __expectString,
1783
- InstanceIds: _json,
1784
- IsPartial: __expectBoolean,
1785
- MatchedEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1786
- ResourceARNs: _json,
1787
- ResponseTime: __limitedParseDouble,
1788
- ResponseTimeRootCauses: (_) => de_ResponseTimeRootCauses(_, context),
1789
- Revision: __expectInt32,
1790
- ServiceIds: _json,
1791
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1792
- Users: _json,
1793
- });
1794
- };
1795
- const de_TraceSummaryList = (output, context) => {
1796
- const retVal = (output || [])
1797
- .filter((e) => e != null)
1798
- .map((entry) => {
1799
- return de_TraceSummary(entry, context);
1800
- });
1801
- return retVal;
1802
- };
1803
- const de_ValuesWithServiceIds = (output, context) => {
1804
- const retVal = (output || [])
1805
- .filter((e) => e != null)
1806
- .map((entry) => {
1807
- return de_ValueWithServiceIds(entry, context);
1808
- });
1809
- return retVal;
1810
- };
1811
- const de_ValueWithServiceIds = (output, context) => {
1812
- return take(output, {
1813
- AnnotationValue: (_) => de_AnnotationValue(__expectUnion(_), context),
1814
- ServiceIds: _json,
1815
- });
1816
- };
1817
- const deserializeMetadata = (output) => ({
1818
- httpStatusCode: output.statusCode,
1819
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1820
- extendedRequestId: output.headers["x-amz-id-2"],
1821
- cfId: output.headers["x-amz-cf-id"],
1822
- });
1823
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));