@aws-sdk/client-devops-guru 3.928.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist-cjs/index.js +1861 -1731
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/DevOpsGuruClient.js +2 -0
  4. package/dist-es/commands/AddNotificationChannelCommand.js +3 -9
  5. package/dist-es/commands/DeleteInsightCommand.js +3 -9
  6. package/dist-es/commands/DescribeAccountHealthCommand.js +3 -9
  7. package/dist-es/commands/DescribeAccountOverviewCommand.js +3 -9
  8. package/dist-es/commands/DescribeAnomalyCommand.js +3 -9
  9. package/dist-es/commands/DescribeEventSourcesConfigCommand.js +3 -9
  10. package/dist-es/commands/DescribeFeedbackCommand.js +3 -9
  11. package/dist-es/commands/DescribeInsightCommand.js +3 -9
  12. package/dist-es/commands/DescribeOrganizationHealthCommand.js +3 -9
  13. package/dist-es/commands/DescribeOrganizationOverviewCommand.js +3 -9
  14. package/dist-es/commands/DescribeOrganizationResourceCollectionHealthCommand.js +3 -9
  15. package/dist-es/commands/DescribeResourceCollectionHealthCommand.js +3 -9
  16. package/dist-es/commands/DescribeServiceIntegrationCommand.js +3 -9
  17. package/dist-es/commands/GetCostEstimationCommand.js +3 -9
  18. package/dist-es/commands/GetResourceCollectionCommand.js +3 -9
  19. package/dist-es/commands/ListAnomaliesForInsightCommand.js +3 -9
  20. package/dist-es/commands/ListAnomalousLogGroupsCommand.js +3 -9
  21. package/dist-es/commands/ListEventsCommand.js +3 -9
  22. package/dist-es/commands/ListInsightsCommand.js +3 -9
  23. package/dist-es/commands/ListMonitoredResourcesCommand.js +3 -9
  24. package/dist-es/commands/ListNotificationChannelsCommand.js +3 -9
  25. package/dist-es/commands/ListOrganizationInsightsCommand.js +3 -9
  26. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  27. package/dist-es/commands/PutFeedbackCommand.js +3 -9
  28. package/dist-es/commands/RemoveNotificationChannelCommand.js +3 -9
  29. package/dist-es/commands/SearchInsightsCommand.js +3 -9
  30. package/dist-es/commands/SearchOrganizationInsightsCommand.js +3 -9
  31. package/dist-es/commands/StartCostEstimationCommand.js +3 -9
  32. package/dist-es/commands/UpdateEventSourcesConfigCommand.js +3 -9
  33. package/dist-es/commands/UpdateResourceCollectionCommand.js +3 -9
  34. package/dist-es/commands/UpdateServiceIntegrationCommand.js +3 -9
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-es/schemas/schemas_0.js +1799 -0
  37. package/dist-types/DevOpsGuruClient.d.ts +10 -1
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  39. package/dist-types/runtimeConfig.d.ts +1 -0
  40. package/dist-types/runtimeConfig.native.d.ts +1 -0
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/schemas/schemas_0.d.ts +251 -0
  43. package/dist-types/ts3.4/DevOpsGuruClient.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +256 -0
  49. package/package.json +2 -3
  50. package/dist-es/protocols/Aws_restJson1.js +0 -1497
  51. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
