@aws-sdk/client-xray 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +204 -334
- package/dist-es/protocols/Aws_restJson1.js +119 -249
- 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
|
});
|
|
@@ -1951,24 +1923,18 @@ const serializeAws_restJson1AttributeMap = (input, context) => {
|
|
|
1951
1923
|
};
|
|
1952
1924
|
const serializeAws_restJson1BackendConnectionErrors = (input, context) => {
|
|
1953
1925
|
return {
|
|
1954
|
-
...(input.ConnectionRefusedCount
|
|
1955
|
-
|
|
1956
|
-
...(input.
|
|
1957
|
-
|
|
1958
|
-
...(input.
|
|
1959
|
-
|
|
1960
|
-
...(input.OtherCount !== undefined && input.OtherCount !== null && { OtherCount: input.OtherCount }),
|
|
1961
|
-
...(input.TimeoutCount !== undefined && input.TimeoutCount !== null && { TimeoutCount: input.TimeoutCount }),
|
|
1962
|
-
...(input.UnknownHostCount !== undefined &&
|
|
1963
|
-
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 }),
|
|
1964
1932
|
};
|
|
1965
1933
|
};
|
|
1966
1934
|
const serializeAws_restJson1InsightsConfiguration = (input, context) => {
|
|
1967
1935
|
return {
|
|
1968
|
-
...(input.InsightsEnabled
|
|
1969
|
-
|
|
1970
|
-
...(input.NotificationsEnabled !== undefined &&
|
|
1971
|
-
input.NotificationsEnabled !== null && { NotificationsEnabled: input.NotificationsEnabled }),
|
|
1936
|
+
...(input.InsightsEnabled != null && { InsightsEnabled: input.InsightsEnabled }),
|
|
1937
|
+
...(input.NotificationsEnabled != null && { NotificationsEnabled: input.NotificationsEnabled }),
|
|
1972
1938
|
};
|
|
1973
1939
|
};
|
|
1974
1940
|
const serializeAws_restJson1InsightStateList = (input, context) => {
|
|
@@ -1983,48 +1949,45 @@ const serializeAws_restJson1InsightStateList = (input, context) => {
|
|
|
1983
1949
|
};
|
|
1984
1950
|
const serializeAws_restJson1SamplingRule = (input, context) => {
|
|
1985
1951
|
return {
|
|
1986
|
-
...(input.Attributes
|
|
1987
|
-
|
|
1988
|
-
...(input.
|
|
1989
|
-
...(input.
|
|
1990
|
-
...(input.
|
|
1991
|
-
...(input.
|
|
1992
|
-
...(input.
|
|
1993
|
-
...(input.
|
|
1994
|
-
...(input.
|
|
1995
|
-
...(input.
|
|
1996
|
-
...(input.
|
|
1997
|
-
...(input.
|
|
1998
|
-
...(input.
|
|
1999
|
-
...(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 }),
|
|
2000
1965
|
};
|
|
2001
1966
|
};
|
|
2002
1967
|
const serializeAws_restJson1SamplingRuleUpdate = (input, context) => {
|
|
2003
1968
|
return {
|
|
2004
|
-
...(input.Attributes
|
|
2005
|
-
|
|
2006
|
-
...(input.
|
|
2007
|
-
...(input.
|
|
2008
|
-
...(input.
|
|
2009
|
-
...(input.
|
|
2010
|
-
...(input.
|
|
2011
|
-
...(input.
|
|
2012
|
-
...(input.
|
|
2013
|
-
...(input.
|
|
2014
|
-
...(input.
|
|
2015
|
-
...(input.
|
|
2016
|
-
...(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 }),
|
|
2017
1981
|
};
|
|
2018
1982
|
};
|
|
2019
1983
|
const serializeAws_restJson1SamplingStatisticsDocument = (input, context) => {
|
|
2020
1984
|
return {
|
|
2021
|
-
...(input.BorrowCount
|
|
2022
|
-
...(input.ClientID
|
|
2023
|
-
...(input.RequestCount
|
|
2024
|
-
...(input.RuleName
|
|
2025
|
-
...(input.SampledCount
|
|
2026
|
-
...(input.Timestamp
|
|
2027
|
-
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) }),
|
|
2028
1991
|
};
|
|
2029
1992
|
};
|
|
2030
1993
|
const serializeAws_restJson1SamplingStatisticsDocumentList = (input, context) => {
|
|
@@ -2039,14 +2002,14 @@ const serializeAws_restJson1SamplingStatisticsDocumentList = (input, context) =>
|
|
|
2039
2002
|
};
|
|
2040
2003
|
const serializeAws_restJson1SamplingStrategy = (input, context) => {
|
|
2041
2004
|
return {
|
|
2042
|
-
...(input.Name
|
|
2043
|
-
...(input.Value
|
|
2005
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2006
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
2044
2007
|
};
|
|
2045
2008
|
};
|
|
2046
2009
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
2047
2010
|
return {
|
|
2048
|
-
...(input.Key
|
|
2049
|
-
...(input.Value
|
|
2011
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2012
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2050
2013
|
};
|
|
2051
2014
|
};
|
|
2052
2015
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -2071,20 +2034,14 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
2071
2034
|
};
|
|
2072
2035
|
const serializeAws_restJson1TelemetryRecord = (input, context) => {
|
|
2073
2036
|
return {
|
|
2074
|
-
...(input.BackendConnectionErrors
|
|
2075
|
-
input.BackendConnectionErrors !== null && {
|
|
2037
|
+
...(input.BackendConnectionErrors != null && {
|
|
2076
2038
|
BackendConnectionErrors: serializeAws_restJson1BackendConnectionErrors(input.BackendConnectionErrors, context),
|
|
2077
2039
|
}),
|
|
2078
|
-
...(input.SegmentsReceivedCount
|
|
2079
|
-
|
|
2080
|
-
...(input.
|
|
2081
|
-
|
|
2082
|
-
...(input.
|
|
2083
|
-
input.SegmentsSentCount !== null && { SegmentsSentCount: input.SegmentsSentCount }),
|
|
2084
|
-
...(input.SegmentsSpilloverCount !== undefined &&
|
|
2085
|
-
input.SegmentsSpilloverCount !== null && { SegmentsSpilloverCount: input.SegmentsSpilloverCount }),
|
|
2086
|
-
...(input.Timestamp !== undefined &&
|
|
2087
|
-
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) }),
|
|
2088
2045
|
};
|
|
2089
2046
|
};
|
|
2090
2047
|
const serializeAws_restJson1TelemetryRecordList = (input, context) => {
|
|
@@ -2120,9 +2077,7 @@ const serializeAws_restJson1TraceSegmentDocumentList = (input, context) => {
|
|
|
2120
2077
|
const deserializeAws_restJson1Alias = (output, context) => {
|
|
2121
2078
|
return {
|
|
2122
2079
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2123
|
-
Names: output.Names
|
|
2124
|
-
? deserializeAws_restJson1AliasNames(output.Names, context)
|
|
2125
|
-
: undefined,
|
|
2080
|
+
Names: output.Names != null ? deserializeAws_restJson1AliasNames(output.Names, context) : undefined,
|
|
2126
2081
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2127
2082
|
};
|
|
2128
2083
|
};
|
|
@@ -2173,9 +2128,7 @@ const deserializeAws_restJson1AnnotationValue = (output, context) => {
|
|
|
2173
2128
|
};
|
|
2174
2129
|
const deserializeAws_restJson1AnomalousService = (output, context) => {
|
|
2175
2130
|
return {
|
|
2176
|
-
ServiceId: output.ServiceId
|
|
2177
|
-
? deserializeAws_restJson1ServiceId(output.ServiceId, context)
|
|
2178
|
-
: undefined,
|
|
2131
|
+
ServiceId: output.ServiceId != null ? deserializeAws_restJson1ServiceId(output.ServiceId, context) : undefined,
|
|
2179
2132
|
};
|
|
2180
2133
|
};
|
|
2181
2134
|
const deserializeAws_restJson1AnomalousServiceList = (output, context) => {
|
|
@@ -2207,20 +2160,14 @@ const deserializeAws_restJson1AvailabilityZoneDetail = (output, context) => {
|
|
|
2207
2160
|
};
|
|
2208
2161
|
const deserializeAws_restJson1Edge = (output, context) => {
|
|
2209
2162
|
return {
|
|
2210
|
-
Aliases: output.Aliases
|
|
2211
|
-
|
|
2212
|
-
: undefined,
|
|
2213
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
2214
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2215
|
-
: 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,
|
|
2216
2165
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2217
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2166
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2218
2167
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2219
2168
|
: undefined,
|
|
2220
|
-
StartTime: output.StartTime
|
|
2221
|
-
|
|
2222
|
-
: undefined,
|
|
2223
|
-
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
|
|
2224
2171
|
? deserializeAws_restJson1EdgeStatistics(output.SummaryStatistics, context)
|
|
2225
2172
|
: undefined,
|
|
2226
2173
|
};
|
|
@@ -2238,10 +2185,10 @@ const deserializeAws_restJson1EdgeList = (output, context) => {
|
|
|
2238
2185
|
};
|
|
2239
2186
|
const deserializeAws_restJson1EdgeStatistics = (output, context) => {
|
|
2240
2187
|
return {
|
|
2241
|
-
ErrorStatistics: output.ErrorStatistics
|
|
2188
|
+
ErrorStatistics: output.ErrorStatistics != null
|
|
2242
2189
|
? deserializeAws_restJson1ErrorStatistics(output.ErrorStatistics, context)
|
|
2243
2190
|
: undefined,
|
|
2244
|
-
FaultStatistics: output.FaultStatistics
|
|
2191
|
+
FaultStatistics: output.FaultStatistics != null
|
|
2245
2192
|
? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context)
|
|
2246
2193
|
: undefined,
|
|
2247
2194
|
OkCount: (0, smithy_client_1.expectLong)(output.OkCount),
|
|
@@ -2259,16 +2206,12 @@ const deserializeAws_restJson1EncryptionConfig = (output, context) => {
|
|
|
2259
2206
|
const deserializeAws_restJson1ErrorRootCause = (output, context) => {
|
|
2260
2207
|
return {
|
|
2261
2208
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2262
|
-
Services: output.Services
|
|
2263
|
-
? deserializeAws_restJson1ErrorRootCauseServices(output.Services, context)
|
|
2264
|
-
: undefined,
|
|
2209
|
+
Services: output.Services != null ? deserializeAws_restJson1ErrorRootCauseServices(output.Services, context) : undefined,
|
|
2265
2210
|
};
|
|
2266
2211
|
};
|
|
2267
2212
|
const deserializeAws_restJson1ErrorRootCauseEntity = (output, context) => {
|
|
2268
2213
|
return {
|
|
2269
|
-
Exceptions: output.Exceptions
|
|
2270
|
-
? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context)
|
|
2271
|
-
: undefined,
|
|
2214
|
+
Exceptions: output.Exceptions != null ? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context) : undefined,
|
|
2272
2215
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2273
2216
|
Remote: (0, smithy_client_1.expectBoolean)(output.Remote),
|
|
2274
2217
|
};
|
|
@@ -2298,14 +2241,12 @@ const deserializeAws_restJson1ErrorRootCauses = (output, context) => {
|
|
|
2298
2241
|
const deserializeAws_restJson1ErrorRootCauseService = (output, context) => {
|
|
2299
2242
|
return {
|
|
2300
2243
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2301
|
-
EntityPath: output.EntityPath
|
|
2244
|
+
EntityPath: output.EntityPath != null
|
|
2302
2245
|
? deserializeAws_restJson1ErrorRootCauseEntityPath(output.EntityPath, context)
|
|
2303
2246
|
: undefined,
|
|
2304
2247
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2305
2248
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2306
|
-
Names: output.Names
|
|
2307
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2308
|
-
: undefined,
|
|
2249
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2309
2250
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2310
2251
|
};
|
|
2311
2252
|
};
|
|
@@ -2330,16 +2271,12 @@ const deserializeAws_restJson1ErrorStatistics = (output, context) => {
|
|
|
2330
2271
|
const deserializeAws_restJson1FaultRootCause = (output, context) => {
|
|
2331
2272
|
return {
|
|
2332
2273
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2333
|
-
Services: output.Services
|
|
2334
|
-
? deserializeAws_restJson1FaultRootCauseServices(output.Services, context)
|
|
2335
|
-
: undefined,
|
|
2274
|
+
Services: output.Services != null ? deserializeAws_restJson1FaultRootCauseServices(output.Services, context) : undefined,
|
|
2336
2275
|
};
|
|
2337
2276
|
};
|
|
2338
2277
|
const deserializeAws_restJson1FaultRootCauseEntity = (output, context) => {
|
|
2339
2278
|
return {
|
|
2340
|
-
Exceptions: output.Exceptions
|
|
2341
|
-
? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context)
|
|
2342
|
-
: undefined,
|
|
2279
|
+
Exceptions: output.Exceptions != null ? deserializeAws_restJson1RootCauseExceptions(output.Exceptions, context) : undefined,
|
|
2343
2280
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2344
2281
|
Remote: (0, smithy_client_1.expectBoolean)(output.Remote),
|
|
2345
2282
|
};
|
|
@@ -2369,14 +2306,12 @@ const deserializeAws_restJson1FaultRootCauses = (output, context) => {
|
|
|
2369
2306
|
const deserializeAws_restJson1FaultRootCauseService = (output, context) => {
|
|
2370
2307
|
return {
|
|
2371
2308
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2372
|
-
EntityPath: output.EntityPath
|
|
2309
|
+
EntityPath: output.EntityPath != null
|
|
2373
2310
|
? deserializeAws_restJson1FaultRootCauseEntityPath(output.EntityPath, context)
|
|
2374
2311
|
: undefined,
|
|
2375
2312
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2376
2313
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2377
|
-
Names: output.Names
|
|
2378
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2379
|
-
: undefined,
|
|
2314
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2380
2315
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2381
2316
|
};
|
|
2382
2317
|
};
|
|
@@ -2408,7 +2343,7 @@ const deserializeAws_restJson1Group = (output, context) => {
|
|
|
2408
2343
|
FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
|
|
2409
2344
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2410
2345
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2411
|
-
InsightsConfiguration: output.InsightsConfiguration
|
|
2346
|
+
InsightsConfiguration: output.InsightsConfiguration != null
|
|
2412
2347
|
? deserializeAws_restJson1InsightsConfiguration(output.InsightsConfiguration, context)
|
|
2413
2348
|
: undefined,
|
|
2414
2349
|
};
|
|
@@ -2418,7 +2353,7 @@ const deserializeAws_restJson1GroupSummary = (output, context) => {
|
|
|
2418
2353
|
FilterExpression: (0, smithy_client_1.expectString)(output.FilterExpression),
|
|
2419
2354
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2420
2355
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2421
|
-
InsightsConfiguration: output.InsightsConfiguration
|
|
2356
|
+
InsightsConfiguration: output.InsightsConfiguration != null
|
|
2422
2357
|
? deserializeAws_restJson1InsightsConfiguration(output.InsightsConfiguration, context)
|
|
2423
2358
|
: undefined,
|
|
2424
2359
|
};
|
|
@@ -2462,31 +2397,24 @@ const deserializeAws_restJson1Http = (output, context) => {
|
|
|
2462
2397
|
};
|
|
2463
2398
|
const deserializeAws_restJson1Insight = (output, context) => {
|
|
2464
2399
|
return {
|
|
2465
|
-
Categories: output.Categories
|
|
2466
|
-
|
|
2467
|
-
: undefined,
|
|
2468
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics !== undefined && output.ClientRequestImpactStatistics !== null
|
|
2400
|
+
Categories: output.Categories != null ? deserializeAws_restJson1InsightCategoryList(output.Categories, context) : undefined,
|
|
2401
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2469
2402
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2470
2403
|
: undefined,
|
|
2471
|
-
EndTime: output.EndTime
|
|
2472
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2473
|
-
: undefined,
|
|
2404
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2474
2405
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2475
2406
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2476
2407
|
InsightId: (0, smithy_client_1.expectString)(output.InsightId),
|
|
2477
|
-
RootCauseServiceId: output.RootCauseServiceId
|
|
2408
|
+
RootCauseServiceId: output.RootCauseServiceId != null
|
|
2478
2409
|
? deserializeAws_restJson1ServiceId(output.RootCauseServiceId, context)
|
|
2479
2410
|
: undefined,
|
|
2480
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics
|
|
2481
|
-
output.RootCauseServiceRequestImpactStatistics !== null
|
|
2411
|
+
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics != null
|
|
2482
2412
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2483
2413
|
: undefined,
|
|
2484
|
-
StartTime: output.StartTime
|
|
2485
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2486
|
-
: undefined,
|
|
2414
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2487
2415
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2488
2416
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2489
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2417
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2490
2418
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2491
2419
|
: undefined,
|
|
2492
2420
|
};
|
|
@@ -2504,18 +2432,15 @@ const deserializeAws_restJson1InsightCategoryList = (output, context) => {
|
|
|
2504
2432
|
};
|
|
2505
2433
|
const deserializeAws_restJson1InsightEvent = (output, context) => {
|
|
2506
2434
|
return {
|
|
2507
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics
|
|
2435
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2508
2436
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2509
2437
|
: undefined,
|
|
2510
|
-
EventTime: output.EventTime
|
|
2511
|
-
|
|
2512
|
-
: undefined,
|
|
2513
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics !== undefined &&
|
|
2514
|
-
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
|
|
2515
2440
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2516
2441
|
: undefined,
|
|
2517
2442
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2518
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2443
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2519
2444
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2520
2445
|
: undefined,
|
|
2521
2446
|
};
|
|
@@ -2550,13 +2475,9 @@ const deserializeAws_restJson1InsightImpactGraphEdgeList = (output, context) =>
|
|
|
2550
2475
|
const deserializeAws_restJson1InsightImpactGraphService = (output, context) => {
|
|
2551
2476
|
return {
|
|
2552
2477
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2553
|
-
Edges: output.Edges
|
|
2554
|
-
? deserializeAws_restJson1InsightImpactGraphEdgeList(output.Edges, context)
|
|
2555
|
-
: undefined,
|
|
2478
|
+
Edges: output.Edges != null ? deserializeAws_restJson1InsightImpactGraphEdgeList(output.Edges, context) : undefined,
|
|
2556
2479
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2557
|
-
Names: output.Names
|
|
2558
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2559
|
-
: undefined,
|
|
2480
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2560
2481
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2561
2482
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2562
2483
|
};
|
|
@@ -2580,34 +2501,27 @@ const deserializeAws_restJson1InsightsConfiguration = (output, context) => {
|
|
|
2580
2501
|
};
|
|
2581
2502
|
const deserializeAws_restJson1InsightSummary = (output, context) => {
|
|
2582
2503
|
return {
|
|
2583
|
-
Categories: output.Categories
|
|
2584
|
-
|
|
2585
|
-
: undefined,
|
|
2586
|
-
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics !== undefined && output.ClientRequestImpactStatistics !== null
|
|
2504
|
+
Categories: output.Categories != null ? deserializeAws_restJson1InsightCategoryList(output.Categories, context) : undefined,
|
|
2505
|
+
ClientRequestImpactStatistics: output.ClientRequestImpactStatistics != null
|
|
2587
2506
|
? deserializeAws_restJson1RequestImpactStatistics(output.ClientRequestImpactStatistics, context)
|
|
2588
2507
|
: undefined,
|
|
2589
|
-
EndTime: output.EndTime
|
|
2590
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2591
|
-
: undefined,
|
|
2508
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2592
2509
|
GroupARN: (0, smithy_client_1.expectString)(output.GroupARN),
|
|
2593
2510
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
2594
2511
|
InsightId: (0, smithy_client_1.expectString)(output.InsightId),
|
|
2595
|
-
LastUpdateTime: output.LastUpdateTime
|
|
2512
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
2596
2513
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
2597
2514
|
: undefined,
|
|
2598
|
-
RootCauseServiceId: output.RootCauseServiceId
|
|
2515
|
+
RootCauseServiceId: output.RootCauseServiceId != null
|
|
2599
2516
|
? deserializeAws_restJson1ServiceId(output.RootCauseServiceId, context)
|
|
2600
2517
|
: undefined,
|
|
2601
|
-
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics
|
|
2602
|
-
output.RootCauseServiceRequestImpactStatistics !== null
|
|
2518
|
+
RootCauseServiceRequestImpactStatistics: output.RootCauseServiceRequestImpactStatistics != null
|
|
2603
2519
|
? deserializeAws_restJson1RequestImpactStatistics(output.RootCauseServiceRequestImpactStatistics, context)
|
|
2604
2520
|
: undefined,
|
|
2605
|
-
StartTime: output.StartTime
|
|
2606
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2607
|
-
: undefined,
|
|
2521
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2608
2522
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2609
2523
|
Summary: (0, smithy_client_1.expectString)(output.Summary),
|
|
2610
|
-
TopAnomalousServices: output.TopAnomalousServices
|
|
2524
|
+
TopAnomalousServices: output.TopAnomalousServices != null
|
|
2611
2525
|
? deserializeAws_restJson1AnomalousServiceList(output.TopAnomalousServices, context)
|
|
2612
2526
|
: undefined,
|
|
2613
2527
|
};
|
|
@@ -2643,7 +2557,7 @@ const deserializeAws_restJson1ResourceARNDetail = (output, context) => {
|
|
|
2643
2557
|
const deserializeAws_restJson1ResponseTimeRootCause = (output, context) => {
|
|
2644
2558
|
return {
|
|
2645
2559
|
ClientImpacting: (0, smithy_client_1.expectBoolean)(output.ClientImpacting),
|
|
2646
|
-
Services: output.Services
|
|
2560
|
+
Services: output.Services != null
|
|
2647
2561
|
? deserializeAws_restJson1ResponseTimeRootCauseServices(output.Services, context)
|
|
2648
2562
|
: undefined,
|
|
2649
2563
|
};
|
|
@@ -2680,14 +2594,12 @@ const deserializeAws_restJson1ResponseTimeRootCauses = (output, context) => {
|
|
|
2680
2594
|
const deserializeAws_restJson1ResponseTimeRootCauseService = (output, context) => {
|
|
2681
2595
|
return {
|
|
2682
2596
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2683
|
-
EntityPath: output.EntityPath
|
|
2597
|
+
EntityPath: output.EntityPath != null
|
|
2684
2598
|
? deserializeAws_restJson1ResponseTimeRootCauseEntityPath(output.EntityPath, context)
|
|
2685
2599
|
: undefined,
|
|
2686
2600
|
Inferred: (0, smithy_client_1.expectBoolean)(output.Inferred),
|
|
2687
2601
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2688
|
-
Names: output.Names
|
|
2689
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2690
|
-
: undefined,
|
|
2602
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2691
2603
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2692
2604
|
};
|
|
2693
2605
|
};
|
|
@@ -2721,9 +2633,7 @@ const deserializeAws_restJson1RootCauseExceptions = (output, context) => {
|
|
|
2721
2633
|
};
|
|
2722
2634
|
const deserializeAws_restJson1SamplingRule = (output, context) => {
|
|
2723
2635
|
return {
|
|
2724
|
-
Attributes: output.Attributes
|
|
2725
|
-
? deserializeAws_restJson1AttributeMap(output.Attributes, context)
|
|
2726
|
-
: undefined,
|
|
2636
|
+
Attributes: output.Attributes != null ? deserializeAws_restJson1AttributeMap(output.Attributes, context) : undefined,
|
|
2727
2637
|
FixedRate: (0, smithy_client_1.limitedParseDouble)(output.FixedRate),
|
|
2728
2638
|
HTTPMethod: (0, smithy_client_1.expectString)(output.HTTPMethod),
|
|
2729
2639
|
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
@@ -2740,15 +2650,9 @@ const deserializeAws_restJson1SamplingRule = (output, context) => {
|
|
|
2740
2650
|
};
|
|
2741
2651
|
const deserializeAws_restJson1SamplingRuleRecord = (output, context) => {
|
|
2742
2652
|
return {
|
|
2743
|
-
CreatedAt: output.CreatedAt
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
ModifiedAt: output.ModifiedAt !== undefined && output.ModifiedAt !== null
|
|
2747
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedAt)))
|
|
2748
|
-
: undefined,
|
|
2749
|
-
SamplingRule: output.SamplingRule !== undefined && output.SamplingRule !== null
|
|
2750
|
-
? deserializeAws_restJson1SamplingRule(output.SamplingRule, context)
|
|
2751
|
-
: 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,
|
|
2752
2656
|
};
|
|
2753
2657
|
};
|
|
2754
2658
|
const deserializeAws_restJson1SamplingRuleRecordList = (output, context) => {
|
|
@@ -2768,9 +2672,7 @@ const deserializeAws_restJson1SamplingStatisticSummary = (output, context) => {
|
|
|
2768
2672
|
RequestCount: (0, smithy_client_1.expectInt32)(output.RequestCount),
|
|
2769
2673
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
2770
2674
|
SampledCount: (0, smithy_client_1.expectInt32)(output.SampledCount),
|
|
2771
|
-
Timestamp: output.Timestamp
|
|
2772
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
2773
|
-
: undefined,
|
|
2675
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2774
2676
|
};
|
|
2775
2677
|
};
|
|
2776
2678
|
const deserializeAws_restJson1SamplingStatisticSummaryList = (output, context) => {
|
|
@@ -2789,7 +2691,7 @@ const deserializeAws_restJson1SamplingTargetDocument = (output, context) => {
|
|
|
2789
2691
|
FixedRate: (0, smithy_client_1.limitedParseDouble)(output.FixedRate),
|
|
2790
2692
|
Interval: (0, smithy_client_1.expectInt32)(output.Interval),
|
|
2791
2693
|
ReservoirQuota: (0, smithy_client_1.expectInt32)(output.ReservoirQuota),
|
|
2792
|
-
ReservoirQuotaTTL: output.ReservoirQuotaTTL
|
|
2694
|
+
ReservoirQuotaTTL: output.ReservoirQuotaTTL != null
|
|
2793
2695
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReservoirQuotaTTL)))
|
|
2794
2696
|
: undefined,
|
|
2795
2697
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
@@ -2826,29 +2728,21 @@ const deserializeAws_restJson1SegmentList = (output, context) => {
|
|
|
2826
2728
|
const deserializeAws_restJson1Service = (output, context) => {
|
|
2827
2729
|
return {
|
|
2828
2730
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2829
|
-
DurationHistogram: output.DurationHistogram
|
|
2731
|
+
DurationHistogram: output.DurationHistogram != null
|
|
2830
2732
|
? deserializeAws_restJson1Histogram(output.DurationHistogram, context)
|
|
2831
2733
|
: undefined,
|
|
2832
|
-
Edges: output.Edges
|
|
2833
|
-
|
|
2834
|
-
: undefined,
|
|
2835
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
2836
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2837
|
-
: 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,
|
|
2838
2736
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2839
|
-
Names: output.Names
|
|
2840
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2841
|
-
: undefined,
|
|
2737
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2842
2738
|
ReferenceId: (0, smithy_client_1.expectInt32)(output.ReferenceId),
|
|
2843
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2739
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2844
2740
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2845
2741
|
: undefined,
|
|
2846
2742
|
Root: (0, smithy_client_1.expectBoolean)(output.Root),
|
|
2847
|
-
StartTime: output.StartTime
|
|
2848
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2849
|
-
: undefined,
|
|
2743
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2850
2744
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2851
|
-
SummaryStatistics: output.SummaryStatistics
|
|
2745
|
+
SummaryStatistics: output.SummaryStatistics != null
|
|
2852
2746
|
? deserializeAws_restJson1ServiceStatistics(output.SummaryStatistics, context)
|
|
2853
2747
|
: undefined,
|
|
2854
2748
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -2858,9 +2752,7 @@ const deserializeAws_restJson1ServiceId = (output, context) => {
|
|
|
2858
2752
|
return {
|
|
2859
2753
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2860
2754
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2861
|
-
Names: output.Names
|
|
2862
|
-
? deserializeAws_restJson1ServiceNames(output.Names, context)
|
|
2863
|
-
: undefined,
|
|
2755
|
+
Names: output.Names != null ? deserializeAws_restJson1ServiceNames(output.Names, context) : undefined,
|
|
2864
2756
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2865
2757
|
};
|
|
2866
2758
|
};
|
|
@@ -2899,10 +2791,10 @@ const deserializeAws_restJson1ServiceNames = (output, context) => {
|
|
|
2899
2791
|
};
|
|
2900
2792
|
const deserializeAws_restJson1ServiceStatistics = (output, context) => {
|
|
2901
2793
|
return {
|
|
2902
|
-
ErrorStatistics: output.ErrorStatistics
|
|
2794
|
+
ErrorStatistics: output.ErrorStatistics != null
|
|
2903
2795
|
? deserializeAws_restJson1ErrorStatistics(output.ErrorStatistics, context)
|
|
2904
2796
|
: undefined,
|
|
2905
|
-
FaultStatistics: output.FaultStatistics
|
|
2797
|
+
FaultStatistics: output.FaultStatistics != null
|
|
2906
2798
|
? deserializeAws_restJson1FaultStatistics(output.FaultStatistics, context)
|
|
2907
2799
|
: undefined,
|
|
2908
2800
|
OkCount: (0, smithy_client_1.expectLong)(output.OkCount),
|
|
@@ -2929,21 +2821,19 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
2929
2821
|
};
|
|
2930
2822
|
const deserializeAws_restJson1TimeSeriesServiceStatistics = (output, context) => {
|
|
2931
2823
|
return {
|
|
2932
|
-
EdgeSummaryStatistics: output.EdgeSummaryStatistics
|
|
2824
|
+
EdgeSummaryStatistics: output.EdgeSummaryStatistics != null
|
|
2933
2825
|
? deserializeAws_restJson1EdgeStatistics(output.EdgeSummaryStatistics, context)
|
|
2934
2826
|
: undefined,
|
|
2935
|
-
ResponseTimeHistogram: output.ResponseTimeHistogram
|
|
2827
|
+
ResponseTimeHistogram: output.ResponseTimeHistogram != null
|
|
2936
2828
|
? deserializeAws_restJson1Histogram(output.ResponseTimeHistogram, context)
|
|
2937
2829
|
: undefined,
|
|
2938
|
-
ServiceForecastStatistics: output.ServiceForecastStatistics
|
|
2830
|
+
ServiceForecastStatistics: output.ServiceForecastStatistics != null
|
|
2939
2831
|
? deserializeAws_restJson1ForecastStatistics(output.ServiceForecastStatistics, context)
|
|
2940
2832
|
: undefined,
|
|
2941
|
-
ServiceSummaryStatistics: output.ServiceSummaryStatistics
|
|
2833
|
+
ServiceSummaryStatistics: output.ServiceSummaryStatistics != null
|
|
2942
2834
|
? deserializeAws_restJson1ServiceStatistics(output.ServiceSummaryStatistics, context)
|
|
2943
2835
|
: undefined,
|
|
2944
|
-
Timestamp: output.Timestamp
|
|
2945
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
2946
|
-
: undefined,
|
|
2836
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2947
2837
|
};
|
|
2948
2838
|
};
|
|
2949
2839
|
const deserializeAws_restJson1TimeSeriesServiceStatisticsList = (output, context) => {
|
|
@@ -2962,9 +2852,7 @@ const deserializeAws_restJson1Trace = (output, context) => {
|
|
|
2962
2852
|
Duration: (0, smithy_client_1.limitedParseDouble)(output.Duration),
|
|
2963
2853
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2964
2854
|
LimitExceeded: (0, smithy_client_1.expectBoolean)(output.LimitExceeded),
|
|
2965
|
-
Segments: output.Segments
|
|
2966
|
-
? deserializeAws_restJson1SegmentList(output.Segments, context)
|
|
2967
|
-
: undefined,
|
|
2855
|
+
Segments: output.Segments != null ? deserializeAws_restJson1SegmentList(output.Segments, context) : undefined,
|
|
2968
2856
|
};
|
|
2969
2857
|
};
|
|
2970
2858
|
const deserializeAws_restJson1TraceAvailabilityZones = (output, context) => {
|
|
@@ -3013,50 +2901,36 @@ const deserializeAws_restJson1TraceResourceARNs = (output, context) => {
|
|
|
3013
2901
|
};
|
|
3014
2902
|
const deserializeAws_restJson1TraceSummary = (output, context) => {
|
|
3015
2903
|
return {
|
|
3016
|
-
Annotations: output.Annotations
|
|
3017
|
-
|
|
3018
|
-
: undefined,
|
|
3019
|
-
AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null
|
|
2904
|
+
Annotations: output.Annotations != null ? deserializeAws_restJson1Annotations(output.Annotations, context) : undefined,
|
|
2905
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
3020
2906
|
? deserializeAws_restJson1TraceAvailabilityZones(output.AvailabilityZones, context)
|
|
3021
2907
|
: undefined,
|
|
3022
2908
|
Duration: (0, smithy_client_1.limitedParseDouble)(output.Duration),
|
|
3023
|
-
EntryPoint: output.EntryPoint
|
|
3024
|
-
|
|
3025
|
-
: undefined,
|
|
3026
|
-
ErrorRootCauses: output.ErrorRootCauses !== undefined && output.ErrorRootCauses !== null
|
|
2909
|
+
EntryPoint: output.EntryPoint != null ? deserializeAws_restJson1ServiceId(output.EntryPoint, context) : undefined,
|
|
2910
|
+
ErrorRootCauses: output.ErrorRootCauses != null
|
|
3027
2911
|
? deserializeAws_restJson1ErrorRootCauses(output.ErrorRootCauses, context)
|
|
3028
2912
|
: undefined,
|
|
3029
|
-
FaultRootCauses: output.FaultRootCauses
|
|
2913
|
+
FaultRootCauses: output.FaultRootCauses != null
|
|
3030
2914
|
? deserializeAws_restJson1FaultRootCauses(output.FaultRootCauses, context)
|
|
3031
2915
|
: undefined,
|
|
3032
2916
|
HasError: (0, smithy_client_1.expectBoolean)(output.HasError),
|
|
3033
2917
|
HasFault: (0, smithy_client_1.expectBoolean)(output.HasFault),
|
|
3034
2918
|
HasThrottle: (0, smithy_client_1.expectBoolean)(output.HasThrottle),
|
|
3035
|
-
Http: output.Http
|
|
3036
|
-
? deserializeAws_restJson1Http(output.Http, context)
|
|
3037
|
-
: undefined,
|
|
2919
|
+
Http: output.Http != null ? deserializeAws_restJson1Http(output.Http, context) : undefined,
|
|
3038
2920
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3039
|
-
InstanceIds: output.InstanceIds
|
|
3040
|
-
? deserializeAws_restJson1TraceInstanceIds(output.InstanceIds, context)
|
|
3041
|
-
: undefined,
|
|
2921
|
+
InstanceIds: output.InstanceIds != null ? deserializeAws_restJson1TraceInstanceIds(output.InstanceIds, context) : undefined,
|
|
3042
2922
|
IsPartial: (0, smithy_client_1.expectBoolean)(output.IsPartial),
|
|
3043
|
-
MatchedEventTime: output.MatchedEventTime
|
|
2923
|
+
MatchedEventTime: output.MatchedEventTime != null
|
|
3044
2924
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MatchedEventTime)))
|
|
3045
2925
|
: undefined,
|
|
3046
|
-
ResourceARNs: output.ResourceARNs
|
|
3047
|
-
? deserializeAws_restJson1TraceResourceARNs(output.ResourceARNs, context)
|
|
3048
|
-
: undefined,
|
|
2926
|
+
ResourceARNs: output.ResourceARNs != null ? deserializeAws_restJson1TraceResourceARNs(output.ResourceARNs, context) : undefined,
|
|
3049
2927
|
ResponseTime: (0, smithy_client_1.limitedParseDouble)(output.ResponseTime),
|
|
3050
|
-
ResponseTimeRootCauses: output.ResponseTimeRootCauses
|
|
2928
|
+
ResponseTimeRootCauses: output.ResponseTimeRootCauses != null
|
|
3051
2929
|
? deserializeAws_restJson1ResponseTimeRootCauses(output.ResponseTimeRootCauses, context)
|
|
3052
2930
|
: undefined,
|
|
3053
2931
|
Revision: (0, smithy_client_1.expectInt32)(output.Revision),
|
|
3054
|
-
ServiceIds: output.ServiceIds
|
|
3055
|
-
|
|
3056
|
-
: undefined,
|
|
3057
|
-
Users: output.Users !== undefined && output.Users !== null
|
|
3058
|
-
? deserializeAws_restJson1TraceUsers(output.Users, context)
|
|
3059
|
-
: undefined,
|
|
2932
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
2933
|
+
Users: output.Users != null ? deserializeAws_restJson1TraceUsers(output.Users, context) : undefined,
|
|
3060
2934
|
};
|
|
3061
2935
|
};
|
|
3062
2936
|
const deserializeAws_restJson1TraceSummaryList = (output, context) => {
|
|
@@ -3072,9 +2946,7 @@ const deserializeAws_restJson1TraceSummaryList = (output, context) => {
|
|
|
3072
2946
|
};
|
|
3073
2947
|
const deserializeAws_restJson1TraceUser = (output, context) => {
|
|
3074
2948
|
return {
|
|
3075
|
-
ServiceIds: output.ServiceIds
|
|
3076
|
-
? deserializeAws_restJson1ServiceIds(output.ServiceIds, context)
|
|
3077
|
-
: undefined,
|
|
2949
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
3078
2950
|
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
3079
2951
|
};
|
|
3080
2952
|
};
|
|
@@ -3149,12 +3021,10 @@ const deserializeAws_restJson1ValuesWithServiceIds = (output, context) => {
|
|
|
3149
3021
|
};
|
|
3150
3022
|
const deserializeAws_restJson1ValueWithServiceIds = (output, context) => {
|
|
3151
3023
|
return {
|
|
3152
|
-
AnnotationValue: output.AnnotationValue
|
|
3024
|
+
AnnotationValue: output.AnnotationValue != null
|
|
3153
3025
|
? deserializeAws_restJson1AnnotationValue((0, smithy_client_1.expectUnion)(output.AnnotationValue), context)
|
|
3154
3026
|
: undefined,
|
|
3155
|
-
ServiceIds: output.ServiceIds
|
|
3156
|
-
? deserializeAws_restJson1ServiceIds(output.ServiceIds, context)
|
|
3157
|
-
: undefined,
|
|
3027
|
+
ServiceIds: output.ServiceIds != null ? deserializeAws_restJson1ServiceIds(output.ServiceIds, context) : undefined,
|
|
3158
3028
|
};
|
|
3159
3029
|
};
|
|
3160
3030
|
const deserializeMetadata = (output) => {
|