@aws-sdk/client-devops-guru 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +676 -1744
- package/dist-es/protocols/Aws_restJson1.js +634 -1702
- package/package.json +6 -6
|
@@ -14,9 +14,9 @@ const se_AddNotificationChannelCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
|
|
19
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
Config: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
}));
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
22
22
|
hostname,
|
|
@@ -71,10 +71,10 @@ const se_DescribeAccountOverviewCommand = async (input, context) => {
|
|
|
71
71
|
};
|
|
72
72
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/overview";
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify({
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
});
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
+
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
76
|
+
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
77
|
+
}));
|
|
78
78
|
return new protocol_http_1.HttpRequest({
|
|
79
79
|
protocol,
|
|
80
80
|
hostname,
|
|
@@ -91,7 +91,7 @@ const se_DescribeAnomalyCommand = async (input, context) => {
|
|
|
91
91
|
const headers = {};
|
|
92
92
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/anomalies/{Id}";
|
|
93
93
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
94
|
-
const query = map({
|
|
94
|
+
const query = (0, smithy_client_1.map)({
|
|
95
95
|
AccountId: [, input.AccountId],
|
|
96
96
|
});
|
|
97
97
|
let body;
|
|
@@ -133,9 +133,9 @@ const se_DescribeFeedbackCommand = async (input, context) => {
|
|
|
133
133
|
};
|
|
134
134
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
|
|
135
135
|
let body;
|
|
136
|
-
body = JSON.stringify({
|
|
137
|
-
|
|
138
|
-
});
|
|
136
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
+
InsightId: [],
|
|
138
|
+
}));
|
|
139
139
|
return new protocol_http_1.HttpRequest({
|
|
140
140
|
protocol,
|
|
141
141
|
hostname,
|
|
@@ -152,7 +152,7 @@ const se_DescribeInsightCommand = async (input, context) => {
|
|
|
152
152
|
const headers = {};
|
|
153
153
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/{Id}";
|
|
154
154
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
155
|
-
const query = map({
|
|
155
|
+
const query = (0, smithy_client_1.map)({
|
|
156
156
|
AccountId: [, input.AccountId],
|
|
157
157
|
});
|
|
158
158
|
let body;
|
|
@@ -175,12 +175,10 @@ const se_DescribeOrganizationHealthCommand = async (input, context) => {
|
|
|
175
175
|
};
|
|
176
176
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health";
|
|
177
177
|
let body;
|
|
178
|
-
body = JSON.stringify({
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}),
|
|
183
|
-
});
|
|
178
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
179
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
180
|
+
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
181
|
+
}));
|
|
184
182
|
return new protocol_http_1.HttpRequest({
|
|
185
183
|
protocol,
|
|
186
184
|
hostname,
|
|
@@ -199,14 +197,12 @@ const se_DescribeOrganizationOverviewCommand = async (input, context) => {
|
|
|
199
197
|
};
|
|
200
198
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/overview";
|
|
201
199
|
let body;
|
|
202
|
-
body = JSON.stringify({
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
|
|
209
|
-
});
|
|
200
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
201
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
202
|
+
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
203
|
+
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
204
|
+
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
205
|
+
}));
|
|
210
206
|
return new protocol_http_1.HttpRequest({
|
|
211
207
|
protocol,
|
|
212
208
|
hostname,
|
|
@@ -225,17 +221,13 @@ const se_DescribeOrganizationResourceCollectionHealthCommand = async (input, con
|
|
|
225
221
|
};
|
|
226
222
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health/resource-collection";
|
|
227
223
|
let body;
|
|
228
|
-
body = JSON.stringify({
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
...(input.OrganizationalUnitIds != null && {
|
|
236
|
-
OrganizationalUnitIds: se_OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
237
|
-
}),
|
|
238
|
-
});
|
|
224
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
225
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
226
|
+
MaxResults: [],
|
|
227
|
+
NextToken: [],
|
|
228
|
+
OrganizationResourceCollectionType: [],
|
|
229
|
+
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
230
|
+
}));
|
|
239
231
|
return new protocol_http_1.HttpRequest({
|
|
240
232
|
protocol,
|
|
241
233
|
hostname,
|
|
@@ -253,7 +245,7 @@ const se_DescribeResourceCollectionHealthCommand = async (input, context) => {
|
|
|
253
245
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
254
246
|
"/accounts/health/resource-collection/{ResourceCollectionType}";
|
|
255
247
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
256
|
-
const query = map({
|
|
248
|
+
const query = (0, smithy_client_1.map)({
|
|
257
249
|
NextToken: [, input.NextToken],
|
|
258
250
|
});
|
|
259
251
|
let body;
|
|
@@ -292,7 +284,7 @@ const se_GetCostEstimationCommand = async (input, context) => {
|
|
|
292
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
285
|
const headers = {};
|
|
294
286
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cost-estimation";
|
|
295
|
-
const query = map({
|
|
287
|
+
const query = (0, smithy_client_1.map)({
|
|
296
288
|
NextToken: [, input.NextToken],
|
|
297
289
|
});
|
|
298
290
|
let body;
|
|
@@ -314,7 +306,7 @@ const se_GetResourceCollectionCommand = async (input, context) => {
|
|
|
314
306
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
315
307
|
"/resource-collections/{ResourceCollectionType}";
|
|
316
308
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
317
|
-
const query = map({
|
|
309
|
+
const query = (0, smithy_client_1.map)({
|
|
318
310
|
NextToken: [, input.NextToken],
|
|
319
311
|
});
|
|
320
312
|
let body;
|
|
@@ -338,13 +330,13 @@ const se_ListAnomaliesForInsightCommand = async (input, context) => {
|
|
|
338
330
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/anomalies/insight/{InsightId}";
|
|
339
331
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InsightId", () => input.InsightId, "{InsightId}", false);
|
|
340
332
|
let body;
|
|
341
|
-
body = JSON.stringify({
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
});
|
|
333
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
|
+
AccountId: [],
|
|
335
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
336
|
+
MaxResults: [],
|
|
337
|
+
NextToken: [],
|
|
338
|
+
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
339
|
+
}));
|
|
348
340
|
return new protocol_http_1.HttpRequest({
|
|
349
341
|
protocol,
|
|
350
342
|
hostname,
|
|
@@ -363,11 +355,11 @@ const se_ListAnomalousLogGroupsCommand = async (input, context) => {
|
|
|
363
355
|
};
|
|
364
356
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-log-anomalies";
|
|
365
357
|
let body;
|
|
366
|
-
body = JSON.stringify({
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
});
|
|
358
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
359
|
+
InsightId: [],
|
|
360
|
+
MaxResults: [],
|
|
361
|
+
NextToken: [],
|
|
362
|
+
}));
|
|
371
363
|
return new protocol_http_1.HttpRequest({
|
|
372
364
|
protocol,
|
|
373
365
|
hostname,
|
|
@@ -386,12 +378,12 @@ const se_ListEventsCommand = async (input, context) => {
|
|
|
386
378
|
};
|
|
387
379
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/events";
|
|
388
380
|
let body;
|
|
389
|
-
body = JSON.stringify({
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
});
|
|
381
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
382
|
+
AccountId: [],
|
|
383
|
+
Filters: (_) => se_ListEventsFilters(_, context),
|
|
384
|
+
MaxResults: [],
|
|
385
|
+
NextToken: [],
|
|
386
|
+
}));
|
|
395
387
|
return new protocol_http_1.HttpRequest({
|
|
396
388
|
protocol,
|
|
397
389
|
hostname,
|
|
@@ -410,11 +402,11 @@ const se_ListInsightsCommand = async (input, context) => {
|
|
|
410
402
|
};
|
|
411
403
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
|
|
412
404
|
let body;
|
|
413
|
-
body = JSON.stringify({
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
});
|
|
405
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
406
|
+
MaxResults: [],
|
|
407
|
+
NextToken: [],
|
|
408
|
+
StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
|
|
409
|
+
}));
|
|
418
410
|
return new protocol_http_1.HttpRequest({
|
|
419
411
|
protocol,
|
|
420
412
|
hostname,
|
|
@@ -433,11 +425,11 @@ const se_ListMonitoredResourcesCommand = async (input, context) => {
|
|
|
433
425
|
};
|
|
434
426
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/monitoredResources";
|
|
435
427
|
let body;
|
|
436
|
-
body = JSON.stringify({
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
});
|
|
428
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
429
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
430
|
+
MaxResults: [],
|
|
431
|
+
NextToken: [],
|
|
432
|
+
}));
|
|
441
433
|
return new protocol_http_1.HttpRequest({
|
|
442
434
|
protocol,
|
|
443
435
|
hostname,
|
|
@@ -456,9 +448,9 @@ const se_ListNotificationChannelsCommand = async (input, context) => {
|
|
|
456
448
|
};
|
|
457
449
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
458
450
|
let body;
|
|
459
|
-
body = JSON.stringify({
|
|
460
|
-
|
|
461
|
-
});
|
|
451
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
452
|
+
NextToken: [],
|
|
453
|
+
}));
|
|
462
454
|
return new protocol_http_1.HttpRequest({
|
|
463
455
|
protocol,
|
|
464
456
|
hostname,
|
|
@@ -477,15 +469,13 @@ const se_ListOrganizationInsightsCommand = async (input, context) => {
|
|
|
477
469
|
};
|
|
478
470
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights";
|
|
479
471
|
let body;
|
|
480
|
-
body = JSON.stringify({
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
...(input.StatusFilter != null && { StatusFilter: se_ListInsightsStatusFilter(input.StatusFilter, context) }),
|
|
488
|
-
});
|
|
472
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
473
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
474
|
+
MaxResults: [],
|
|
475
|
+
NextToken: [],
|
|
476
|
+
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
477
|
+
StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
|
|
478
|
+
}));
|
|
489
479
|
return new protocol_http_1.HttpRequest({
|
|
490
480
|
protocol,
|
|
491
481
|
hostname,
|
|
@@ -504,12 +494,12 @@ const se_ListRecommendationsCommand = async (input, context) => {
|
|
|
504
494
|
};
|
|
505
495
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations";
|
|
506
496
|
let body;
|
|
507
|
-
body = JSON.stringify({
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
});
|
|
497
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
498
|
+
AccountId: [],
|
|
499
|
+
InsightId: [],
|
|
500
|
+
Locale: [],
|
|
501
|
+
NextToken: [],
|
|
502
|
+
}));
|
|
513
503
|
return new protocol_http_1.HttpRequest({
|
|
514
504
|
protocol,
|
|
515
505
|
hostname,
|
|
@@ -528,9 +518,9 @@ const se_PutFeedbackCommand = async (input, context) => {
|
|
|
528
518
|
};
|
|
529
519
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
|
|
530
520
|
let body;
|
|
531
|
-
body = JSON.stringify({
|
|
532
|
-
|
|
533
|
-
});
|
|
521
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
522
|
+
InsightFeedback: (_) => (0, smithy_client_1._json)(_),
|
|
523
|
+
}));
|
|
534
524
|
return new protocol_http_1.HttpRequest({
|
|
535
525
|
protocol,
|
|
536
526
|
hostname,
|
|
@@ -566,13 +556,13 @@ const se_SearchInsightsCommand = async (input, context) => {
|
|
|
566
556
|
};
|
|
567
557
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/search";
|
|
568
558
|
let body;
|
|
569
|
-
body = JSON.stringify({
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
});
|
|
559
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
560
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
561
|
+
MaxResults: [],
|
|
562
|
+
NextToken: [],
|
|
563
|
+
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
564
|
+
Type: [],
|
|
565
|
+
}));
|
|
576
566
|
return new protocol_http_1.HttpRequest({
|
|
577
567
|
protocol,
|
|
578
568
|
hostname,
|
|
@@ -591,14 +581,14 @@ const se_SearchOrganizationInsightsCommand = async (input, context) => {
|
|
|
591
581
|
};
|
|
592
582
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights/search";
|
|
593
583
|
let body;
|
|
594
|
-
body = JSON.stringify({
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
});
|
|
584
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
585
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
586
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
587
|
+
MaxResults: [],
|
|
588
|
+
NextToken: [],
|
|
589
|
+
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
590
|
+
Type: [],
|
|
591
|
+
}));
|
|
602
592
|
return new protocol_http_1.HttpRequest({
|
|
603
593
|
protocol,
|
|
604
594
|
hostname,
|
|
@@ -617,12 +607,10 @@ const se_StartCostEstimationCommand = async (input, context) => {
|
|
|
617
607
|
};
|
|
618
608
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cost-estimation";
|
|
619
609
|
let body;
|
|
620
|
-
body = JSON.stringify({
|
|
621
|
-
ClientToken:
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
}),
|
|
625
|
-
});
|
|
610
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
611
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
612
|
+
ResourceCollection: (_) => (0, smithy_client_1._json)(_),
|
|
613
|
+
}));
|
|
626
614
|
return new protocol_http_1.HttpRequest({
|
|
627
615
|
protocol,
|
|
628
616
|
hostname,
|
|
@@ -641,9 +629,9 @@ const se_UpdateEventSourcesConfigCommand = async (input, context) => {
|
|
|
641
629
|
};
|
|
642
630
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
|
|
643
631
|
let body;
|
|
644
|
-
body = JSON.stringify({
|
|
645
|
-
|
|
646
|
-
});
|
|
632
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
|
+
EventSources: (_) => (0, smithy_client_1._json)(_),
|
|
634
|
+
}));
|
|
647
635
|
return new protocol_http_1.HttpRequest({
|
|
648
636
|
protocol,
|
|
649
637
|
hostname,
|
|
@@ -662,12 +650,10 @@ const se_UpdateResourceCollectionCommand = async (input, context) => {
|
|
|
662
650
|
};
|
|
663
651
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-collections";
|
|
664
652
|
let body;
|
|
665
|
-
body = JSON.stringify({
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}),
|
|
670
|
-
});
|
|
653
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
654
|
+
Action: [],
|
|
655
|
+
ResourceCollection: (_) => (0, smithy_client_1._json)(_),
|
|
656
|
+
}));
|
|
671
657
|
return new protocol_http_1.HttpRequest({
|
|
672
658
|
protocol,
|
|
673
659
|
hostname,
|
|
@@ -686,11 +672,9 @@ const se_UpdateServiceIntegrationCommand = async (input, context) => {
|
|
|
686
672
|
};
|
|
687
673
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-integrations";
|
|
688
674
|
let body;
|
|
689
|
-
body = JSON.stringify({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
}),
|
|
693
|
-
});
|
|
675
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
676
|
+
ServiceIntegration: (_) => (0, smithy_client_1._json)(_),
|
|
677
|
+
}));
|
|
694
678
|
return new protocol_http_1.HttpRequest({
|
|
695
679
|
protocol,
|
|
696
680
|
hostname,
|
|
@@ -706,13 +690,14 @@ const de_AddNotificationChannelCommand = async (output, context) => {
|
|
|
706
690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
691
|
return de_AddNotificationChannelCommandError(output, context);
|
|
708
692
|
}
|
|
709
|
-
const contents = map({
|
|
693
|
+
const contents = (0, smithy_client_1.map)({
|
|
710
694
|
$metadata: deserializeMetadata(output),
|
|
711
695
|
});
|
|
712
696
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
697
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
698
|
+
Id: smithy_client_1.expectString,
|
|
699
|
+
});
|
|
700
|
+
Object.assign(contents, doc);
|
|
716
701
|
return contents;
|
|
717
702
|
};
|
|
718
703
|
exports.de_AddNotificationChannelCommand = de_AddNotificationChannelCommand;
|
|
@@ -746,10 +731,9 @@ const de_AddNotificationChannelCommandError = async (output, context) => {
|
|
|
746
731
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
747
732
|
default:
|
|
748
733
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
734
|
+
return throwDefaultError({
|
|
750
735
|
output,
|
|
751
736
|
parsedBody,
|
|
752
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
753
737
|
errorCode,
|
|
754
738
|
});
|
|
755
739
|
}
|
|
@@ -758,7 +742,7 @@ const de_DeleteInsightCommand = async (output, context) => {
|
|
|
758
742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
743
|
return de_DeleteInsightCommandError(output, context);
|
|
760
744
|
}
|
|
761
|
-
const contents = map({
|
|
745
|
+
const contents = (0, smithy_client_1.map)({
|
|
762
746
|
$metadata: deserializeMetadata(output),
|
|
763
747
|
});
|
|
764
748
|
await collectBody(output.body, context);
|
|
@@ -792,10 +776,9 @@ const de_DeleteInsightCommandError = async (output, context) => {
|
|
|
792
776
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
777
|
default:
|
|
794
778
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
|
|
779
|
+
return throwDefaultError({
|
|
796
780
|
output,
|
|
797
781
|
parsedBody,
|
|
798
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
799
782
|
errorCode,
|
|
800
783
|
});
|
|
801
784
|
}
|
|
@@ -804,25 +787,18 @@ const de_DescribeAccountHealthCommand = async (output, context) => {
|
|
|
804
787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
788
|
return de_DescribeAccountHealthCommandError(output, context);
|
|
806
789
|
}
|
|
807
|
-
const contents = map({
|
|
790
|
+
const contents = (0, smithy_client_1.map)({
|
|
808
791
|
$metadata: deserializeMetadata(output),
|
|
809
792
|
});
|
|
810
793
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
}
|
|
820
|
-
if (data.OpenReactiveInsights != null) {
|
|
821
|
-
contents.OpenReactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenReactiveInsights);
|
|
822
|
-
}
|
|
823
|
-
if (data.ResourceHours != null) {
|
|
824
|
-
contents.ResourceHours = (0, smithy_client_1.expectLong)(data.ResourceHours);
|
|
825
|
-
}
|
|
794
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
795
|
+
AnalyzedResourceCount: smithy_client_1.expectLong,
|
|
796
|
+
MetricsAnalyzed: smithy_client_1.expectInt32,
|
|
797
|
+
OpenProactiveInsights: smithy_client_1.expectInt32,
|
|
798
|
+
OpenReactiveInsights: smithy_client_1.expectInt32,
|
|
799
|
+
ResourceHours: smithy_client_1.expectLong,
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
826
802
|
return contents;
|
|
827
803
|
};
|
|
828
804
|
exports.de_DescribeAccountHealthCommand = de_DescribeAccountHealthCommand;
|
|
@@ -847,10 +823,9 @@ const de_DescribeAccountHealthCommandError = async (output, context) => {
|
|
|
847
823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
824
|
default:
|
|
849
825
|
const parsedBody = parsedOutput.body;
|
|
850
|
-
|
|
826
|
+
return throwDefaultError({
|
|
851
827
|
output,
|
|
852
828
|
parsedBody,
|
|
853
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
854
829
|
errorCode,
|
|
855
830
|
});
|
|
856
831
|
}
|
|
@@ -859,19 +834,16 @@ const de_DescribeAccountOverviewCommand = async (output, context) => {
|
|
|
859
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
835
|
return de_DescribeAccountOverviewCommandError(output, context);
|
|
861
836
|
}
|
|
862
|
-
const contents = map({
|
|
837
|
+
const contents = (0, smithy_client_1.map)({
|
|
863
838
|
$metadata: deserializeMetadata(output),
|
|
864
839
|
});
|
|
865
840
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
if (data.ReactiveInsights != null) {
|
|
873
|
-
contents.ReactiveInsights = (0, smithy_client_1.expectInt32)(data.ReactiveInsights);
|
|
874
|
-
}
|
|
841
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
842
|
+
MeanTimeToRecoverInMilliseconds: smithy_client_1.expectLong,
|
|
843
|
+
ProactiveInsights: smithy_client_1.expectInt32,
|
|
844
|
+
ReactiveInsights: smithy_client_1.expectInt32,
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
875
847
|
return contents;
|
|
876
848
|
};
|
|
877
849
|
exports.de_DescribeAccountOverviewCommand = de_DescribeAccountOverviewCommand;
|
|
@@ -896,10 +868,9 @@ const de_DescribeAccountOverviewCommandError = async (output, context) => {
|
|
|
896
868
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
869
|
default:
|
|
898
870
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
871
|
+
return throwDefaultError({
|
|
900
872
|
output,
|
|
901
873
|
parsedBody,
|
|
902
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
903
874
|
errorCode,
|
|
904
875
|
});
|
|
905
876
|
}
|
|
@@ -908,16 +879,15 @@ const de_DescribeAnomalyCommand = async (output, context) => {
|
|
|
908
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
880
|
return de_DescribeAnomalyCommandError(output, context);
|
|
910
881
|
}
|
|
911
|
-
const contents = map({
|
|
882
|
+
const contents = (0, smithy_client_1.map)({
|
|
912
883
|
$metadata: deserializeMetadata(output),
|
|
913
884
|
});
|
|
914
885
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
}
|
|
886
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
887
|
+
ProactiveAnomaly: (_) => de_ProactiveAnomaly(_, context),
|
|
888
|
+
ReactiveAnomaly: (_) => de_ReactiveAnomaly(_, context),
|
|
889
|
+
});
|
|
890
|
+
Object.assign(contents, doc);
|
|
921
891
|
return contents;
|
|
922
892
|
};
|
|
923
893
|
exports.de_DescribeAnomalyCommand = de_DescribeAnomalyCommand;
|
|
@@ -945,10 +915,9 @@ const de_DescribeAnomalyCommandError = async (output, context) => {
|
|
|
945
915
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
916
|
default:
|
|
947
917
|
const parsedBody = parsedOutput.body;
|
|
948
|
-
|
|
918
|
+
return throwDefaultError({
|
|
949
919
|
output,
|
|
950
920
|
parsedBody,
|
|
951
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
952
921
|
errorCode,
|
|
953
922
|
});
|
|
954
923
|
}
|
|
@@ -957,13 +926,14 @@ const de_DescribeEventSourcesConfigCommand = async (output, context) => {
|
|
|
957
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
927
|
return de_DescribeEventSourcesConfigCommandError(output, context);
|
|
959
928
|
}
|
|
960
|
-
const contents = map({
|
|
929
|
+
const contents = (0, smithy_client_1.map)({
|
|
961
930
|
$metadata: deserializeMetadata(output),
|
|
962
931
|
});
|
|
963
932
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
933
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
934
|
+
EventSources: smithy_client_1._json,
|
|
935
|
+
});
|
|
936
|
+
Object.assign(contents, doc);
|
|
967
937
|
return contents;
|
|
968
938
|
};
|
|
969
939
|
exports.de_DescribeEventSourcesConfigCommand = de_DescribeEventSourcesConfigCommand;
|
|
@@ -988,10 +958,9 @@ const de_DescribeEventSourcesConfigCommandError = async (output, context) => {
|
|
|
988
958
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
959
|
default:
|
|
990
960
|
const parsedBody = parsedOutput.body;
|
|
991
|
-
|
|
961
|
+
return throwDefaultError({
|
|
992
962
|
output,
|
|
993
963
|
parsedBody,
|
|
994
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
995
964
|
errorCode,
|
|
996
965
|
});
|
|
997
966
|
}
|
|
@@ -1000,13 +969,14 @@ const de_DescribeFeedbackCommand = async (output, context) => {
|
|
|
1000
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
970
|
return de_DescribeFeedbackCommandError(output, context);
|
|
1002
971
|
}
|
|
1003
|
-
const contents = map({
|
|
972
|
+
const contents = (0, smithy_client_1.map)({
|
|
1004
973
|
$metadata: deserializeMetadata(output),
|
|
1005
974
|
});
|
|
1006
975
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}
|
|
976
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
977
|
+
InsightFeedback: smithy_client_1._json,
|
|
978
|
+
});
|
|
979
|
+
Object.assign(contents, doc);
|
|
1010
980
|
return contents;
|
|
1011
981
|
};
|
|
1012
982
|
exports.de_DescribeFeedbackCommand = de_DescribeFeedbackCommand;
|
|
@@ -1034,10 +1004,9 @@ const de_DescribeFeedbackCommandError = async (output, context) => {
|
|
|
1034
1004
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1035
1005
|
default:
|
|
1036
1006
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1007
|
+
return throwDefaultError({
|
|
1038
1008
|
output,
|
|
1039
1009
|
parsedBody,
|
|
1040
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1041
1010
|
errorCode,
|
|
1042
1011
|
});
|
|
1043
1012
|
}
|
|
@@ -1046,16 +1015,15 @@ const de_DescribeInsightCommand = async (output, context) => {
|
|
|
1046
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
1016
|
return de_DescribeInsightCommandError(output, context);
|
|
1048
1017
|
}
|
|
1049
|
-
const contents = map({
|
|
1018
|
+
const contents = (0, smithy_client_1.map)({
|
|
1050
1019
|
$metadata: deserializeMetadata(output),
|
|
1051
1020
|
});
|
|
1052
1021
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
}
|
|
1022
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1023
|
+
ProactiveInsight: (_) => de_ProactiveInsight(_, context),
|
|
1024
|
+
ReactiveInsight: (_) => de_ReactiveInsight(_, context),
|
|
1025
|
+
});
|
|
1026
|
+
Object.assign(contents, doc);
|
|
1059
1027
|
return contents;
|
|
1060
1028
|
};
|
|
1061
1029
|
exports.de_DescribeInsightCommand = de_DescribeInsightCommand;
|
|
@@ -1083,10 +1051,9 @@ const de_DescribeInsightCommandError = async (output, context) => {
|
|
|
1083
1051
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1084
1052
|
default:
|
|
1085
1053
|
const parsedBody = parsedOutput.body;
|
|
1086
|
-
|
|
1054
|
+
return throwDefaultError({
|
|
1087
1055
|
output,
|
|
1088
1056
|
parsedBody,
|
|
1089
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1090
1057
|
errorCode,
|
|
1091
1058
|
});
|
|
1092
1059
|
}
|
|
@@ -1095,22 +1062,17 @@ const de_DescribeOrganizationHealthCommand = async (output, context) => {
|
|
|
1095
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
1063
|
return de_DescribeOrganizationHealthCommandError(output, context);
|
|
1097
1064
|
}
|
|
1098
|
-
const contents = map({
|
|
1065
|
+
const contents = (0, smithy_client_1.map)({
|
|
1099
1066
|
$metadata: deserializeMetadata(output),
|
|
1100
1067
|
});
|
|
1101
1068
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
contents.OpenReactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenReactiveInsights);
|
|
1110
|
-
}
|
|
1111
|
-
if (data.ResourceHours != null) {
|
|
1112
|
-
contents.ResourceHours = (0, smithy_client_1.expectLong)(data.ResourceHours);
|
|
1113
|
-
}
|
|
1069
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1070
|
+
MetricsAnalyzed: smithy_client_1.expectInt32,
|
|
1071
|
+
OpenProactiveInsights: smithy_client_1.expectInt32,
|
|
1072
|
+
OpenReactiveInsights: smithy_client_1.expectInt32,
|
|
1073
|
+
ResourceHours: smithy_client_1.expectLong,
|
|
1074
|
+
});
|
|
1075
|
+
Object.assign(contents, doc);
|
|
1114
1076
|
return contents;
|
|
1115
1077
|
};
|
|
1116
1078
|
exports.de_DescribeOrganizationHealthCommand = de_DescribeOrganizationHealthCommand;
|
|
@@ -1135,10 +1097,9 @@ const de_DescribeOrganizationHealthCommandError = async (output, context) => {
|
|
|
1135
1097
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
1098
|
default:
|
|
1137
1099
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1100
|
+
return throwDefaultError({
|
|
1139
1101
|
output,
|
|
1140
1102
|
parsedBody,
|
|
1141
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1142
1103
|
errorCode,
|
|
1143
1104
|
});
|
|
1144
1105
|
}
|
|
@@ -1147,16 +1108,15 @@ const de_DescribeOrganizationOverviewCommand = async (output, context) => {
|
|
|
1147
1108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1148
1109
|
return de_DescribeOrganizationOverviewCommandError(output, context);
|
|
1149
1110
|
}
|
|
1150
|
-
const contents = map({
|
|
1111
|
+
const contents = (0, smithy_client_1.map)({
|
|
1151
1112
|
$metadata: deserializeMetadata(output),
|
|
1152
1113
|
});
|
|
1153
1114
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1115
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1116
|
+
ProactiveInsights: smithy_client_1.expectInt32,
|
|
1117
|
+
ReactiveInsights: smithy_client_1.expectInt32,
|
|
1118
|
+
});
|
|
1119
|
+
Object.assign(contents, doc);
|
|
1160
1120
|
return contents;
|
|
1161
1121
|
};
|
|
1162
1122
|
exports.de_DescribeOrganizationOverviewCommand = de_DescribeOrganizationOverviewCommand;
|
|
@@ -1181,10 +1141,9 @@ const de_DescribeOrganizationOverviewCommandError = async (output, context) => {
|
|
|
1181
1141
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
1142
|
default:
|
|
1183
1143
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1144
|
+
return throwDefaultError({
|
|
1185
1145
|
output,
|
|
1186
1146
|
parsedBody,
|
|
1187
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1188
1147
|
errorCode,
|
|
1189
1148
|
});
|
|
1190
1149
|
}
|
|
@@ -1193,25 +1152,18 @@ const de_DescribeOrganizationResourceCollectionHealthCommand = async (output, co
|
|
|
1193
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
1153
|
return de_DescribeOrganizationResourceCollectionHealthCommandError(output, context);
|
|
1195
1154
|
}
|
|
1196
|
-
const contents = map({
|
|
1155
|
+
const contents = (0, smithy_client_1.map)({
|
|
1197
1156
|
$metadata: deserializeMetadata(output),
|
|
1198
1157
|
});
|
|
1199
1158
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
}
|
|
1209
|
-
if (data.Service != null) {
|
|
1210
|
-
contents.Service = de_ServiceHealths(data.Service, context);
|
|
1211
|
-
}
|
|
1212
|
-
if (data.Tags != null) {
|
|
1213
|
-
contents.Tags = de_TagHealths(data.Tags, context);
|
|
1214
|
-
}
|
|
1159
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1160
|
+
Account: smithy_client_1._json,
|
|
1161
|
+
CloudFormation: smithy_client_1._json,
|
|
1162
|
+
NextToken: smithy_client_1.expectString,
|
|
1163
|
+
Service: smithy_client_1._json,
|
|
1164
|
+
Tags: smithy_client_1._json,
|
|
1165
|
+
});
|
|
1166
|
+
Object.assign(contents, doc);
|
|
1215
1167
|
return contents;
|
|
1216
1168
|
};
|
|
1217
1169
|
exports.de_DescribeOrganizationResourceCollectionHealthCommand = de_DescribeOrganizationResourceCollectionHealthCommand;
|
|
@@ -1236,10 +1188,9 @@ const de_DescribeOrganizationResourceCollectionHealthCommandError = async (outpu
|
|
|
1236
1188
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1237
1189
|
default:
|
|
1238
1190
|
const parsedBody = parsedOutput.body;
|
|
1239
|
-
|
|
1191
|
+
return throwDefaultError({
|
|
1240
1192
|
output,
|
|
1241
1193
|
parsedBody,
|
|
1242
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1243
1194
|
errorCode,
|
|
1244
1195
|
});
|
|
1245
1196
|
}
|
|
@@ -1248,22 +1199,17 @@ const de_DescribeResourceCollectionHealthCommand = async (output, context) => {
|
|
|
1248
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
1200
|
return de_DescribeResourceCollectionHealthCommandError(output, context);
|
|
1250
1201
|
}
|
|
1251
|
-
const contents = map({
|
|
1202
|
+
const contents = (0, smithy_client_1.map)({
|
|
1252
1203
|
$metadata: deserializeMetadata(output),
|
|
1253
1204
|
});
|
|
1254
1205
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
contents.Service = de_ServiceHealths(data.Service, context);
|
|
1263
|
-
}
|
|
1264
|
-
if (data.Tags != null) {
|
|
1265
|
-
contents.Tags = de_TagHealths(data.Tags, context);
|
|
1266
|
-
}
|
|
1206
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1207
|
+
CloudFormation: smithy_client_1._json,
|
|
1208
|
+
NextToken: smithy_client_1.expectString,
|
|
1209
|
+
Service: smithy_client_1._json,
|
|
1210
|
+
Tags: smithy_client_1._json,
|
|
1211
|
+
});
|
|
1212
|
+
Object.assign(contents, doc);
|
|
1267
1213
|
return contents;
|
|
1268
1214
|
};
|
|
1269
1215
|
exports.de_DescribeResourceCollectionHealthCommand = de_DescribeResourceCollectionHealthCommand;
|
|
@@ -1288,10 +1234,9 @@ const de_DescribeResourceCollectionHealthCommandError = async (output, context)
|
|
|
1288
1234
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1289
1235
|
default:
|
|
1290
1236
|
const parsedBody = parsedOutput.body;
|
|
1291
|
-
|
|
1237
|
+
return throwDefaultError({
|
|
1292
1238
|
output,
|
|
1293
1239
|
parsedBody,
|
|
1294
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1295
1240
|
errorCode,
|
|
1296
1241
|
});
|
|
1297
1242
|
}
|
|
@@ -1300,13 +1245,14 @@ const de_DescribeServiceIntegrationCommand = async (output, context) => {
|
|
|
1300
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
1246
|
return de_DescribeServiceIntegrationCommandError(output, context);
|
|
1302
1247
|
}
|
|
1303
|
-
const contents = map({
|
|
1248
|
+
const contents = (0, smithy_client_1.map)({
|
|
1304
1249
|
$metadata: deserializeMetadata(output),
|
|
1305
1250
|
});
|
|
1306
1251
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
}
|
|
1252
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1253
|
+
ServiceIntegration: smithy_client_1._json,
|
|
1254
|
+
});
|
|
1255
|
+
Object.assign(contents, doc);
|
|
1310
1256
|
return contents;
|
|
1311
1257
|
};
|
|
1312
1258
|
exports.de_DescribeServiceIntegrationCommand = de_DescribeServiceIntegrationCommand;
|
|
@@ -1334,10 +1280,9 @@ const de_DescribeServiceIntegrationCommandError = async (output, context) => {
|
|
|
1334
1280
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1335
1281
|
default:
|
|
1336
1282
|
const parsedBody = parsedOutput.body;
|
|
1337
|
-
|
|
1283
|
+
return throwDefaultError({
|
|
1338
1284
|
output,
|
|
1339
1285
|
parsedBody,
|
|
1340
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1341
1286
|
errorCode,
|
|
1342
1287
|
});
|
|
1343
1288
|
}
|
|
@@ -1346,28 +1291,19 @@ const de_GetCostEstimationCommand = async (output, context) => {
|
|
|
1346
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
1292
|
return de_GetCostEstimationCommandError(output, context);
|
|
1348
1293
|
}
|
|
1349
|
-
const contents = map({
|
|
1294
|
+
const contents = (0, smithy_client_1.map)({
|
|
1350
1295
|
$metadata: deserializeMetadata(output),
|
|
1351
1296
|
});
|
|
1352
1297
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
if (data.Status != null) {
|
|
1363
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1364
|
-
}
|
|
1365
|
-
if (data.TimeRange != null) {
|
|
1366
|
-
contents.TimeRange = de_CostEstimationTimeRange(data.TimeRange, context);
|
|
1367
|
-
}
|
|
1368
|
-
if (data.TotalCost != null) {
|
|
1369
|
-
contents.TotalCost = (0, smithy_client_1.limitedParseDouble)(data.TotalCost);
|
|
1370
|
-
}
|
|
1298
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1299
|
+
Costs: (_) => de_ServiceResourceCosts(_, context),
|
|
1300
|
+
NextToken: smithy_client_1.expectString,
|
|
1301
|
+
ResourceCollection: smithy_client_1._json,
|
|
1302
|
+
Status: smithy_client_1.expectString,
|
|
1303
|
+
TimeRange: (_) => de_CostEstimationTimeRange(_, context),
|
|
1304
|
+
TotalCost: smithy_client_1.limitedParseDouble,
|
|
1305
|
+
});
|
|
1306
|
+
Object.assign(contents, doc);
|
|
1371
1307
|
return contents;
|
|
1372
1308
|
};
|
|
1373
1309
|
exports.de_GetCostEstimationCommand = de_GetCostEstimationCommand;
|
|
@@ -1395,10 +1331,9 @@ const de_GetCostEstimationCommandError = async (output, context) => {
|
|
|
1395
1331
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
1332
|
default:
|
|
1397
1333
|
const parsedBody = parsedOutput.body;
|
|
1398
|
-
|
|
1334
|
+
return throwDefaultError({
|
|
1399
1335
|
output,
|
|
1400
1336
|
parsedBody,
|
|
1401
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1402
1337
|
errorCode,
|
|
1403
1338
|
});
|
|
1404
1339
|
}
|
|
@@ -1407,16 +1342,15 @@ const de_GetResourceCollectionCommand = async (output, context) => {
|
|
|
1407
1342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
1343
|
return de_GetResourceCollectionCommandError(output, context);
|
|
1409
1344
|
}
|
|
1410
|
-
const contents = map({
|
|
1345
|
+
const contents = (0, smithy_client_1.map)({
|
|
1411
1346
|
$metadata: deserializeMetadata(output),
|
|
1412
1347
|
});
|
|
1413
1348
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1349
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1350
|
+
NextToken: smithy_client_1.expectString,
|
|
1351
|
+
ResourceCollection: smithy_client_1._json,
|
|
1352
|
+
});
|
|
1353
|
+
Object.assign(contents, doc);
|
|
1420
1354
|
return contents;
|
|
1421
1355
|
};
|
|
1422
1356
|
exports.de_GetResourceCollectionCommand = de_GetResourceCollectionCommand;
|
|
@@ -1444,10 +1378,9 @@ const de_GetResourceCollectionCommandError = async (output, context) => {
|
|
|
1444
1378
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1445
1379
|
default:
|
|
1446
1380
|
const parsedBody = parsedOutput.body;
|
|
1447
|
-
|
|
1381
|
+
return throwDefaultError({
|
|
1448
1382
|
output,
|
|
1449
1383
|
parsedBody,
|
|
1450
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1451
1384
|
errorCode,
|
|
1452
1385
|
});
|
|
1453
1386
|
}
|
|
@@ -1456,19 +1389,16 @@ const de_ListAnomaliesForInsightCommand = async (output, context) => {
|
|
|
1456
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1457
1390
|
return de_ListAnomaliesForInsightCommandError(output, context);
|
|
1458
1391
|
}
|
|
1459
|
-
const contents = map({
|
|
1392
|
+
const contents = (0, smithy_client_1.map)({
|
|
1460
1393
|
$metadata: deserializeMetadata(output),
|
|
1461
1394
|
});
|
|
1462
1395
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
if (data.ReactiveAnomalies != null) {
|
|
1470
|
-
contents.ReactiveAnomalies = de_ReactiveAnomalies(data.ReactiveAnomalies, context);
|
|
1471
|
-
}
|
|
1396
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1397
|
+
NextToken: smithy_client_1.expectString,
|
|
1398
|
+
ProactiveAnomalies: (_) => de_ProactiveAnomalies(_, context),
|
|
1399
|
+
ReactiveAnomalies: (_) => de_ReactiveAnomalies(_, context),
|
|
1400
|
+
});
|
|
1401
|
+
Object.assign(contents, doc);
|
|
1472
1402
|
return contents;
|
|
1473
1403
|
};
|
|
1474
1404
|
exports.de_ListAnomaliesForInsightCommand = de_ListAnomaliesForInsightCommand;
|
|
@@ -1496,10 +1426,9 @@ const de_ListAnomaliesForInsightCommandError = async (output, context) => {
|
|
|
1496
1426
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1497
1427
|
default:
|
|
1498
1428
|
const parsedBody = parsedOutput.body;
|
|
1499
|
-
|
|
1429
|
+
return throwDefaultError({
|
|
1500
1430
|
output,
|
|
1501
1431
|
parsedBody,
|
|
1502
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1503
1432
|
errorCode,
|
|
1504
1433
|
});
|
|
1505
1434
|
}
|
|
@@ -1508,19 +1437,16 @@ const de_ListAnomalousLogGroupsCommand = async (output, context) => {
|
|
|
1508
1437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
1438
|
return de_ListAnomalousLogGroupsCommandError(output, context);
|
|
1510
1439
|
}
|
|
1511
|
-
const contents = map({
|
|
1440
|
+
const contents = (0, smithy_client_1.map)({
|
|
1512
1441
|
$metadata: deserializeMetadata(output),
|
|
1513
1442
|
});
|
|
1514
1443
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
if (data.NextToken != null) {
|
|
1522
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1523
|
-
}
|
|
1444
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1445
|
+
AnomalousLogGroups: (_) => de_AnomalousLogGroups(_, context),
|
|
1446
|
+
InsightId: smithy_client_1.expectString,
|
|
1447
|
+
NextToken: smithy_client_1.expectString,
|
|
1448
|
+
});
|
|
1449
|
+
Object.assign(contents, doc);
|
|
1524
1450
|
return contents;
|
|
1525
1451
|
};
|
|
1526
1452
|
exports.de_ListAnomalousLogGroupsCommand = de_ListAnomalousLogGroupsCommand;
|
|
@@ -1548,10 +1474,9 @@ const de_ListAnomalousLogGroupsCommandError = async (output, context) => {
|
|
|
1548
1474
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1549
1475
|
default:
|
|
1550
1476
|
const parsedBody = parsedOutput.body;
|
|
1551
|
-
|
|
1477
|
+
return throwDefaultError({
|
|
1552
1478
|
output,
|
|
1553
1479
|
parsedBody,
|
|
1554
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1555
1480
|
errorCode,
|
|
1556
1481
|
});
|
|
1557
1482
|
}
|
|
@@ -1560,16 +1485,15 @@ const de_ListEventsCommand = async (output, context) => {
|
|
|
1560
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
1486
|
return de_ListEventsCommandError(output, context);
|
|
1562
1487
|
}
|
|
1563
|
-
const contents = map({
|
|
1488
|
+
const contents = (0, smithy_client_1.map)({
|
|
1564
1489
|
$metadata: deserializeMetadata(output),
|
|
1565
1490
|
});
|
|
1566
1491
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
}
|
|
1492
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1493
|
+
Events: (_) => de_Events(_, context),
|
|
1494
|
+
NextToken: smithy_client_1.expectString,
|
|
1495
|
+
});
|
|
1496
|
+
Object.assign(contents, doc);
|
|
1573
1497
|
return contents;
|
|
1574
1498
|
};
|
|
1575
1499
|
exports.de_ListEventsCommand = de_ListEventsCommand;
|
|
@@ -1597,10 +1521,9 @@ const de_ListEventsCommandError = async (output, context) => {
|
|
|
1597
1521
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1598
1522
|
default:
|
|
1599
1523
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1524
|
+
return throwDefaultError({
|
|
1601
1525
|
output,
|
|
1602
1526
|
parsedBody,
|
|
1603
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1604
1527
|
errorCode,
|
|
1605
1528
|
});
|
|
1606
1529
|
}
|
|
@@ -1609,19 +1532,16 @@ const de_ListInsightsCommand = async (output, context) => {
|
|
|
1609
1532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1610
1533
|
return de_ListInsightsCommandError(output, context);
|
|
1611
1534
|
}
|
|
1612
|
-
const contents = map({
|
|
1535
|
+
const contents = (0, smithy_client_1.map)({
|
|
1613
1536
|
$metadata: deserializeMetadata(output),
|
|
1614
1537
|
});
|
|
1615
1538
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
if (data.ReactiveInsights != null) {
|
|
1623
|
-
contents.ReactiveInsights = de_ReactiveInsights(data.ReactiveInsights, context);
|
|
1624
|
-
}
|
|
1539
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1540
|
+
NextToken: smithy_client_1.expectString,
|
|
1541
|
+
ProactiveInsights: (_) => de_ProactiveInsights(_, context),
|
|
1542
|
+
ReactiveInsights: (_) => de_ReactiveInsights(_, context),
|
|
1543
|
+
});
|
|
1544
|
+
Object.assign(contents, doc);
|
|
1625
1545
|
return contents;
|
|
1626
1546
|
};
|
|
1627
1547
|
exports.de_ListInsightsCommand = de_ListInsightsCommand;
|
|
@@ -1646,10 +1566,9 @@ const de_ListInsightsCommandError = async (output, context) => {
|
|
|
1646
1566
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1647
1567
|
default:
|
|
1648
1568
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1569
|
+
return throwDefaultError({
|
|
1650
1570
|
output,
|
|
1651
1571
|
parsedBody,
|
|
1652
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1653
1572
|
errorCode,
|
|
1654
1573
|
});
|
|
1655
1574
|
}
|
|
@@ -1658,16 +1577,15 @@ const de_ListMonitoredResourcesCommand = async (output, context) => {
|
|
|
1658
1577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
1578
|
return de_ListMonitoredResourcesCommandError(output, context);
|
|
1660
1579
|
}
|
|
1661
|
-
const contents = map({
|
|
1580
|
+
const contents = (0, smithy_client_1.map)({
|
|
1662
1581
|
$metadata: deserializeMetadata(output),
|
|
1663
1582
|
});
|
|
1664
1583
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
}
|
|
1584
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1585
|
+
MonitoredResourceIdentifiers: (_) => de_MonitoredResourceIdentifiers(_, context),
|
|
1586
|
+
NextToken: smithy_client_1.expectString,
|
|
1587
|
+
});
|
|
1588
|
+
Object.assign(contents, doc);
|
|
1671
1589
|
return contents;
|
|
1672
1590
|
};
|
|
1673
1591
|
exports.de_ListMonitoredResourcesCommand = de_ListMonitoredResourcesCommand;
|
|
@@ -1692,10 +1610,9 @@ const de_ListMonitoredResourcesCommandError = async (output, context) => {
|
|
|
1692
1610
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
1611
|
default:
|
|
1694
1612
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
|
|
1613
|
+
return throwDefaultError({
|
|
1696
1614
|
output,
|
|
1697
1615
|
parsedBody,
|
|
1698
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1699
1616
|
errorCode,
|
|
1700
1617
|
});
|
|
1701
1618
|
}
|
|
@@ -1704,16 +1621,15 @@ const de_ListNotificationChannelsCommand = async (output, context) => {
|
|
|
1704
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1705
1622
|
return de_ListNotificationChannelsCommandError(output, context);
|
|
1706
1623
|
}
|
|
1707
|
-
const contents = map({
|
|
1624
|
+
const contents = (0, smithy_client_1.map)({
|
|
1708
1625
|
$metadata: deserializeMetadata(output),
|
|
1709
1626
|
});
|
|
1710
1627
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
}
|
|
1628
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1629
|
+
Channels: smithy_client_1._json,
|
|
1630
|
+
NextToken: smithy_client_1.expectString,
|
|
1631
|
+
});
|
|
1632
|
+
Object.assign(contents, doc);
|
|
1717
1633
|
return contents;
|
|
1718
1634
|
};
|
|
1719
1635
|
exports.de_ListNotificationChannelsCommand = de_ListNotificationChannelsCommand;
|
|
@@ -1738,10 +1654,9 @@ const de_ListNotificationChannelsCommandError = async (output, context) => {
|
|
|
1738
1654
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1739
1655
|
default:
|
|
1740
1656
|
const parsedBody = parsedOutput.body;
|
|
1741
|
-
|
|
1657
|
+
return throwDefaultError({
|
|
1742
1658
|
output,
|
|
1743
1659
|
parsedBody,
|
|
1744
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1745
1660
|
errorCode,
|
|
1746
1661
|
});
|
|
1747
1662
|
}
|
|
@@ -1750,19 +1665,16 @@ const de_ListOrganizationInsightsCommand = async (output, context) => {
|
|
|
1750
1665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
1666
|
return de_ListOrganizationInsightsCommandError(output, context);
|
|
1752
1667
|
}
|
|
1753
|
-
const contents = map({
|
|
1668
|
+
const contents = (0, smithy_client_1.map)({
|
|
1754
1669
|
$metadata: deserializeMetadata(output),
|
|
1755
1670
|
});
|
|
1756
1671
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
if (data.ReactiveInsights != null) {
|
|
1764
|
-
contents.ReactiveInsights = de_ReactiveOrganizationInsights(data.ReactiveInsights, context);
|
|
1765
|
-
}
|
|
1672
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1673
|
+
NextToken: smithy_client_1.expectString,
|
|
1674
|
+
ProactiveInsights: (_) => de_ProactiveOrganizationInsights(_, context),
|
|
1675
|
+
ReactiveInsights: (_) => de_ReactiveOrganizationInsights(_, context),
|
|
1676
|
+
});
|
|
1677
|
+
Object.assign(contents, doc);
|
|
1766
1678
|
return contents;
|
|
1767
1679
|
};
|
|
1768
1680
|
exports.de_ListOrganizationInsightsCommand = de_ListOrganizationInsightsCommand;
|
|
@@ -1787,10 +1699,9 @@ const de_ListOrganizationInsightsCommandError = async (output, context) => {
|
|
|
1787
1699
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1788
1700
|
default:
|
|
1789
1701
|
const parsedBody = parsedOutput.body;
|
|
1790
|
-
|
|
1702
|
+
return throwDefaultError({
|
|
1791
1703
|
output,
|
|
1792
1704
|
parsedBody,
|
|
1793
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1794
1705
|
errorCode,
|
|
1795
1706
|
});
|
|
1796
1707
|
}
|
|
@@ -1799,16 +1710,15 @@ const de_ListRecommendationsCommand = async (output, context) => {
|
|
|
1799
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1800
1711
|
return de_ListRecommendationsCommandError(output, context);
|
|
1801
1712
|
}
|
|
1802
|
-
const contents = map({
|
|
1713
|
+
const contents = (0, smithy_client_1.map)({
|
|
1803
1714
|
$metadata: deserializeMetadata(output),
|
|
1804
1715
|
});
|
|
1805
1716
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
}
|
|
1717
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1718
|
+
NextToken: smithy_client_1.expectString,
|
|
1719
|
+
Recommendations: smithy_client_1._json,
|
|
1720
|
+
});
|
|
1721
|
+
Object.assign(contents, doc);
|
|
1812
1722
|
return contents;
|
|
1813
1723
|
};
|
|
1814
1724
|
exports.de_ListRecommendationsCommand = de_ListRecommendationsCommand;
|
|
@@ -1836,10 +1746,9 @@ const de_ListRecommendationsCommandError = async (output, context) => {
|
|
|
1836
1746
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1837
1747
|
default:
|
|
1838
1748
|
const parsedBody = parsedOutput.body;
|
|
1839
|
-
|
|
1749
|
+
return throwDefaultError({
|
|
1840
1750
|
output,
|
|
1841
1751
|
parsedBody,
|
|
1842
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1843
1752
|
errorCode,
|
|
1844
1753
|
});
|
|
1845
1754
|
}
|
|
@@ -1848,7 +1757,7 @@ const de_PutFeedbackCommand = async (output, context) => {
|
|
|
1848
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1849
1758
|
return de_PutFeedbackCommandError(output, context);
|
|
1850
1759
|
}
|
|
1851
|
-
const contents = map({
|
|
1760
|
+
const contents = (0, smithy_client_1.map)({
|
|
1852
1761
|
$metadata: deserializeMetadata(output),
|
|
1853
1762
|
});
|
|
1854
1763
|
await collectBody(output.body, context);
|
|
@@ -1882,10 +1791,9 @@ const de_PutFeedbackCommandError = async (output, context) => {
|
|
|
1882
1791
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1883
1792
|
default:
|
|
1884
1793
|
const parsedBody = parsedOutput.body;
|
|
1885
|
-
|
|
1794
|
+
return throwDefaultError({
|
|
1886
1795
|
output,
|
|
1887
1796
|
parsedBody,
|
|
1888
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1889
1797
|
errorCode,
|
|
1890
1798
|
});
|
|
1891
1799
|
}
|
|
@@ -1894,7 +1802,7 @@ const de_RemoveNotificationChannelCommand = async (output, context) => {
|
|
|
1894
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
1803
|
return de_RemoveNotificationChannelCommandError(output, context);
|
|
1896
1804
|
}
|
|
1897
|
-
const contents = map({
|
|
1805
|
+
const contents = (0, smithy_client_1.map)({
|
|
1898
1806
|
$metadata: deserializeMetadata(output),
|
|
1899
1807
|
});
|
|
1900
1808
|
await collectBody(output.body, context);
|
|
@@ -1928,10 +1836,9 @@ const de_RemoveNotificationChannelCommandError = async (output, context) => {
|
|
|
1928
1836
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1929
1837
|
default:
|
|
1930
1838
|
const parsedBody = parsedOutput.body;
|
|
1931
|
-
|
|
1839
|
+
return throwDefaultError({
|
|
1932
1840
|
output,
|
|
1933
1841
|
parsedBody,
|
|
1934
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1935
1842
|
errorCode,
|
|
1936
1843
|
});
|
|
1937
1844
|
}
|
|
@@ -1940,19 +1847,16 @@ const de_SearchInsightsCommand = async (output, context) => {
|
|
|
1940
1847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1941
1848
|
return de_SearchInsightsCommandError(output, context);
|
|
1942
1849
|
}
|
|
1943
|
-
const contents = map({
|
|
1850
|
+
const contents = (0, smithy_client_1.map)({
|
|
1944
1851
|
$metadata: deserializeMetadata(output),
|
|
1945
1852
|
});
|
|
1946
1853
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
if (data.ReactiveInsights != null) {
|
|
1954
|
-
contents.ReactiveInsights = de_ReactiveInsights(data.ReactiveInsights, context);
|
|
1955
|
-
}
|
|
1854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1855
|
+
NextToken: smithy_client_1.expectString,
|
|
1856
|
+
ProactiveInsights: (_) => de_ProactiveInsights(_, context),
|
|
1857
|
+
ReactiveInsights: (_) => de_ReactiveInsights(_, context),
|
|
1858
|
+
});
|
|
1859
|
+
Object.assign(contents, doc);
|
|
1956
1860
|
return contents;
|
|
1957
1861
|
};
|
|
1958
1862
|
exports.de_SearchInsightsCommand = de_SearchInsightsCommand;
|
|
@@ -1977,10 +1881,9 @@ const de_SearchInsightsCommandError = async (output, context) => {
|
|
|
1977
1881
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1978
1882
|
default:
|
|
1979
1883
|
const parsedBody = parsedOutput.body;
|
|
1980
|
-
|
|
1884
|
+
return throwDefaultError({
|
|
1981
1885
|
output,
|
|
1982
1886
|
parsedBody,
|
|
1983
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
1984
1887
|
errorCode,
|
|
1985
1888
|
});
|
|
1986
1889
|
}
|
|
@@ -1989,19 +1892,16 @@ const de_SearchOrganizationInsightsCommand = async (output, context) => {
|
|
|
1989
1892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1990
1893
|
return de_SearchOrganizationInsightsCommandError(output, context);
|
|
1991
1894
|
}
|
|
1992
|
-
const contents = map({
|
|
1895
|
+
const contents = (0, smithy_client_1.map)({
|
|
1993
1896
|
$metadata: deserializeMetadata(output),
|
|
1994
1897
|
});
|
|
1995
1898
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
if (data.ReactiveInsights != null) {
|
|
2003
|
-
contents.ReactiveInsights = de_ReactiveInsights(data.ReactiveInsights, context);
|
|
2004
|
-
}
|
|
1899
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1900
|
+
NextToken: smithy_client_1.expectString,
|
|
1901
|
+
ProactiveInsights: (_) => de_ProactiveInsights(_, context),
|
|
1902
|
+
ReactiveInsights: (_) => de_ReactiveInsights(_, context),
|
|
1903
|
+
});
|
|
1904
|
+
Object.assign(contents, doc);
|
|
2005
1905
|
return contents;
|
|
2006
1906
|
};
|
|
2007
1907
|
exports.de_SearchOrganizationInsightsCommand = de_SearchOrganizationInsightsCommand;
|
|
@@ -2026,10 +1926,9 @@ const de_SearchOrganizationInsightsCommandError = async (output, context) => {
|
|
|
2026
1926
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
1927
|
default:
|
|
2028
1928
|
const parsedBody = parsedOutput.body;
|
|
2029
|
-
|
|
1929
|
+
return throwDefaultError({
|
|
2030
1930
|
output,
|
|
2031
1931
|
parsedBody,
|
|
2032
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
2033
1932
|
errorCode,
|
|
2034
1933
|
});
|
|
2035
1934
|
}
|
|
@@ -2038,7 +1937,7 @@ const de_StartCostEstimationCommand = async (output, context) => {
|
|
|
2038
1937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2039
1938
|
return de_StartCostEstimationCommandError(output, context);
|
|
2040
1939
|
}
|
|
2041
|
-
const contents = map({
|
|
1940
|
+
const contents = (0, smithy_client_1.map)({
|
|
2042
1941
|
$metadata: deserializeMetadata(output),
|
|
2043
1942
|
});
|
|
2044
1943
|
await collectBody(output.body, context);
|
|
@@ -2072,10 +1971,9 @@ const de_StartCostEstimationCommandError = async (output, context) => {
|
|
|
2072
1971
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2073
1972
|
default:
|
|
2074
1973
|
const parsedBody = parsedOutput.body;
|
|
2075
|
-
|
|
1974
|
+
return throwDefaultError({
|
|
2076
1975
|
output,
|
|
2077
1976
|
parsedBody,
|
|
2078
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
2079
1977
|
errorCode,
|
|
2080
1978
|
});
|
|
2081
1979
|
}
|
|
@@ -2084,7 +1982,7 @@ const de_UpdateEventSourcesConfigCommand = async (output, context) => {
|
|
|
2084
1982
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
1983
|
return de_UpdateEventSourcesConfigCommandError(output, context);
|
|
2086
1984
|
}
|
|
2087
|
-
const contents = map({
|
|
1985
|
+
const contents = (0, smithy_client_1.map)({
|
|
2088
1986
|
$metadata: deserializeMetadata(output),
|
|
2089
1987
|
});
|
|
2090
1988
|
await collectBody(output.body, context);
|
|
@@ -2112,10 +2010,9 @@ const de_UpdateEventSourcesConfigCommandError = async (output, context) => {
|
|
|
2112
2010
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2113
2011
|
default:
|
|
2114
2012
|
const parsedBody = parsedOutput.body;
|
|
2115
|
-
|
|
2013
|
+
return throwDefaultError({
|
|
2116
2014
|
output,
|
|
2117
2015
|
parsedBody,
|
|
2118
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
2119
2016
|
errorCode,
|
|
2120
2017
|
});
|
|
2121
2018
|
}
|
|
@@ -2124,7 +2021,7 @@ const de_UpdateResourceCollectionCommand = async (output, context) => {
|
|
|
2124
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2125
2022
|
return de_UpdateResourceCollectionCommandError(output, context);
|
|
2126
2023
|
}
|
|
2127
|
-
const contents = map({
|
|
2024
|
+
const contents = (0, smithy_client_1.map)({
|
|
2128
2025
|
$metadata: deserializeMetadata(output),
|
|
2129
2026
|
});
|
|
2130
2027
|
await collectBody(output.body, context);
|
|
@@ -2155,10 +2052,9 @@ const de_UpdateResourceCollectionCommandError = async (output, context) => {
|
|
|
2155
2052
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2156
2053
|
default:
|
|
2157
2054
|
const parsedBody = parsedOutput.body;
|
|
2158
|
-
|
|
2055
|
+
return throwDefaultError({
|
|
2159
2056
|
output,
|
|
2160
2057
|
parsedBody,
|
|
2161
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
2162
2058
|
errorCode,
|
|
2163
2059
|
});
|
|
2164
2060
|
}
|
|
@@ -2167,7 +2063,7 @@ const de_UpdateServiceIntegrationCommand = async (output, context) => {
|
|
|
2167
2063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
2064
|
return de_UpdateServiceIntegrationCommandError(output, context);
|
|
2169
2065
|
}
|
|
2170
|
-
const contents = map({
|
|
2066
|
+
const contents = (0, smithy_client_1.map)({
|
|
2171
2067
|
$metadata: deserializeMetadata(output),
|
|
2172
2068
|
});
|
|
2173
2069
|
await collectBody(output.body, context);
|
|
@@ -2198,21 +2094,21 @@ const de_UpdateServiceIntegrationCommandError = async (output, context) => {
|
|
|
2198
2094
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2199
2095
|
default:
|
|
2200
2096
|
const parsedBody = parsedOutput.body;
|
|
2201
|
-
|
|
2097
|
+
return throwDefaultError({
|
|
2202
2098
|
output,
|
|
2203
2099
|
parsedBody,
|
|
2204
|
-
exceptionCtor: DevOpsGuruServiceException_1.DevOpsGuruServiceException,
|
|
2205
2100
|
errorCode,
|
|
2206
2101
|
});
|
|
2207
2102
|
}
|
|
2208
2103
|
};
|
|
2209
|
-
const
|
|
2104
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(DevOpsGuruServiceException_1.DevOpsGuruServiceException);
|
|
2210
2105
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2211
|
-
const contents = map({});
|
|
2106
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2212
2107
|
const data = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
}
|
|
2108
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2109
|
+
Message: smithy_client_1.expectString,
|
|
2110
|
+
});
|
|
2111
|
+
Object.assign(contents, doc);
|
|
2216
2112
|
const exception = new models_0_1.AccessDeniedException({
|
|
2217
2113
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2218
2114
|
...contents,
|
|
@@ -2220,17 +2116,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2220
2116
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2221
2117
|
};
|
|
2222
2118
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2223
|
-
const contents = map({});
|
|
2119
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2224
2120
|
const data = parsedOutput.body;
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
if (data.ResourceType != null) {
|
|
2232
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2233
|
-
}
|
|
2121
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2122
|
+
Message: smithy_client_1.expectString,
|
|
2123
|
+
ResourceId: smithy_client_1.expectString,
|
|
2124
|
+
ResourceType: smithy_client_1.expectString,
|
|
2125
|
+
});
|
|
2126
|
+
Object.assign(contents, doc);
|
|
2234
2127
|
const exception = new models_0_1.ConflictException({
|
|
2235
2128
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2236
2129
|
...contents,
|
|
@@ -2238,16 +2131,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2238
2131
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2239
2132
|
};
|
|
2240
2133
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2241
|
-
const contents = map({
|
|
2134
|
+
const contents = (0, smithy_client_1.map)({
|
|
2242
2135
|
RetryAfterSeconds: [
|
|
2243
2136
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2244
2137
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2245
2138
|
],
|
|
2246
2139
|
});
|
|
2247
2140
|
const data = parsedOutput.body;
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
}
|
|
2141
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2142
|
+
Message: smithy_client_1.expectString,
|
|
2143
|
+
});
|
|
2144
|
+
Object.assign(contents, doc);
|
|
2251
2145
|
const exception = new models_0_1.InternalServerException({
|
|
2252
2146
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2253
2147
|
...contents,
|
|
@@ -2255,17 +2149,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2255
2149
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2256
2150
|
};
|
|
2257
2151
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2258
|
-
const contents = map({});
|
|
2152
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2259
2153
|
const data = parsedOutput.body;
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
if (data.ResourceType != null) {
|
|
2267
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2268
|
-
}
|
|
2154
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2155
|
+
Message: smithy_client_1.expectString,
|
|
2156
|
+
ResourceId: smithy_client_1.expectString,
|
|
2157
|
+
ResourceType: smithy_client_1.expectString,
|
|
2158
|
+
});
|
|
2159
|
+
Object.assign(contents, doc);
|
|
2269
2160
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2270
2161
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2271
2162
|
...contents,
|
|
@@ -2273,11 +2164,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2273
2164
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2274
2165
|
};
|
|
2275
2166
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2276
|
-
const contents = map({});
|
|
2167
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2277
2168
|
const data = parsedOutput.body;
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
}
|
|
2169
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2170
|
+
Message: smithy_client_1.expectString,
|
|
2171
|
+
});
|
|
2172
|
+
Object.assign(contents, doc);
|
|
2281
2173
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2282
2174
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2283
2175
|
...contents,
|
|
@@ -2285,22 +2177,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2285
2177
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2286
2178
|
};
|
|
2287
2179
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2288
|
-
const contents = map({
|
|
2180
|
+
const contents = (0, smithy_client_1.map)({
|
|
2289
2181
|
RetryAfterSeconds: [
|
|
2290
2182
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2291
2183
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2292
2184
|
],
|
|
2293
2185
|
});
|
|
2294
2186
|
const data = parsedOutput.body;
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
if (data.ServiceCode != null) {
|
|
2302
|
-
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
2303
|
-
}
|
|
2187
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2188
|
+
Message: smithy_client_1.expectString,
|
|
2189
|
+
QuotaCode: smithy_client_1.expectString,
|
|
2190
|
+
ServiceCode: smithy_client_1.expectString,
|
|
2191
|
+
});
|
|
2192
|
+
Object.assign(contents, doc);
|
|
2304
2193
|
const exception = new models_0_1.ThrottlingException({
|
|
2305
2194
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2306
2195
|
...contents,
|
|
@@ -2308,1454 +2197,497 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2308
2197
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2309
2198
|
};
|
|
2310
2199
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2311
|
-
const contents = map({});
|
|
2200
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2312
2201
|
const data = parsedOutput.body;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
if (data.Reason != null) {
|
|
2320
|
-
contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
|
|
2321
|
-
}
|
|
2202
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2203
|
+
Fields: smithy_client_1._json,
|
|
2204
|
+
Message: smithy_client_1.expectString,
|
|
2205
|
+
Reason: smithy_client_1.expectString,
|
|
2206
|
+
});
|
|
2207
|
+
Object.assign(contents, doc);
|
|
2322
2208
|
const exception = new models_0_1.ValidationException({
|
|
2323
2209
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2324
2210
|
...contents,
|
|
2325
2211
|
});
|
|
2326
2212
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2327
2213
|
};
|
|
2328
|
-
const
|
|
2329
|
-
return input
|
|
2330
|
-
|
|
2331
|
-
.
|
|
2332
|
-
return entry;
|
|
2214
|
+
const se_EndTimeRange = (input, context) => {
|
|
2215
|
+
return (0, smithy_client_1.take)(input, {
|
|
2216
|
+
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
2217
|
+
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
2333
2218
|
});
|
|
2334
2219
|
};
|
|
2335
|
-
const
|
|
2336
|
-
return {
|
|
2337
|
-
|
|
2338
|
-
|
|
2220
|
+
const se_EventTimeRange = (input, context) => {
|
|
2221
|
+
return (0, smithy_client_1.take)(input, {
|
|
2222
|
+
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
2223
|
+
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
2224
|
+
});
|
|
2339
2225
|
};
|
|
2340
|
-
const
|
|
2341
|
-
return {
|
|
2342
|
-
|
|
2343
|
-
|
|
2226
|
+
const se_ListEventsFilters = (input, context) => {
|
|
2227
|
+
return (0, smithy_client_1.take)(input, {
|
|
2228
|
+
DataSource: [],
|
|
2229
|
+
EventClass: [],
|
|
2230
|
+
EventSource: [],
|
|
2231
|
+
EventTimeRange: (_) => se_EventTimeRange(_, context),
|
|
2232
|
+
InsightId: [],
|
|
2233
|
+
ResourceCollection: smithy_client_1._json,
|
|
2234
|
+
});
|
|
2344
2235
|
};
|
|
2345
|
-
const
|
|
2346
|
-
return {
|
|
2347
|
-
|
|
2348
|
-
|
|
2236
|
+
const se_ListInsightsAnyStatusFilter = (input, context) => {
|
|
2237
|
+
return (0, smithy_client_1.take)(input, {
|
|
2238
|
+
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
2239
|
+
Type: [],
|
|
2240
|
+
});
|
|
2349
2241
|
};
|
|
2350
|
-
const
|
|
2351
|
-
return {
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
...(input.Tags != null && { Tags: se_TagCostEstimationResourceCollectionFilters(input.Tags, context) }),
|
|
2356
|
-
};
|
|
2242
|
+
const se_ListInsightsClosedStatusFilter = (input, context) => {
|
|
2243
|
+
return (0, smithy_client_1.take)(input, {
|
|
2244
|
+
EndTimeRange: (_) => se_EndTimeRange(_, context),
|
|
2245
|
+
Type: [],
|
|
2246
|
+
});
|
|
2357
2247
|
};
|
|
2358
|
-
const
|
|
2359
|
-
return input
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2248
|
+
const se_ListInsightsStatusFilter = (input, context) => {
|
|
2249
|
+
return (0, smithy_client_1.take)(input, {
|
|
2250
|
+
Any: (_) => se_ListInsightsAnyStatusFilter(_, context),
|
|
2251
|
+
Closed: (_) => se_ListInsightsClosedStatusFilter(_, context),
|
|
2252
|
+
Ongoing: smithy_client_1._json,
|
|
2253
|
+
});
|
|
2254
|
+
};
|
|
2255
|
+
const se_StartTimeRange = (input, context) => {
|
|
2256
|
+
return (0, smithy_client_1.take)(input, {
|
|
2257
|
+
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
2258
|
+
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
2259
|
+
});
|
|
2260
|
+
};
|
|
2261
|
+
const de_AnomalousLogGroup = (output, context) => {
|
|
2262
|
+
return (0, smithy_client_1.take)(output, {
|
|
2263
|
+
ImpactEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2264
|
+
ImpactStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2265
|
+
LogAnomalyShowcases: (_) => de_LogAnomalyShowcases(_, context),
|
|
2266
|
+
LogGroupName: smithy_client_1.expectString,
|
|
2267
|
+
NumberOfLogLinesScanned: smithy_client_1.expectInt32,
|
|
2363
2268
|
});
|
|
2364
2269
|
};
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2270
|
+
const de_AnomalousLogGroups = (output, context) => {
|
|
2271
|
+
const retVal = (output || [])
|
|
2367
2272
|
.filter((e) => e != null)
|
|
2368
2273
|
.map((entry) => {
|
|
2369
|
-
return entry;
|
|
2274
|
+
return de_AnomalousLogGroup(entry, context);
|
|
2370
2275
|
});
|
|
2276
|
+
return retVal;
|
|
2371
2277
|
};
|
|
2372
|
-
const
|
|
2373
|
-
return {
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
};
|
|
2278
|
+
const de_AnomalyReportedTimeRange = (output, context) => {
|
|
2279
|
+
return (0, smithy_client_1.take)(output, {
|
|
2280
|
+
CloseTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2281
|
+
OpenTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2282
|
+
});
|
|
2377
2283
|
};
|
|
2378
|
-
const
|
|
2379
|
-
return {
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
};
|
|
2284
|
+
const de_AnomalySourceDetails = (output, context) => {
|
|
2285
|
+
return (0, smithy_client_1.take)(output, {
|
|
2286
|
+
CloudWatchMetrics: (_) => de_CloudWatchMetricsDetails(_, context),
|
|
2287
|
+
PerformanceInsightsMetrics: (_) => de_PerformanceInsightsMetricsDetails(_, context),
|
|
2288
|
+
});
|
|
2384
2289
|
};
|
|
2385
|
-
const
|
|
2386
|
-
return {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
};
|
|
2290
|
+
const de_AnomalyTimeRange = (output, context) => {
|
|
2291
|
+
return (0, smithy_client_1.take)(output, {
|
|
2292
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2293
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2294
|
+
});
|
|
2390
2295
|
};
|
|
2391
|
-
const
|
|
2392
|
-
return {
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
};
|
|
2296
|
+
const de_CloudWatchMetricsDataSummary = (output, context) => {
|
|
2297
|
+
return (0, smithy_client_1.take)(output, {
|
|
2298
|
+
StatusCode: smithy_client_1.expectString,
|
|
2299
|
+
TimestampMetricValuePairList: (_) => de_TimestampMetricValuePairList(_, context),
|
|
2300
|
+
});
|
|
2396
2301
|
};
|
|
2397
|
-
const
|
|
2398
|
-
return
|
|
2399
|
-
.
|
|
2400
|
-
|
|
2401
|
-
|
|
2302
|
+
const de_CloudWatchMetricsDetail = (output, context) => {
|
|
2303
|
+
return (0, smithy_client_1.take)(output, {
|
|
2304
|
+
Dimensions: smithy_client_1._json,
|
|
2305
|
+
MetricDataSummary: (_) => de_CloudWatchMetricsDataSummary(_, context),
|
|
2306
|
+
MetricName: smithy_client_1.expectString,
|
|
2307
|
+
Namespace: smithy_client_1.expectString,
|
|
2308
|
+
Period: smithy_client_1.expectInt32,
|
|
2309
|
+
Stat: smithy_client_1.expectString,
|
|
2310
|
+
Unit: smithy_client_1.expectString,
|
|
2402
2311
|
});
|
|
2403
2312
|
};
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2313
|
+
const de_CloudWatchMetricsDetails = (output, context) => {
|
|
2314
|
+
const retVal = (output || [])
|
|
2406
2315
|
.filter((e) => e != null)
|
|
2407
2316
|
.map((entry) => {
|
|
2408
|
-
return entry;
|
|
2317
|
+
return de_CloudWatchMetricsDetail(entry, context);
|
|
2409
2318
|
});
|
|
2319
|
+
return retVal;
|
|
2410
2320
|
};
|
|
2411
|
-
const
|
|
2412
|
-
return {
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
};
|
|
2321
|
+
const de_CostEstimationTimeRange = (output, context) => {
|
|
2322
|
+
return (0, smithy_client_1.take)(output, {
|
|
2323
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2324
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2325
|
+
});
|
|
2417
2326
|
};
|
|
2418
|
-
const
|
|
2419
|
-
return {
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
};
|
|
2327
|
+
const de_Event = (output, context) => {
|
|
2328
|
+
return (0, smithy_client_1.take)(output, {
|
|
2329
|
+
DataSource: smithy_client_1.expectString,
|
|
2330
|
+
EventClass: smithy_client_1.expectString,
|
|
2331
|
+
EventSource: smithy_client_1.expectString,
|
|
2332
|
+
Id: smithy_client_1.expectString,
|
|
2333
|
+
Name: smithy_client_1.expectString,
|
|
2334
|
+
ResourceCollection: smithy_client_1._json,
|
|
2335
|
+
Resources: smithy_client_1._json,
|
|
2336
|
+
Time: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2337
|
+
});
|
|
2429
2338
|
};
|
|
2430
|
-
const
|
|
2431
|
-
|
|
2339
|
+
const de_Events = (output, context) => {
|
|
2340
|
+
const retVal = (output || [])
|
|
2432
2341
|
.filter((e) => e != null)
|
|
2433
2342
|
.map((entry) => {
|
|
2434
|
-
return entry;
|
|
2343
|
+
return de_Event(entry, context);
|
|
2435
2344
|
});
|
|
2345
|
+
return retVal;
|
|
2436
2346
|
};
|
|
2437
|
-
const
|
|
2438
|
-
return {
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
};
|
|
2442
|
-
};
|
|
2443
|
-
const se_ListInsightsClosedStatusFilter = (input, context) => {
|
|
2444
|
-
return {
|
|
2445
|
-
...(input.EndTimeRange != null && { EndTimeRange: se_EndTimeRange(input.EndTimeRange, context) }),
|
|
2446
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2447
|
-
};
|
|
2347
|
+
const de_InsightTimeRange = (output, context) => {
|
|
2348
|
+
return (0, smithy_client_1.take)(output, {
|
|
2349
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2350
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2351
|
+
});
|
|
2448
2352
|
};
|
|
2449
|
-
const
|
|
2450
|
-
return {
|
|
2451
|
-
|
|
2452
|
-
|
|
2353
|
+
const de_LogAnomalyClass = (output, context) => {
|
|
2354
|
+
return (0, smithy_client_1.take)(output, {
|
|
2355
|
+
Explanation: smithy_client_1.expectString,
|
|
2356
|
+
LogAnomalyToken: smithy_client_1.expectString,
|
|
2357
|
+
LogAnomalyType: smithy_client_1.expectString,
|
|
2358
|
+
LogEventId: smithy_client_1.expectString,
|
|
2359
|
+
LogEventTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2360
|
+
LogStreamName: smithy_client_1.expectString,
|
|
2361
|
+
NumberOfLogLinesOccurrences: smithy_client_1.expectInt32,
|
|
2362
|
+
});
|
|
2453
2363
|
};
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2364
|
+
const de_LogAnomalyClasses = (output, context) => {
|
|
2365
|
+
const retVal = (output || [])
|
|
2456
2366
|
.filter((e) => e != null)
|
|
2457
2367
|
.map((entry) => {
|
|
2458
|
-
return entry;
|
|
2368
|
+
return de_LogAnomalyClass(entry, context);
|
|
2459
2369
|
});
|
|
2370
|
+
return retVal;
|
|
2460
2371
|
};
|
|
2461
|
-
const
|
|
2462
|
-
return {
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
...(input.Ongoing != null && { Ongoing: se_ListInsightsOngoingStatusFilter(input.Ongoing, context) }),
|
|
2466
|
-
};
|
|
2467
|
-
};
|
|
2468
|
-
const se_ListMonitoredResourcesFilters = (input, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
...(input.ResourcePermission != null && { ResourcePermission: input.ResourcePermission }),
|
|
2471
|
-
...(input.ResourceTypeFilters != null && {
|
|
2472
|
-
ResourceTypeFilters: se_ResourceTypeFilters(input.ResourceTypeFilters, context),
|
|
2473
|
-
}),
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
|
-
const se_LogsAnomalyDetectionIntegrationConfig = (input, context) => {
|
|
2477
|
-
return {
|
|
2478
|
-
...(input.OptInStatus != null && { OptInStatus: input.OptInStatus }),
|
|
2479
|
-
};
|
|
2480
|
-
};
|
|
2481
|
-
const se_NotificationChannelConfig = (input, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
...(input.Filters != null && { Filters: se_NotificationFilterConfig(input.Filters, context) }),
|
|
2484
|
-
...(input.Sns != null && { Sns: se_SnsChannelConfig(input.Sns, context) }),
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
const se_NotificationFilterConfig = (input, context) => {
|
|
2488
|
-
return {
|
|
2489
|
-
...(input.MessageTypes != null && { MessageTypes: se_NotificationMessageTypes(input.MessageTypes, context) }),
|
|
2490
|
-
...(input.Severities != null && { Severities: se_InsightSeverities(input.Severities, context) }),
|
|
2491
|
-
};
|
|
2372
|
+
const de_LogAnomalyShowcase = (output, context) => {
|
|
2373
|
+
return (0, smithy_client_1.take)(output, {
|
|
2374
|
+
LogAnomalyClasses: (_) => de_LogAnomalyClasses(_, context),
|
|
2375
|
+
});
|
|
2492
2376
|
};
|
|
2493
|
-
const
|
|
2494
|
-
|
|
2377
|
+
const de_LogAnomalyShowcases = (output, context) => {
|
|
2378
|
+
const retVal = (output || [])
|
|
2495
2379
|
.filter((e) => e != null)
|
|
2496
2380
|
.map((entry) => {
|
|
2497
|
-
return entry;
|
|
2381
|
+
return de_LogAnomalyShowcase(entry, context);
|
|
2498
2382
|
});
|
|
2383
|
+
return retVal;
|
|
2499
2384
|
};
|
|
2500
|
-
const
|
|
2501
|
-
return {
|
|
2502
|
-
|
|
2503
|
-
|
|
2385
|
+
const de_MonitoredResourceIdentifier = (output, context) => {
|
|
2386
|
+
return (0, smithy_client_1.take)(output, {
|
|
2387
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2388
|
+
MonitoredResourceName: smithy_client_1.expectString,
|
|
2389
|
+
ResourceCollection: smithy_client_1._json,
|
|
2390
|
+
ResourcePermission: smithy_client_1.expectString,
|
|
2391
|
+
Type: smithy_client_1.expectString,
|
|
2392
|
+
});
|
|
2504
2393
|
};
|
|
2505
|
-
const
|
|
2506
|
-
|
|
2394
|
+
const de_MonitoredResourceIdentifiers = (output, context) => {
|
|
2395
|
+
const retVal = (output || [])
|
|
2507
2396
|
.filter((e) => e != null)
|
|
2508
2397
|
.map((entry) => {
|
|
2509
|
-
return entry;
|
|
2398
|
+
return de_MonitoredResourceIdentifier(entry, context);
|
|
2510
2399
|
});
|
|
2400
|
+
return retVal;
|
|
2511
2401
|
};
|
|
2512
|
-
const
|
|
2513
|
-
return {
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
.filter((e) => e != null)
|
|
2521
|
-
.map((entry) => {
|
|
2522
|
-
return entry;
|
|
2402
|
+
const de_PerformanceInsightsMetricsDetail = (output, context) => {
|
|
2403
|
+
return (0, smithy_client_1.take)(output, {
|
|
2404
|
+
MetricDisplayName: smithy_client_1.expectString,
|
|
2405
|
+
MetricQuery: smithy_client_1._json,
|
|
2406
|
+
ReferenceData: (_) => de_PerformanceInsightsReferenceDataList(_, context),
|
|
2407
|
+
StatsAtAnomaly: (_) => de_PerformanceInsightsStats(_, context),
|
|
2408
|
+
StatsAtBaseline: (_) => de_PerformanceInsightsStats(_, context),
|
|
2409
|
+
Unit: smithy_client_1.expectString,
|
|
2523
2410
|
});
|
|
2524
2411
|
};
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2412
|
+
const de_PerformanceInsightsMetricsDetails = (output, context) => {
|
|
2413
|
+
const retVal = (output || [])
|
|
2527
2414
|
.filter((e) => e != null)
|
|
2528
2415
|
.map((entry) => {
|
|
2529
|
-
return entry;
|
|
2530
|
-
});
|
|
2531
|
-
|
|
2532
|
-
const se_SearchInsightsFilters = (input, context) => {
|
|
2533
|
-
return {
|
|
2534
|
-
...(input.ResourceCollection != null && {
|
|
2535
|
-
ResourceCollection: se_ResourceCollection(input.ResourceCollection, context),
|
|
2536
|
-
}),
|
|
2537
|
-
...(input.ServiceCollection != null && {
|
|
2538
|
-
ServiceCollection: se_ServiceCollection(input.ServiceCollection, context),
|
|
2539
|
-
}),
|
|
2540
|
-
...(input.Severities != null && { Severities: se_InsightSeverities(input.Severities, context) }),
|
|
2541
|
-
...(input.Statuses != null && { Statuses: se_InsightStatuses(input.Statuses, context) }),
|
|
2542
|
-
};
|
|
2416
|
+
return de_PerformanceInsightsMetricsDetail(entry, context);
|
|
2417
|
+
});
|
|
2418
|
+
return retVal;
|
|
2543
2419
|
};
|
|
2544
|
-
const
|
|
2545
|
-
return {
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
...(input.ServiceCollection != null && {
|
|
2550
|
-
ServiceCollection: se_ServiceCollection(input.ServiceCollection, context),
|
|
2551
|
-
}),
|
|
2552
|
-
...(input.Severities != null && { Severities: se_InsightSeverities(input.Severities, context) }),
|
|
2553
|
-
...(input.Statuses != null && { Statuses: se_InsightStatuses(input.Statuses, context) }),
|
|
2554
|
-
};
|
|
2420
|
+
const de_PerformanceInsightsReferenceComparisonValues = (output, context) => {
|
|
2421
|
+
return (0, smithy_client_1.take)(output, {
|
|
2422
|
+
ReferenceMetric: smithy_client_1._json,
|
|
2423
|
+
ReferenceScalar: (_) => de_PerformanceInsightsReferenceScalar(_, context),
|
|
2424
|
+
});
|
|
2555
2425
|
};
|
|
2556
|
-
const
|
|
2557
|
-
return {
|
|
2558
|
-
|
|
2559
|
-
|
|
2426
|
+
const de_PerformanceInsightsReferenceData = (output, context) => {
|
|
2427
|
+
return (0, smithy_client_1.take)(output, {
|
|
2428
|
+
ComparisonValues: (_) => de_PerformanceInsightsReferenceComparisonValues(_, context),
|
|
2429
|
+
Name: smithy_client_1.expectString,
|
|
2430
|
+
});
|
|
2560
2431
|
};
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2432
|
+
const de_PerformanceInsightsReferenceDataList = (output, context) => {
|
|
2433
|
+
const retVal = (output || [])
|
|
2563
2434
|
.filter((e) => e != null)
|
|
2564
2435
|
.map((entry) => {
|
|
2565
|
-
return entry;
|
|
2436
|
+
return de_PerformanceInsightsReferenceData(entry, context);
|
|
2566
2437
|
});
|
|
2438
|
+
return retVal;
|
|
2567
2439
|
};
|
|
2568
|
-
const
|
|
2569
|
-
return {
|
|
2570
|
-
|
|
2571
|
-
};
|
|
2440
|
+
const de_PerformanceInsightsReferenceScalar = (output, context) => {
|
|
2441
|
+
return (0, smithy_client_1.take)(output, {
|
|
2442
|
+
Value: smithy_client_1.limitedParseDouble,
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2445
|
+
const de_PerformanceInsightsStat = (output, context) => {
|
|
2446
|
+
return (0, smithy_client_1.take)(output, {
|
|
2447
|
+
Type: smithy_client_1.expectString,
|
|
2448
|
+
Value: smithy_client_1.limitedParseDouble,
|
|
2449
|
+
});
|
|
2572
2450
|
};
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2451
|
+
const de_PerformanceInsightsStats = (output, context) => {
|
|
2452
|
+
const retVal = (output || [])
|
|
2575
2453
|
.filter((e) => e != null)
|
|
2576
2454
|
.map((entry) => {
|
|
2577
|
-
return entry;
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
const se_StartTimeRange = (input, context) => {
|
|
2581
|
-
return {
|
|
2582
|
-
...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
|
|
2583
|
-
...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
|
|
2584
|
-
};
|
|
2585
|
-
};
|
|
2586
|
-
const se_TagCollection = (input, context) => {
|
|
2587
|
-
return {
|
|
2588
|
-
...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
2589
|
-
...(input.TagValues != null && { TagValues: se_TagValues(input.TagValues, context) }),
|
|
2590
|
-
};
|
|
2591
|
-
};
|
|
2592
|
-
const se_TagCollections = (input, context) => {
|
|
2593
|
-
return input
|
|
2594
|
-
.filter((e) => e != null)
|
|
2595
|
-
.map((entry) => {
|
|
2596
|
-
return se_TagCollection(entry, context);
|
|
2597
|
-
});
|
|
2598
|
-
};
|
|
2599
|
-
const se_TagCostEstimationResourceCollectionFilter = (input, context) => {
|
|
2600
|
-
return {
|
|
2601
|
-
...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
2602
|
-
...(input.TagValues != null && { TagValues: se_CostEstimationTagValues(input.TagValues, context) }),
|
|
2603
|
-
};
|
|
2604
|
-
};
|
|
2605
|
-
const se_TagCostEstimationResourceCollectionFilters = (input, context) => {
|
|
2606
|
-
return input
|
|
2607
|
-
.filter((e) => e != null)
|
|
2608
|
-
.map((entry) => {
|
|
2609
|
-
return se_TagCostEstimationResourceCollectionFilter(entry, context);
|
|
2610
|
-
});
|
|
2611
|
-
};
|
|
2612
|
-
const se_TagValues = (input, context) => {
|
|
2613
|
-
return input
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
return entry;
|
|
2617
|
-
});
|
|
2618
|
-
};
|
|
2619
|
-
const se_UpdateCloudFormationCollectionFilter = (input, context) => {
|
|
2620
|
-
return {
|
|
2621
|
-
...(input.StackNames != null && { StackNames: se_UpdateStackNames(input.StackNames, context) }),
|
|
2622
|
-
};
|
|
2623
|
-
};
|
|
2624
|
-
const se_UpdateResourceCollectionFilter = (input, context) => {
|
|
2625
|
-
return {
|
|
2626
|
-
...(input.CloudFormation != null && {
|
|
2627
|
-
CloudFormation: se_UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
|
|
2628
|
-
}),
|
|
2629
|
-
...(input.Tags != null && { Tags: se_UpdateTagCollectionFilters(input.Tags, context) }),
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
const se_UpdateServiceIntegrationConfig = (input, context) => {
|
|
2633
|
-
return {
|
|
2634
|
-
...(input.LogsAnomalyDetection != null && {
|
|
2635
|
-
LogsAnomalyDetection: se_LogsAnomalyDetectionIntegrationConfig(input.LogsAnomalyDetection, context),
|
|
2636
|
-
}),
|
|
2637
|
-
...(input.OpsCenter != null && { OpsCenter: se_OpsCenterIntegrationConfig(input.OpsCenter, context) }),
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
const se_UpdateStackNames = (input, context) => {
|
|
2641
|
-
return input
|
|
2642
|
-
.filter((e) => e != null)
|
|
2643
|
-
.map((entry) => {
|
|
2644
|
-
return entry;
|
|
2645
|
-
});
|
|
2646
|
-
};
|
|
2647
|
-
const se_UpdateTagCollectionFilter = (input, context) => {
|
|
2648
|
-
return {
|
|
2649
|
-
...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
2650
|
-
...(input.TagValues != null && { TagValues: se_UpdateTagValues(input.TagValues, context) }),
|
|
2651
|
-
};
|
|
2652
|
-
};
|
|
2653
|
-
const se_UpdateTagCollectionFilters = (input, context) => {
|
|
2654
|
-
return input
|
|
2655
|
-
.filter((e) => e != null)
|
|
2656
|
-
.map((entry) => {
|
|
2657
|
-
return se_UpdateTagCollectionFilter(entry, context);
|
|
2658
|
-
});
|
|
2659
|
-
};
|
|
2660
|
-
const se_UpdateTagValues = (input, context) => {
|
|
2661
|
-
return input
|
|
2662
|
-
.filter((e) => e != null)
|
|
2663
|
-
.map((entry) => {
|
|
2664
|
-
return entry;
|
|
2665
|
-
});
|
|
2666
|
-
};
|
|
2667
|
-
const de_AccountHealth = (output, context) => {
|
|
2668
|
-
return {
|
|
2669
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2670
|
-
Insight: output.Insight != null ? de_AccountInsightHealth(output.Insight, context) : undefined,
|
|
2671
|
-
};
|
|
2672
|
-
};
|
|
2673
|
-
const de_AccountHealths = (output, context) => {
|
|
2674
|
-
const retVal = (output || [])
|
|
2675
|
-
.filter((e) => e != null)
|
|
2676
|
-
.map((entry) => {
|
|
2677
|
-
if (entry === null) {
|
|
2678
|
-
return null;
|
|
2679
|
-
}
|
|
2680
|
-
return de_AccountHealth(entry, context);
|
|
2681
|
-
});
|
|
2682
|
-
return retVal;
|
|
2683
|
-
};
|
|
2684
|
-
const de_AccountInsightHealth = (output, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
|
|
2687
|
-
OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
|
|
2688
|
-
};
|
|
2689
|
-
};
|
|
2690
|
-
const de_AmazonCodeGuruProfilerIntegration = (output, context) => {
|
|
2691
|
-
return {
|
|
2692
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2693
|
-
};
|
|
2694
|
-
};
|
|
2695
|
-
const de_AnomalousLogGroup = (output, context) => {
|
|
2696
|
-
return {
|
|
2697
|
-
ImpactEndTime: output.ImpactEndTime != null
|
|
2698
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImpactEndTime)))
|
|
2699
|
-
: undefined,
|
|
2700
|
-
ImpactStartTime: output.ImpactStartTime != null
|
|
2701
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImpactStartTime)))
|
|
2702
|
-
: undefined,
|
|
2703
|
-
LogAnomalyShowcases: output.LogAnomalyShowcases != null ? de_LogAnomalyShowcases(output.LogAnomalyShowcases, context) : undefined,
|
|
2704
|
-
LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
|
|
2705
|
-
NumberOfLogLinesScanned: (0, smithy_client_1.expectInt32)(output.NumberOfLogLinesScanned),
|
|
2706
|
-
};
|
|
2707
|
-
};
|
|
2708
|
-
const de_AnomalousLogGroups = (output, context) => {
|
|
2709
|
-
const retVal = (output || [])
|
|
2710
|
-
.filter((e) => e != null)
|
|
2711
|
-
.map((entry) => {
|
|
2712
|
-
if (entry === null) {
|
|
2713
|
-
return null;
|
|
2714
|
-
}
|
|
2715
|
-
return de_AnomalousLogGroup(entry, context);
|
|
2716
|
-
});
|
|
2717
|
-
return retVal;
|
|
2718
|
-
};
|
|
2719
|
-
const de_AnomalyReportedTimeRange = (output, context) => {
|
|
2720
|
-
return {
|
|
2721
|
-
CloseTime: output.CloseTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CloseTime))) : undefined,
|
|
2722
|
-
OpenTime: output.OpenTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenTime))) : undefined,
|
|
2723
|
-
};
|
|
2724
|
-
};
|
|
2725
|
-
const de_AnomalyResource = (output, context) => {
|
|
2726
|
-
return {
|
|
2727
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2728
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2729
|
-
};
|
|
2730
|
-
};
|
|
2731
|
-
const de_AnomalyResources = (output, context) => {
|
|
2732
|
-
const retVal = (output || [])
|
|
2733
|
-
.filter((e) => e != null)
|
|
2734
|
-
.map((entry) => {
|
|
2735
|
-
if (entry === null) {
|
|
2736
|
-
return null;
|
|
2737
|
-
}
|
|
2738
|
-
return de_AnomalyResource(entry, context);
|
|
2739
|
-
});
|
|
2740
|
-
return retVal;
|
|
2741
|
-
};
|
|
2742
|
-
const de_AnomalySourceDetails = (output, context) => {
|
|
2743
|
-
return {
|
|
2744
|
-
CloudWatchMetrics: output.CloudWatchMetrics != null ? de_CloudWatchMetricsDetails(output.CloudWatchMetrics, context) : undefined,
|
|
2745
|
-
PerformanceInsightsMetrics: output.PerformanceInsightsMetrics != null
|
|
2746
|
-
? de_PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
|
|
2747
|
-
: undefined,
|
|
2748
|
-
};
|
|
2749
|
-
};
|
|
2750
|
-
const de_AnomalySourceMetadata = (output, context) => {
|
|
2751
|
-
return {
|
|
2752
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2753
|
-
SourceResourceName: (0, smithy_client_1.expectString)(output.SourceResourceName),
|
|
2754
|
-
SourceResourceType: (0, smithy_client_1.expectString)(output.SourceResourceType),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_AnomalyTimeRange = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2760
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_AssociatedResourceArns = (output, context) => {
|
|
2764
|
-
const retVal = (output || [])
|
|
2765
|
-
.filter((e) => e != null)
|
|
2766
|
-
.map((entry) => {
|
|
2767
|
-
if (entry === null) {
|
|
2768
|
-
return null;
|
|
2769
|
-
}
|
|
2770
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2771
|
-
});
|
|
2772
|
-
return retVal;
|
|
2773
|
-
};
|
|
2774
|
-
const de_Channels = (output, context) => {
|
|
2775
|
-
const retVal = (output || [])
|
|
2776
|
-
.filter((e) => e != null)
|
|
2777
|
-
.map((entry) => {
|
|
2778
|
-
if (entry === null) {
|
|
2779
|
-
return null;
|
|
2780
|
-
}
|
|
2781
|
-
return de_NotificationChannel(entry, context);
|
|
2782
|
-
});
|
|
2783
|
-
return retVal;
|
|
2784
|
-
};
|
|
2785
|
-
const de_CloudFormationCollection = (output, context) => {
|
|
2786
|
-
return {
|
|
2787
|
-
StackNames: output.StackNames != null ? de_StackNames(output.StackNames, context) : undefined,
|
|
2788
|
-
};
|
|
2789
|
-
};
|
|
2790
|
-
const de_CloudFormationCollectionFilter = (output, context) => {
|
|
2791
|
-
return {
|
|
2792
|
-
StackNames: output.StackNames != null ? de_StackNames(output.StackNames, context) : undefined,
|
|
2793
|
-
};
|
|
2794
|
-
};
|
|
2795
|
-
const de_CloudFormationCostEstimationResourceCollectionFilter = (output, context) => {
|
|
2796
|
-
return {
|
|
2797
|
-
StackNames: output.StackNames != null ? de_CostEstimationStackNames(output.StackNames, context) : undefined,
|
|
2798
|
-
};
|
|
2799
|
-
};
|
|
2800
|
-
const de_CloudFormationHealth = (output, context) => {
|
|
2801
|
-
return {
|
|
2802
|
-
AnalyzedResourceCount: (0, smithy_client_1.expectLong)(output.AnalyzedResourceCount),
|
|
2803
|
-
Insight: output.Insight != null ? de_InsightHealth(output.Insight, context) : undefined,
|
|
2804
|
-
StackName: (0, smithy_client_1.expectString)(output.StackName),
|
|
2805
|
-
};
|
|
2806
|
-
};
|
|
2807
|
-
const de_CloudFormationHealths = (output, context) => {
|
|
2808
|
-
const retVal = (output || [])
|
|
2809
|
-
.filter((e) => e != null)
|
|
2810
|
-
.map((entry) => {
|
|
2811
|
-
if (entry === null) {
|
|
2812
|
-
return null;
|
|
2813
|
-
}
|
|
2814
|
-
return de_CloudFormationHealth(entry, context);
|
|
2815
|
-
});
|
|
2816
|
-
return retVal;
|
|
2817
|
-
};
|
|
2818
|
-
const de_CloudWatchMetricsDataSummary = (output, context) => {
|
|
2819
|
-
return {
|
|
2820
|
-
StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
|
|
2821
|
-
TimestampMetricValuePairList: output.TimestampMetricValuePairList != null
|
|
2822
|
-
? de_TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
|
|
2823
|
-
: undefined,
|
|
2824
|
-
};
|
|
2825
|
-
};
|
|
2826
|
-
const de_CloudWatchMetricsDetail = (output, context) => {
|
|
2827
|
-
return {
|
|
2828
|
-
Dimensions: output.Dimensions != null ? de_CloudWatchMetricsDimensions(output.Dimensions, context) : undefined,
|
|
2829
|
-
MetricDataSummary: output.MetricDataSummary != null ? de_CloudWatchMetricsDataSummary(output.MetricDataSummary, context) : undefined,
|
|
2830
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
2831
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
2832
|
-
Period: (0, smithy_client_1.expectInt32)(output.Period),
|
|
2833
|
-
Stat: (0, smithy_client_1.expectString)(output.Stat),
|
|
2834
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
2835
|
-
};
|
|
2836
|
-
};
|
|
2837
|
-
const de_CloudWatchMetricsDetails = (output, context) => {
|
|
2838
|
-
const retVal = (output || [])
|
|
2839
|
-
.filter((e) => e != null)
|
|
2840
|
-
.map((entry) => {
|
|
2841
|
-
if (entry === null) {
|
|
2842
|
-
return null;
|
|
2843
|
-
}
|
|
2844
|
-
return de_CloudWatchMetricsDetail(entry, context);
|
|
2845
|
-
});
|
|
2846
|
-
return retVal;
|
|
2847
|
-
};
|
|
2848
|
-
const de_CloudWatchMetricsDimension = (output, context) => {
|
|
2849
|
-
return {
|
|
2850
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2851
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2852
|
-
};
|
|
2853
|
-
};
|
|
2854
|
-
const de_CloudWatchMetricsDimensions = (output, context) => {
|
|
2855
|
-
const retVal = (output || [])
|
|
2856
|
-
.filter((e) => e != null)
|
|
2857
|
-
.map((entry) => {
|
|
2858
|
-
if (entry === null) {
|
|
2859
|
-
return null;
|
|
2860
|
-
}
|
|
2861
|
-
return de_CloudWatchMetricsDimension(entry, context);
|
|
2862
|
-
});
|
|
2863
|
-
return retVal;
|
|
2864
|
-
};
|
|
2865
|
-
const de_CostEstimationResourceCollectionFilter = (output, context) => {
|
|
2866
|
-
return {
|
|
2867
|
-
CloudFormation: output.CloudFormation != null
|
|
2868
|
-
? de_CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
|
|
2869
|
-
: undefined,
|
|
2870
|
-
Tags: output.Tags != null ? de_TagCostEstimationResourceCollectionFilters(output.Tags, context) : undefined,
|
|
2871
|
-
};
|
|
2872
|
-
};
|
|
2873
|
-
const de_CostEstimationStackNames = (output, context) => {
|
|
2874
|
-
const retVal = (output || [])
|
|
2875
|
-
.filter((e) => e != null)
|
|
2876
|
-
.map((entry) => {
|
|
2877
|
-
if (entry === null) {
|
|
2878
|
-
return null;
|
|
2879
|
-
}
|
|
2880
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2881
|
-
});
|
|
2882
|
-
return retVal;
|
|
2883
|
-
};
|
|
2884
|
-
const de_CostEstimationTagValues = (output, context) => {
|
|
2885
|
-
const retVal = (output || [])
|
|
2886
|
-
.filter((e) => e != null)
|
|
2887
|
-
.map((entry) => {
|
|
2888
|
-
if (entry === null) {
|
|
2889
|
-
return null;
|
|
2890
|
-
}
|
|
2891
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2892
|
-
});
|
|
2893
|
-
return retVal;
|
|
2894
|
-
};
|
|
2895
|
-
const de_CostEstimationTimeRange = (output, context) => {
|
|
2896
|
-
return {
|
|
2897
|
-
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2898
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
const de_Event = (output, context) => {
|
|
2902
|
-
return {
|
|
2903
|
-
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
2904
|
-
EventClass: (0, smithy_client_1.expectString)(output.EventClass),
|
|
2905
|
-
EventSource: (0, smithy_client_1.expectString)(output.EventSource),
|
|
2906
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2907
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2908
|
-
ResourceCollection: output.ResourceCollection != null ? de_ResourceCollection(output.ResourceCollection, context) : undefined,
|
|
2909
|
-
Resources: output.Resources != null ? de_EventResources(output.Resources, context) : undefined,
|
|
2910
|
-
Time: output.Time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Time))) : undefined,
|
|
2911
|
-
};
|
|
2912
|
-
};
|
|
2913
|
-
const de_EventResource = (output, context) => {
|
|
2914
|
-
return {
|
|
2915
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2916
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2917
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2918
|
-
};
|
|
2919
|
-
};
|
|
2920
|
-
const de_EventResources = (output, context) => {
|
|
2921
|
-
const retVal = (output || [])
|
|
2922
|
-
.filter((e) => e != null)
|
|
2923
|
-
.map((entry) => {
|
|
2924
|
-
if (entry === null) {
|
|
2925
|
-
return null;
|
|
2926
|
-
}
|
|
2927
|
-
return de_EventResource(entry, context);
|
|
2928
|
-
});
|
|
2929
|
-
return retVal;
|
|
2930
|
-
};
|
|
2931
|
-
const de_Events = (output, context) => {
|
|
2932
|
-
const retVal = (output || [])
|
|
2933
|
-
.filter((e) => e != null)
|
|
2934
|
-
.map((entry) => {
|
|
2935
|
-
if (entry === null) {
|
|
2936
|
-
return null;
|
|
2937
|
-
}
|
|
2938
|
-
return de_Event(entry, context);
|
|
2939
|
-
});
|
|
2940
|
-
return retVal;
|
|
2941
|
-
};
|
|
2942
|
-
const de_EventSourcesConfig = (output, context) => {
|
|
2943
|
-
return {
|
|
2944
|
-
AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler != null
|
|
2945
|
-
? de_AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
|
|
2946
|
-
: undefined,
|
|
2947
|
-
};
|
|
2948
|
-
};
|
|
2949
|
-
const de_InsightFeedback = (output, context) => {
|
|
2950
|
-
return {
|
|
2951
|
-
Feedback: (0, smithy_client_1.expectString)(output.Feedback),
|
|
2952
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2953
|
-
};
|
|
2954
|
-
};
|
|
2955
|
-
const de_InsightHealth = (output, context) => {
|
|
2956
|
-
return {
|
|
2957
|
-
MeanTimeToRecoverInMilliseconds: (0, smithy_client_1.expectLong)(output.MeanTimeToRecoverInMilliseconds),
|
|
2958
|
-
OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
|
|
2959
|
-
OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
|
|
2960
|
-
};
|
|
2961
|
-
};
|
|
2962
|
-
const de_InsightSeverities = (output, context) => {
|
|
2963
|
-
const retVal = (output || [])
|
|
2964
|
-
.filter((e) => e != null)
|
|
2965
|
-
.map((entry) => {
|
|
2966
|
-
if (entry === null) {
|
|
2967
|
-
return null;
|
|
2968
|
-
}
|
|
2969
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2970
|
-
});
|
|
2971
|
-
return retVal;
|
|
2972
|
-
};
|
|
2973
|
-
const de_InsightTimeRange = (output, context) => {
|
|
2974
|
-
return {
|
|
2975
|
-
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2976
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
const de_LogAnomalyClass = (output, context) => {
|
|
2980
|
-
return {
|
|
2981
|
-
Explanation: (0, smithy_client_1.expectString)(output.Explanation),
|
|
2982
|
-
LogAnomalyToken: (0, smithy_client_1.expectString)(output.LogAnomalyToken),
|
|
2983
|
-
LogAnomalyType: (0, smithy_client_1.expectString)(output.LogAnomalyType),
|
|
2984
|
-
LogEventId: (0, smithy_client_1.expectString)(output.LogEventId),
|
|
2985
|
-
LogEventTimestamp: output.LogEventTimestamp != null
|
|
2986
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LogEventTimestamp)))
|
|
2987
|
-
: undefined,
|
|
2988
|
-
LogStreamName: (0, smithy_client_1.expectString)(output.LogStreamName),
|
|
2989
|
-
NumberOfLogLinesOccurrences: (0, smithy_client_1.expectInt32)(output.NumberOfLogLinesOccurrences),
|
|
2990
|
-
};
|
|
2991
|
-
};
|
|
2992
|
-
const de_LogAnomalyClasses = (output, context) => {
|
|
2993
|
-
const retVal = (output || [])
|
|
2994
|
-
.filter((e) => e != null)
|
|
2995
|
-
.map((entry) => {
|
|
2996
|
-
if (entry === null) {
|
|
2997
|
-
return null;
|
|
2998
|
-
}
|
|
2999
|
-
return de_LogAnomalyClass(entry, context);
|
|
3000
|
-
});
|
|
3001
|
-
return retVal;
|
|
3002
|
-
};
|
|
3003
|
-
const de_LogAnomalyShowcase = (output, context) => {
|
|
3004
|
-
return {
|
|
3005
|
-
LogAnomalyClasses: output.LogAnomalyClasses != null ? de_LogAnomalyClasses(output.LogAnomalyClasses, context) : undefined,
|
|
3006
|
-
};
|
|
3007
|
-
};
|
|
3008
|
-
const de_LogAnomalyShowcases = (output, context) => {
|
|
3009
|
-
const retVal = (output || [])
|
|
3010
|
-
.filter((e) => e != null)
|
|
3011
|
-
.map((entry) => {
|
|
3012
|
-
if (entry === null) {
|
|
3013
|
-
return null;
|
|
3014
|
-
}
|
|
3015
|
-
return de_LogAnomalyShowcase(entry, context);
|
|
3016
|
-
});
|
|
3017
|
-
return retVal;
|
|
3018
|
-
};
|
|
3019
|
-
const de_LogsAnomalyDetectionIntegration = (output, context) => {
|
|
3020
|
-
return {
|
|
3021
|
-
OptInStatus: (0, smithy_client_1.expectString)(output.OptInStatus),
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
|
-
const de_MonitoredResourceIdentifier = (output, context) => {
|
|
3025
|
-
return {
|
|
3026
|
-
LastUpdated: output.LastUpdated != null
|
|
3027
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
3028
|
-
: undefined,
|
|
3029
|
-
MonitoredResourceName: (0, smithy_client_1.expectString)(output.MonitoredResourceName),
|
|
3030
|
-
ResourceCollection: output.ResourceCollection != null ? de_ResourceCollection(output.ResourceCollection, context) : undefined,
|
|
3031
|
-
ResourcePermission: (0, smithy_client_1.expectString)(output.ResourcePermission),
|
|
3032
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3033
|
-
};
|
|
3034
|
-
};
|
|
3035
|
-
const de_MonitoredResourceIdentifiers = (output, context) => {
|
|
3036
|
-
const retVal = (output || [])
|
|
3037
|
-
.filter((e) => e != null)
|
|
3038
|
-
.map((entry) => {
|
|
3039
|
-
if (entry === null) {
|
|
3040
|
-
return null;
|
|
3041
|
-
}
|
|
3042
|
-
return de_MonitoredResourceIdentifier(entry, context);
|
|
3043
|
-
});
|
|
3044
|
-
return retVal;
|
|
3045
|
-
};
|
|
3046
|
-
const de_NotificationChannel = (output, context) => {
|
|
3047
|
-
return {
|
|
3048
|
-
Config: output.Config != null ? de_NotificationChannelConfig(output.Config, context) : undefined,
|
|
3049
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3050
|
-
};
|
|
3051
|
-
};
|
|
3052
|
-
const de_NotificationChannelConfig = (output, context) => {
|
|
3053
|
-
return {
|
|
3054
|
-
Filters: output.Filters != null ? de_NotificationFilterConfig(output.Filters, context) : undefined,
|
|
3055
|
-
Sns: output.Sns != null ? de_SnsChannelConfig(output.Sns, context) : undefined,
|
|
3056
|
-
};
|
|
3057
|
-
};
|
|
3058
|
-
const de_NotificationFilterConfig = (output, context) => {
|
|
3059
|
-
return {
|
|
3060
|
-
MessageTypes: output.MessageTypes != null ? de_NotificationMessageTypes(output.MessageTypes, context) : undefined,
|
|
3061
|
-
Severities: output.Severities != null ? de_InsightSeverities(output.Severities, context) : undefined,
|
|
3062
|
-
};
|
|
3063
|
-
};
|
|
3064
|
-
const de_NotificationMessageTypes = (output, context) => {
|
|
3065
|
-
const retVal = (output || [])
|
|
3066
|
-
.filter((e) => e != null)
|
|
3067
|
-
.map((entry) => {
|
|
3068
|
-
if (entry === null) {
|
|
3069
|
-
return null;
|
|
3070
|
-
}
|
|
3071
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3072
|
-
});
|
|
3073
|
-
return retVal;
|
|
3074
|
-
};
|
|
3075
|
-
const de_OpsCenterIntegration = (output, context) => {
|
|
3076
|
-
return {
|
|
3077
|
-
OptInStatus: (0, smithy_client_1.expectString)(output.OptInStatus),
|
|
3078
|
-
};
|
|
3079
|
-
};
|
|
3080
|
-
const de_PerformanceInsightsMetricDimensionGroup = (output, context) => {
|
|
3081
|
-
return {
|
|
3082
|
-
Dimensions: output.Dimensions != null ? de_PerformanceInsightsMetricDimensions(output.Dimensions, context) : undefined,
|
|
3083
|
-
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
3084
|
-
Limit: (0, smithy_client_1.expectInt32)(output.Limit),
|
|
3085
|
-
};
|
|
3086
|
-
};
|
|
3087
|
-
const de_PerformanceInsightsMetricDimensions = (output, context) => {
|
|
3088
|
-
const retVal = (output || [])
|
|
3089
|
-
.filter((e) => e != null)
|
|
3090
|
-
.map((entry) => {
|
|
3091
|
-
if (entry === null) {
|
|
3092
|
-
return null;
|
|
3093
|
-
}
|
|
3094
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3095
|
-
});
|
|
3096
|
-
return retVal;
|
|
3097
|
-
};
|
|
3098
|
-
const de_PerformanceInsightsMetricFilterMap = (output, context) => {
|
|
3099
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3100
|
-
if (value === null) {
|
|
3101
|
-
return acc;
|
|
3102
|
-
}
|
|
3103
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3104
|
-
return acc;
|
|
3105
|
-
}, {});
|
|
3106
|
-
};
|
|
3107
|
-
const de_PerformanceInsightsMetricQuery = (output, context) => {
|
|
3108
|
-
return {
|
|
3109
|
-
Filter: output.Filter != null ? de_PerformanceInsightsMetricFilterMap(output.Filter, context) : undefined,
|
|
3110
|
-
GroupBy: output.GroupBy != null ? de_PerformanceInsightsMetricDimensionGroup(output.GroupBy, context) : undefined,
|
|
3111
|
-
Metric: (0, smithy_client_1.expectString)(output.Metric),
|
|
3112
|
-
};
|
|
3113
|
-
};
|
|
3114
|
-
const de_PerformanceInsightsMetricsDetail = (output, context) => {
|
|
3115
|
-
return {
|
|
3116
|
-
MetricDisplayName: (0, smithy_client_1.expectString)(output.MetricDisplayName),
|
|
3117
|
-
MetricQuery: output.MetricQuery != null ? de_PerformanceInsightsMetricQuery(output.MetricQuery, context) : undefined,
|
|
3118
|
-
ReferenceData: output.ReferenceData != null ? de_PerformanceInsightsReferenceDataList(output.ReferenceData, context) : undefined,
|
|
3119
|
-
StatsAtAnomaly: output.StatsAtAnomaly != null ? de_PerformanceInsightsStats(output.StatsAtAnomaly, context) : undefined,
|
|
3120
|
-
StatsAtBaseline: output.StatsAtBaseline != null ? de_PerformanceInsightsStats(output.StatsAtBaseline, context) : undefined,
|
|
3121
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
3122
|
-
};
|
|
3123
|
-
};
|
|
3124
|
-
const de_PerformanceInsightsMetricsDetails = (output, context) => {
|
|
3125
|
-
const retVal = (output || [])
|
|
3126
|
-
.filter((e) => e != null)
|
|
3127
|
-
.map((entry) => {
|
|
3128
|
-
if (entry === null) {
|
|
3129
|
-
return null;
|
|
3130
|
-
}
|
|
3131
|
-
return de_PerformanceInsightsMetricsDetail(entry, context);
|
|
3132
|
-
});
|
|
3133
|
-
return retVal;
|
|
3134
|
-
};
|
|
3135
|
-
const de_PerformanceInsightsReferenceComparisonValues = (output, context) => {
|
|
3136
|
-
return {
|
|
3137
|
-
ReferenceMetric: output.ReferenceMetric != null
|
|
3138
|
-
? de_PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
|
|
3139
|
-
: undefined,
|
|
3140
|
-
ReferenceScalar: output.ReferenceScalar != null
|
|
3141
|
-
? de_PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
|
|
3142
|
-
: undefined,
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
|
-
const de_PerformanceInsightsReferenceData = (output, context) => {
|
|
3146
|
-
return {
|
|
3147
|
-
ComparisonValues: output.ComparisonValues != null
|
|
3148
|
-
? de_PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
|
|
3149
|
-
: undefined,
|
|
3150
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3151
|
-
};
|
|
3152
|
-
};
|
|
3153
|
-
const de_PerformanceInsightsReferenceDataList = (output, context) => {
|
|
3154
|
-
const retVal = (output || [])
|
|
3155
|
-
.filter((e) => e != null)
|
|
3156
|
-
.map((entry) => {
|
|
3157
|
-
if (entry === null) {
|
|
3158
|
-
return null;
|
|
3159
|
-
}
|
|
3160
|
-
return de_PerformanceInsightsReferenceData(entry, context);
|
|
3161
|
-
});
|
|
3162
|
-
return retVal;
|
|
3163
|
-
};
|
|
3164
|
-
const de_PerformanceInsightsReferenceMetric = (output, context) => {
|
|
3165
|
-
return {
|
|
3166
|
-
MetricQuery: output.MetricQuery != null ? de_PerformanceInsightsMetricQuery(output.MetricQuery, context) : undefined,
|
|
3167
|
-
};
|
|
3168
|
-
};
|
|
3169
|
-
const de_PerformanceInsightsReferenceScalar = (output, context) => {
|
|
3170
|
-
return {
|
|
3171
|
-
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
3172
|
-
};
|
|
3173
|
-
};
|
|
3174
|
-
const de_PerformanceInsightsStat = (output, context) => {
|
|
3175
|
-
return {
|
|
3176
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3177
|
-
Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
|
|
3178
|
-
};
|
|
3179
|
-
};
|
|
3180
|
-
const de_PerformanceInsightsStats = (output, context) => {
|
|
3181
|
-
const retVal = (output || [])
|
|
3182
|
-
.filter((e) => e != null)
|
|
3183
|
-
.map((entry) => {
|
|
3184
|
-
if (entry === null) {
|
|
3185
|
-
return null;
|
|
3186
|
-
}
|
|
3187
|
-
return de_PerformanceInsightsStat(entry, context);
|
|
2455
|
+
return de_PerformanceInsightsStat(entry, context);
|
|
3188
2456
|
});
|
|
3189
2457
|
return retVal;
|
|
3190
2458
|
};
|
|
3191
2459
|
const de_PredictionTimeRange = (output, context) => {
|
|
3192
|
-
return {
|
|
3193
|
-
EndTime:
|
|
3194
|
-
StartTime:
|
|
3195
|
-
};
|
|
2460
|
+
return (0, smithy_client_1.take)(output, {
|
|
2461
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2462
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2463
|
+
});
|
|
3196
2464
|
};
|
|
3197
2465
|
const de_ProactiveAnomalies = (output, context) => {
|
|
3198
2466
|
const retVal = (output || [])
|
|
3199
2467
|
.filter((e) => e != null)
|
|
3200
2468
|
.map((entry) => {
|
|
3201
|
-
if (entry === null) {
|
|
3202
|
-
return null;
|
|
3203
|
-
}
|
|
3204
2469
|
return de_ProactiveAnomalySummary(entry, context);
|
|
3205
2470
|
});
|
|
3206
2471
|
return retVal;
|
|
3207
2472
|
};
|
|
3208
2473
|
const de_ProactiveAnomaly = (output, context) => {
|
|
3209
|
-
return {
|
|
3210
|
-
AnomalyReportedTimeRange:
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime))) : undefined,
|
|
3226
|
-
};
|
|
2474
|
+
return (0, smithy_client_1.take)(output, {
|
|
2475
|
+
AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
|
|
2476
|
+
AnomalyResources: smithy_client_1._json,
|
|
2477
|
+
AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
|
|
2478
|
+
AssociatedInsightId: smithy_client_1.expectString,
|
|
2479
|
+
Description: smithy_client_1.expectString,
|
|
2480
|
+
Id: smithy_client_1.expectString,
|
|
2481
|
+
Limit: smithy_client_1.limitedParseDouble,
|
|
2482
|
+
PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
|
|
2483
|
+
ResourceCollection: smithy_client_1._json,
|
|
2484
|
+
Severity: smithy_client_1.expectString,
|
|
2485
|
+
SourceDetails: (_) => de_AnomalySourceDetails(_, context),
|
|
2486
|
+
SourceMetadata: smithy_client_1._json,
|
|
2487
|
+
Status: smithy_client_1.expectString,
|
|
2488
|
+
UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2489
|
+
});
|
|
3227
2490
|
};
|
|
3228
2491
|
const de_ProactiveAnomalySummary = (output, context) => {
|
|
3229
|
-
return {
|
|
3230
|
-
AnomalyReportedTimeRange:
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime))) : undefined,
|
|
3246
|
-
};
|
|
2492
|
+
return (0, smithy_client_1.take)(output, {
|
|
2493
|
+
AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
|
|
2494
|
+
AnomalyResources: smithy_client_1._json,
|
|
2495
|
+
AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
|
|
2496
|
+
AssociatedInsightId: smithy_client_1.expectString,
|
|
2497
|
+
Description: smithy_client_1.expectString,
|
|
2498
|
+
Id: smithy_client_1.expectString,
|
|
2499
|
+
Limit: smithy_client_1.limitedParseDouble,
|
|
2500
|
+
PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
|
|
2501
|
+
ResourceCollection: smithy_client_1._json,
|
|
2502
|
+
Severity: smithy_client_1.expectString,
|
|
2503
|
+
SourceDetails: (_) => de_AnomalySourceDetails(_, context),
|
|
2504
|
+
SourceMetadata: smithy_client_1._json,
|
|
2505
|
+
Status: smithy_client_1.expectString,
|
|
2506
|
+
UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2507
|
+
});
|
|
3247
2508
|
};
|
|
3248
2509
|
const de_ProactiveInsight = (output, context) => {
|
|
3249
|
-
return {
|
|
3250
|
-
Description:
|
|
3251
|
-
Id:
|
|
3252
|
-
InsightTimeRange:
|
|
3253
|
-
Name:
|
|
3254
|
-
PredictionTimeRange:
|
|
3255
|
-
ResourceCollection:
|
|
3256
|
-
Severity:
|
|
3257
|
-
SsmOpsItemId:
|
|
3258
|
-
Status:
|
|
3259
|
-
};
|
|
2510
|
+
return (0, smithy_client_1.take)(output, {
|
|
2511
|
+
Description: smithy_client_1.expectString,
|
|
2512
|
+
Id: smithy_client_1.expectString,
|
|
2513
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2514
|
+
Name: smithy_client_1.expectString,
|
|
2515
|
+
PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
|
|
2516
|
+
ResourceCollection: smithy_client_1._json,
|
|
2517
|
+
Severity: smithy_client_1.expectString,
|
|
2518
|
+
SsmOpsItemId: smithy_client_1.expectString,
|
|
2519
|
+
Status: smithy_client_1.expectString,
|
|
2520
|
+
});
|
|
3260
2521
|
};
|
|
3261
2522
|
const de_ProactiveInsights = (output, context) => {
|
|
3262
2523
|
const retVal = (output || [])
|
|
3263
2524
|
.filter((e) => e != null)
|
|
3264
2525
|
.map((entry) => {
|
|
3265
|
-
if (entry === null) {
|
|
3266
|
-
return null;
|
|
3267
|
-
}
|
|
3268
2526
|
return de_ProactiveInsightSummary(entry, context);
|
|
3269
2527
|
});
|
|
3270
2528
|
return retVal;
|
|
3271
2529
|
};
|
|
3272
2530
|
const de_ProactiveInsightSummary = (output, context) => {
|
|
3273
|
-
return {
|
|
3274
|
-
AssociatedResourceArns:
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3285
|
-
};
|
|
2531
|
+
return (0, smithy_client_1.take)(output, {
|
|
2532
|
+
AssociatedResourceArns: smithy_client_1._json,
|
|
2533
|
+
Id: smithy_client_1.expectString,
|
|
2534
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2535
|
+
Name: smithy_client_1.expectString,
|
|
2536
|
+
PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
|
|
2537
|
+
ResourceCollection: smithy_client_1._json,
|
|
2538
|
+
ServiceCollection: smithy_client_1._json,
|
|
2539
|
+
Severity: smithy_client_1.expectString,
|
|
2540
|
+
Status: smithy_client_1.expectString,
|
|
2541
|
+
});
|
|
3286
2542
|
};
|
|
3287
2543
|
const de_ProactiveOrganizationInsights = (output, context) => {
|
|
3288
2544
|
const retVal = (output || [])
|
|
3289
2545
|
.filter((e) => e != null)
|
|
3290
2546
|
.map((entry) => {
|
|
3291
|
-
if (entry === null) {
|
|
3292
|
-
return null;
|
|
3293
|
-
}
|
|
3294
2547
|
return de_ProactiveOrganizationInsightSummary(entry, context);
|
|
3295
2548
|
});
|
|
3296
2549
|
return retVal;
|
|
3297
2550
|
};
|
|
3298
2551
|
const de_ProactiveOrganizationInsightSummary = (output, context) => {
|
|
3299
|
-
return {
|
|
3300
|
-
AccountId:
|
|
3301
|
-
Id:
|
|
3302
|
-
InsightTimeRange:
|
|
3303
|
-
Name:
|
|
3304
|
-
OrganizationalUnitId:
|
|
3305
|
-
PredictionTimeRange:
|
|
3306
|
-
ResourceCollection:
|
|
3307
|
-
ServiceCollection:
|
|
3308
|
-
Severity:
|
|
3309
|
-
Status:
|
|
3310
|
-
};
|
|
2552
|
+
return (0, smithy_client_1.take)(output, {
|
|
2553
|
+
AccountId: smithy_client_1.expectString,
|
|
2554
|
+
Id: smithy_client_1.expectString,
|
|
2555
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2556
|
+
Name: smithy_client_1.expectString,
|
|
2557
|
+
OrganizationalUnitId: smithy_client_1.expectString,
|
|
2558
|
+
PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
|
|
2559
|
+
ResourceCollection: smithy_client_1._json,
|
|
2560
|
+
ServiceCollection: smithy_client_1._json,
|
|
2561
|
+
Severity: smithy_client_1.expectString,
|
|
2562
|
+
Status: smithy_client_1.expectString,
|
|
2563
|
+
});
|
|
3311
2564
|
};
|
|
3312
2565
|
const de_ReactiveAnomalies = (output, context) => {
|
|
3313
2566
|
const retVal = (output || [])
|
|
3314
2567
|
.filter((e) => e != null)
|
|
3315
2568
|
.map((entry) => {
|
|
3316
|
-
if (entry === null) {
|
|
3317
|
-
return null;
|
|
3318
|
-
}
|
|
3319
2569
|
return de_ReactiveAnomalySummary(entry, context);
|
|
3320
2570
|
});
|
|
3321
2571
|
return retVal;
|
|
3322
2572
|
};
|
|
3323
2573
|
const de_ReactiveAnomaly = (output, context) => {
|
|
3324
|
-
return {
|
|
3325
|
-
AnomalyReportedTimeRange:
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3340
|
-
};
|
|
2574
|
+
return (0, smithy_client_1.take)(output, {
|
|
2575
|
+
AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
|
|
2576
|
+
AnomalyResources: smithy_client_1._json,
|
|
2577
|
+
AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
|
|
2578
|
+
AssociatedInsightId: smithy_client_1.expectString,
|
|
2579
|
+
CausalAnomalyId: smithy_client_1.expectString,
|
|
2580
|
+
Description: smithy_client_1.expectString,
|
|
2581
|
+
Id: smithy_client_1.expectString,
|
|
2582
|
+
Name: smithy_client_1.expectString,
|
|
2583
|
+
ResourceCollection: smithy_client_1._json,
|
|
2584
|
+
Severity: smithy_client_1.expectString,
|
|
2585
|
+
SourceDetails: (_) => de_AnomalySourceDetails(_, context),
|
|
2586
|
+
Status: smithy_client_1.expectString,
|
|
2587
|
+
Type: smithy_client_1.expectString,
|
|
2588
|
+
});
|
|
3341
2589
|
};
|
|
3342
2590
|
const de_ReactiveAnomalySummary = (output, context) => {
|
|
3343
|
-
return {
|
|
3344
|
-
AnomalyReportedTimeRange:
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3359
|
-
};
|
|
2591
|
+
return (0, smithy_client_1.take)(output, {
|
|
2592
|
+
AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
|
|
2593
|
+
AnomalyResources: smithy_client_1._json,
|
|
2594
|
+
AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
|
|
2595
|
+
AssociatedInsightId: smithy_client_1.expectString,
|
|
2596
|
+
CausalAnomalyId: smithy_client_1.expectString,
|
|
2597
|
+
Description: smithy_client_1.expectString,
|
|
2598
|
+
Id: smithy_client_1.expectString,
|
|
2599
|
+
Name: smithy_client_1.expectString,
|
|
2600
|
+
ResourceCollection: smithy_client_1._json,
|
|
2601
|
+
Severity: smithy_client_1.expectString,
|
|
2602
|
+
SourceDetails: (_) => de_AnomalySourceDetails(_, context),
|
|
2603
|
+
Status: smithy_client_1.expectString,
|
|
2604
|
+
Type: smithy_client_1.expectString,
|
|
2605
|
+
});
|
|
3360
2606
|
};
|
|
3361
2607
|
const de_ReactiveInsight = (output, context) => {
|
|
3362
|
-
return {
|
|
3363
|
-
Description:
|
|
3364
|
-
Id:
|
|
3365
|
-
InsightTimeRange:
|
|
3366
|
-
Name:
|
|
3367
|
-
ResourceCollection:
|
|
3368
|
-
Severity:
|
|
3369
|
-
SsmOpsItemId:
|
|
3370
|
-
Status:
|
|
3371
|
-
};
|
|
2608
|
+
return (0, smithy_client_1.take)(output, {
|
|
2609
|
+
Description: smithy_client_1.expectString,
|
|
2610
|
+
Id: smithy_client_1.expectString,
|
|
2611
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2612
|
+
Name: smithy_client_1.expectString,
|
|
2613
|
+
ResourceCollection: smithy_client_1._json,
|
|
2614
|
+
Severity: smithy_client_1.expectString,
|
|
2615
|
+
SsmOpsItemId: smithy_client_1.expectString,
|
|
2616
|
+
Status: smithy_client_1.expectString,
|
|
2617
|
+
});
|
|
3372
2618
|
};
|
|
3373
2619
|
const de_ReactiveInsights = (output, context) => {
|
|
3374
2620
|
const retVal = (output || [])
|
|
3375
2621
|
.filter((e) => e != null)
|
|
3376
2622
|
.map((entry) => {
|
|
3377
|
-
if (entry === null) {
|
|
3378
|
-
return null;
|
|
3379
|
-
}
|
|
3380
2623
|
return de_ReactiveInsightSummary(entry, context);
|
|
3381
2624
|
});
|
|
3382
2625
|
return retVal;
|
|
3383
2626
|
};
|
|
3384
2627
|
const de_ReactiveInsightSummary = (output, context) => {
|
|
3385
|
-
return {
|
|
3386
|
-
AssociatedResourceArns:
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3396
|
-
};
|
|
2628
|
+
return (0, smithy_client_1.take)(output, {
|
|
2629
|
+
AssociatedResourceArns: smithy_client_1._json,
|
|
2630
|
+
Id: smithy_client_1.expectString,
|
|
2631
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2632
|
+
Name: smithy_client_1.expectString,
|
|
2633
|
+
ResourceCollection: smithy_client_1._json,
|
|
2634
|
+
ServiceCollection: smithy_client_1._json,
|
|
2635
|
+
Severity: smithy_client_1.expectString,
|
|
2636
|
+
Status: smithy_client_1.expectString,
|
|
2637
|
+
});
|
|
3397
2638
|
};
|
|
3398
2639
|
const de_ReactiveOrganizationInsights = (output, context) => {
|
|
3399
2640
|
const retVal = (output || [])
|
|
3400
2641
|
.filter((e) => e != null)
|
|
3401
2642
|
.map((entry) => {
|
|
3402
|
-
if (entry === null) {
|
|
3403
|
-
return null;
|
|
3404
|
-
}
|
|
3405
2643
|
return de_ReactiveOrganizationInsightSummary(entry, context);
|
|
3406
2644
|
});
|
|
3407
2645
|
return retVal;
|
|
3408
2646
|
};
|
|
3409
2647
|
const de_ReactiveOrganizationInsightSummary = (output, context) => {
|
|
3410
|
-
return {
|
|
3411
|
-
AccountId:
|
|
3412
|
-
Id:
|
|
3413
|
-
InsightTimeRange:
|
|
3414
|
-
Name:
|
|
3415
|
-
OrganizationalUnitId:
|
|
3416
|
-
ResourceCollection:
|
|
3417
|
-
ServiceCollection:
|
|
3418
|
-
Severity:
|
|
3419
|
-
Status:
|
|
3420
|
-
};
|
|
3421
|
-
};
|
|
3422
|
-
const de_Recommendation = (output, context) => {
|
|
3423
|
-
return {
|
|
3424
|
-
Category: (0, smithy_client_1.expectString)(output.Category),
|
|
3425
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3426
|
-
Link: (0, smithy_client_1.expectString)(output.Link),
|
|
3427
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3428
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
3429
|
-
RelatedAnomalies: output.RelatedAnomalies != null ? de_RecommendationRelatedAnomalies(output.RelatedAnomalies, context) : undefined,
|
|
3430
|
-
RelatedEvents: output.RelatedEvents != null ? de_RecommendationRelatedEvents(output.RelatedEvents, context) : undefined,
|
|
3431
|
-
};
|
|
3432
|
-
};
|
|
3433
|
-
const de_RecommendationRelatedAnomalies = (output, context) => {
|
|
3434
|
-
const retVal = (output || [])
|
|
3435
|
-
.filter((e) => e != null)
|
|
3436
|
-
.map((entry) => {
|
|
3437
|
-
if (entry === null) {
|
|
3438
|
-
return null;
|
|
3439
|
-
}
|
|
3440
|
-
return de_RecommendationRelatedAnomaly(entry, context);
|
|
3441
|
-
});
|
|
3442
|
-
return retVal;
|
|
3443
|
-
};
|
|
3444
|
-
const de_RecommendationRelatedAnomaly = (output, context) => {
|
|
3445
|
-
return {
|
|
3446
|
-
AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
|
|
3447
|
-
Resources: output.Resources != null ? de_RecommendationRelatedAnomalyResources(output.Resources, context) : undefined,
|
|
3448
|
-
SourceDetails: output.SourceDetails != null ? de_RelatedAnomalySourceDetails(output.SourceDetails, context) : undefined,
|
|
3449
|
-
};
|
|
3450
|
-
};
|
|
3451
|
-
const de_RecommendationRelatedAnomalyResource = (output, context) => {
|
|
3452
|
-
return {
|
|
3453
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3454
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3455
|
-
};
|
|
3456
|
-
};
|
|
3457
|
-
const de_RecommendationRelatedAnomalyResources = (output, context) => {
|
|
3458
|
-
const retVal = (output || [])
|
|
3459
|
-
.filter((e) => e != null)
|
|
3460
|
-
.map((entry) => {
|
|
3461
|
-
if (entry === null) {
|
|
3462
|
-
return null;
|
|
3463
|
-
}
|
|
3464
|
-
return de_RecommendationRelatedAnomalyResource(entry, context);
|
|
3465
|
-
});
|
|
3466
|
-
return retVal;
|
|
3467
|
-
};
|
|
3468
|
-
const de_RecommendationRelatedAnomalySourceDetail = (output, context) => {
|
|
3469
|
-
return {
|
|
3470
|
-
CloudWatchMetrics: output.CloudWatchMetrics != null
|
|
3471
|
-
? de_RecommendationRelatedCloudWatchMetricsSourceDetails(output.CloudWatchMetrics, context)
|
|
3472
|
-
: undefined,
|
|
3473
|
-
};
|
|
3474
|
-
};
|
|
3475
|
-
const de_RecommendationRelatedCloudWatchMetricsSourceDetail = (output, context) => {
|
|
3476
|
-
return {
|
|
3477
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
3478
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
3479
|
-
};
|
|
3480
|
-
};
|
|
3481
|
-
const de_RecommendationRelatedCloudWatchMetricsSourceDetails = (output, context) => {
|
|
3482
|
-
const retVal = (output || [])
|
|
3483
|
-
.filter((e) => e != null)
|
|
3484
|
-
.map((entry) => {
|
|
3485
|
-
if (entry === null) {
|
|
3486
|
-
return null;
|
|
3487
|
-
}
|
|
3488
|
-
return de_RecommendationRelatedCloudWatchMetricsSourceDetail(entry, context);
|
|
2648
|
+
return (0, smithy_client_1.take)(output, {
|
|
2649
|
+
AccountId: smithy_client_1.expectString,
|
|
2650
|
+
Id: smithy_client_1.expectString,
|
|
2651
|
+
InsightTimeRange: (_) => de_InsightTimeRange(_, context),
|
|
2652
|
+
Name: smithy_client_1.expectString,
|
|
2653
|
+
OrganizationalUnitId: smithy_client_1.expectString,
|
|
2654
|
+
ResourceCollection: smithy_client_1._json,
|
|
2655
|
+
ServiceCollection: smithy_client_1._json,
|
|
2656
|
+
Severity: smithy_client_1.expectString,
|
|
2657
|
+
Status: smithy_client_1.expectString,
|
|
3489
2658
|
});
|
|
3490
|
-
return retVal;
|
|
3491
|
-
};
|
|
3492
|
-
const de_RecommendationRelatedEvent = (output, context) => {
|
|
3493
|
-
return {
|
|
3494
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3495
|
-
Resources: output.Resources != null ? de_RecommendationRelatedEventResources(output.Resources, context) : undefined,
|
|
3496
|
-
};
|
|
3497
|
-
};
|
|
3498
|
-
const de_RecommendationRelatedEventResource = (output, context) => {
|
|
3499
|
-
return {
|
|
3500
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3501
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3502
|
-
};
|
|
3503
|
-
};
|
|
3504
|
-
const de_RecommendationRelatedEventResources = (output, context) => {
|
|
3505
|
-
const retVal = (output || [])
|
|
3506
|
-
.filter((e) => e != null)
|
|
3507
|
-
.map((entry) => {
|
|
3508
|
-
if (entry === null) {
|
|
3509
|
-
return null;
|
|
3510
|
-
}
|
|
3511
|
-
return de_RecommendationRelatedEventResource(entry, context);
|
|
3512
|
-
});
|
|
3513
|
-
return retVal;
|
|
3514
|
-
};
|
|
3515
|
-
const de_RecommendationRelatedEvents = (output, context) => {
|
|
3516
|
-
const retVal = (output || [])
|
|
3517
|
-
.filter((e) => e != null)
|
|
3518
|
-
.map((entry) => {
|
|
3519
|
-
if (entry === null) {
|
|
3520
|
-
return null;
|
|
3521
|
-
}
|
|
3522
|
-
return de_RecommendationRelatedEvent(entry, context);
|
|
3523
|
-
});
|
|
3524
|
-
return retVal;
|
|
3525
|
-
};
|
|
3526
|
-
const de_Recommendations = (output, context) => {
|
|
3527
|
-
const retVal = (output || [])
|
|
3528
|
-
.filter((e) => e != null)
|
|
3529
|
-
.map((entry) => {
|
|
3530
|
-
if (entry === null) {
|
|
3531
|
-
return null;
|
|
3532
|
-
}
|
|
3533
|
-
return de_Recommendation(entry, context);
|
|
3534
|
-
});
|
|
3535
|
-
return retVal;
|
|
3536
|
-
};
|
|
3537
|
-
const de_RelatedAnomalySourceDetails = (output, context) => {
|
|
3538
|
-
const retVal = (output || [])
|
|
3539
|
-
.filter((e) => e != null)
|
|
3540
|
-
.map((entry) => {
|
|
3541
|
-
if (entry === null) {
|
|
3542
|
-
return null;
|
|
3543
|
-
}
|
|
3544
|
-
return de_RecommendationRelatedAnomalySourceDetail(entry, context);
|
|
3545
|
-
});
|
|
3546
|
-
return retVal;
|
|
3547
|
-
};
|
|
3548
|
-
const de_ResourceCollection = (output, context) => {
|
|
3549
|
-
return {
|
|
3550
|
-
CloudFormation: output.CloudFormation != null ? de_CloudFormationCollection(output.CloudFormation, context) : undefined,
|
|
3551
|
-
Tags: output.Tags != null ? de_TagCollections(output.Tags, context) : undefined,
|
|
3552
|
-
};
|
|
3553
|
-
};
|
|
3554
|
-
const de_ResourceCollectionFilter = (output, context) => {
|
|
3555
|
-
return {
|
|
3556
|
-
CloudFormation: output.CloudFormation != null ? de_CloudFormationCollectionFilter(output.CloudFormation, context) : undefined,
|
|
3557
|
-
Tags: output.Tags != null ? de_TagCollectionFilters(output.Tags, context) : undefined,
|
|
3558
|
-
};
|
|
3559
|
-
};
|
|
3560
|
-
const de_ServiceCollection = (output, context) => {
|
|
3561
|
-
return {
|
|
3562
|
-
ServiceNames: output.ServiceNames != null ? de_ServiceNames(output.ServiceNames, context) : undefined,
|
|
3563
|
-
};
|
|
3564
|
-
};
|
|
3565
|
-
const de_ServiceHealth = (output, context) => {
|
|
3566
|
-
return {
|
|
3567
|
-
AnalyzedResourceCount: (0, smithy_client_1.expectLong)(output.AnalyzedResourceCount),
|
|
3568
|
-
Insight: output.Insight != null ? de_ServiceInsightHealth(output.Insight, context) : undefined,
|
|
3569
|
-
ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
|
|
3570
|
-
};
|
|
3571
|
-
};
|
|
3572
|
-
const de_ServiceHealths = (output, context) => {
|
|
3573
|
-
const retVal = (output || [])
|
|
3574
|
-
.filter((e) => e != null)
|
|
3575
|
-
.map((entry) => {
|
|
3576
|
-
if (entry === null) {
|
|
3577
|
-
return null;
|
|
3578
|
-
}
|
|
3579
|
-
return de_ServiceHealth(entry, context);
|
|
3580
|
-
});
|
|
3581
|
-
return retVal;
|
|
3582
|
-
};
|
|
3583
|
-
const de_ServiceInsightHealth = (output, context) => {
|
|
3584
|
-
return {
|
|
3585
|
-
OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
|
|
3586
|
-
OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
|
|
3587
|
-
};
|
|
3588
|
-
};
|
|
3589
|
-
const de_ServiceIntegrationConfig = (output, context) => {
|
|
3590
|
-
return {
|
|
3591
|
-
LogsAnomalyDetection: output.LogsAnomalyDetection != null
|
|
3592
|
-
? de_LogsAnomalyDetectionIntegration(output.LogsAnomalyDetection, context)
|
|
3593
|
-
: undefined,
|
|
3594
|
-
OpsCenter: output.OpsCenter != null ? de_OpsCenterIntegration(output.OpsCenter, context) : undefined,
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const de_ServiceNames = (output, context) => {
|
|
3598
|
-
const retVal = (output || [])
|
|
3599
|
-
.filter((e) => e != null)
|
|
3600
|
-
.map((entry) => {
|
|
3601
|
-
if (entry === null) {
|
|
3602
|
-
return null;
|
|
3603
|
-
}
|
|
3604
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3605
|
-
});
|
|
3606
|
-
return retVal;
|
|
3607
2659
|
};
|
|
3608
2660
|
const de_ServiceResourceCost = (output, context) => {
|
|
3609
|
-
return {
|
|
3610
|
-
Cost:
|
|
3611
|
-
Count:
|
|
3612
|
-
State:
|
|
3613
|
-
Type:
|
|
3614
|
-
UnitCost:
|
|
3615
|
-
};
|
|
2661
|
+
return (0, smithy_client_1.take)(output, {
|
|
2662
|
+
Cost: smithy_client_1.limitedParseDouble,
|
|
2663
|
+
Count: smithy_client_1.expectInt32,
|
|
2664
|
+
State: smithy_client_1.expectString,
|
|
2665
|
+
Type: smithy_client_1.expectString,
|
|
2666
|
+
UnitCost: smithy_client_1.limitedParseDouble,
|
|
2667
|
+
});
|
|
3616
2668
|
};
|
|
3617
2669
|
const de_ServiceResourceCosts = (output, context) => {
|
|
3618
2670
|
const retVal = (output || [])
|
|
3619
2671
|
.filter((e) => e != null)
|
|
3620
2672
|
.map((entry) => {
|
|
3621
|
-
if (entry === null) {
|
|
3622
|
-
return null;
|
|
3623
|
-
}
|
|
3624
2673
|
return de_ServiceResourceCost(entry, context);
|
|
3625
2674
|
});
|
|
3626
2675
|
return retVal;
|
|
3627
2676
|
};
|
|
3628
|
-
const de_SnsChannelConfig = (output, context) => {
|
|
3629
|
-
return {
|
|
3630
|
-
TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
|
|
3631
|
-
};
|
|
3632
|
-
};
|
|
3633
|
-
const de_StackNames = (output, context) => {
|
|
3634
|
-
const retVal = (output || [])
|
|
3635
|
-
.filter((e) => e != null)
|
|
3636
|
-
.map((entry) => {
|
|
3637
|
-
if (entry === null) {
|
|
3638
|
-
return null;
|
|
3639
|
-
}
|
|
3640
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3641
|
-
});
|
|
3642
|
-
return retVal;
|
|
3643
|
-
};
|
|
3644
|
-
const de_TagCollection = (output, context) => {
|
|
3645
|
-
return {
|
|
3646
|
-
AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
|
|
3647
|
-
TagValues: output.TagValues != null ? de_TagValues(output.TagValues, context) : undefined,
|
|
3648
|
-
};
|
|
3649
|
-
};
|
|
3650
|
-
const de_TagCollectionFilter = (output, context) => {
|
|
3651
|
-
return {
|
|
3652
|
-
AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
|
|
3653
|
-
TagValues: output.TagValues != null ? de_TagValues(output.TagValues, context) : undefined,
|
|
3654
|
-
};
|
|
3655
|
-
};
|
|
3656
|
-
const de_TagCollectionFilters = (output, context) => {
|
|
3657
|
-
const retVal = (output || [])
|
|
3658
|
-
.filter((e) => e != null)
|
|
3659
|
-
.map((entry) => {
|
|
3660
|
-
if (entry === null) {
|
|
3661
|
-
return null;
|
|
3662
|
-
}
|
|
3663
|
-
return de_TagCollectionFilter(entry, context);
|
|
3664
|
-
});
|
|
3665
|
-
return retVal;
|
|
3666
|
-
};
|
|
3667
|
-
const de_TagCollections = (output, context) => {
|
|
3668
|
-
const retVal = (output || [])
|
|
3669
|
-
.filter((e) => e != null)
|
|
3670
|
-
.map((entry) => {
|
|
3671
|
-
if (entry === null) {
|
|
3672
|
-
return null;
|
|
3673
|
-
}
|
|
3674
|
-
return de_TagCollection(entry, context);
|
|
3675
|
-
});
|
|
3676
|
-
return retVal;
|
|
3677
|
-
};
|
|
3678
|
-
const de_TagCostEstimationResourceCollectionFilter = (output, context) => {
|
|
3679
|
-
return {
|
|
3680
|
-
AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
|
|
3681
|
-
TagValues: output.TagValues != null ? de_CostEstimationTagValues(output.TagValues, context) : undefined,
|
|
3682
|
-
};
|
|
3683
|
-
};
|
|
3684
|
-
const de_TagCostEstimationResourceCollectionFilters = (output, context) => {
|
|
3685
|
-
const retVal = (output || [])
|
|
3686
|
-
.filter((e) => e != null)
|
|
3687
|
-
.map((entry) => {
|
|
3688
|
-
if (entry === null) {
|
|
3689
|
-
return null;
|
|
3690
|
-
}
|
|
3691
|
-
return de_TagCostEstimationResourceCollectionFilter(entry, context);
|
|
3692
|
-
});
|
|
3693
|
-
return retVal;
|
|
3694
|
-
};
|
|
3695
|
-
const de_TagHealth = (output, context) => {
|
|
3696
|
-
return {
|
|
3697
|
-
AnalyzedResourceCount: (0, smithy_client_1.expectLong)(output.AnalyzedResourceCount),
|
|
3698
|
-
AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
|
|
3699
|
-
Insight: output.Insight != null ? de_InsightHealth(output.Insight, context) : undefined,
|
|
3700
|
-
TagValue: (0, smithy_client_1.expectString)(output.TagValue),
|
|
3701
|
-
};
|
|
3702
|
-
};
|
|
3703
|
-
const de_TagHealths = (output, context) => {
|
|
3704
|
-
const retVal = (output || [])
|
|
3705
|
-
.filter((e) => e != null)
|
|
3706
|
-
.map((entry) => {
|
|
3707
|
-
if (entry === null) {
|
|
3708
|
-
return null;
|
|
3709
|
-
}
|
|
3710
|
-
return de_TagHealth(entry, context);
|
|
3711
|
-
});
|
|
3712
|
-
return retVal;
|
|
3713
|
-
};
|
|
3714
|
-
const de_TagValues = (output, context) => {
|
|
3715
|
-
const retVal = (output || [])
|
|
3716
|
-
.filter((e) => e != null)
|
|
3717
|
-
.map((entry) => {
|
|
3718
|
-
if (entry === null) {
|
|
3719
|
-
return null;
|
|
3720
|
-
}
|
|
3721
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3722
|
-
});
|
|
3723
|
-
return retVal;
|
|
3724
|
-
};
|
|
3725
2677
|
const de_TimestampMetricValuePair = (output, context) => {
|
|
3726
|
-
return {
|
|
3727
|
-
MetricValue:
|
|
3728
|
-
Timestamp:
|
|
3729
|
-
};
|
|
2678
|
+
return (0, smithy_client_1.take)(output, {
|
|
2679
|
+
MetricValue: smithy_client_1.limitedParseDouble,
|
|
2680
|
+
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2681
|
+
});
|
|
3730
2682
|
};
|
|
3731
2683
|
const de_TimestampMetricValuePairList = (output, context) => {
|
|
3732
2684
|
const retVal = (output || [])
|
|
3733
2685
|
.filter((e) => e != null)
|
|
3734
2686
|
.map((entry) => {
|
|
3735
|
-
if (entry === null) {
|
|
3736
|
-
return null;
|
|
3737
|
-
}
|
|
3738
2687
|
return de_TimestampMetricValuePair(entry, context);
|
|
3739
2688
|
});
|
|
3740
2689
|
return retVal;
|
|
3741
2690
|
};
|
|
3742
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3743
|
-
return {
|
|
3744
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3745
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3746
|
-
};
|
|
3747
|
-
};
|
|
3748
|
-
const de_ValidationExceptionFields = (output, context) => {
|
|
3749
|
-
const retVal = (output || [])
|
|
3750
|
-
.filter((e) => e != null)
|
|
3751
|
-
.map((entry) => {
|
|
3752
|
-
if (entry === null) {
|
|
3753
|
-
return null;
|
|
3754
|
-
}
|
|
3755
|
-
return de_ValidationExceptionField(entry, context);
|
|
3756
|
-
});
|
|
3757
|
-
return retVal;
|
|
3758
|
-
};
|
|
3759
2691
|
const deserializeMetadata = (output) => ({
|
|
3760
2692
|
httpStatusCode: output.statusCode,
|
|
3761
2693
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|