@@ -1,1497 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { DevOpsGuruServiceException as __BaseException } from "../models/DevOpsGuruServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_AddNotificationChannelCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/channels");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- Config: (_) => _json(_),
16
- }));
17
- b.m("PUT").h(headers).b(body);
18
- return b.build();
19
- };
20
- export const se_DeleteInsightCommand = async (input, context) => {
21
- const b = rb(input, context);
22
- const headers = {};
23
- b.bp("/insights/{Id}");
24
- b.p("Id", () => input.Id, "{Id}", false);
25
- let body;
26
- b.m("DELETE").h(headers).b(body);
27
- return b.build();
28
- };
29
- export const se_DescribeAccountHealthCommand = async (input, context) => {
30
- const b = rb(input, context);
31
- const headers = {};
32
- b.bp("/accounts/health");
33
- let body;
34
- b.m("GET").h(headers).b(body);
35
- return b.build();
36
- };
37
- export const se_DescribeAccountOverviewCommand = async (input, context) => {
38
- const b = rb(input, context);
39
- const headers = {
40
- "content-type": "application/json",
41
- };
42
- b.bp("/accounts/overview");
43
- let body;
44
- body = JSON.stringify(take(input, {
45
- FromTime: (_) => _.getTime() / 1_000,
46
- ToTime: (_) => _.getTime() / 1_000,
47
- }));
48
- b.m("POST").h(headers).b(body);
49
- return b.build();
50
- };
51
- export const se_DescribeAnomalyCommand = async (input, context) => {
52
- const b = rb(input, context);
53
- const headers = {};
54
- b.bp("/anomalies/{Id}");
55
- b.p("Id", () => input.Id, "{Id}", false);
56
- const query = map({
57
- [_AI]: [, input[_AI]],
58
- });
59
- let body;
60
- b.m("GET").h(headers).q(query).b(body);
61
- return b.build();
62
- };
63
- export const se_DescribeEventSourcesConfigCommand = async (input, context) => {
64
- const b = rb(input, context);
65
- const headers = {};
66
- b.bp("/event-sources");
67
- let body;
68
- b.m("POST").h(headers).b(body);
69
- return b.build();
70
- };
71
- export const se_DescribeFeedbackCommand = async (input, context) => {
72
- const b = rb(input, context);
73
- const headers = {
74
- "content-type": "application/json",
75
- };
76
- b.bp("/feedback");
77
- let body;
78
- body = JSON.stringify(take(input, {
79
- InsightId: [],
80
- }));
81
- b.m("POST").h(headers).b(body);
82
- return b.build();
83
- };
84
- export const se_DescribeInsightCommand = async (input, context) => {
85
- const b = rb(input, context);
86
- const headers = {};
87
- b.bp("/insights/{Id}");
88
- b.p("Id", () => input.Id, "{Id}", false);
89
- const query = map({
90
- [_AI]: [, input[_AI]],
91
- });
92
- let body;
93
- b.m("GET").h(headers).q(query).b(body);
94
- return b.build();
95
- };
96
- export const se_DescribeOrganizationHealthCommand = async (input, context) => {
97
- const b = rb(input, context);
98
- const headers = {
99
- "content-type": "application/json",
100
- };
101
- b.bp("/organization/health");
102
- let body;
103
- body = JSON.stringify(take(input, {
104
- AccountIds: (_) => _json(_),
105
- OrganizationalUnitIds: (_) => _json(_),
106
- }));
107
- b.m("POST").h(headers).b(body);
108
- return b.build();
109
- };
110
- export const se_DescribeOrganizationOverviewCommand = async (input, context) => {
111
- const b = rb(input, context);
112
- const headers = {
113
- "content-type": "application/json",
114
- };
115
- b.bp("/organization/overview");
116
- let body;
117
- body = JSON.stringify(take(input, {
118
- AccountIds: (_) => _json(_),
119
- FromTime: (_) => _.getTime() / 1_000,
120
- OrganizationalUnitIds: (_) => _json(_),
121
- ToTime: (_) => _.getTime() / 1_000,
122
- }));
123
- b.m("POST").h(headers).b(body);
124
- return b.build();
125
- };
126
- export const se_DescribeOrganizationResourceCollectionHealthCommand = async (input, context) => {
127
- const b = rb(input, context);
128
- const headers = {
129
- "content-type": "application/json",
130
- };
131
- b.bp("/organization/health/resource-collection");
132
- let body;
133
- body = JSON.stringify(take(input, {
134
- AccountIds: (_) => _json(_),
135
- MaxResults: [],
136
- NextToken: [],
137
- OrganizationResourceCollectionType: [],
138
- OrganizationalUnitIds: (_) => _json(_),
139
- }));
140
- b.m("POST").h(headers).b(body);
141
- return b.build();
142
- };
143
- export const se_DescribeResourceCollectionHealthCommand = async (input, context) => {
144
- const b = rb(input, context);
145
- const headers = {};
146
- b.bp("/accounts/health/resource-collection/{ResourceCollectionType}");
147
- b.p("ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
148
- const query = map({
149
- [_NT]: [, input[_NT]],
150
- });
151
- let body;
152
- b.m("GET").h(headers).q(query).b(body);
153
- return b.build();
154
- };
155
- export const se_DescribeServiceIntegrationCommand = async (input, context) => {
156
- const b = rb(input, context);
157
- const headers = {};
158
- b.bp("/service-integrations");
159
- let body;
160
- b.m("GET").h(headers).b(body);
161
- return b.build();
162
- };
163
- export const se_GetCostEstimationCommand = async (input, context) => {
164
- const b = rb(input, context);
165
- const headers = {};
166
- b.bp("/cost-estimation");
167
- const query = map({
168
- [_NT]: [, input[_NT]],
169
- });
170
- let body;
171
- b.m("GET").h(headers).q(query).b(body);
172
- return b.build();
173
- };
174
- export const se_GetResourceCollectionCommand = async (input, context) => {
175
- const b = rb(input, context);
176
- const headers = {};
177
- b.bp("/resource-collections/{ResourceCollectionType}");
178
- b.p("ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
179
- const query = map({
180
- [_NT]: [, input[_NT]],
181
- });
182
- let body;
183
- b.m("GET").h(headers).q(query).b(body);
184
- return b.build();
185
- };
186
- export const se_ListAnomaliesForInsightCommand = async (input, context) => {
187
- const b = rb(input, context);
188
- const headers = {
189
- "content-type": "application/json",
190
- };
191
- b.bp("/anomalies/insight/{InsightId}");
192
- b.p("InsightId", () => input.InsightId, "{InsightId}", false);
193
- let body;
194
- body = JSON.stringify(take(input, {
195
- AccountId: [],
196
- Filters: (_) => _json(_),
197
- MaxResults: [],
198
- NextToken: [],
199
- StartTimeRange: (_) => se_StartTimeRange(_, context),
200
- }));
201
- b.m("POST").h(headers).b(body);
202
- return b.build();
203
- };
204
- export const se_ListAnomalousLogGroupsCommand = async (input, context) => {
205
- const b = rb(input, context);
206
- const headers = {
207
- "content-type": "application/json",
208
- };
209
- b.bp("/list-log-anomalies");
210
- let body;
211
- body = JSON.stringify(take(input, {
212
- InsightId: [],
213
- MaxResults: [],
214
- NextToken: [],
215
- }));
216
- b.m("POST").h(headers).b(body);
217
- return b.build();
218
- };
219
- export const se_ListEventsCommand = async (input, context) => {
220
- const b = rb(input, context);
221
- const headers = {
222
- "content-type": "application/json",
223
- };
224
- b.bp("/events");
225
- let body;
226
- body = JSON.stringify(take(input, {
227
- AccountId: [],
228
- Filters: (_) => se_ListEventsFilters(_, context),
229
- MaxResults: [],
230
- NextToken: [],
231
- }));
232
- b.m("POST").h(headers).b(body);
233
- return b.build();
234
- };
235
- export const se_ListInsightsCommand = async (input, context) => {
236
- const b = rb(input, context);
237
- const headers = {
238
- "content-type": "application/json",
239
- };
240
- b.bp("/insights");
241
- let body;
242
- body = JSON.stringify(take(input, {
243
- MaxResults: [],
244
- NextToken: [],
245
- StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
246
- }));
247
- b.m("POST").h(headers).b(body);
248
- return b.build();
249
- };
250
- export const se_ListMonitoredResourcesCommand = async (input, context) => {
251
- const b = rb(input, context);
252
- const headers = {
253
- "content-type": "application/json",
254
- };
255
- b.bp("/monitoredResources");
256
- let body;
257
- body = JSON.stringify(take(input, {
258
- Filters: (_) => _json(_),
259
- MaxResults: [],
260
- NextToken: [],
261
- }));
262
- b.m("POST").h(headers).b(body);
263
- return b.build();
264
- };
265
- export const se_ListNotificationChannelsCommand = async (input, context) => {
266
- const b = rb(input, context);
267
- const headers = {
268
- "content-type": "application/json",
269
- };
270
- b.bp("/channels");
271
- let body;
272
- body = JSON.stringify(take(input, {
273
- NextToken: [],
274
- }));
275
- b.m("POST").h(headers).b(body);
276
- return b.build();
277
- };
278
- export const se_ListOrganizationInsightsCommand = async (input, context) => {
279
- const b = rb(input, context);
280
- const headers = {
281
- "content-type": "application/json",
282
- };
283
- b.bp("/organization/insights");
284
- let body;
285
- body = JSON.stringify(take(input, {
286
- AccountIds: (_) => _json(_),
287
- MaxResults: [],
288
- NextToken: [],
289
- OrganizationalUnitIds: (_) => _json(_),
290
- StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
291
- }));
292
- b.m("POST").h(headers).b(body);
293
- return b.build();
294
- };
295
- export const se_ListRecommendationsCommand = async (input, context) => {
296
- const b = rb(input, context);
297
- const headers = {
298
- "content-type": "application/json",
299
- };
300
- b.bp("/recommendations");
301
- let body;
302
- body = JSON.stringify(take(input, {
303
- AccountId: [],
304
- InsightId: [],
305
- Locale: [],
306
- NextToken: [],
307
- }));
308
- b.m("POST").h(headers).b(body);
309
- return b.build();
310
- };
311
- export const se_PutFeedbackCommand = async (input, context) => {
312
- const b = rb(input, context);
313
- const headers = {
314
- "content-type": "application/json",
315
- };
316
- b.bp("/feedback");
317
- let body;
318
- body = JSON.stringify(take(input, {
319
- InsightFeedback: (_) => _json(_),
320
- }));
321
- b.m("PUT").h(headers).b(body);
322
- return b.build();
323
- };
324
- export const se_RemoveNotificationChannelCommand = async (input, context) => {
325
- const b = rb(input, context);
326
- const headers = {};
327
- b.bp("/channels/{Id}");
328
- b.p("Id", () => input.Id, "{Id}", false);
329
- let body;
330
- b.m("DELETE").h(headers).b(body);
331
- return b.build();
332
- };
333
- export const se_SearchInsightsCommand = async (input, context) => {
334
- const b = rb(input, context);
335
- const headers = {
336
- "content-type": "application/json",
337
- };
338
- b.bp("/insights/search");
339
- let body;
340
- body = JSON.stringify(take(input, {
341
- Filters: (_) => _json(_),
342
- MaxResults: [],
343
- NextToken: [],
344
- StartTimeRange: (_) => se_StartTimeRange(_, context),
345
- Type: [],
346
- }));
347
- b.m("POST").h(headers).b(body);
348
- return b.build();
349
- };
350
- export const se_SearchOrganizationInsightsCommand = async (input, context) => {
351
- const b = rb(input, context);
352
- const headers = {
353
- "content-type": "application/json",
354
- };
355
- b.bp("/organization/insights/search");
356
- let body;
357
- body = JSON.stringify(take(input, {
358
- AccountIds: (_) => _json(_),
359
- Filters: (_) => _json(_),
360
- MaxResults: [],
361
- NextToken: [],
362
- StartTimeRange: (_) => se_StartTimeRange(_, context),
363
- Type: [],
364
- }));
365
- b.m("POST").h(headers).b(body);
366
- return b.build();
367
- };
368
- export const se_StartCostEstimationCommand = async (input, context) => {
369
- const b = rb(input, context);
370
- const headers = {
371
- "content-type": "application/json",
372
- };
373
- b.bp("/cost-estimation");
374
- let body;
375
- body = JSON.stringify(take(input, {
376
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
377
- ResourceCollection: (_) => _json(_),
378
- }));
379
- b.m("PUT").h(headers).b(body);
380
- return b.build();
381
- };
382
- export const se_UpdateEventSourcesConfigCommand = async (input, context) => {
383
- const b = rb(input, context);
384
- const headers = {
385
- "content-type": "application/json",
386
- };
387
- b.bp("/event-sources");
388
- let body;
389
- body = JSON.stringify(take(input, {
390
- EventSources: (_) => _json(_),
391
- }));
392
- b.m("PUT").h(headers).b(body);
393
- return b.build();
394
- };
395
- export const se_UpdateResourceCollectionCommand = async (input, context) => {
396
- const b = rb(input, context);
397
- const headers = {
398
- "content-type": "application/json",
399
- };
400
- b.bp("/resource-collections");
401
- let body;
402
- body = JSON.stringify(take(input, {
403
- Action: [],
404
- ResourceCollection: (_) => _json(_),
405
- }));
406
- b.m("PUT").h(headers).b(body);
407
- return b.build();
408
- };
409
- export const se_UpdateServiceIntegrationCommand = async (input, context) => {
410
- const b = rb(input, context);
411
- const headers = {
412
- "content-type": "application/json",
413
- };
414
- b.bp("/service-integrations");
415
- let body;
416
- body = JSON.stringify(take(input, {
417
- ServiceIntegration: (_) => _json(_),
418
- }));
419
- b.m("PUT").h(headers).b(body);
420
- return b.build();
421
- };
422
- export const de_AddNotificationChannelCommand = async (output, context) => {
423
- if (output.statusCode !== 200 && output.statusCode >= 300) {
424
- return de_CommandError(output, context);
425
- }
426
- const contents = map({
427
- $metadata: deserializeMetadata(output),
428
- });
429
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
430
- const doc = take(data, {
431
- Id: __expectString,
432
- });
433
- Object.assign(contents, doc);
434
- return contents;
435
- };
436
- export const de_DeleteInsightCommand = async (output, context) => {
437
- if (output.statusCode !== 200 && output.statusCode >= 300) {
438
- return de_CommandError(output, context);
439
- }
440
- const contents = map({
441
- $metadata: deserializeMetadata(output),
442
- });
443
- await collectBody(output.body, context);
444
- return contents;
445
- };
446
- export const de_DescribeAccountHealthCommand = async (output, context) => {
447
- if (output.statusCode !== 200 && output.statusCode >= 300) {
448
- return de_CommandError(output, context);
449
- }
450
- const contents = map({
451
- $metadata: deserializeMetadata(output),
452
- });
453
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
454
- const doc = take(data, {
455
- AnalyzedResourceCount: __expectLong,
456
- MetricsAnalyzed: __expectInt32,
457
- OpenProactiveInsights: __expectInt32,
458
- OpenReactiveInsights: __expectInt32,
459
- ResourceHours: __expectLong,
460
- });
461
- Object.assign(contents, doc);
462
- return contents;
463
- };
464
- export const de_DescribeAccountOverviewCommand = async (output, context) => {
465
- if (output.statusCode !== 200 && output.statusCode >= 300) {
466
- return de_CommandError(output, context);
467
- }
468
- const contents = map({
469
- $metadata: deserializeMetadata(output),
470
- });
471
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
472
- const doc = take(data, {
473
- MeanTimeToRecoverInMilliseconds: __expectLong,
474
- ProactiveInsights: __expectInt32,
475
- ReactiveInsights: __expectInt32,
476
- });
477
- Object.assign(contents, doc);
478
- return contents;
479
- };
480
- export const de_DescribeAnomalyCommand = async (output, context) => {
481
- if (output.statusCode !== 200 && output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const contents = map({
485
- $metadata: deserializeMetadata(output),
486
- });
487
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
488
- const doc = take(data, {
489
- ProactiveAnomaly: (_) => de_ProactiveAnomaly(_, context),
490
- ReactiveAnomaly: (_) => de_ReactiveAnomaly(_, context),
491
- });
492
- Object.assign(contents, doc);
493
- return contents;
494
- };
495
- export const de_DescribeEventSourcesConfigCommand = async (output, context) => {
496
- if (output.statusCode !== 200 && output.statusCode >= 300) {
497
- return de_CommandError(output, context);
498
- }
499
- const contents = map({
500
- $metadata: deserializeMetadata(output),
501
- });
502
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
503
- const doc = take(data, {
504
- EventSources: _json,
505
- });
506
- Object.assign(contents, doc);
507
- return contents;
508
- };
509
- export const de_DescribeFeedbackCommand = async (output, context) => {
510
- if (output.statusCode !== 200 && output.statusCode >= 300) {
511
- return de_CommandError(output, context);
512
- }
513
- const contents = map({
514
- $metadata: deserializeMetadata(output),
515
- });
516
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
517
- const doc = take(data, {
518
- InsightFeedback: _json,
519
- });
520
- Object.assign(contents, doc);
521
- return contents;
522
- };
523
- export const de_DescribeInsightCommand = async (output, context) => {
524
- if (output.statusCode !== 200 && output.statusCode >= 300) {
525
- return de_CommandError(output, context);
526
- }
527
- const contents = map({
528
- $metadata: deserializeMetadata(output),
529
- });
530
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
531
- const doc = take(data, {
532
- ProactiveInsight: (_) => de_ProactiveInsight(_, context),
533
- ReactiveInsight: (_) => de_ReactiveInsight(_, context),
534
- });
535
- Object.assign(contents, doc);
536
- return contents;
537
- };
538
- export const de_DescribeOrganizationHealthCommand = async (output, context) => {
539
- if (output.statusCode !== 200 && output.statusCode >= 300) {
540
- return de_CommandError(output, context);
541
- }
542
- const contents = map({
543
- $metadata: deserializeMetadata(output),
544
- });
545
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
546
- const doc = take(data, {
547
- MetricsAnalyzed: __expectInt32,
548
- OpenProactiveInsights: __expectInt32,
549
- OpenReactiveInsights: __expectInt32,
550
- ResourceHours: __expectLong,
551
- });
552
- Object.assign(contents, doc);
553
- return contents;
554
- };
555
- export const de_DescribeOrganizationOverviewCommand = async (output, context) => {
556
- if (output.statusCode !== 200 && output.statusCode >= 300) {
557
- return de_CommandError(output, context);
558
- }
559
- const contents = map({
560
- $metadata: deserializeMetadata(output),
561
- });
562
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
563
- const doc = take(data, {
564
- ProactiveInsights: __expectInt32,
565
- ReactiveInsights: __expectInt32,
566
- });
567
- Object.assign(contents, doc);
568
- return contents;
569
- };
570
- export const de_DescribeOrganizationResourceCollectionHealthCommand = async (output, context) => {
571
- if (output.statusCode !== 200 && output.statusCode >= 300) {
572
- return de_CommandError(output, context);
573
- }
574
- const contents = map({
575
- $metadata: deserializeMetadata(output),
576
- });
577
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
578
- const doc = take(data, {
579
- Account: _json,
580
- CloudFormation: _json,
581
- NextToken: __expectString,
582
- Service: _json,
583
- Tags: _json,
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- export const de_DescribeResourceCollectionHealthCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
596
- const doc = take(data, {
597
- CloudFormation: _json,
598
- NextToken: __expectString,
599
- Service: _json,
600
- Tags: _json,
601
- });
602
- Object.assign(contents, doc);
603
- return contents;
604
- };
605
- export const de_DescribeServiceIntegrationCommand = async (output, context) => {
606
- if (output.statusCode !== 200 && output.statusCode >= 300) {
607
- return de_CommandError(output, context);
608
- }
609
- const contents = map({
610
- $metadata: deserializeMetadata(output),
611
- });
612
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
613
- const doc = take(data, {
614
- ServiceIntegration: _json,
615
- });
616
- Object.assign(contents, doc);
617
- return contents;
618
- };
619
- export const de_GetCostEstimationCommand = async (output, context) => {
620
- if (output.statusCode !== 200 && output.statusCode >= 300) {
621
- return de_CommandError(output, context);
622
- }
623
- const contents = map({
624
- $metadata: deserializeMetadata(output),
625
- });
626
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
627
- const doc = take(data, {
628
- Costs: (_) => de_ServiceResourceCosts(_, context),
629
- NextToken: __expectString,
630
- ResourceCollection: _json,
631
- Status: __expectString,
632
- TimeRange: (_) => de_CostEstimationTimeRange(_, context),
633
- TotalCost: __limitedParseDouble,
634
- });
635
- Object.assign(contents, doc);
636
- return contents;
637
- };
638
- export const de_GetResourceCollectionCommand = async (output, context) => {
639
- if (output.statusCode !== 200 && output.statusCode >= 300) {
640
- return de_CommandError(output, context);
641
- }
642
- const contents = map({
643
- $metadata: deserializeMetadata(output),
644
- });
645
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
646
- const doc = take(data, {
647
- NextToken: __expectString,
648
- ResourceCollection: _json,
649
- });
650
- Object.assign(contents, doc);
651
- return contents;
652
- };
653
- export const de_ListAnomaliesForInsightCommand = async (output, context) => {
654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
655
- return de_CommandError(output, context);
656
- }
657
- const contents = map({
658
- $metadata: deserializeMetadata(output),
659
- });
660
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
661
- const doc = take(data, {
662
- NextToken: __expectString,
663
- ProactiveAnomalies: (_) => de_ProactiveAnomalies(_, context),
664
- ReactiveAnomalies: (_) => de_ReactiveAnomalies(_, context),
665
- });
666
- Object.assign(contents, doc);
667
- return contents;
668
- };
669
- export const de_ListAnomalousLogGroupsCommand = async (output, context) => {
670
- if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return de_CommandError(output, context);
672
- }
673
- const contents = map({
674
- $metadata: deserializeMetadata(output),
675
- });
676
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
677
- const doc = take(data, {
678
- AnomalousLogGroups: (_) => de_AnomalousLogGroups(_, context),
679
- InsightId: __expectString,
680
- NextToken: __expectString,
681
- });
682
- Object.assign(contents, doc);
683
- return contents;
684
- };
685
- export const de_ListEventsCommand = async (output, context) => {
686
- if (output.statusCode !== 200 && output.statusCode >= 300) {
687
- return de_CommandError(output, context);
688
- }
689
- const contents = map({
690
- $metadata: deserializeMetadata(output),
691
- });
692
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
693
- const doc = take(data, {
694
- Events: (_) => de_Events(_, context),
695
- NextToken: __expectString,
696
- });
697
- Object.assign(contents, doc);
698
- return contents;
699
- };
700
- export const de_ListInsightsCommand = async (output, context) => {
701
- if (output.statusCode !== 200 && output.statusCode >= 300) {
702
- return de_CommandError(output, context);
703
- }
704
- const contents = map({
705
- $metadata: deserializeMetadata(output),
706
- });
707
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
708
- const doc = take(data, {
709
- NextToken: __expectString,
710
- ProactiveInsights: (_) => de_ProactiveInsights(_, context),
711
- ReactiveInsights: (_) => de_ReactiveInsights(_, context),
712
- });
713
- Object.assign(contents, doc);
714
- return contents;
715
- };
716
- export const de_ListMonitoredResourcesCommand = async (output, context) => {
717
- if (output.statusCode !== 200 && output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const contents = map({
721
- $metadata: deserializeMetadata(output),
722
- });
723
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
724
- const doc = take(data, {
725
- MonitoredResourceIdentifiers: (_) => de_MonitoredResourceIdentifiers(_, context),
726
- NextToken: __expectString,
727
- });
728
- Object.assign(contents, doc);
729
- return contents;
730
- };
731
- export const de_ListNotificationChannelsCommand = async (output, context) => {
732
- if (output.statusCode !== 200 && output.statusCode >= 300) {
733
- return de_CommandError(output, context);
734
- }
735
- const contents = map({
736
- $metadata: deserializeMetadata(output),
737
- });
738
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
739
- const doc = take(data, {
740
- Channels: _json,
741
- NextToken: __expectString,
742
- });
743
- Object.assign(contents, doc);
744
- return contents;
745
- };
746
- export const de_ListOrganizationInsightsCommand = async (output, context) => {
747
- if (output.statusCode !== 200 && output.statusCode >= 300) {
748
- return de_CommandError(output, context);
749
- }
750
- const contents = map({
751
- $metadata: deserializeMetadata(output),
752
- });
753
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
754
- const doc = take(data, {
755
- NextToken: __expectString,
756
- ProactiveInsights: (_) => de_ProactiveOrganizationInsights(_, context),
757
- ReactiveInsights: (_) => de_ReactiveOrganizationInsights(_, context),
758
- });
759
- Object.assign(contents, doc);
760
- return contents;
761
- };
762
- export const de_ListRecommendationsCommand = async (output, context) => {
763
- if (output.statusCode !== 200 && output.statusCode >= 300) {
764
- return de_CommandError(output, context);
765
- }
766
- const contents = map({
767
- $metadata: deserializeMetadata(output),
768
- });
769
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
770
- const doc = take(data, {
771
- NextToken: __expectString,
772
- Recommendations: _json,
773
- });
774
- Object.assign(contents, doc);
775
- return contents;
776
- };
777
- export const de_PutFeedbackCommand = async (output, context) => {
778
- if (output.statusCode !== 200 && output.statusCode >= 300) {
779
- return de_CommandError(output, context);
780
- }
781
- const contents = map({
782
- $metadata: deserializeMetadata(output),
783
- });
784
- await collectBody(output.body, context);
785
- return contents;
786
- };
787
- export const de_RemoveNotificationChannelCommand = async (output, context) => {
788
- if (output.statusCode !== 200 && output.statusCode >= 300) {
789
- return de_CommandError(output, context);
790
- }
791
- const contents = map({
792
- $metadata: deserializeMetadata(output),
793
- });
794
- await collectBody(output.body, context);
795
- return contents;
796
- };
797
- export const de_SearchInsightsCommand = async (output, context) => {
798
- if (output.statusCode !== 200 && output.statusCode >= 300) {
799
- return de_CommandError(output, context);
800
- }
801
- const contents = map({
802
- $metadata: deserializeMetadata(output),
803
- });
804
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
805
- const doc = take(data, {
806
- NextToken: __expectString,
807
- ProactiveInsights: (_) => de_ProactiveInsights(_, context),
808
- ReactiveInsights: (_) => de_ReactiveInsights(_, context),
809
- });
810
- Object.assign(contents, doc);
811
- return contents;
812
- };
813
- export const de_SearchOrganizationInsightsCommand = async (output, context) => {
814
- if (output.statusCode !== 200 && output.statusCode >= 300) {
815
- return de_CommandError(output, context);
816
- }
817
- const contents = map({
818
- $metadata: deserializeMetadata(output),
819
- });
820
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
821
- const doc = take(data, {
822
- NextToken: __expectString,
823
- ProactiveInsights: (_) => de_ProactiveInsights(_, context),
824
- ReactiveInsights: (_) => de_ReactiveInsights(_, context),
825
- });
826
- Object.assign(contents, doc);
827
- return contents;
828
- };
829
- export const de_StartCostEstimationCommand = async (output, context) => {
830
- if (output.statusCode !== 200 && output.statusCode >= 300) {
831
- return de_CommandError(output, context);
832
- }
833
- const contents = map({
834
- $metadata: deserializeMetadata(output),
835
- });
836
- await collectBody(output.body, context);
837
- return contents;
838
- };
839
- export const de_UpdateEventSourcesConfigCommand = async (output, context) => {
840
- if (output.statusCode !== 200 && output.statusCode >= 300) {
841
- return de_CommandError(output, context);
842
- }
843
- const contents = map({
844
- $metadata: deserializeMetadata(output),
845
- });
846
- await collectBody(output.body, context);
847
- return contents;
848
- };
849
- export const de_UpdateResourceCollectionCommand = async (output, context) => {
850
- if (output.statusCode !== 200 && output.statusCode >= 300) {
851
- return de_CommandError(output, context);
852
- }
853
- const contents = map({
854
- $metadata: deserializeMetadata(output),
855
- });
856
- await collectBody(output.body, context);
857
- return contents;
858
- };
859
- export const de_UpdateServiceIntegrationCommand = async (output, context) => {
860
- if (output.statusCode !== 200 && output.statusCode >= 300) {
861
- return de_CommandError(output, context);
862
- }
863
- const contents = map({
864
- $metadata: deserializeMetadata(output),
865
- });
866
- await collectBody(output.body, context);
867
- return contents;
868
- };
869
- const de_CommandError = async (output, context) => {
870
- const parsedOutput = {
871
- ...output,
872
- body: await parseErrorBody(output.body, context),
873
- };
874
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
875
- switch (errorCode) {
876
- case "AccessDeniedException":
877
- case "com.amazonaws.devopsguru#AccessDeniedException":
878
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
879
- case "ConflictException":
880
- case "com.amazonaws.devopsguru#ConflictException":
881
- throw await de_ConflictExceptionRes(parsedOutput, context);
882
- case "InternalServerException":
883
- case "com.amazonaws.devopsguru#InternalServerException":
884
- throw await de_InternalServerExceptionRes(parsedOutput, context);
885
- case "ResourceNotFoundException":
886
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
887
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
888
- case "ServiceQuotaExceededException":
889
- case "com.amazonaws.devopsguru#ServiceQuotaExceededException":
890
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
891
- case "ThrottlingException":
892
- case "com.amazonaws.devopsguru#ThrottlingException":
893
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
894
- case "ValidationException":
895
- case "com.amazonaws.devopsguru#ValidationException":
896
- throw await de_ValidationExceptionRes(parsedOutput, context);
897
- default:
898
- const parsedBody = parsedOutput.body;
899
- return throwDefaultError({
900
- output,
901
- parsedBody,
902
- errorCode,
903
- });
904
- }
905
- };
906
- const throwDefaultError = withBaseException(__BaseException);
907
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
908
- const contents = map({});
909
- const data = parsedOutput.body;
910
- const doc = take(data, {
911
- Message: __expectString,
912
- });
913
- Object.assign(contents, doc);
914
- const exception = new AccessDeniedException({
915
- $metadata: deserializeMetadata(parsedOutput),
916
- ...contents,
917
- });
918
- return __decorateServiceException(exception, parsedOutput.body);
919
- };
920
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
921
- const contents = map({});
922
- const data = parsedOutput.body;
923
- const doc = take(data, {
924
- Message: __expectString,
925
- ResourceId: __expectString,
926
- ResourceType: __expectString,
927
- });
928
- Object.assign(contents, doc);
929
- const exception = new ConflictException({
930
- $metadata: deserializeMetadata(parsedOutput),
931
- ...contents,
932
- });
933
- return __decorateServiceException(exception, parsedOutput.body);
934
- };
935
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
936
- const contents = map({
937
- [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
938
- });
939
- const data = parsedOutput.body;
940
- const doc = take(data, {
941
- Message: __expectString,
942
- });
943
- Object.assign(contents, doc);
944
- const exception = new InternalServerException({
945
- $metadata: deserializeMetadata(parsedOutput),
946
- ...contents,
947
- });
948
- return __decorateServiceException(exception, parsedOutput.body);
949
- };
950
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
951
- const contents = map({});
952
- const data = parsedOutput.body;
953
- const doc = take(data, {
954
- Message: __expectString,
955
- ResourceId: __expectString,
956
- ResourceType: __expectString,
957
- });
958
- Object.assign(contents, doc);
959
- const exception = new ResourceNotFoundException({
960
- $metadata: deserializeMetadata(parsedOutput),
961
- ...contents,
962
- });
963
- return __decorateServiceException(exception, parsedOutput.body);
964
- };
965
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
966
- const contents = map({});
967
- const data = parsedOutput.body;
968
- const doc = take(data, {
969
- Message: __expectString,
970
- });
971
- Object.assign(contents, doc);
972
- const exception = new ServiceQuotaExceededException({
973
- $metadata: deserializeMetadata(parsedOutput),
974
- ...contents,
975
- });
976
- return __decorateServiceException(exception, parsedOutput.body);
977
- };
978
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
979
- const contents = map({
980
- [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
981
- });
982
- const data = parsedOutput.body;
983
- const doc = take(data, {
984
- Message: __expectString,
985
- QuotaCode: __expectString,
986
- ServiceCode: __expectString,
987
- });
988
- Object.assign(contents, doc);
989
- const exception = new ThrottlingException({
990
- $metadata: deserializeMetadata(parsedOutput),
991
- ...contents,
992
- });
993
- return __decorateServiceException(exception, parsedOutput.body);
994
- };
995
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
996
- const contents = map({});
997
- const data = parsedOutput.body;
998
- const doc = take(data, {
999
- Fields: _json,
1000
- Message: __expectString,
1001
- Reason: __expectString,
1002
- });
1003
- Object.assign(contents, doc);
1004
- const exception = new ValidationException({
1005
- $metadata: deserializeMetadata(parsedOutput),
1006
- ...contents,
1007
- });
1008
- return __decorateServiceException(exception, parsedOutput.body);
1009
- };
1010
- const se_EndTimeRange = (input, context) => {
1011
- return take(input, {
1012
- FromTime: (_) => _.getTime() / 1_000,
1013
- ToTime: (_) => _.getTime() / 1_000,
1014
- });
1015
- };
1016
- const se_EventTimeRange = (input, context) => {
1017
- return take(input, {
1018
- FromTime: (_) => _.getTime() / 1_000,
1019
- ToTime: (_) => _.getTime() / 1_000,
1020
- });
1021
- };
1022
- const se_ListEventsFilters = (input, context) => {
1023
- return take(input, {
1024
- DataSource: [],
1025
- EventClass: [],
1026
- EventSource: [],
1027
- EventTimeRange: (_) => se_EventTimeRange(_, context),
1028
- InsightId: [],
1029
- ResourceCollection: _json,
1030
- });
1031
- };
1032
- const se_ListInsightsAnyStatusFilter = (input, context) => {
1033
- return take(input, {
1034
- StartTimeRange: (_) => se_StartTimeRange(_, context),
1035
- Type: [],
1036
- });
1037
- };
1038
- const se_ListInsightsClosedStatusFilter = (input, context) => {
1039
- return take(input, {
1040
- EndTimeRange: (_) => se_EndTimeRange(_, context),
1041
- Type: [],
1042
- });
1043
- };
1044
- const se_ListInsightsStatusFilter = (input, context) => {
1045
- return take(input, {
1046
- Any: (_) => se_ListInsightsAnyStatusFilter(_, context),
1047
- Closed: (_) => se_ListInsightsClosedStatusFilter(_, context),
1048
- Ongoing: _json,
1049
- });
1050
- };
1051
- const se_StartTimeRange = (input, context) => {
1052
- return take(input, {
1053
- FromTime: (_) => _.getTime() / 1_000,
1054
- ToTime: (_) => _.getTime() / 1_000,
1055
- });
1056
- };
1057
- const de_AnomalousLogGroup = (output, context) => {
1058
- return take(output, {
1059
- ImpactEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1060
- ImpactStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1061
- LogAnomalyShowcases: (_) => de_LogAnomalyShowcases(_, context),
1062
- LogGroupName: __expectString,
1063
- NumberOfLogLinesScanned: __expectInt32,
1064
- });
1065
- };
1066
- const de_AnomalousLogGroups = (output, context) => {
1067
- const retVal = (output || [])
1068
- .filter((e) => e != null)
1069
- .map((entry) => {
1070
- return de_AnomalousLogGroup(entry, context);
1071
- });
1072
- return retVal;
1073
- };
1074
- const de_AnomalyReportedTimeRange = (output, context) => {
1075
- return take(output, {
1076
- CloseTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1077
- OpenTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1078
- });
1079
- };
1080
- const de_AnomalySourceDetails = (output, context) => {
1081
- return take(output, {
1082
- CloudWatchMetrics: (_) => de_CloudWatchMetricsDetails(_, context),
1083
- PerformanceInsightsMetrics: (_) => de_PerformanceInsightsMetricsDetails(_, context),
1084
- });
1085
- };
1086
- const de_AnomalyTimeRange = (output, context) => {
1087
- return take(output, {
1088
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1089
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1090
- });
1091
- };
1092
- const de_CloudWatchMetricsDataSummary = (output, context) => {
1093
- return take(output, {
1094
- StatusCode: __expectString,
1095
- TimestampMetricValuePairList: (_) => de_TimestampMetricValuePairList(_, context),
1096
- });
1097
- };
1098
- const de_CloudWatchMetricsDetail = (output, context) => {
1099
- return take(output, {
1100
- Dimensions: _json,
1101
- MetricDataSummary: (_) => de_CloudWatchMetricsDataSummary(_, context),
1102
- MetricName: __expectString,
1103
- Namespace: __expectString,
1104
- Period: __expectInt32,
1105
- Stat: __expectString,
1106
- Unit: __expectString,
1107
- });
1108
- };
1109
- const de_CloudWatchMetricsDetails = (output, context) => {
1110
- const retVal = (output || [])
1111
- .filter((e) => e != null)
1112
- .map((entry) => {
1113
- return de_CloudWatchMetricsDetail(entry, context);
1114
- });
1115
- return retVal;
1116
- };
1117
- const de_CostEstimationTimeRange = (output, context) => {
1118
- return take(output, {
1119
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1120
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1121
- });
1122
- };
1123
- const de_Event = (output, context) => {
1124
- return take(output, {
1125
- DataSource: __expectString,
1126
- EventClass: __expectString,
1127
- EventSource: __expectString,
1128
- Id: __expectString,
1129
- Name: __expectString,
1130
- ResourceCollection: _json,
1131
- Resources: _json,
1132
- Time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1133
- });
1134
- };
1135
- const de_Events = (output, context) => {
1136
- const retVal = (output || [])
1137
- .filter((e) => e != null)
1138
- .map((entry) => {
1139
- return de_Event(entry, context);
1140
- });
1141
- return retVal;
1142
- };
1143
- const de_InsightTimeRange = (output, context) => {
1144
- return take(output, {
1145
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1146
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1147
- });
1148
- };
1149
- const de_LogAnomalyClass = (output, context) => {
1150
- return take(output, {
1151
- Explanation: __expectString,
1152
- LogAnomalyToken: __expectString,
1153
- LogAnomalyType: __expectString,
1154
- LogEventId: __expectString,
1155
- LogEventTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1156
- LogStreamName: __expectString,
1157
- NumberOfLogLinesOccurrences: __expectInt32,
1158
- });
1159
- };
1160
- const de_LogAnomalyClasses = (output, context) => {
1161
- const retVal = (output || [])
1162
- .filter((e) => e != null)
1163
- .map((entry) => {
1164
- return de_LogAnomalyClass(entry, context);
1165
- });
1166
- return retVal;
1167
- };
1168
- const de_LogAnomalyShowcase = (output, context) => {
1169
- return take(output, {
1170
- LogAnomalyClasses: (_) => de_LogAnomalyClasses(_, context),
1171
- });
1172
- };
1173
- const de_LogAnomalyShowcases = (output, context) => {
1174
- const retVal = (output || [])
1175
- .filter((e) => e != null)
1176
- .map((entry) => {
1177
- return de_LogAnomalyShowcase(entry, context);
1178
- });
1179
- return retVal;
1180
- };
1181
- const de_MonitoredResourceIdentifier = (output, context) => {
1182
- return take(output, {
1183
- LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1184
- MonitoredResourceName: __expectString,
1185
- ResourceCollection: _json,
1186
- ResourcePermission: __expectString,
1187
- Type: __expectString,
1188
- });
1189
- };
1190
- const de_MonitoredResourceIdentifiers = (output, context) => {
1191
- const retVal = (output || [])
1192
- .filter((e) => e != null)
1193
- .map((entry) => {
1194
- return de_MonitoredResourceIdentifier(entry, context);
1195
- });
1196
- return retVal;
1197
- };
1198
- const de_PerformanceInsightsMetricsDetail = (output, context) => {
1199
- return take(output, {
1200
- MetricDisplayName: __expectString,
1201
- MetricQuery: _json,
1202
- ReferenceData: (_) => de_PerformanceInsightsReferenceDataList(_, context),
1203
- StatsAtAnomaly: (_) => de_PerformanceInsightsStats(_, context),
1204
- StatsAtBaseline: (_) => de_PerformanceInsightsStats(_, context),
1205
- Unit: __expectString,
1206
- });
1207
- };
1208
- const de_PerformanceInsightsMetricsDetails = (output, context) => {
1209
- const retVal = (output || [])
1210
- .filter((e) => e != null)
1211
- .map((entry) => {
1212
- return de_PerformanceInsightsMetricsDetail(entry, context);
1213
- });
1214
- return retVal;
1215
- };
1216
- const de_PerformanceInsightsReferenceComparisonValues = (output, context) => {
1217
- return take(output, {
1218
- ReferenceMetric: _json,
1219
- ReferenceScalar: (_) => de_PerformanceInsightsReferenceScalar(_, context),
1220
- });
1221
- };
1222
- const de_PerformanceInsightsReferenceData = (output, context) => {
1223
- return take(output, {
1224
- ComparisonValues: (_) => de_PerformanceInsightsReferenceComparisonValues(_, context),
1225
- Name: __expectString,
1226
- });
1227
- };
1228
- const de_PerformanceInsightsReferenceDataList = (output, context) => {
1229
- const retVal = (output || [])
1230
- .filter((e) => e != null)
1231
- .map((entry) => {
1232
- return de_PerformanceInsightsReferenceData(entry, context);
1233
- });
1234
- return retVal;
1235
- };
1236
- const de_PerformanceInsightsReferenceScalar = (output, context) => {
1237
- return take(output, {
1238
- Value: __limitedParseDouble,
1239
- });
1240
- };
1241
- const de_PerformanceInsightsStat = (output, context) => {
1242
- return take(output, {
1243
- Type: __expectString,
1244
- Value: __limitedParseDouble,
1245
- });
1246
- };
1247
- const de_PerformanceInsightsStats = (output, context) => {
1248
- const retVal = (output || [])
1249
- .filter((e) => e != null)
1250
- .map((entry) => {
1251
- return de_PerformanceInsightsStat(entry, context);
1252
- });
1253
- return retVal;
1254
- };
1255
- const de_PredictionTimeRange = (output, context) => {
1256
- return take(output, {
1257
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1258
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1259
- });
1260
- };
1261
- const de_ProactiveAnomalies = (output, context) => {
1262
- const retVal = (output || [])
1263
- .filter((e) => e != null)
1264
- .map((entry) => {
1265
- return de_ProactiveAnomalySummary(entry, context);
1266
- });
1267
- return retVal;
1268
- };
1269
- const de_ProactiveAnomaly = (output, context) => {
1270
- return take(output, {
1271
- AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
1272
- AnomalyResources: _json,
1273
- AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
1274
- AssociatedInsightId: __expectString,
1275
- Description: __expectString,
1276
- Id: __expectString,
1277
- Limit: __limitedParseDouble,
1278
- PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
1279
- ResourceCollection: _json,
1280
- Severity: __expectString,
1281
- SourceDetails: (_) => de_AnomalySourceDetails(_, context),
1282
- SourceMetadata: _json,
1283
- Status: __expectString,
1284
- UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1285
- });
1286
- };
1287
- const de_ProactiveAnomalySummary = (output, context) => {
1288
- return take(output, {
1289
- AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
1290
- AnomalyResources: _json,
1291
- AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
1292
- AssociatedInsightId: __expectString,
1293
- Description: __expectString,
1294
- Id: __expectString,
1295
- Limit: __limitedParseDouble,
1296
- PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
1297
- ResourceCollection: _json,
1298
- Severity: __expectString,
1299
- SourceDetails: (_) => de_AnomalySourceDetails(_, context),
1300
- SourceMetadata: _json,
1301
- Status: __expectString,
1302
- UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1303
- });
1304
- };
1305
- const de_ProactiveInsight = (output, context) => {
1306
- return take(output, {
1307
- Description: __expectString,
1308
- Id: __expectString,
1309
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1310
- Name: __expectString,
1311
- PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
1312
- ResourceCollection: _json,
1313
- Severity: __expectString,
1314
- SsmOpsItemId: __expectString,
1315
- Status: __expectString,
1316
- });
1317
- };
1318
- const de_ProactiveInsights = (output, context) => {
1319
- const retVal = (output || [])
1320
- .filter((e) => e != null)
1321
- .map((entry) => {
1322
- return de_ProactiveInsightSummary(entry, context);
1323
- });
1324
- return retVal;
1325
- };
1326
- const de_ProactiveInsightSummary = (output, context) => {
1327
- return take(output, {
1328
- AssociatedResourceArns: _json,
1329
- Id: __expectString,
1330
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1331
- Name: __expectString,
1332
- PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
1333
- ResourceCollection: _json,
1334
- ServiceCollection: _json,
1335
- Severity: __expectString,
1336
- Status: __expectString,
1337
- });
1338
- };
1339
- const de_ProactiveOrganizationInsights = (output, context) => {
1340
- const retVal = (output || [])
1341
- .filter((e) => e != null)
1342
- .map((entry) => {
1343
- return de_ProactiveOrganizationInsightSummary(entry, context);
1344
- });
1345
- return retVal;
1346
- };
1347
- const de_ProactiveOrganizationInsightSummary = (output, context) => {
1348
- return take(output, {
1349
- AccountId: __expectString,
1350
- Id: __expectString,
1351
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1352
- Name: __expectString,
1353
- OrganizationalUnitId: __expectString,
1354
- PredictionTimeRange: (_) => de_PredictionTimeRange(_, context),
1355
- ResourceCollection: _json,
1356
- ServiceCollection: _json,
1357
- Severity: __expectString,
1358
- Status: __expectString,
1359
- });
1360
- };
1361
- const de_ReactiveAnomalies = (output, context) => {
1362
- const retVal = (output || [])
1363
- .filter((e) => e != null)
1364
- .map((entry) => {
1365
- return de_ReactiveAnomalySummary(entry, context);
1366
- });
1367
- return retVal;
1368
- };
1369
- const de_ReactiveAnomaly = (output, context) => {
1370
- return take(output, {
1371
- AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
1372
- AnomalyResources: _json,
1373
- AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
1374
- AssociatedInsightId: __expectString,
1375
- CausalAnomalyId: __expectString,
1376
- Description: __expectString,
1377
- Id: __expectString,
1378
- Name: __expectString,
1379
- ResourceCollection: _json,
1380
- Severity: __expectString,
1381
- SourceDetails: (_) => de_AnomalySourceDetails(_, context),
1382
- Status: __expectString,
1383
- Type: __expectString,
1384
- });
1385
- };
1386
- const de_ReactiveAnomalySummary = (output, context) => {
1387
- return take(output, {
1388
- AnomalyReportedTimeRange: (_) => de_AnomalyReportedTimeRange(_, context),
1389
- AnomalyResources: _json,
1390
- AnomalyTimeRange: (_) => de_AnomalyTimeRange(_, context),
1391
- AssociatedInsightId: __expectString,
1392
- CausalAnomalyId: __expectString,
1393
- Description: __expectString,
1394
- Id: __expectString,
1395
- Name: __expectString,
1396
- ResourceCollection: _json,
1397
- Severity: __expectString,
1398
- SourceDetails: (_) => de_AnomalySourceDetails(_, context),
1399
- Status: __expectString,
1400
- Type: __expectString,
1401
- });
1402
- };
1403
- const de_ReactiveInsight = (output, context) => {
1404
- return take(output, {
1405
- Description: __expectString,
1406
- Id: __expectString,
1407
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1408
- Name: __expectString,
1409
- ResourceCollection: _json,
1410
- Severity: __expectString,
1411
- SsmOpsItemId: __expectString,
1412
- Status: __expectString,
1413
- });
1414
- };
1415
- const de_ReactiveInsights = (output, context) => {
1416
- const retVal = (output || [])
1417
- .filter((e) => e != null)
1418
- .map((entry) => {
1419
- return de_ReactiveInsightSummary(entry, context);
1420
- });
1421
- return retVal;
1422
- };
1423
- const de_ReactiveInsightSummary = (output, context) => {
1424
- return take(output, {
1425
- AssociatedResourceArns: _json,
1426
- Id: __expectString,
1427
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1428
- Name: __expectString,
1429
- ResourceCollection: _json,
1430
- ServiceCollection: _json,
1431
- Severity: __expectString,
1432
- Status: __expectString,
1433
- });
1434
- };
1435
- const de_ReactiveOrganizationInsights = (output, context) => {
1436
- const retVal = (output || [])
1437
- .filter((e) => e != null)
1438
- .map((entry) => {
1439
- return de_ReactiveOrganizationInsightSummary(entry, context);
1440
- });
1441
- return retVal;
1442
- };
1443
- const de_ReactiveOrganizationInsightSummary = (output, context) => {
1444
- return take(output, {
1445
- AccountId: __expectString,
1446
- Id: __expectString,
1447
- InsightTimeRange: (_) => de_InsightTimeRange(_, context),
1448
- Name: __expectString,
1449
- OrganizationalUnitId: __expectString,
1450
- ResourceCollection: _json,
1451
- ServiceCollection: _json,
1452
- Severity: __expectString,
1453
- Status: __expectString,
1454
- });
1455
- };
1456
- const de_ServiceResourceCost = (output, context) => {
1457
- return take(output, {
1458
- Cost: __limitedParseDouble,
1459
- Count: __expectInt32,
1460
- State: __expectString,
1461
- Type: __expectString,
1462
- UnitCost: __limitedParseDouble,
1463
- });
1464
- };
1465
- const de_ServiceResourceCosts = (output, context) => {
1466
- const retVal = (output || [])
1467
- .filter((e) => e != null)
1468
- .map((entry) => {
1469
- return de_ServiceResourceCost(entry, context);
1470
- });
1471
- return retVal;
1472
- };
1473
- const de_TimestampMetricValuePair = (output, context) => {
1474
- return take(output, {
1475
- MetricValue: __limitedParseDouble,
1476
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1477
- });
1478
- };
1479
- const de_TimestampMetricValuePairList = (output, context) => {
1480
- const retVal = (output || [])
1481
- .filter((e) => e != null)
1482
- .map((entry) => {
1483
- return de_TimestampMetricValuePair(entry, context);
1484
- });
1485
- return retVal;
1486
- };
1487
- const deserializeMetadata = (output) => ({
1488
- httpStatusCode: output.statusCode,
1489
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1490
- extendedRequestId: output.headers["x-amz-id-2"],
1491
- cfId: output.headers["x-amz-cf-id"],
1492
- });
1493
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1494
- const _AI = "AccountId";
1495
- const _NT = "NextToken";
1496
- const _RAS = "RetryAfterSeconds";
1497
- const _ra = "retry-after";