@aws-sdk/client-xray 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +339 -443
- package/dist-es/protocols/Aws_restJson1.js +254 -358
- package/package.json +26 -26
|
@@ -14,9 +14,8 @@ const serializeAws_restJson1BatchGetTracesCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/Traces";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.NextToken
|
|
18
|
-
...(input.TraceIds
|
|
19
|
-
input.TraceIds !== null && { TraceIds: serializeAws_restJson1TraceIdList(input.TraceIds, context) }),
|
|
17
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
18
|
+
...(input.TraceIds != null && { TraceIds: serializeAws_restJson1TraceIdList(input.TraceIds, context) }),
|
|
20
19
|
});
|
|
21
20
|
return new protocol_http_1.HttpRequest({
|
|
22
21
|
protocol,
|
|
@@ -37,15 +36,12 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
|
|
|
37
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateGroup";
|
|
38
37
|
let body;
|
|
39
38
|
body = JSON.stringify({
|
|
40
|
-
...(input.FilterExpression
|
|
41
|
-
|
|
42
|
-
...(input.
|
|
43
|
-
...(input.InsightsConfiguration !== undefined &&
|
|
44
|
-
input.InsightsConfiguration !== null && {
|
|
39
|
+
...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
|
|
40
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
41
|
+
...(input.InsightsConfiguration != null && {
|
|
45
42
|
InsightsConfiguration: serializeAws_restJson1InsightsConfiguration(input.InsightsConfiguration, context),
|
|
46
43
|
}),
|
|
47
|
-
...(input.Tags
|
|
48
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
44
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
49
45
|
});
|
|
50
46
|
return new protocol_http_1.HttpRequest({
|
|
51
47
|
protocol,
|
|
@@ -66,10 +62,10 @@ const serializeAws_restJson1CreateSamplingRuleCommand = async (input, context) =
|
|
|
66
62
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSamplingRule";
|
|
67
63
|
let body;
|
|
68
64
|
body = JSON.stringify({
|
|
69
|
-
...(input.SamplingRule
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
...(input.SamplingRule != null && {
|
|
66
|
+
SamplingRule: serializeAws_restJson1SamplingRule(input.SamplingRule, context),
|
|
67
|
+
}),
|
|
68
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
73
69
|
});
|
|
74
70
|
return new protocol_http_1.HttpRequest({
|
|
75
71
|
protocol,
|
|
@@ -90,8 +86,8 @@ const serializeAws_restJson1DeleteGroupCommand = async (input, context) => {
|
|
|
90
86
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteGroup";
|
|
91
87
|
let body;
|
|
92
88
|
body = JSON.stringify({
|
|
93
|
-
...(input.GroupARN
|
|
94
|
-
...(input.GroupName
|
|
89
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
90
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
95
91
|
});
|
|
96
92
|
return new protocol_http_1.HttpRequest({
|
|
97
93
|
protocol,
|
|
@@ -112,8 +108,8 @@ const serializeAws_restJson1DeleteSamplingRuleCommand = async (input, context) =
|
|
|
112
108
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSamplingRule";
|
|
113
109
|
let body;
|
|
114
110
|
body = JSON.stringify({
|
|
115
|
-
...(input.RuleARN
|
|
116
|
-
...(input.RuleName
|
|
111
|
+
...(input.RuleARN != null && { RuleARN: input.RuleARN }),
|
|
112
|
+
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
117
113
|
});
|
|
118
114
|
return new protocol_http_1.HttpRequest({
|
|
119
115
|
protocol,
|
|
@@ -153,8 +149,8 @@ const serializeAws_restJson1GetGroupCommand = async (input, context) => {
|
|
|
153
149
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetGroup";
|
|
154
150
|
let body;
|
|
155
151
|
body = JSON.stringify({
|
|
156
|
-
...(input.GroupARN
|
|
157
|
-
...(input.GroupName
|
|
152
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
153
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
158
154
|
});
|
|
159
155
|
return new protocol_http_1.HttpRequest({
|
|
160
156
|
protocol,
|
|
@@ -175,7 +171,7 @@ const serializeAws_restJson1GetGroupsCommand = async (input, context) => {
|
|
|
175
171
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/Groups";
|
|
176
172
|
let body;
|
|
177
173
|
body = JSON.stringify({
|
|
178
|
-
...(input.NextToken
|
|
174
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
179
175
|
});
|
|
180
176
|
return new protocol_http_1.HttpRequest({
|
|
181
177
|
protocol,
|
|
@@ -196,7 +192,7 @@ const serializeAws_restJson1GetInsightCommand = async (input, context) => {
|
|
|
196
192
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/Insight";
|
|
197
193
|
let body;
|
|
198
194
|
body = JSON.stringify({
|
|
199
|
-
...(input.InsightId
|
|
195
|
+
...(input.InsightId != null && { InsightId: input.InsightId }),
|
|
200
196
|
});
|
|
201
197
|
return new protocol_http_1.HttpRequest({
|
|
202
198
|
protocol,
|
|
@@ -217,9 +213,9 @@ const serializeAws_restJson1GetInsightEventsCommand = async (input, context) =>
|
|
|
217
213
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/InsightEvents";
|
|
218
214
|
let body;
|
|
219
215
|
body = JSON.stringify({
|
|
220
|
-
...(input.InsightId
|
|
221
|
-
...(input.MaxResults
|
|
222
|
-
...(input.NextToken
|
|
216
|
+
...(input.InsightId != null && { InsightId: input.InsightId }),
|
|
217
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
218
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
223
219
|
});
|
|
224
220
|
return new protocol_http_1.HttpRequest({
|
|
225
221
|
protocol,
|
|
@@ -240,12 +236,10 @@ const serializeAws_restJson1GetInsightImpactGraphCommand = async (input, context
|
|
|
240
236
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/InsightImpactGraph";
|
|
241
237
|
let body;
|
|
242
238
|
body = JSON.stringify({
|
|
243
|
-
...(input.EndTime
|
|
244
|
-
|
|
245
|
-
...(input.
|
|
246
|
-
...(input.
|
|
247
|
-
...(input.StartTime !== undefined &&
|
|
248
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
239
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
240
|
+
...(input.InsightId != null && { InsightId: input.InsightId }),
|
|
241
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
242
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
249
243
|
});
|
|
250
244
|
return new protocol_http_1.HttpRequest({
|
|
251
245
|
protocol,
|
|
@@ -266,16 +260,13 @@ const serializeAws_restJson1GetInsightSummariesCommand = async (input, context)
|
|
|
266
260
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/InsightSummaries";
|
|
267
261
|
let body;
|
|
268
262
|
body = JSON.stringify({
|
|
269
|
-
...(input.EndTime
|
|
270
|
-
|
|
271
|
-
...(input.
|
|
272
|
-
...(input.
|
|
273
|
-
...(input.
|
|
274
|
-
...(input.
|
|
275
|
-
...(input.
|
|
276
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
277
|
-
...(input.States !== undefined &&
|
|
278
|
-
input.States !== null && { States: serializeAws_restJson1InsightStateList(input.States, context) }),
|
|
263
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
264
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
265
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
266
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
267
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
268
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
269
|
+
...(input.States != null && { States: serializeAws_restJson1InsightStateList(input.States, context) }),
|
|
279
270
|
});
|
|
280
271
|
return new protocol_http_1.HttpRequest({
|
|
281
272
|
protocol,
|
|
@@ -296,7 +287,7 @@ const serializeAws_restJson1GetSamplingRulesCommand = async (input, context) =>
|
|
|
296
287
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetSamplingRules";
|
|
297
288
|
let body;
|
|
298
289
|
body = JSON.stringify({
|
|
299
|
-
...(input.NextToken
|
|
290
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
300
291
|
});
|
|
301
292
|
return new protocol_http_1.HttpRequest({
|
|
302
293
|
protocol,
|
|
@@ -317,7 +308,7 @@ const serializeAws_restJson1GetSamplingStatisticSummariesCommand = async (input,
|
|
|
317
308
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingStatisticSummaries";
|
|
318
309
|
let body;
|
|
319
310
|
body = JSON.stringify({
|
|
320
|
-
...(input.NextToken
|
|
311
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
321
312
|
});
|
|
322
313
|
return new protocol_http_1.HttpRequest({
|
|
323
314
|
protocol,
|
|
@@ -338,8 +329,7 @@ const serializeAws_restJson1GetSamplingTargetsCommand = async (input, context) =
|
|
|
338
329
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingTargets";
|
|
339
330
|
let body;
|
|
340
331
|
body = JSON.stringify({
|
|
341
|
-
...(input.SamplingStatisticsDocuments
|
|
342
|
-
input.SamplingStatisticsDocuments !== null && {
|
|
332
|
+
...(input.SamplingStatisticsDocuments != null && {
|
|
343
333
|
SamplingStatisticsDocuments: serializeAws_restJson1SamplingStatisticsDocumentList(input.SamplingStatisticsDocuments, context),
|
|
344
334
|
}),
|
|
345
335
|
});
|
|
@@ -362,13 +352,11 @@ const serializeAws_restJson1GetServiceGraphCommand = async (input, context) => {
|
|
|
362
352
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ServiceGraph";
|
|
363
353
|
let body;
|
|
364
354
|
body = JSON.stringify({
|
|
365
|
-
...(input.EndTime
|
|
366
|
-
|
|
367
|
-
...(input.
|
|
368
|
-
...(input.
|
|
369
|
-
...(input.
|
|
370
|
-
...(input.StartTime !== undefined &&
|
|
371
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
355
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
356
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
357
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
358
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
359
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
372
360
|
});
|
|
373
361
|
return new protocol_http_1.HttpRequest({
|
|
374
362
|
protocol,
|
|
@@ -389,18 +377,14 @@ const serializeAws_restJson1GetTimeSeriesServiceStatisticsCommand = async (input
|
|
|
389
377
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TimeSeriesServiceStatistics";
|
|
390
378
|
let body;
|
|
391
379
|
body = JSON.stringify({
|
|
392
|
-
...(input.EndTime
|
|
393
|
-
|
|
394
|
-
...(input.
|
|
395
|
-
|
|
396
|
-
...(input.
|
|
397
|
-
|
|
398
|
-
...(input.
|
|
399
|
-
...(input.
|
|
400
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
401
|
-
...(input.Period !== undefined && input.Period !== null && { Period: input.Period }),
|
|
402
|
-
...(input.StartTime !== undefined &&
|
|
403
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
380
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
381
|
+
...(input.EntitySelectorExpression != null && { EntitySelectorExpression: input.EntitySelectorExpression }),
|
|
382
|
+
...(input.ForecastStatistics != null && { ForecastStatistics: input.ForecastStatistics }),
|
|
383
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
384
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
385
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
386
|
+
...(input.Period != null && { Period: input.Period }),
|
|
387
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
404
388
|
});
|
|
405
389
|
return new protocol_http_1.HttpRequest({
|
|
406
390
|
protocol,
|
|
@@ -421,9 +405,8 @@ const serializeAws_restJson1GetTraceGraphCommand = async (input, context) => {
|
|
|
421
405
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TraceGraph";
|
|
422
406
|
let body;
|
|
423
407
|
body = JSON.stringify({
|
|
424
|
-
...(input.NextToken
|
|
425
|
-
...(input.TraceIds
|
|
426
|
-
input.TraceIds !== null && { TraceIds: serializeAws_restJson1TraceIdList(input.TraceIds, context) }),
|
|
408
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
409
|
+
...(input.TraceIds != null && { TraceIds: serializeAws_restJson1TraceIdList(input.TraceIds, context) }),
|
|
427
410
|
});
|
|
428
411
|
return new protocol_http_1.HttpRequest({
|
|
429
412
|
protocol,
|
|
@@ -444,19 +427,15 @@ const serializeAws_restJson1GetTraceSummariesCommand = async (input, context) =>
|
|
|
444
427
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSummaries";
|
|
445
428
|
let body;
|
|
446
429
|
body = JSON.stringify({
|
|
447
|
-
...(input.EndTime
|
|
448
|
-
|
|
449
|
-
...(input.
|
|
450
|
-
|
|
451
|
-
...(input.
|
|
452
|
-
...(input.Sampling !== undefined && input.Sampling !== null && { Sampling: input.Sampling }),
|
|
453
|
-
...(input.SamplingStrategy !== undefined &&
|
|
454
|
-
input.SamplingStrategy !== null && {
|
|
430
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
431
|
+
...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
|
|
432
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
433
|
+
...(input.Sampling != null && { Sampling: input.Sampling }),
|
|
434
|
+
...(input.SamplingStrategy != null && {
|
|
455
435
|
SamplingStrategy: serializeAws_restJson1SamplingStrategy(input.SamplingStrategy, context),
|
|
456
436
|
}),
|
|
457
|
-
...(input.StartTime
|
|
458
|
-
|
|
459
|
-
...(input.TimeRangeType !== undefined && input.TimeRangeType !== null && { TimeRangeType: input.TimeRangeType }),
|
|
437
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
438
|
+
...(input.TimeRangeType != null && { TimeRangeType: input.TimeRangeType }),
|
|
460
439
|
});
|
|
461
440
|
return new protocol_http_1.HttpRequest({
|
|
462
441
|
protocol,
|
|
@@ -477,8 +456,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
477
456
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
|
|
478
457
|
let body;
|
|
479
458
|
body = JSON.stringify({
|
|
480
|
-
...(input.NextToken
|
|
481
|
-
...(input.ResourceARN
|
|
459
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
460
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
482
461
|
});
|
|
483
462
|
return new protocol_http_1.HttpRequest({
|
|
484
463
|
protocol,
|
|
@@ -499,8 +478,8 @@ const serializeAws_restJson1PutEncryptionConfigCommand = async (input, context)
|
|
|
499
478
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutEncryptionConfig";
|
|
500
479
|
let body;
|
|
501
480
|
body = JSON.stringify({
|
|
502
|
-
...(input.KeyId
|
|
503
|
-
...(input.Type
|
|
481
|
+
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
482
|
+
...(input.Type != null && { Type: input.Type }),
|
|
504
483
|
});
|
|
505
484
|
return new protocol_http_1.HttpRequest({
|
|
506
485
|
protocol,
|
|
@@ -521,11 +500,10 @@ const serializeAws_restJson1PutTelemetryRecordsCommand = async (input, context)
|
|
|
521
500
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TelemetryRecords";
|
|
522
501
|
let body;
|
|
523
502
|
body = JSON.stringify({
|
|
524
|
-
...(input.EC2InstanceId
|
|
525
|
-
...(input.Hostname
|
|
526
|
-
...(input.ResourceARN
|
|
527
|
-
...(input.TelemetryRecords
|
|
528
|
-
input.TelemetryRecords !== null && {
|
|
503
|
+
...(input.EC2InstanceId != null && { EC2InstanceId: input.EC2InstanceId }),
|
|
504
|
+
...(input.Hostname != null && { Hostname: input.Hostname }),
|
|
505
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
506
|
+
...(input.TelemetryRecords != null && {
|
|
529
507
|
TelemetryRecords: serializeAws_restJson1TelemetryRecordList(input.TelemetryRecords, context),
|
|
530
508
|
}),
|
|
531
509
|
});
|
|
@@ -548,8 +526,7 @@ const serializeAws_restJson1PutTraceSegmentsCommand = async (input, context) =>
|
|
|
548
526
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSegments";
|
|
549
527
|
let body;
|
|
550
528
|
body = JSON.stringify({
|
|
551
|
-
...(input.TraceSegmentDocuments
|
|
552
|
-
input.TraceSegmentDocuments !== null && {
|
|
529
|
+
...(input.TraceSegmentDocuments != null && {
|
|
553
530
|
TraceSegmentDocuments: serializeAws_restJson1TraceSegmentDocumentList(input.TraceSegmentDocuments, context),
|
|
554
531
|
}),
|
|
555
532
|
});
|
|
@@ -572,9 +549,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
572
549
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
|
|
573
550
|
let body;
|
|
574
551
|
body = JSON.stringify({
|
|
575
|
-
...(input.ResourceARN
|
|
576
|
-
...(input.Tags
|
|
577
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
552
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
553
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
578
554
|
});
|
|
579
555
|
return new protocol_http_1.HttpRequest({
|
|
580
556
|
protocol,
|
|
@@ -595,9 +571,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
595
571
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
|
|
596
572
|
let body;
|
|
597
573
|
body = JSON.stringify({
|
|
598
|
-
...(input.ResourceARN
|
|
599
|
-
...(input.TagKeys
|
|
600
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
574
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
575
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
601
576
|
});
|
|
602
577
|
return new protocol_http_1.HttpRequest({
|
|
603
578
|
protocol,
|
|
@@ -618,12 +593,10 @@ const serializeAws_restJson1UpdateGroupCommand = async (input, context) => {
|
|
|
618
593
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateGroup";
|
|
619
594
|
let body;
|
|
620
595
|
body = JSON.stringify({
|
|
621
|
-
...(input.FilterExpression
|
|
622
|
-
|
|
623
|
-
...(input.
|
|
624
|
-
...(input.
|
|
625
|
-
...(input.InsightsConfiguration !== undefined &&
|
|
626
|
-
input.InsightsConfiguration !== null && {
|
|
596
|
+
...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
|
|
597
|
+
...(input.GroupARN != null && { GroupARN: input.GroupARN }),
|
|
598
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
599
|
+
...(input.InsightsConfiguration != null && {
|
|
627
600
|
InsightsConfiguration: serializeAws_restJson1InsightsConfiguration(input.InsightsConfiguration, context),
|
|
628
601
|
}),
|
|
629
602
|
});
|
|
@@ -646,8 +619,7 @@ const serializeAws_restJson1UpdateSamplingRuleCommand = async (input, context) =
|
|
|
646
619
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSamplingRule";
|
|
647
620
|
let body;
|
|
648
621
|
body = JSON.stringify({
|
|
649
|
-
...(input.SamplingRuleUpdate
|
|
650
|
-
input.SamplingRuleUpdate !== null && {
|
|
622
|
+
...(input.SamplingRuleUpdate != null && {
|
|
651
623
|
SamplingRuleUpdate: serializeAws_restJson1SamplingRuleUpdate(input.SamplingRuleUpdate, context),
|
|
652
624
|
}),
|
|
653
625
|
});
|
|
@@ -691,8 +663,7 @@ const deserializeAws_restJson1BatchGetTracesCommandError = async (output, contex
|
|
|
691
663
|
body: await parseBody(output.body, context),
|
|
692
664
|
};
|
|
693
665
|
let response;
|
|
694
|
-
|
|
695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
667
|
switch (errorCode) {
|
|
697
668
|
case "InvalidRequestException":
|
|
698
669
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -702,10 +673,12 @@ const deserializeAws_restJson1BatchGetTracesCommandError = async (output, contex
|
|
|
702
673
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
703
674
|
default:
|
|
704
675
|
const parsedBody = parsedOutput.body;
|
|
676
|
+
const $metadata = deserializeMetadata(output);
|
|
677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
705
678
|
response = new XRayServiceException_1.XRayServiceException({
|
|
706
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
707
680
|
$fault: "client",
|
|
708
|
-
$metadata
|
|
681
|
+
$metadata,
|
|
709
682
|
});
|
|
710
683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
711
684
|
}
|
|
@@ -731,8 +704,7 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
731
704
|
body: await parseBody(output.body, context),
|
|
732
705
|
};
|
|
733
706
|
let response;
|
|
734
|
-
|
|
735
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
708
|
switch (errorCode) {
|
|
737
709
|
case "InvalidRequestException":
|
|
738
710
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -742,10 +714,12 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
742
714
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
743
715
|
default:
|
|
744
716
|
const parsedBody = parsedOutput.body;
|
|
717
|
+
const $metadata = deserializeMetadata(output);
|
|
718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
745
719
|
response = new XRayServiceException_1.XRayServiceException({
|
|
746
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
747
721
|
$fault: "client",
|
|
748
|
-
$metadata
|
|
722
|
+
$metadata,
|
|
749
723
|
});
|
|
750
724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
751
725
|
}
|
|
@@ -771,8 +745,7 @@ const deserializeAws_restJson1CreateSamplingRuleCommandError = async (output, co
|
|
|
771
745
|
body: await parseBody(output.body, context),
|
|
772
746
|
};
|
|
773
747
|
let response;
|
|
774
|
-
|
|
775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
749
|
switch (errorCode) {
|
|
777
750
|
case "InvalidRequestException":
|
|
778
751
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -785,10 +758,12 @@ const deserializeAws_restJson1CreateSamplingRuleCommandError = async (output, co
|
|
|
785
758
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
786
759
|
default:
|
|
787
760
|
const parsedBody = parsedOutput.body;
|
|
761
|
+
const $metadata = deserializeMetadata(output);
|
|
762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
788
763
|
response = new XRayServiceException_1.XRayServiceException({
|
|
789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
790
765
|
$fault: "client",
|
|
791
|
-
$metadata
|
|
766
|
+
$metadata,
|
|
792
767
|
});
|
|
793
768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
794
769
|
}
|
|
@@ -810,8 +785,7 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
810
785
|
body: await parseBody(output.body, context),
|
|
811
786
|
};
|
|
812
787
|
let response;
|
|
813
|
-
|
|
814
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
789
|
switch (errorCode) {
|
|
816
790
|
case "InvalidRequestException":
|
|
817
791
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -821,10 +795,12 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
821
795
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
822
796
|
default:
|
|
823
797
|
const parsedBody = parsedOutput.body;
|
|
798
|
+
const $metadata = deserializeMetadata(output);
|
|
799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
824
800
|
response = new XRayServiceException_1.XRayServiceException({
|
|
825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
826
802
|
$fault: "client",
|
|
827
|
-
$metadata
|
|
803
|
+
$metadata,
|
|
828
804
|
});
|
|
829
805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
830
806
|
}
|
|
@@ -850,8 +826,7 @@ const deserializeAws_restJson1DeleteSamplingRuleCommandError = async (output, co
|
|
|
850
826
|
body: await parseBody(output.body, context),
|
|
851
827
|
};
|
|
852
828
|
let response;
|
|
853
|
-
|
|
854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
830
|
switch (errorCode) {
|
|
856
831
|
case "InvalidRequestException":
|
|
857
832
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -861,10 +836,12 @@ const deserializeAws_restJson1DeleteSamplingRuleCommandError = async (output, co
|
|
|
861
836
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
862
837
|
default:
|
|
863
838
|
const parsedBody = parsedOutput.body;
|
|
839
|
+
const $metadata = deserializeMetadata(output);
|
|
840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
864
841
|
response = new XRayServiceException_1.XRayServiceException({
|
|
865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
866
843
|
$fault: "client",
|
|
867
|
-
$metadata
|
|
844
|
+
$metadata,
|
|
868
845
|
});
|
|
869
846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
870
847
|
}
|
|
@@ -890,8 +867,7 @@ const deserializeAws_restJson1GetEncryptionConfigCommandError = async (output, c
|
|
|
890
867
|
body: await parseBody(output.body, context),
|
|
891
868
|
};
|
|
892
869
|
let response;
|
|
893
|
-
|
|
894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
871
|
switch (errorCode) {
|
|
896
872
|
case "InvalidRequestException":
|
|
897
873
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -901,10 +877,12 @@ const deserializeAws_restJson1GetEncryptionConfigCommandError = async (output, c
|
|
|
901
877
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
902
878
|
default:
|
|
903
879
|
const parsedBody = parsedOutput.body;
|
|
880
|
+
const $metadata = deserializeMetadata(output);
|
|
881
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
904
882
|
response = new XRayServiceException_1.XRayServiceException({
|
|
905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
883
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
906
884
|
$fault: "client",
|
|
907
|
-
$metadata
|
|
885
|
+
$metadata,
|
|
908
886
|
});
|
|
909
887
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
910
888
|
}
|
|
@@ -930,8 +908,7 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
930
908
|
body: await parseBody(output.body, context),
|
|
931
909
|
};
|
|
932
910
|
let response;
|
|
933
|
-
|
|
934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
912
|
switch (errorCode) {
|
|
936
913
|
case "InvalidRequestException":
|
|
937
914
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -941,10 +918,12 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
941
918
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
942
919
|
default:
|
|
943
920
|
const parsedBody = parsedOutput.body;
|
|
921
|
+
const $metadata = deserializeMetadata(output);
|
|
922
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
944
923
|
response = new XRayServiceException_1.XRayServiceException({
|
|
945
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
924
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
946
925
|
$fault: "client",
|
|
947
|
-
$metadata
|
|
926
|
+
$metadata,
|
|
948
927
|
});
|
|
949
928
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
950
929
|
}
|
|
@@ -974,8 +953,7 @@ const deserializeAws_restJson1GetGroupsCommandError = async (output, context) =>
|
|
|
974
953
|
body: await parseBody(output.body, context),
|
|
975
954
|
};
|
|
976
955
|
let response;
|
|
977
|
-
|
|
978
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
957
|
switch (errorCode) {
|
|
980
958
|
case "InvalidRequestException":
|
|
981
959
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -985,10 +963,12 @@ const deserializeAws_restJson1GetGroupsCommandError = async (output, context) =>
|
|
|
985
963
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
986
964
|
default:
|
|
987
965
|
const parsedBody = parsedOutput.body;
|
|
966
|
+
const $metadata = deserializeMetadata(output);
|
|
967
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
988
968
|
response = new XRayServiceException_1.XRayServiceException({
|
|
989
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
990
970
|
$fault: "client",
|
|
991
|
-
$metadata
|
|
971
|
+
$metadata,
|
|
992
972
|
});
|
|
993
973
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
994
974
|
}
|
|
@@ -1014,8 +994,7 @@ const deserializeAws_restJson1GetInsightCommandError = async (output, context) =
|
|
|
1014
994
|
body: await parseBody(output.body, context),
|
|
1015
995
|
};
|
|
1016
996
|
let response;
|
|
1017
|
-
|
|
1018
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
998
|
switch (errorCode) {
|
|
1020
999
|
case "InvalidRequestException":
|
|
1021
1000
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1025,10 +1004,12 @@ const deserializeAws_restJson1GetInsightCommandError = async (output, context) =
|
|
|
1025
1004
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1026
1005
|
default:
|
|
1027
1006
|
const parsedBody = parsedOutput.body;
|
|
1007
|
+
const $metadata = deserializeMetadata(output);
|
|
1008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1028
1009
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1030
1011
|
$fault: "client",
|
|
1031
|
-
$metadata
|
|
1012
|
+
$metadata,
|
|
1032
1013
|
});
|
|
1033
1014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1034
1015
|
}
|
|
@@ -1058,8 +1039,7 @@ const deserializeAws_restJson1GetInsightEventsCommandError = async (output, cont
|
|
|
1058
1039
|
body: await parseBody(output.body, context),
|
|
1059
1040
|
};
|
|
1060
1041
|
let response;
|
|
1061
|
-
|
|
1062
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1043
|
switch (errorCode) {
|
|
1064
1044
|
case "InvalidRequestException":
|
|
1065
1045
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1069,10 +1049,12 @@ const deserializeAws_restJson1GetInsightEventsCommandError = async (output, cont
|
|
|
1069
1049
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1070
1050
|
default:
|
|
1071
1051
|
const parsedBody = parsedOutput.body;
|
|
1052
|
+
const $metadata = deserializeMetadata(output);
|
|
1053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1072
1054
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1074
1056
|
$fault: "client",
|
|
1075
|
-
$metadata
|
|
1057
|
+
$metadata,
|
|
1076
1058
|
});
|
|
1077
1059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1078
1060
|
}
|
|
@@ -1122,8 +1104,7 @@ const deserializeAws_restJson1GetInsightImpactGraphCommandError = async (output,
|
|
|
1122
1104
|
body: await parseBody(output.body, context),
|
|
1123
1105
|
};
|
|
1124
1106
|
let response;
|
|
1125
|
-
|
|
1126
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1108
|
switch (errorCode) {
|
|
1128
1109
|
case "InvalidRequestException":
|
|
1129
1110
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1133,10 +1114,12 @@ const deserializeAws_restJson1GetInsightImpactGraphCommandError = async (output,
|
|
|
1133
1114
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1134
1115
|
default:
|
|
1135
1116
|
const parsedBody = parsedOutput.body;
|
|
1117
|
+
const $metadata = deserializeMetadata(output);
|
|
1118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1136
1119
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1137
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1138
1121
|
$fault: "client",
|
|
1139
|
-
$metadata
|
|
1122
|
+
$metadata,
|
|
1140
1123
|
});
|
|
1141
1124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1142
1125
|
}
|
|
@@ -1166,8 +1149,7 @@ const deserializeAws_restJson1GetInsightSummariesCommandError = async (output, c
|
|
|
1166
1149
|
body: await parseBody(output.body, context),
|
|
1167
1150
|
};
|
|
1168
1151
|
let response;
|
|
1169
|
-
|
|
1170
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
1153
|
switch (errorCode) {
|
|
1172
1154
|
case "InvalidRequestException":
|
|
1173
1155
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1177,10 +1159,12 @@ const deserializeAws_restJson1GetInsightSummariesCommandError = async (output, c
|
|
|
1177
1159
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1178
1160
|
default:
|
|
1179
1161
|
const parsedBody = parsedOutput.body;
|
|
1162
|
+
const $metadata = deserializeMetadata(output);
|
|
1163
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1180
1164
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1181
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1165
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1182
1166
|
$fault: "client",
|
|
1183
|
-
$metadata
|
|
1167
|
+
$metadata,
|
|
1184
1168
|
});
|
|
1185
1169
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1186
1170
|
}
|
|
@@ -1210,8 +1194,7 @@ const deserializeAws_restJson1GetSamplingRulesCommandError = async (output, cont
|
|
|
1210
1194
|
body: await parseBody(output.body, context),
|
|
1211
1195
|
};
|
|
1212
1196
|
let response;
|
|
1213
|
-
|
|
1214
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
1198
|
switch (errorCode) {
|
|
1216
1199
|
case "InvalidRequestException":
|
|
1217
1200
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1221,10 +1204,12 @@ const deserializeAws_restJson1GetSamplingRulesCommandError = async (output, cont
|
|
|
1221
1204
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1222
1205
|
default:
|
|
1223
1206
|
const parsedBody = parsedOutput.body;
|
|
1207
|
+
const $metadata = deserializeMetadata(output);
|
|
1208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1224
1209
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1226
1211
|
$fault: "client",
|
|
1227
|
-
$metadata
|
|
1212
|
+
$metadata,
|
|
1228
1213
|
});
|
|
1229
1214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1215
|
}
|
|
@@ -1254,8 +1239,7 @@ const deserializeAws_restJson1GetSamplingStatisticSummariesCommandError = async
|
|
|
1254
1239
|
body: await parseBody(output.body, context),
|
|
1255
1240
|
};
|
|
1256
1241
|
let response;
|
|
1257
|
-
|
|
1258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1243
|
switch (errorCode) {
|
|
1260
1244
|
case "InvalidRequestException":
|
|
1261
1245
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1265,10 +1249,12 @@ const deserializeAws_restJson1GetSamplingStatisticSummariesCommandError = async
|
|
|
1265
1249
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1266
1250
|
default:
|
|
1267
1251
|
const parsedBody = parsedOutput.body;
|
|
1252
|
+
const $metadata = deserializeMetadata(output);
|
|
1253
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1268
1254
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1255
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1270
1256
|
$fault: "client",
|
|
1271
|
-
$metadata
|
|
1257
|
+
$metadata,
|
|
1272
1258
|
});
|
|
1273
1259
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1274
1260
|
}
|
|
@@ -1302,8 +1288,7 @@ const deserializeAws_restJson1GetSamplingTargetsCommandError = async (output, co
|
|
|
1302
1288
|
body: await parseBody(output.body, context),
|
|
1303
1289
|
};
|
|
1304
1290
|
let response;
|
|
1305
|
-
|
|
1306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1292
|
switch (errorCode) {
|
|
1308
1293
|
case "InvalidRequestException":
|
|
1309
1294
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1313,10 +1298,12 @@ const deserializeAws_restJson1GetSamplingTargetsCommandError = async (output, co
|
|
|
1313
1298
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1314
1299
|
default:
|
|
1315
1300
|
const parsedBody = parsedOutput.body;
|
|
1301
|
+
const $metadata = deserializeMetadata(output);
|
|
1302
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1316
1303
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1317
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1304
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1318
1305
|
$fault: "client",
|
|
1319
|
-
$metadata
|
|
1306
|
+
$metadata,
|
|
1320
1307
|
});
|
|
1321
1308
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1322
1309
|
}
|
|
@@ -1358,8 +1345,7 @@ const deserializeAws_restJson1GetServiceGraphCommandError = async (output, conte
|
|
|
1358
1345
|
body: await parseBody(output.body, context),
|
|
1359
1346
|
};
|
|
1360
1347
|
let response;
|
|
1361
|
-
|
|
1362
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
1349
|
switch (errorCode) {
|
|
1364
1350
|
case "InvalidRequestException":
|
|
1365
1351
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1369,10 +1355,12 @@ const deserializeAws_restJson1GetServiceGraphCommandError = async (output, conte
|
|
|
1369
1355
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1370
1356
|
default:
|
|
1371
1357
|
const parsedBody = parsedOutput.body;
|
|
1358
|
+
const $metadata = deserializeMetadata(output);
|
|
1359
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1372
1360
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1374
1362
|
$fault: "client",
|
|
1375
|
-
$metadata
|
|
1363
|
+
$metadata,
|
|
1376
1364
|
});
|
|
1377
1365
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1378
1366
|
}
|
|
@@ -1406,8 +1394,7 @@ const deserializeAws_restJson1GetTimeSeriesServiceStatisticsCommandError = async
|
|
|
1406
1394
|
body: await parseBody(output.body, context),
|
|
1407
1395
|
};
|
|
1408
1396
|
let response;
|
|
1409
|
-
|
|
1410
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1398
|
switch (errorCode) {
|
|
1412
1399
|
case "InvalidRequestException":
|
|
1413
1400
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1417,10 +1404,12 @@ const deserializeAws_restJson1GetTimeSeriesServiceStatisticsCommandError = async
|
|
|
1417
1404
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1418
1405
|
default:
|
|
1419
1406
|
const parsedBody = parsedOutput.body;
|
|
1407
|
+
const $metadata = deserializeMetadata(output);
|
|
1408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1420
1409
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1421
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1422
1411
|
$fault: "client",
|
|
1423
|
-
$metadata
|
|
1412
|
+
$metadata,
|
|
1424
1413
|
});
|
|
1425
1414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1426
1415
|
}
|
|
@@ -1450,8 +1439,7 @@ const deserializeAws_restJson1GetTraceGraphCommandError = async (output, context
|
|
|
1450
1439
|
body: await parseBody(output.body, context),
|
|
1451
1440
|
};
|
|
1452
1441
|
let response;
|
|
1453
|
-
|
|
1454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1443
|
switch (errorCode) {
|
|
1456
1444
|
case "InvalidRequestException":
|
|
1457
1445
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1461,10 +1449,12 @@ const deserializeAws_restJson1GetTraceGraphCommandError = async (output, context
|
|
|
1461
1449
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1462
1450
|
default:
|
|
1463
1451
|
const parsedBody = parsedOutput.body;
|
|
1452
|
+
const $metadata = deserializeMetadata(output);
|
|
1453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1464
1454
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1466
1456
|
$fault: "client",
|
|
1467
|
-
$metadata
|
|
1457
|
+
$metadata,
|
|
1468
1458
|
});
|
|
1469
1459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1470
1460
|
}
|
|
@@ -1502,8 +1492,7 @@ const deserializeAws_restJson1GetTraceSummariesCommandError = async (output, con
|
|
|
1502
1492
|
body: await parseBody(output.body, context),
|
|
1503
1493
|
};
|
|
1504
1494
|
let response;
|
|
1505
|
-
|
|
1506
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1496
|
switch (errorCode) {
|
|
1508
1497
|
case "InvalidRequestException":
|
|
1509
1498
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1513,10 +1502,12 @@ const deserializeAws_restJson1GetTraceSummariesCommandError = async (output, con
|
|
|
1513
1502
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1514
1503
|
default:
|
|
1515
1504
|
const parsedBody = parsedOutput.body;
|
|
1505
|
+
const $metadata = deserializeMetadata(output);
|
|
1506
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1516
1507
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1518
1509
|
$fault: "client",
|
|
1519
|
-
$metadata
|
|
1510
|
+
$metadata,
|
|
1520
1511
|
});
|
|
1521
1512
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1522
1513
|
}
|
|
@@ -1546,8 +1537,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1546
1537
|
body: await parseBody(output.body, context),
|
|
1547
1538
|
};
|
|
1548
1539
|
let response;
|
|
1549
|
-
|
|
1550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1541
|
switch (errorCode) {
|
|
1552
1542
|
case "InvalidRequestException":
|
|
1553
1543
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1560,10 +1550,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1560
1550
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1561
1551
|
default:
|
|
1562
1552
|
const parsedBody = parsedOutput.body;
|
|
1553
|
+
const $metadata = deserializeMetadata(output);
|
|
1554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1563
1555
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1565
1557
|
$fault: "client",
|
|
1566
|
-
$metadata
|
|
1558
|
+
$metadata,
|
|
1567
1559
|
});
|
|
1568
1560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1569
1561
|
}
|
|
@@ -1589,8 +1581,7 @@ const deserializeAws_restJson1PutEncryptionConfigCommandError = async (output, c
|
|
|
1589
1581
|
body: await parseBody(output.body, context),
|
|
1590
1582
|
};
|
|
1591
1583
|
let response;
|
|
1592
|
-
|
|
1593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1585
|
switch (errorCode) {
|
|
1595
1586
|
case "InvalidRequestException":
|
|
1596
1587
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1600,10 +1591,12 @@ const deserializeAws_restJson1PutEncryptionConfigCommandError = async (output, c
|
|
|
1600
1591
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1601
1592
|
default:
|
|
1602
1593
|
const parsedBody = parsedOutput.body;
|
|
1594
|
+
const $metadata = deserializeMetadata(output);
|
|
1595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1596
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1598
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1599
|
+
$metadata,
|
|
1607
1600
|
});
|
|
1608
1601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1602
|
}
|
|
@@ -1625,8 +1618,7 @@ const deserializeAws_restJson1PutTelemetryRecordsCommandError = async (output, c
|
|
|
1625
1618
|
body: await parseBody(output.body, context),
|
|
1626
1619
|
};
|
|
1627
1620
|
let response;
|
|
1628
|
-
|
|
1629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1622
|
switch (errorCode) {
|
|
1631
1623
|
case "InvalidRequestException":
|
|
1632
1624
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1636,10 +1628,12 @@ const deserializeAws_restJson1PutTelemetryRecordsCommandError = async (output, c
|
|
|
1636
1628
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1637
1629
|
default:
|
|
1638
1630
|
const parsedBody = parsedOutput.body;
|
|
1631
|
+
const $metadata = deserializeMetadata(output);
|
|
1632
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1639
1633
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1634
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1641
1635
|
$fault: "client",
|
|
1642
|
-
$metadata
|
|
1636
|
+
$metadata,
|
|
1643
1637
|
});
|
|
1644
1638
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1639
|
}
|
|
@@ -1665,8 +1659,7 @@ const deserializeAws_restJson1PutTraceSegmentsCommandError = async (output, cont
|
|
|
1665
1659
|
body: await parseBody(output.body, context),
|
|
1666
1660
|
};
|
|
1667
1661
|
let response;
|
|
1668
|
-
|
|
1669
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
1663
|
switch (errorCode) {
|
|
1671
1664
|
case "InvalidRequestException":
|
|
1672
1665
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1676,10 +1669,12 @@ const deserializeAws_restJson1PutTraceSegmentsCommandError = async (output, cont
|
|
|
1676
1669
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1677
1670
|
default:
|
|
1678
1671
|
const parsedBody = parsedOutput.body;
|
|
1672
|
+
const $metadata = deserializeMetadata(output);
|
|
1673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1679
1674
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1681
1676
|
$fault: "client",
|
|
1682
|
-
$metadata
|
|
1677
|
+
$metadata,
|
|
1683
1678
|
});
|
|
1684
1679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1685
1680
|
}
|
|
@@ -1701,8 +1696,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1701
1696
|
body: await parseBody(output.body, context),
|
|
1702
1697
|
};
|
|
1703
1698
|
let response;
|
|
1704
|
-
|
|
1705
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
1700
|
switch (errorCode) {
|
|
1707
1701
|
case "InvalidRequestException":
|
|
1708
1702
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1718,10 +1712,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1718
1712
|
throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1719
1713
|
default:
|
|
1720
1714
|
const parsedBody = parsedOutput.body;
|
|
1715
|
+
const $metadata = deserializeMetadata(output);
|
|
1716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1721
1717
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1723
1719
|
$fault: "client",
|
|
1724
|
-
$metadata
|
|
1720
|
+
$metadata,
|
|
1725
1721
|
});
|
|
1726
1722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1727
1723
|
}
|
|
@@ -1743,8 +1739,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1743
1739
|
body: await parseBody(output.body, context),
|
|
1744
1740
|
};
|
|
1745
1741
|
let response;
|
|
1746
|
-
|
|
1747
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1743
|
switch (errorCode) {
|
|
1749
1744
|
case "InvalidRequestException":
|
|
1750
1745
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1757,10 +1752,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1757
1752
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1758
1753
|
default:
|
|
1759
1754
|
const parsedBody = parsedOutput.body;
|
|
1755
|
+
const $metadata = deserializeMetadata(output);
|
|
1756
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1760
1757
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1762
1759
|
$fault: "client",
|
|
1763
|
-
$metadata
|
|
1760
|
+
$metadata,
|
|
1764
1761
|
});
|
|
1765
1762
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
1763
|
}
|
|
@@ -1786,8 +1783,7 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1786
1783
|
body: await parseBody(output.body, context),
|
|
1787
1784
|
};
|
|
1788
1785
|
let response;
|
|
1789
|
-
|
|
1790
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
1787
|
switch (errorCode) {
|
|
1792
1788
|
case "InvalidRequestException":
|
|
1793
1789
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1797,10 +1793,12 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1797
1793
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1798
1794
|
default:
|
|
1799
1795
|
const parsedBody = parsedOutput.body;
|
|
1796
|
+
const $metadata = deserializeMetadata(output);
|
|
1797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1800
1798
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1802
1800
|
$fault: "client",
|
|
1803
|
-
$metadata
|
|
1801
|
+
$metadata,
|
|
1804
1802
|
});
|
|
1805
1803
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1806
1804
|
}
|
|
@@ -1826,8 +1824,7 @@ const deserializeAws_restJson1UpdateSamplingRuleCommandError = async (output, co
|
|
|
1826
1824
|
body: await parseBody(output.body, context),
|
|
1827
1825
|
};
|
|
1828
1826
|
let response;
|
|
1829
|
-
|
|
1830
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
1828
|
switch (errorCode) {
|
|
1832
1829
|
case "InvalidRequestException":
|
|
1833
1830
|
case "com.amazonaws.xray#InvalidRequestException":
|
|
@@ -1837,10 +1834,12 @@ const deserializeAws_restJson1UpdateSamplingRuleCommandError = async (output, co
|
|
|
1837
1834
|
throw await deserializeAws_restJson1ThrottledExceptionResponse(parsedOutput, context);
|
|
1838
1835
|
default:
|
|
1839
1836
|
const parsedBody = parsedOutput.body;
|
|
1837
|
+
const $metadata = deserializeMetadata(output);
|
|
1838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1840
1839
|
response = new XRayServiceException_1.XRayServiceException({
|
|
1841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1842
1841
|
$fault: "client",
|
|
1843
|
-
$metadata
|
|
1842
|
+
$metadata,
|
|
1844
1843
|
});
|
|
1845
1844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1846
1845
|
}
|
|
@@ -1924,24 +1923,18 @@ const serializeAws_restJson1AttributeMap = (input, context) => {
|
|
|
1924
1923
|
};
|
|
1925
1924
|
const serializeAws_restJson1BackendConnectionErrors = (input, context) => {
|
|
1926
1925
|
return {
|
|
1927
|
-
...(input.ConnectionRefusedCount
|
|
1928
|
-
|
|
1929
|
-
...(input.
|
|
1930
|
-
|
|
1931
|
-
...(input.
|
|
1932
|
-
|
|
1933
|
-
...(input.OtherCount !== undefined && input.OtherCount !== null && { OtherCount: input.OtherCount }),
|
|
1934
|
-
...(input.TimeoutCount !== undefined && input.TimeoutCount !== null && { TimeoutCount: input.TimeoutCount }),
|
|
1935
|
-
...(input.UnknownHostCount !== undefined &&
|
|
1936
|
-
input.UnknownHostCount !== null && { UnknownHostCount: input.UnknownHostCount }),
|
|
1926
|
+
...(input.ConnectionRefusedCount != null && { ConnectionRefusedCount: input.ConnectionRefusedCount }),
|
|
1927
|
+
...(input.HTTPCode4XXCount != null && { HTTPCode4XXCount: input.HTTPCode4XXCount }),
|
|
1928
|
+
...(input.HTTPCode5XXCount != null && { HTTPCode5XXCount: input.HTTPCode5XXCount }),
|
|
1929
|
+
...(input.OtherCount != null && { OtherCount: input.OtherCount }),
|
|
1930
|
+
...(input.TimeoutCount != null && { TimeoutCount: input.TimeoutCount }),
|
|
1931
|
+
...(input.UnknownHostCount != null && { UnknownHostCount: input.UnknownHostCount }),
|
|
1937
1932
|
};
|
|
1938
1933
|
};
|
|
1939
1934
|
const serializeAws_restJson1InsightsConfiguration = (input, context) => {
|
|
1940
1935
|
return {
|
|
1941
|
-
...(input.InsightsEnabled
|
|
1942
|
-
|
|
1943
|
-
...(input.NotificationsEnabled !== undefined &&
|
|
1944
|
-
input.NotificationsEnabled !== null && { NotificationsEnabled: input.NotificationsEnabled }),
|
|
1936
|
+
...(input.InsightsEnabled != null && { InsightsEnabled: input.InsightsEnabled }),
|
|
1937
|
+
...(input.NotificationsEnabled != null && { NotificationsEnabled: input.NotificationsEnabled }),
|
|
1945
1938
|
};
|
|
1946
1939
|
};
|
|
1947
1940
|
const serializeAws_restJson1InsightStateList = (input, context) => {
|
|
@@ -1956,48 +1949,45 @@ const serializeAws_restJson1InsightStateList = (input, context) => {
|
|
|
1956
1949
|
};
|
|
1957
1950
|
const serializeAws_restJson1SamplingRule = (input, context) => {
|
|
1958
1951
|
return {
|
|
1959
|
-
...(input.Attributes
|
|
1960
|
-
|
|
1961
|
-
...(input.
|
|
1962
|
-
...(input.
|
|
1963
|
-
...(input.
|
|
1964
|
-
...(input.
|
|
1965
|
-
...(input.
|
|
1966
|
-
...(input.
|
|
1967
|
-
...(input.
|
|
1968
|
-
...(input.
|
|
1969
|
-
...(input.
|
|
1970
|
-
...(input.
|
|
1971
|
-
...(input.
|
|
1972
|
-
...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
|
|
1952
|
+
...(input.Attributes != null && { Attributes: serializeAws_restJson1AttributeMap(input.Attributes, context) }),
|
|
1953
|
+
...(input.FixedRate != null && { FixedRate: (0, smithy_client_1.serializeFloat)(input.FixedRate) }),
|
|
1954
|
+
...(input.HTTPMethod != null && { HTTPMethod: input.HTTPMethod }),
|
|
1955
|
+
...(input.Host != null && { Host: input.Host }),
|
|
1956
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
1957
|
+
...(input.ReservoirSize != null && { ReservoirSize: input.ReservoirSize }),
|
|
1958
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1959
|
+
...(input.RuleARN != null && { RuleARN: input.RuleARN }),
|
|
1960
|
+
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
1961
|
+
...(input.ServiceName != null && { ServiceName: input.ServiceName }),
|
|
1962
|
+
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
1963
|
+
...(input.URLPath != null && { URLPath: input.URLPath }),
|
|
1964
|
+
...(input.Version != null && { Version: input.Version }),
|
|
1973
1965
|
};
|
|
1974
1966
|
};
|
|
1975
1967
|
const serializeAws_restJson1SamplingRuleUpdate = (input, context) => {
|
|
1976
1968
|
return {
|
|
1977
|
-
...(input.Attributes
|
|
1978
|
-
|
|
1979
|
-
...(input.
|
|
1980
|
-
...(input.
|
|
1981
|
-
...(input.
|
|
1982
|
-
...(input.
|
|
1983
|
-
...(input.
|
|
1984
|
-
...(input.
|
|
1985
|
-
...(input.
|
|
1986
|
-
...(input.
|
|
1987
|
-
...(input.
|
|
1988
|
-
...(input.
|
|
1989
|
-
...(input.URLPath !== undefined && input.URLPath !== null && { URLPath: input.URLPath }),
|
|
1969
|
+
...(input.Attributes != null && { Attributes: serializeAws_restJson1AttributeMap(input.Attributes, context) }),
|
|
1970
|
+
...(input.FixedRate != null && { FixedRate: (0, smithy_client_1.serializeFloat)(input.FixedRate) }),
|
|
1971
|
+
...(input.HTTPMethod != null && { HTTPMethod: input.HTTPMethod }),
|
|
1972
|
+
...(input.Host != null && { Host: input.Host }),
|
|
1973
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
1974
|
+
...(input.ReservoirSize != null && { ReservoirSize: input.ReservoirSize }),
|
|
1975
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1976
|
+
...(input.RuleARN != null && { RuleARN: input.RuleARN }),
|
|
1977
|
+
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
1978
|
+
...(input.ServiceName != null && { ServiceName: input.ServiceName }),
|
|
1979
|
+
...(input.ServiceType != null && { ServiceType: input.ServiceType }),
|
|
1980
|
+
...(input.URLPath != null && { URLPath: input.URLPath }),
|
|
1990
1981
|
};
|
|
1991
1982
|
};
|
|
1992
1983
|
const serializeAws_restJson1SamplingStatisticsDocument = (input, context) => {
|
|
1993
1984
|
return {
|
|
1994
|
-
...(input.BorrowCount
|
|
1995
|
-
...(input.ClientID
|
|
1996
|
-
...(input.RequestCount
|
|
1997
|
-
...(input.RuleName
|
|
1998
|
-
...(input.SampledCount
|
|
1999
|
-
...(input.Timestamp
|
|
2000
|
-
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1985
|
+
...(input.BorrowCount != null && { BorrowCount: input.BorrowCount }),
|
|
1986
|
+
...(input.ClientID != null && { ClientID: input.ClientID }),
|
|
1987
|
+
...(input.RequestCount != null && { RequestCount: input.RequestCount }),
|
|
1988
|
+
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
1989
|
+
...(input.SampledCount != null && { SampledCount: input.SampledCount }),
|
|
1990
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
2001
1991
|
};
|
|
2002
1992
|
};
|
|
2003
1993
|
const serializeAws_restJson1SamplingStatisticsDocumentList = (input, context) => {
|
|
@@ -2012,14 +2002,14 @@ const serializeAws_restJson1SamplingStatisticsDocumentList = (input, context) =>
|
|
|
2012
2002
|
};
|
|
2013
2003
|
const serializeAws_restJson1SamplingStrategy = (input, context) => {
|
|
2014
2004
|
return {
|
|
2015
|
-
...(input.Name
|
|
2016
|
-
...(input.Value
|
|
2005
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2006
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
2017
2007
|
};
|
|
2018
2008
|
};
|
|
2019
2009
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
2020
2010
|
return {
|
|
2021
|
-
...(input.Key
|
|
2022
|
-
...(input.Value
|
|
2011
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2012
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2023
2013
|
};
|
|
2024
2014
|
};
|
|
2025
2015
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -2044,20 +2034,14 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
2044
2034
|
};
|
|
2045
2035
|
const serializeAws_restJson1TelemetryRecord = (input, context) => {
|
|
2046
2036
|
return {
|
|
2047
|
-
...(input.BackendConnectionErrors
|
|
2048
|
-
input.BackendConnectionErrors !== null && {
|
|
2037
|
+
...(input.BackendConnectionErrors != null && {
|
|
2049
2038
|
BackendConnectionErrors: serializeAws_restJson1BackendConnectionErrors(input.BackendConnectionErrors, context),
|
|
2050
2039
|
}),
|
|
2051
|
-
...(input.SegmentsReceivedCount
|
|
2052
|
-
|
|
2053
|
-
...(input.
|
|
2054
|
-
|
|
2055
|
-
...(input.
|
|
2056
|
-
input.SegmentsSentCount !== null && { SegmentsSentCount: input.SegmentsSentCount }),
|
|
2057
|
-
...(input.SegmentsSpilloverCount !== undefined &&
|
|
2058
|
-
input.SegmentsSpilloverCount !== null && { SegmentsSpilloverCount: input.SegmentsSpilloverCount }),
|
|
2059
|
-
...(input.Timestamp !== undefined &&
|
|
2060
|
-
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
2040
|
+
...(input.SegmentsReceivedCount != null && { SegmentsReceivedCount: input.SegmentsReceivedCount }),
|
|
2041
|
+
...(input.SegmentsRejectedCount != null && { SegmentsRejectedCount: input.SegmentsRejectedCount }),
|
|
2042
|
+
...(input.SegmentsSentCount != null && { SegmentsSentCount: input.SegmentsSentCount }),
|
|
2043
|
+
...(input.SegmentsSpilloverCount != null && { SegmentsSpilloverCount: input.SegmentsSpilloverCount }),
|
|
2044
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
2061
2045
|
};
|
|
2062
2046
|
};
|
|
2063
2047
|
const serializeAws_restJson1TelemetryRecordList = (input, context) => {
|
|
@@ -2093,9 +2077,7 @@ const serializeAws_restJson1TraceSegmentDocumentList = (input, context) => {
|
|
|
2093
2077
|
const deserializeAws_restJson1Alias = (output, context) => {
|
|
2094
2078
|
return {
|
|
2095
2079
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2096
|
-
Names: output.Names
|
|
2097
|
-
? deserializeAws_restJson1AliasNames(output.Names, context)
|
|
2098
|
-
: undefined,
|
|
2080
|
+
Names: output.Names != null ? deserializeAws_restJson1AliasNames(output.Names, context) : undefined,
|
|
2099
2081
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2100
2082
|
};
|
|
2101
2083
|
};
|
|
@@ -2146,9 +2128,7 @@ const deserializeAws_restJson1AnnotationValue = (output, context) => {
|
|
|
2146
2128
|
};
|
|
2147
2129
|
const deserializeAws_restJson1AnomalousService = (output, context) => {
|
|
2148
2130
|
return {
|
|
2149
|
-
ServiceId: output.ServiceId
|
|
2150
|
-
? deserializeAws_restJson1ServiceId(output.ServiceId, context)
|
|
2151
|
-
: undefined,
|
|
2131
|
+
ServiceId: output.ServiceId != null ? deserializeAws_restJson1ServiceId(output.ServiceId, context) : undefined,
|
|
2152
2132
|
};
|
|
2153
2133
|
};
|
|
2154
2134
|
const deserializeAws_restJson1AnomalousServiceList = (output, context) => {
|
|
@@ -2180,20 +2160,14 @@ const deserializeAws_restJson1AvailabilityZoneDetail = (output, context) => {
|
|
|
2180
2160
|
};
|
|
2181
2161
|
const deserializeAws_restJson1Edge = (output, context) => {
|
|
2182
2162
|
return {
|
|
2183
|
-
Aliases: output.Aliases
|
|
2184
|
-
|
|
2185
|
-
: undefined,
|
|
2186
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
2187
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2188
|
-
: undefined,
|
|
2163
|
+
Aliases: output.Aliases != null ? deserializeAws_restJson1AliasList(output.Aliases, context) : undefined,
|
|
2164
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2189
2165
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2190
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2166
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2191
2167
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2192
2168
|
: undefined,
|
|
2193
|
-
StartTime: output.StartTime
|
|
2194
|
-
|
|
2195
|
-
: undefined,
|
|
2196
|
-
SummaryStatistics: output.SummaryStatistics !== undefined && output.SummaryStatistics !== null
|
|
2169
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2170
|
+
SummaryStatistics: output.SummaryStatistics != null
|
|
2197
2171
|
? deserializeAws_restJson1EdgeStatistics(output.SummaryStatistics, context)
|
|
2198
2172
|
: undefined,
|
|
2199
2173
|
};
|
|
@@ -2211,10 +2185,10 @@ const deserializeAws_restJson1EdgeList = (output, context) => {
|
|
|
2211
2185
|
};
|
|
2212
2186
|
const deserializeAws_restJson1EdgeStatistics = (output, context) => {
|
|
2213
2187
|
return {
|
|
2214
|
-
ErrorStatistics: output.ErrorStatistics
|
|
2188
|
+
ErrorStatistics: output.ErrorStatistics != null
|
|
2215
2189
|
? deserializeAws_restJson1ErrorStatistics(output.ErrorStatistics, context)
|
|
2216
2190
|
: undefined,
|
|
2217
|
-
FaultStatistics: output.FaultStatistics
|
|
2191
|
+
FaultStatistics: output.FaultStatistics != null
|
|
2218
2192
|
? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context)
|
|
2219
2193
|
: undefined,
|
|
2220
2194
|
OkCount: (0, smithy_client_1.expectLong)(output.OkCount),
|
|
@@ -2232,16 +2206,12 @@ const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
|
2232
2206
|
const deserializeAws_restJson1ErrorRootCause = (output, context) => {
|
|
2233
2207
|
return {
|
|
2234
2208
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2235
|
-
Services: output.Services
|
|
2236
|
-
? deserializeAws_restJson1ErrorRootCauseServices(output.Services, context)
|
|
2237
|
-
: undefined,
|
|
2209
|
+
Services: output.Services != null ? deserializeAws_restJson1ErrorRootCauseServices(output.Services, context) : undefined,
|
|
2238
2210
|
};
|
|
2239
2211
|
};
|
|
2240
2212
|
const deserializeAws_restJson1ErrorRootCauseEntity = (output, context) => {
|
|
2241
2213
|
return {
|
|
2242
|
-
Exceptions: output.Exceptions
|
|
2243
|
-
? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context)
|
|
2244
|
-
: undefined,
|
|
2214
|
+
Exceptions: output.Exceptions != null ? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context) : undefined,
|
|
2245
2215
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2246
2216
|
Remote: (0, smithy_client_1.expectBoolean)(output.Remote),
|
|
2247
2217
|
};
|
|
@@ -2271,14 +2241,12 @@ const deserializeAws_restJson1ErrorRootCauses = (output, context) => {
|
|
|
2271
2241
|
const deserializeAws_restJson1ErrorRootCauseService = (output, context) => {
|
|
2272
2242
|
return {
|
|
2273
2243
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2274
|
-
EntityPath: output.EntityPath
|
|
2244
|
+
EntityPath: output.EntityPath != null
|
|
2275
2245
|
? deserializeAws_restJson1ErrorRootCauseEntityPath(output.EntityPath, context)
|
|
2276
2246
|
: undefined,
|
|
2277
2247
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2278
2248
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2279
|
-
Names: output.Names
|
|
2280
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2281
|
-
: undefined,
|
|
2249
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2282
2250
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2283
2251
|
};
|
|
2284
2252
|
};
|
|
@@ -2303,16 +2271,12 @@ const deserializeAws_restJson1ErrorStatistics = (output, context) => {
|
|
|
2303
2271
|
const deserializeAws_restJson1FaultRootCause = (output, context) => {
|
|
2304
2272
|
return {
|
|
2305
2273
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2306
|
-
Services: output.Services
|
|
2307
|
-
? deserializeAws_restJson1FaultRootCauseServices(output.Services, context)
|
|
2308
|
-
: undefined,
|
|
2274
|
+
Services: output.Services != null ? deserializeAws_restJson1FaultRootCauseServices(output.Services, context) : undefined,
|
|
2309
2275
|
};
|
|
2310
2276
|
};
|
|
2311
2277
|
const deserializeAws_restJson1FaultRootCauseEntity = (output, context) => {
|
|
2312
2278
|
return {
|
|
2313
|
-
Exceptions: output.Exceptions
|
|
2314
|
-
? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context)
|
|
2315
|
-
: undefined,
|
|
2279
|
+
Exceptions: output.Exceptions != null ? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context) : undefined,
|
|
2316
2280
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2317
2281
|
Remote: (0, smithy_client_1.expectBoolean)(output.Remote),
|
|
2318
2282
|
};
|
|
@@ -2342,14 +2306,12 @@ const deserializeAws_restJson1FaultRootCauses = (output, context) => {
|
|
|
2342
2306
|
const deserializeAws_restJson1FaultRootCauseService = (output, context) => {
|
|
2343
2307
|
return {
|
|
2344
2308
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2345
|
-
EntityPath: output.EntityPath
|
|
2309
|
+
EntityPath: output.EntityPath != null
|
|
2346
2310
|
? deserializeAws_restJson1FaultRootCauseEntityPath(output.EntityPath, context)
|
|
2347
2311
|
: undefined,
|
|
2348
2312
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2349
2313
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2350
|
-
Names: output.Names
|
|
2351
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2352
|
-
: undefined,
|
|
2314
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2353
2315
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2354
2316
|
};
|
|
2355
2317
|
};
|
|
@@ -2381,7 +2343,7 @@ const deserializeAws_restJson1Group = (output, context) => {
|
|
|
2381
2343
|
FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
|
|
2382
2344
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2383
2345
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2384
|
-
InsightsConfiguration: output.InsightsConfiguration
|
|
2346
|
+
InsightsConfiguration: output.InsightsConfiguration != null
|
|
2385
2347
|
? deserializeAws_restJson1InsightsConfiguration(output.InsightsConfiguration, context)
|
|
2386
2348
|
: undefined,
|
|
2387
2349
|
};
|
|
@@ -2391,7 +2353,7 @@ const deserializeAws_restJson1GroupSummary = (output, context) => {
|
|
|
2391
2353
|
FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
|
|
2392
2354
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2393
2355
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2394
|
-
InsightsConfiguration: output.InsightsConfiguration
|
|
2356
|
+
InsightsConfiguration: output.InsightsConfiguration != null
|
|
2395
2357
|
? deserializeAws_restJson1InsightsConfiguration(output.InsightsConfiguration, context)
|
|
2396
2358
|
: undefined,
|
|
2397
2359
|
};
|
|
@@ -2435,31 +2397,24 @@ const deserializeAws_restJson1Http = (output, context) => {
|
|
|
2435
2397
|
};
|
|
2436
2398
|
const deserializeAws_restJson1Insight = (output, context) => {
|
|
2437
2399
|
return {
|
|
2438
|
-
Categories: output.Categories
|
|
2439
|
-
|
|
2440
|
-
: undefined,
|
|
2441
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics !== undefined && output.ClientRequestImpactStatistics !== null
|
|
2400
|
+
Categories: output.Categories != null ? deserializeAws_restJson1InsightCategoryList(output.Categories, context) : undefined,
|
|
2401
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2442
2402
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2443
2403
|
: undefined,
|
|
2444
|
-
EndTime: output.EndTime
|
|
2445
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2446
|
-
: undefined,
|
|
2404
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2447
2405
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2448
2406
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2449
2407
|
InsightId: (0, smithy_client_1.expectString)(output.InsightId),
|
|
2450
|
-
RootCauseServiceId: output.RootCauseServiceId
|
|
2408
|
+
RootCauseServiceId: output.RootCauseServiceId != null
|
|
2451
2409
|
? deserializeAws_restJson1ServiceId(output.RootCauseServiceId, context)
|
|
2452
2410
|
: undefined,
|
|
2453
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics
|
|
2454
|
-
output.RootCauseServiceRequestImpactStatistics !== null
|
|
2411
|
+
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics != null
|
|
2455
2412
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2456
2413
|
: undefined,
|
|
2457
|
-
StartTime: output.StartTime
|
|
2458
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2459
|
-
: undefined,
|
|
2414
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2460
2415
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2461
2416
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2462
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2417
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2463
2418
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2464
2419
|
: undefined,
|
|
2465
2420
|
};
|
|
@@ -2477,18 +2432,15 @@ const deserializeAws_restJson1InsightCategoryList = (output, context) => {
|
|
|
2477
2432
|
};
|
|
2478
2433
|
const deserializeAws_restJson1InsightEvent = (output, context) => {
|
|
2479
2434
|
return {
|
|
2480
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics
|
|
2435
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2481
2436
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2482
2437
|
: undefined,
|
|
2483
|
-
EventTime: output.EventTime
|
|
2484
|
-
|
|
2485
|
-
: undefined,
|
|
2486
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics !== undefined &&
|
|
2487
|
-
output.RootCauseServiceRequestImpactStatistics !== null
|
|
2438
|
+
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
2439
|
+
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics != null
|
|
2488
2440
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2489
2441
|
: undefined,
|
|
2490
2442
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2491
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2443
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2492
2444
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2493
2445
|
: undefined,
|
|
2494
2446
|
};
|
|
@@ -2523,13 +2475,9 @@ const deserializeAws_restJson1InsightImpactGraphEdgeList = (output, context) =>
|
|
|
2523
2475
|
const deserializeAws_restJson1InsightImpactGraphService = (output, context) => {
|
|
2524
2476
|
return {
|
|
2525
2477
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2526
|
-
Edges: output.Edges
|
|
2527
|
-
? deserializeAws_restJson1InsightImpactGraphEdgeList(output.Edges, context)
|
|
2528
|
-
: undefined,
|
|
2478
|
+
Edges: output.Edges != null ? deserializeAws_restJson1InsightImpactGraphEdgeList(output.Edges, context) : undefined,
|
|
2529
2479
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2530
|
-
Names: output.Names
|
|
2531
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2532
|
-
: undefined,
|
|
2480
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2533
2481
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2534
2482
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2535
2483
|
};
|
|
@@ -2553,34 +2501,27 @@ const deserializeAws_restJson1InsightsConfiguration = (output, context) => {
|
|
|
2553
2501
|
};
|
|
2554
2502
|
const deserializeAws_restJson1InsightSummary = (output, context) => {
|
|
2555
2503
|
return {
|
|
2556
|
-
Categories: output.Categories
|
|
2557
|
-
|
|
2558
|
-
: undefined,
|
|
2559
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics !== undefined && output.ClientRequestImpactStatistics !== null
|
|
2504
|
+
Categories: output.Categories != null ? deserializeAws_restJson1InsightCategoryList(output.Categories, context) : undefined,
|
|
2505
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2560
2506
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2561
2507
|
: undefined,
|
|
2562
|
-
EndTime: output.EndTime
|
|
2563
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2564
|
-
: undefined,
|
|
2508
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2565
2509
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2566
2510
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2567
2511
|
InsightId: (0, smithy_client_1.expectString)(output.InsightId),
|
|
2568
|
-
LastUpdateTime: output.LastUpdateTime
|
|
2512
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
2569
2513
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
2570
2514
|
: undefined,
|
|
2571
|
-
RootCauseServiceId: output.RootCauseServiceId
|
|
2515
|
+
RootCauseServiceId: output.RootCauseServiceId != null
|
|
2572
2516
|
? deserializeAws_restJson1ServiceId(output.RootCauseServiceId, context)
|
|
2573
2517
|
: undefined,
|
|
2574
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics
|
|
2575
|
-
output.RootCauseServiceRequestImpactStatistics !== null
|
|
2518
|
+
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics != null
|
|
2576
2519
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2577
2520
|
: undefined,
|
|
2578
|
-
StartTime: output.StartTime
|
|
2579
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2580
|
-
: undefined,
|
|
2521
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2581
2522
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2582
2523
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2583
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2524
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2584
2525
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2585
2526
|
: undefined,
|
|
2586
2527
|
};
|
|
@@ -2616,7 +2557,7 @@ const deserializeAws_restJson1ResourceARNDetail = (output, context) => {
|
|
|
2616
2557
|
const deserializeAws_restJson1ResponseTimeRootCause = (output, context) => {
|
|
2617
2558
|
return {
|
|
2618
2559
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2619
|
-
Services: output.Services
|
|
2560
|
+
Services: output.Services != null
|
|
2620
2561
|
? deserializeAws_restJson1ResponseTimeRootCauseServices(output.Services, context)
|
|
2621
2562
|
: undefined,
|
|
2622
2563
|
};
|
|
@@ -2653,14 +2594,12 @@ const deserializeAws_restJson1ResponseTimeRootCauses = (output, context) => {
|
|
|
2653
2594
|
const deserializeAws_restJson1ResponseTimeRootCauseService = (output, context) => {
|
|
2654
2595
|
return {
|
|
2655
2596
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2656
|
-
EntityPath: output.EntityPath
|
|
2597
|
+
EntityPath: output.EntityPath != null
|
|
2657
2598
|
? deserializeAws_restJson1ResponseTimeRootCauseEntityPath(output.EntityPath, context)
|
|
2658
2599
|
: undefined,
|
|
2659
2600
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2660
2601
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2661
|
-
Names: output.Names
|
|
2662
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2663
|
-
: undefined,
|
|
2602
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2664
2603
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2665
2604
|
};
|
|
2666
2605
|
};
|
|
@@ -2694,9 +2633,7 @@ const deserializeAws_restJson1RootCauseExceptions = (output, context) => {
|
|
|
2694
2633
|
};
|
|
2695
2634
|
const deserializeAws_restJson1SamplingRule = (output, context) => {
|
|
2696
2635
|
return {
|
|
2697
|
-
Attributes: output.Attributes
|
|
2698
|
-
? deserializeAws_restJson1AttributeMap(output.Attributes, context)
|
|
2699
|
-
: undefined,
|
|
2636
|
+
Attributes: output.Attributes != null ? deserializeAws_restJson1AttributeMap(output.Attributes, context) : undefined,
|
|
2700
2637
|
FixedRate: (0, smithy_client_1.limitedParseDouble)(output.FixedRate),
|
|
2701
2638
|
HTTPMethod: (0, smithy_client_1.expectString)(output.HTTPMethod),
|
|
2702
2639
|
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
@@ -2713,15 +2650,9 @@ const deserializeAws_restJson1SamplingRule = (output, context) => {
|
|
|
2713
2650
|
};
|
|
2714
2651
|
const deserializeAws_restJson1SamplingRuleRecord = (output, context) => {
|
|
2715
2652
|
return {
|
|
2716
|
-
CreatedAt: output.CreatedAt
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
ModifiedAt: output.ModifiedAt !== undefined && output.ModifiedAt !== null
|
|
2720
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedAt)))
|
|
2721
|
-
: undefined,
|
|
2722
|
-
SamplingRule: output.SamplingRule !== undefined && output.SamplingRule !== null
|
|
2723
|
-
? deserializeAws_restJson1SamplingRule(output.SamplingRule, context)
|
|
2724
|
-
: undefined,
|
|
2653
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2654
|
+
ModifiedAt: output.ModifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedAt))) : undefined,
|
|
2655
|
+
SamplingRule: output.SamplingRule != null ? deserializeAws_restJson1SamplingRule(output.SamplingRule, context) : undefined,
|
|
2725
2656
|
};
|
|
2726
2657
|
};
|
|
2727
2658
|
const deserializeAws_restJson1SamplingRuleRecordList = (output, context) => {
|
|
@@ -2741,9 +2672,7 @@ const deserializeAws_restJson1SamplingStatisticSummary = (output, context) => {
|
|
|
2741
2672
|
RequestCount: (0, smithy_client_1.expectInt32)(output.RequestCount),
|
|
2742
2673
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
2743
2674
|
SampledCount: (0, smithy_client_1.expectInt32)(output.SampledCount),
|
|
2744
|
-
Timestamp: output.Timestamp
|
|
2745
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
2746
|
-
: undefined,
|
|
2675
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2747
2676
|
};
|
|
2748
2677
|
};
|
|
2749
2678
|
const deserializeAws_restJson1SamplingStatisticSummaryList = (output, context) => {
|
|
@@ -2762,7 +2691,7 @@ const deserializeAws_restJson1SamplingTargetDocument = (output, context) => {
|
|
|
2762
2691
|
FixedRate: (0, smithy_client_1.limitedParseDouble)(output.FixedRate),
|
|
2763
2692
|
Interval: (0, smithy_client_1.expectInt32)(output.Interval),
|
|
2764
2693
|
ReservoirQuota: (0, smithy_client_1.expectInt32)(output.ReservoirQuota),
|
|
2765
|
-
ReservoirQuotaTTL: output.ReservoirQuotaTTL
|
|
2694
|
+
ReservoirQuotaTTL: output.ReservoirQuotaTTL != null
|
|
2766
2695
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReservoirQuotaTTL)))
|
|
2767
2696
|
: undefined,
|
|
2768
2697
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
@@ -2799,29 +2728,21 @@ const deserializeAws_restJson1SegmentList = (output, context) => {
|
|
|
2799
2728
|
const deserializeAws_restJson1Service = (output, context) => {
|
|
2800
2729
|
return {
|
|
2801
2730
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2802
|
-
DurationHistogram: output.DurationHistogram
|
|
2731
|
+
DurationHistogram: output.DurationHistogram != null
|
|
2803
2732
|
? deserializeAws_restJson1Histogram(output.DurationHistogram, context)
|
|
2804
2733
|
: undefined,
|
|
2805
|
-
Edges: output.Edges
|
|
2806
|
-
|
|
2807
|
-
: undefined,
|
|
2808
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
2809
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2810
|
-
: undefined,
|
|
2734
|
+
Edges: output.Edges != null ? deserializeAws_restJson1EdgeList(output.Edges, context) : undefined,
|
|
2735
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2811
2736
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2812
|
-
Names: output.Names
|
|
2813
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2814
|
-
: undefined,
|
|
2737
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2815
2738
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2816
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2739
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2817
2740
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2818
2741
|
: undefined,
|
|
2819
2742
|
Root: (0, smithy_client_1.expectBoolean)(output.Root),
|
|
2820
|
-
StartTime: output.StartTime
|
|
2821
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2822
|
-
: undefined,
|
|
2743
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2823
2744
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2824
|
-
SummaryStatistics: output.SummaryStatistics
|
|
2745
|
+
SummaryStatistics: output.SummaryStatistics != null
|
|
2825
2746
|
? deserializeAws_restJson1ServiceStatistics(output.SummaryStatistics, context)
|
|
2826
2747
|
: undefined,
|
|
2827
2748
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -2831,9 +2752,7 @@ const deserializeAws_restJson1ServiceId = (output, context) => {
|
|
|
2831
2752
|
return {
|
|
2832
2753
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2833
2754
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2834
|
-
Names: output.Names
|
|
2835
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2836
|
-
: undefined,
|
|
2755
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2837
2756
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2838
2757
|
};
|
|
2839
2758
|
};
|
|
@@ -2872,10 +2791,10 @@ const deserializeAws_restJson1ServiceNames = (output, context) => {
|
|
|
2872
2791
|
};
|
|
2873
2792
|
const deserializeAws_restJson1ServiceStatistics = (output, context) => {
|
|
2874
2793
|
return {
|
|
2875
|
-
ErrorStatistics: output.ErrorStatistics
|
|
2794
|
+
ErrorStatistics: output.ErrorStatistics != null
|
|
2876
2795
|
? deserializeAws_restJson1ErrorStatistics(output.ErrorStatistics, context)
|
|
2877
2796
|
: undefined,
|
|
2878
|
-
FaultStatistics: output.FaultStatistics
|
|
2797
|
+
FaultStatistics: output.FaultStatistics != null
|
|
2879
2798
|
? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context)
|
|
2880
2799
|
: undefined,
|
|
2881
2800
|
OkCount: (0, smithy_client_1.expectLong)(output.OkCount),
|
|
@@ -2902,21 +2821,19 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
2902
2821
|
};
|
|
2903
2822
|
const deserializeAws_restJson1TimeSeriesServiceStatistics = (output, context) => {
|
|
2904
2823
|
return {
|
|
2905
|
-
EdgeSummaryStatistics: output.EdgeSummaryStatistics
|
|
2824
|
+
EdgeSummaryStatistics: output.EdgeSummaryStatistics != null
|
|
2906
2825
|
? deserializeAws_restJson1EdgeStatistics(output.EdgeSummaryStatistics, context)
|
|
2907
2826
|
: undefined,
|
|
2908
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2827
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2909
2828
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2910
2829
|
: undefined,
|
|
2911
|
-
ServiceForecastStatistics: output.ServiceForecastStatistics
|
|
2830
|
+
ServiceForecastStatistics: output.ServiceForecastStatistics != null
|
|
2912
2831
|
? deserializeAws_restJson1ForecastStatistics(output.ServiceForecastStatistics, context)
|
|
2913
2832
|
: undefined,
|
|
2914
|
-
ServiceSummaryStatistics: output.ServiceSummaryStatistics
|
|
2833
|
+
ServiceSummaryStatistics: output.ServiceSummaryStatistics != null
|
|
2915
2834
|
? deserializeAws_restJson1ServiceStatistics(output.ServiceSummaryStatistics, context)
|
|
2916
2835
|
: undefined,
|
|
2917
|
-
Timestamp: output.Timestamp
|
|
2918
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
2919
|
-
: undefined,
|
|
2836
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2920
2837
|
};
|
|
2921
2838
|
};
|
|
2922
2839
|
const deserializeAws_restJson1TimeSeriesServiceStatisticsList = (output, context) => {
|
|
@@ -2935,9 +2852,7 @@ const deserializeAws_restJson1Trace = (output, context) => {
|
|
|
2935
2852
|
Duration: (0, smithy_client_1.limitedParseDouble)(output.Duration),
|
|
2936
2853
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2937
2854
|
LimitExceeded: (0, smithy_client_1.expectBoolean)(output.LimitExceeded),
|
|
2938
|
-
Segments: output.Segments
|
|
2939
|
-
? deserializeAws_restJson1SegmentList(output.Segments, context)
|
|
2940
|
-
: undefined,
|
|
2855
|
+
Segments: output.Segments != null ? deserializeAws_restJson1SegmentList(output.Segments, context) : undefined,
|
|
2941
2856
|
};
|
|
2942
2857
|
};
|
|
2943
2858
|
const deserializeAws_restJson1TraceAvailabilityZones = (output, context) => {
|
|
@@ -2986,50 +2901,36 @@ const deserializeAws_restJson1TraceResourceARNs = (output, context) => {
|
|
|
2986
2901
|
};
|
|
2987
2902
|
const deserializeAws_restJson1TraceSummary = (output, context) => {
|
|
2988
2903
|
return {
|
|
2989
|
-
Annotations: output.Annotations
|
|
2990
|
-
|
|
2991
|
-
: undefined,
|
|
2992
|
-
AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null
|
|
2904
|
+
Annotations: output.Annotations != null ? deserializeAws_restJson1Annotations(output.Annotations, context) : undefined,
|
|
2905
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
2993
2906
|
? deserializeAws_restJson1TraceAvailabilityZones(output.AvailabilityZones, context)
|
|
2994
2907
|
: undefined,
|
|
2995
2908
|
Duration: (0, smithy_client_1.limitedParseDouble)(output.Duration),
|
|
2996
|
-
EntryPoint: output.EntryPoint
|
|
2997
|
-
|
|
2998
|
-
: undefined,
|
|
2999
|
-
ErrorRootCauses: output.ErrorRootCauses !== undefined && output.ErrorRootCauses !== null
|
|
2909
|
+
EntryPoint: output.EntryPoint != null ? deserializeAws_restJson1ServiceId(output.EntryPoint, context) : undefined,
|
|
2910
|
+
ErrorRootCauses: output.ErrorRootCauses != null
|
|
3000
2911
|
? deserializeAws_restJson1ErrorRootCauses(output.ErrorRootCauses, context)
|
|
3001
2912
|
: undefined,
|
|
3002
|
-
FaultRootCauses: output.FaultRootCauses
|
|
2913
|
+
FaultRootCauses: output.FaultRootCauses != null
|
|
3003
2914
|
? deserializeAws_restJson1FaultRootCauses(output.FaultRootCauses, context)
|
|
3004
2915
|
: undefined,
|
|
3005
2916
|
HasError: (0, smithy_client_1.expectBoolean)(output.HasError),
|
|
3006
2917
|
HasFault: (0, smithy_client_1.expectBoolean)(output.HasFault),
|
|
3007
2918
|
HasThrottle: (0, smithy_client_1.expectBoolean)(output.HasThrottle),
|
|
3008
|
-
Http: output.Http
|
|
3009
|
-
? deserializeAws_restJson1Http(output.Http, context)
|
|
3010
|
-
: undefined,
|
|
2919
|
+
Http: output.Http != null ? deserializeAws_restJson1Http(output.Http, context) : undefined,
|
|
3011
2920
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3012
|
-
InstanceIds: output.InstanceIds
|
|
3013
|
-
? deserializeAws_restJson1TraceInstanceIds(output.InstanceIds, context)
|
|
3014
|
-
: undefined,
|
|
2921
|
+
InstanceIds: output.InstanceIds != null ? deserializeAws_restJson1TraceInstanceIds(output.InstanceIds, context) : undefined,
|
|
3015
2922
|
IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
|
|
3016
|
-
MatchedEventTime: output.MatchedEventTime
|
|
2923
|
+
MatchedEventTime: output.MatchedEventTime != null
|
|
3017
2924
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MatchedEventTime)))
|
|
3018
2925
|
: undefined,
|
|
3019
|
-
ResourceARNs: output.ResourceARNs
|
|
3020
|
-
? deserializeAws_restJson1TraceResourceARNs(output.ResourceARNs, context)
|
|
3021
|
-
: undefined,
|
|
2926
|
+
ResourceARNs: output.ResourceARNs != null ? deserializeAws_restJson1TraceResourceARNs(output.ResourceARNs, context) : undefined,
|
|
3022
2927
|
ResponseTime: (0, smithy_client_1.limitedParseDouble)(output.ResponseTime),
|
|
3023
|
-
ResponseTimeRootCauses: output.ResponseTimeRootCauses
|
|
2928
|
+
ResponseTimeRootCauses: output.ResponseTimeRootCauses != null
|
|
3024
2929
|
? deserializeAws_restJson1ResponseTimeRootCauses(output.ResponseTimeRootCauses, context)
|
|
3025
2930
|
: undefined,
|
|
3026
2931
|
Revision: (0, smithy_client_1.expectInt32)(output.Revision),
|
|
3027
|
-
ServiceIds: output.ServiceIds
|
|
3028
|
-
|
|
3029
|
-
: undefined,
|
|
3030
|
-
Users: output.Users !== undefined && output.Users !== null
|
|
3031
|
-
? deserializeAws_restJson1TraceUsers(output.Users, context)
|
|
3032
|
-
: undefined,
|
|
2932
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
2933
|
+
Users: output.Users != null ? deserializeAws_restJson1TraceUsers(output.Users, context) : undefined,
|
|
3033
2934
|
};
|
|
3034
2935
|
};
|
|
3035
2936
|
const deserializeAws_restJson1TraceSummaryList = (output, context) => {
|
|
@@ -3045,9 +2946,7 @@ const deserializeAws_restJson1TraceSummaryList = (output, context) => {
|
|
|
3045
2946
|
};
|
|
3046
2947
|
const deserializeAws_restJson1TraceUser = (output, context) => {
|
|
3047
2948
|
return {
|
|
3048
|
-
ServiceIds: output.ServiceIds
|
|
3049
|
-
? deserializeAws_restJson1ServiceIds(output.ServiceIds, context)
|
|
3050
|
-
: undefined,
|
|
2949
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
3051
2950
|
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
3052
2951
|
};
|
|
3053
2952
|
};
|
|
@@ -3122,12 +3021,10 @@ const deserializeAws_restJson1ValuesWithServiceIds = (output, context) => {
|
|
|
3122
3021
|
};
|
|
3123
3022
|
const deserializeAws_restJson1ValueWithServiceIds = (output, context) => {
|
|
3124
3023
|
return {
|
|
3125
|
-
AnnotationValue: output.AnnotationValue
|
|
3024
|
+
AnnotationValue: output.AnnotationValue != null
|
|
3126
3025
|
? deserializeAws_restJson1AnnotationValue((0, smithy_client_1.expectUnion)(output.AnnotationValue), context)
|
|
3127
3026
|
: undefined,
|
|
3128
|
-
ServiceIds: output.ServiceIds
|
|
3129
|
-
? deserializeAws_restJson1ServiceIds(output.ServiceIds, context)
|
|
3130
|
-
: undefined,
|
|
3027
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
3131
3028
|
};
|
|
3132
3029
|
};
|
|
3133
3030
|
const deserializeMetadata = (output) => {
|
|
@@ -3179,5 +3076,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3179
3076
|
if (data["__type"] !== undefined) {
|
|
3180
3077
|
return sanitizeErrorCode(data["__type"]);
|
|
3181
3078
|
}
|
|
3182
|
-
return "";
|
|
3183
3079
|
};
|