@aws-sdk/client-devops-guru 3.41.0 → 3.45.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 (80) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +14 -16
  3. package/dist-cjs/DevOpsGuru.js +75 -0
  4. package/dist-cjs/commands/DescribeOrganizationHealthCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeOrganizationOverviewCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeOrganizationResourceCollectionHealthCommand.js +36 -0
  7. package/dist-cjs/commands/ListOrganizationInsightsCommand.js +36 -0
  8. package/dist-cjs/commands/SearchOrganizationInsightsCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/endpoints.js +1 -0
  11. package/dist-cjs/models/models_0.js +220 -12
  12. package/dist-cjs/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +34 -0
  13. package/dist-cjs/pagination/ListOrganizationInsightsPaginator.js +35 -0
  14. package/dist-cjs/pagination/SearchOrganizationInsightsPaginator.js +35 -0
  15. package/dist-cjs/pagination/index.js +3 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +1339 -208
  17. package/dist-es/DevOpsGuru.js +75 -0
  18. package/dist-es/commands/DescribeOrganizationHealthCommand.js +39 -0
  19. package/dist-es/commands/DescribeOrganizationOverviewCommand.js +39 -0
  20. package/dist-es/commands/DescribeOrganizationResourceCollectionHealthCommand.js +39 -0
  21. package/dist-es/commands/ListOrganizationInsightsCommand.js +39 -0
  22. package/dist-es/commands/SearchOrganizationInsightsCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoints.js +1 -0
  25. package/dist-es/models/models_0.js +154 -9
  26. package/dist-es/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +73 -0
  27. package/dist-es/pagination/ListOrganizationInsightsPaginator.js +74 -0
  28. package/dist-es/pagination/SearchOrganizationInsightsPaginator.js +74 -0
  29. package/dist-es/pagination/index.js +3 -0
  30. package/dist-es/protocols/Aws_restJson1.js +1284 -111
  31. package/dist-types/DevOpsGuru.d.ts +117 -92
  32. package/dist-types/DevOpsGuruClient.d.ts +19 -16
  33. package/dist-types/commands/AddNotificationChannelCommand.d.ts +4 -6
  34. package/dist-types/commands/DescribeAccountHealthCommand.d.ts +3 -4
  35. package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +3 -4
  36. package/dist-types/commands/DescribeAnomalyCommand.d.ts +1 -3
  37. package/dist-types/commands/DescribeFeedbackCommand.d.ts +1 -2
  38. package/dist-types/commands/DescribeInsightCommand.d.ts +1 -3
  39. package/dist-types/commands/DescribeOrganizationHealthCommand.d.ts +36 -0
  40. package/dist-types/commands/DescribeOrganizationOverviewCommand.d.ts +36 -0
  41. package/dist-types/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +37 -0
  42. package/dist-types/commands/DescribeResourceCollectionHealthCommand.d.ts +5 -5
  43. package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +2 -4
  44. package/dist-types/commands/GetCostEstimationCommand.d.ts +1 -1
  45. package/dist-types/commands/GetResourceCollectionCommand.d.ts +4 -4
  46. package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +2 -3
  47. package/dist-types/commands/ListEventsCommand.d.ts +2 -3
  48. package/dist-types/commands/ListInsightsCommand.d.ts +3 -4
  49. package/dist-types/commands/ListNotificationChannelsCommand.d.ts +4 -5
  50. package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +35 -0
  51. package/dist-types/commands/ListRecommendationsCommand.d.ts +2 -3
  52. package/dist-types/commands/PutFeedbackCommand.d.ts +1 -3
  53. package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +3 -4
  54. package/dist-types/commands/SearchInsightsCommand.d.ts +8 -9
  55. package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +42 -0
  56. package/dist-types/commands/StartCostEstimationCommand.d.ts +2 -1
  57. package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +4 -3
  58. package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +3 -4
  59. package/dist-types/commands/index.d.ts +5 -0
  60. package/dist-types/models/models_0.d.ts +2078 -886
  61. package/dist-types/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +4 -0
  62. package/dist-types/pagination/ListOrganizationInsightsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/SearchOrganizationInsightsPaginator.d.ts +4 -0
  64. package/dist-types/pagination/index.d.ts +3 -0
  65. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  66. package/dist-types/ts3.4/DevOpsGuru.d.ts +25 -0
  67. package/dist-types/ts3.4/DevOpsGuruClient.d.ts +7 -2
  68. package/dist-types/ts3.4/commands/DescribeOrganizationHealthCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DescribeOrganizationOverviewCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/ListOrganizationInsightsCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/SearchOrganizationInsightsCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  74. package/dist-types/ts3.4/models/models_0.d.ts +490 -7
  75. package/dist-types/ts3.4/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +4 -0
  76. package/dist-types/ts3.4/pagination/ListOrganizationInsightsPaginator.d.ts +4 -0
  77. package/dist-types/ts3.4/pagination/SearchOrganizationInsightsPaginator.d.ts +4 -0
  78. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  79. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  80. package/package.json +5 -5
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchInsightsCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
3
+ exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListOrganizationInsightsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchOrganizationInsightsCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListOrganizationInsightsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = exports.serializeAws_restJson1DescribeOrganizationHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = void 0;
4
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
7
  const uuid_1 = require("uuid");
@@ -82,6 +83,9 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
82
83
  else {
83
84
  throw new Error("No value provided for input HTTP label: Id.");
84
85
  }
86
+ const query = {
87
+ ...(input.AccountId !== undefined && { AccountId: input.AccountId }),
88
+ };
85
89
  let body;
86
90
  return new protocol_http_1.HttpRequest({
87
91
  protocol,
@@ -90,6 +94,7 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
90
94
  method: "GET",
91
95
  headers,
92
96
  path: resolvedPath,
97
+ query,
93
98
  body,
94
99
  });
95
100
  };
@@ -129,6 +134,9 @@ const serializeAws_restJson1DescribeInsightCommand = async (input, context) => {
129
134
  else {
130
135
  throw new Error("No value provided for input HTTP label: Id.");
131
136
  }
137
+ const query = {
138
+ ...(input.AccountId !== undefined && { AccountId: input.AccountId }),
139
+ };
132
140
  let body;
133
141
  return new protocol_http_1.HttpRequest({
134
142
  protocol,
@@ -137,10 +145,98 @@ const serializeAws_restJson1DescribeInsightCommand = async (input, context) => {
137
145
  method: "GET",
138
146
  headers,
139
147
  path: resolvedPath,
148
+ query,
140
149
  body,
141
150
  });
142
151
  };
143
152
  exports.serializeAws_restJson1DescribeInsightCommand = serializeAws_restJson1DescribeInsightCommand;
153
+ const serializeAws_restJson1DescribeOrganizationHealthCommand = async (input, context) => {
154
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
155
+ const headers = {
156
+ "content-type": "application/json",
157
+ };
158
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health";
159
+ let body;
160
+ body = JSON.stringify({
161
+ ...(input.AccountIds !== undefined &&
162
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
163
+ ...(input.OrganizationalUnitIds !== undefined &&
164
+ input.OrganizationalUnitIds !== null && {
165
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
166
+ }),
167
+ });
168
+ return new protocol_http_1.HttpRequest({
169
+ protocol,
170
+ hostname,
171
+ port,
172
+ method: "POST",
173
+ headers,
174
+ path: resolvedPath,
175
+ body,
176
+ });
177
+ };
178
+ exports.serializeAws_restJson1DescribeOrganizationHealthCommand = serializeAws_restJson1DescribeOrganizationHealthCommand;
179
+ const serializeAws_restJson1DescribeOrganizationOverviewCommand = async (input, context) => {
180
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const headers = {
182
+ "content-type": "application/json",
183
+ };
184
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/overview";
185
+ let body;
186
+ body = JSON.stringify({
187
+ ...(input.AccountIds !== undefined &&
188
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
189
+ ...(input.FromTime !== undefined &&
190
+ input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
191
+ ...(input.OrganizationalUnitIds !== undefined &&
192
+ input.OrganizationalUnitIds !== null && {
193
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
194
+ }),
195
+ ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
196
+ });
197
+ return new protocol_http_1.HttpRequest({
198
+ protocol,
199
+ hostname,
200
+ port,
201
+ method: "POST",
202
+ headers,
203
+ path: resolvedPath,
204
+ body,
205
+ });
206
+ };
207
+ exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = serializeAws_restJson1DescribeOrganizationOverviewCommand;
208
+ const serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = async (input, context) => {
209
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const headers = {
211
+ "content-type": "application/json",
212
+ };
213
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health/resource-collection";
214
+ let body;
215
+ body = JSON.stringify({
216
+ ...(input.AccountIds !== undefined &&
217
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
218
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
219
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
220
+ ...(input.OrganizationResourceCollectionType !== undefined &&
221
+ input.OrganizationResourceCollectionType !== null && {
222
+ OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
223
+ }),
224
+ ...(input.OrganizationalUnitIds !== undefined &&
225
+ input.OrganizationalUnitIds !== null && {
226
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
227
+ }),
228
+ });
229
+ return new protocol_http_1.HttpRequest({
230
+ protocol,
231
+ hostname,
232
+ port,
233
+ method: "POST",
234
+ headers,
235
+ path: resolvedPath,
236
+ body,
237
+ });
238
+ };
239
+ exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand;
144
240
  const serializeAws_restJson1DescribeResourceCollectionHealthCommand = async (input, context) => {
145
241
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
242
  const headers = {};
@@ -260,6 +356,7 @@ const serializeAws_restJson1ListAnomaliesForInsightCommand = async (input, conte
260
356
  }
261
357
  let body;
262
358
  body = JSON.stringify({
359
+ ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
263
360
  ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
264
361
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
265
362
  ...(input.StartTimeRange !== undefined &&
@@ -286,6 +383,7 @@ const serializeAws_restJson1ListEventsCommand = async (input, context) => {
286
383
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
287
384
  let body;
288
385
  body = JSON.stringify({
386
+ ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
289
387
  ...(input.Filters !== undefined &&
290
388
  input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) }),
291
389
  ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
@@ -349,6 +447,40 @@ const serializeAws_restJson1ListNotificationChannelsCommand = async (input, cont
349
447
  });
350
448
  };
351
449
  exports.serializeAws_restJson1ListNotificationChannelsCommand = serializeAws_restJson1ListNotificationChannelsCommand;
450
+ const serializeAws_restJson1ListOrganizationInsightsCommand = async (input, context) => {
451
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
+ const headers = {
453
+ "content-type": "application/json",
454
+ };
455
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights";
456
+ let body;
457
+ body = JSON.stringify({
458
+ ...(input.AccountIds !== undefined &&
459
+ input.AccountIds !== null && {
460
+ AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
461
+ }),
462
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
463
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
464
+ ...(input.OrganizationalUnitIds !== undefined &&
465
+ input.OrganizationalUnitIds !== null && {
466
+ OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
467
+ }),
468
+ ...(input.StatusFilter !== undefined &&
469
+ input.StatusFilter !== null && {
470
+ StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
471
+ }),
472
+ });
473
+ return new protocol_http_1.HttpRequest({
474
+ protocol,
475
+ hostname,
476
+ port,
477
+ method: "POST",
478
+ headers,
479
+ path: resolvedPath,
480
+ body,
481
+ });
482
+ };
483
+ exports.serializeAws_restJson1ListOrganizationInsightsCommand = serializeAws_restJson1ListOrganizationInsightsCommand;
352
484
  const serializeAws_restJson1ListRecommendationsCommand = async (input, context) => {
353
485
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
486
  const headers = {
@@ -357,6 +489,7 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
357
489
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations";
358
490
  let body;
359
491
  body = JSON.stringify({
492
+ ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
360
493
  ...(input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId }),
361
494
  ...(input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale }),
362
495
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
@@ -451,6 +584,41 @@ const serializeAws_restJson1SearchInsightsCommand = async (input, context) => {
451
584
  });
452
585
  };
453
586
  exports.serializeAws_restJson1SearchInsightsCommand = serializeAws_restJson1SearchInsightsCommand;
587
+ const serializeAws_restJson1SearchOrganizationInsightsCommand = async (input, context) => {
588
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
+ const headers = {
590
+ "content-type": "application/json",
591
+ };
592
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights/search";
593
+ let body;
594
+ body = JSON.stringify({
595
+ ...(input.AccountIds !== undefined &&
596
+ input.AccountIds !== null && {
597
+ AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
598
+ }),
599
+ ...(input.Filters !== undefined &&
600
+ input.Filters !== null && {
601
+ Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
602
+ }),
603
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
604
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
605
+ ...(input.StartTimeRange !== undefined &&
606
+ input.StartTimeRange !== null && {
607
+ StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
608
+ }),
609
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
610
+ });
611
+ return new protocol_http_1.HttpRequest({
612
+ protocol,
613
+ hostname,
614
+ port,
615
+ method: "POST",
616
+ headers,
617
+ path: resolvedPath,
618
+ body,
619
+ });
620
+ };
621
+ exports.serializeAws_restJson1SearchOrganizationInsightsCommand = serializeAws_restJson1SearchOrganizationInsightsCommand;
454
622
  const serializeAws_restJson1StartCostEstimationCommand = async (input, context) => {
455
623
  var _a;
456
624
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1034,30 +1202,34 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
1034
1202
  delete response.Message;
1035
1203
  return Promise.reject(Object.assign(new Error(message), response));
1036
1204
  };
1037
- const deserializeAws_restJson1DescribeResourceCollectionHealthCommand = async (output, context) => {
1205
+ const deserializeAws_restJson1DescribeOrganizationHealthCommand = async (output, context) => {
1038
1206
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1039
- return deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context);
1207
+ return deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context);
1040
1208
  }
1041
1209
  const contents = {
1042
1210
  $metadata: deserializeMetadata(output),
1043
- CloudFormation: undefined,
1044
- NextToken: undefined,
1045
- Service: undefined,
1211
+ MetricsAnalyzed: undefined,
1212
+ OpenProactiveInsights: undefined,
1213
+ OpenReactiveInsights: undefined,
1214
+ ResourceHours: undefined,
1046
1215
  };
1047
1216
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1048
- if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1049
- contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1217
+ if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
1218
+ contents.MetricsAnalyzed = smithy_client_1.expectInt32(data.MetricsAnalyzed);
1050
1219
  }
1051
- if (data.NextToken !== undefined && data.NextToken !== null) {
1052
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1220
+ if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
1221
+ contents.OpenProactiveInsights = smithy_client_1.expectInt32(data.OpenProactiveInsights);
1053
1222
  }
1054
- if (data.Service !== undefined && data.Service !== null) {
1055
- contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1223
+ if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
1224
+ contents.OpenReactiveInsights = smithy_client_1.expectInt32(data.OpenReactiveInsights);
1225
+ }
1226
+ if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
1227
+ contents.ResourceHours = smithy_client_1.expectLong(data.ResourceHours);
1056
1228
  }
1057
1229
  return Promise.resolve(contents);
1058
1230
  };
1059
- exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = deserializeAws_restJson1DescribeResourceCollectionHealthCommand;
1060
- const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = async (output, context) => {
1231
+ exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = deserializeAws_restJson1DescribeOrganizationHealthCommand;
1232
+ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (output, context) => {
1061
1233
  const parsedOutput = {
1062
1234
  ...output,
1063
1235
  body: await parseBody(output.body, context),
@@ -1114,22 +1286,26 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
1114
1286
  delete response.Message;
1115
1287
  return Promise.reject(Object.assign(new Error(message), response));
1116
1288
  };
1117
- const deserializeAws_restJson1DescribeServiceIntegrationCommand = async (output, context) => {
1289
+ const deserializeAws_restJson1DescribeOrganizationOverviewCommand = async (output, context) => {
1118
1290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
- return deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context);
1291
+ return deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context);
1120
1292
  }
1121
1293
  const contents = {
1122
1294
  $metadata: deserializeMetadata(output),
1123
- ServiceIntegration: undefined,
1295
+ ProactiveInsights: undefined,
1296
+ ReactiveInsights: undefined,
1124
1297
  };
1125
1298
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1126
- if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1127
- contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1299
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1300
+ contents.ProactiveInsights = smithy_client_1.expectInt32(data.ProactiveInsights);
1301
+ }
1302
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1303
+ contents.ReactiveInsights = smithy_client_1.expectInt32(data.ReactiveInsights);
1128
1304
  }
1129
1305
  return Promise.resolve(contents);
1130
1306
  };
1131
- exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = deserializeAws_restJson1DescribeServiceIntegrationCommand;
1132
- const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (output, context) => {
1307
+ exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = deserializeAws_restJson1DescribeOrganizationOverviewCommand;
1308
+ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (output, context) => {
1133
1309
  const parsedOutput = {
1134
1310
  ...output,
1135
1311
  body: await parseBody(output.body, context),
@@ -1186,42 +1362,38 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
1186
1362
  delete response.Message;
1187
1363
  return Promise.reject(Object.assign(new Error(message), response));
1188
1364
  };
1189
- const deserializeAws_restJson1GetCostEstimationCommand = async (output, context) => {
1365
+ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = async (output, context) => {
1190
1366
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
- return deserializeAws_restJson1GetCostEstimationCommandError(output, context);
1367
+ return deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context);
1192
1368
  }
1193
1369
  const contents = {
1194
1370
  $metadata: deserializeMetadata(output),
1195
- Costs: undefined,
1371
+ Account: undefined,
1372
+ CloudFormation: undefined,
1196
1373
  NextToken: undefined,
1197
- ResourceCollection: undefined,
1198
- Status: undefined,
1199
- TimeRange: undefined,
1200
- TotalCost: undefined,
1374
+ Service: undefined,
1375
+ Tags: undefined,
1201
1376
  };
1202
1377
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1203
- if (data.Costs !== undefined && data.Costs !== null) {
1204
- contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
1378
+ if (data.Account !== undefined && data.Account !== null) {
1379
+ contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
1380
+ }
1381
+ if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1382
+ contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1205
1383
  }
1206
1384
  if (data.NextToken !== undefined && data.NextToken !== null) {
1207
1385
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1208
1386
  }
1209
- if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1210
- contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
1211
- }
1212
- if (data.Status !== undefined && data.Status !== null) {
1213
- contents.Status = smithy_client_1.expectString(data.Status);
1214
- }
1215
- if (data.TimeRange !== undefined && data.TimeRange !== null) {
1216
- contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
1387
+ if (data.Service !== undefined && data.Service !== null) {
1388
+ contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1217
1389
  }
1218
- if (data.TotalCost !== undefined && data.TotalCost !== null) {
1219
- contents.TotalCost = smithy_client_1.limitedParseDouble(data.TotalCost);
1390
+ if (data.Tags !== undefined && data.Tags !== null) {
1391
+ contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
1220
1392
  }
1221
1393
  return Promise.resolve(contents);
1222
1394
  };
1223
- exports.deserializeAws_restJson1GetCostEstimationCommand = deserializeAws_restJson1GetCostEstimationCommand;
1224
- const deserializeAws_restJson1GetCostEstimationCommandError = async (output, context) => {
1395
+ exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand;
1396
+ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = async (output, context) => {
1225
1397
  const parsedOutput = {
1226
1398
  ...output,
1227
1399
  body: await parseBody(output.body, context),
@@ -1246,14 +1418,6 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
1246
1418
  $metadata: deserializeMetadata(output),
1247
1419
  };
1248
1420
  break;
1249
- case "ResourceNotFoundException":
1250
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
1251
- response = {
1252
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1253
- name: errorCode,
1254
- $metadata: deserializeMetadata(output),
1255
- };
1256
- break;
1257
1421
  case "ThrottlingException":
1258
1422
  case "com.amazonaws.devopsguru#ThrottlingException":
1259
1423
  response = {
@@ -1286,26 +1450,34 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
1286
1450
  delete response.Message;
1287
1451
  return Promise.reject(Object.assign(new Error(message), response));
1288
1452
  };
1289
- const deserializeAws_restJson1GetResourceCollectionCommand = async (output, context) => {
1453
+ const deserializeAws_restJson1DescribeResourceCollectionHealthCommand = async (output, context) => {
1290
1454
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1291
- return deserializeAws_restJson1GetResourceCollectionCommandError(output, context);
1455
+ return deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context);
1292
1456
  }
1293
1457
  const contents = {
1294
1458
  $metadata: deserializeMetadata(output),
1459
+ CloudFormation: undefined,
1295
1460
  NextToken: undefined,
1296
- ResourceCollection: undefined,
1461
+ Service: undefined,
1462
+ Tags: undefined,
1297
1463
  };
1298
1464
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1465
+ if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1466
+ contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1467
+ }
1299
1468
  if (data.NextToken !== undefined && data.NextToken !== null) {
1300
1469
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1301
1470
  }
1302
- if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1303
- contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
1471
+ if (data.Service !== undefined && data.Service !== null) {
1472
+ contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1473
+ }
1474
+ if (data.Tags !== undefined && data.Tags !== null) {
1475
+ contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
1304
1476
  }
1305
1477
  return Promise.resolve(contents);
1306
1478
  };
1307
- exports.deserializeAws_restJson1GetResourceCollectionCommand = deserializeAws_restJson1GetResourceCollectionCommand;
1308
- const deserializeAws_restJson1GetResourceCollectionCommandError = async (output, context) => {
1479
+ exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = deserializeAws_restJson1DescribeResourceCollectionHealthCommand;
1480
+ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = async (output, context) => {
1309
1481
  const parsedOutput = {
1310
1482
  ...output,
1311
1483
  body: await parseBody(output.body, context),
@@ -1330,14 +1502,6 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
1330
1502
  $metadata: deserializeMetadata(output),
1331
1503
  };
1332
1504
  break;
1333
- case "ResourceNotFoundException":
1334
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
1335
- response = {
1336
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1337
- name: errorCode,
1338
- $metadata: deserializeMetadata(output),
1339
- };
1340
- break;
1341
1505
  case "ThrottlingException":
1342
1506
  case "com.amazonaws.devopsguru#ThrottlingException":
1343
1507
  response = {
@@ -1370,30 +1534,22 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
1370
1534
  delete response.Message;
1371
1535
  return Promise.reject(Object.assign(new Error(message), response));
1372
1536
  };
1373
- const deserializeAws_restJson1ListAnomaliesForInsightCommand = async (output, context) => {
1537
+ const deserializeAws_restJson1DescribeServiceIntegrationCommand = async (output, context) => {
1374
1538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1375
- return deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context);
1539
+ return deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context);
1376
1540
  }
1377
1541
  const contents = {
1378
1542
  $metadata: deserializeMetadata(output),
1379
- NextToken: undefined,
1380
- ProactiveAnomalies: undefined,
1381
- ReactiveAnomalies: undefined,
1543
+ ServiceIntegration: undefined,
1382
1544
  };
1383
1545
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1384
- if (data.NextToken !== undefined && data.NextToken !== null) {
1385
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1386
- }
1387
- if (data.ProactiveAnomalies !== undefined && data.ProactiveAnomalies !== null) {
1388
- contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
1389
- }
1390
- if (data.ReactiveAnomalies !== undefined && data.ReactiveAnomalies !== null) {
1391
- contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
1546
+ if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1547
+ contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1392
1548
  }
1393
1549
  return Promise.resolve(contents);
1394
1550
  };
1395
- exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = deserializeAws_restJson1ListAnomaliesForInsightCommand;
1396
- const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (output, context) => {
1551
+ exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = deserializeAws_restJson1DescribeServiceIntegrationCommand;
1552
+ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (output, context) => {
1397
1553
  const parsedOutput = {
1398
1554
  ...output,
1399
1555
  body: await parseBody(output.body, context),
@@ -1418,14 +1574,6 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
1418
1574
  $metadata: deserializeMetadata(output),
1419
1575
  };
1420
1576
  break;
1421
- case "ResourceNotFoundException":
1422
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
1423
- response = {
1424
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1425
- name: errorCode,
1426
- $metadata: deserializeMetadata(output),
1427
- };
1428
- break;
1429
1577
  case "ThrottlingException":
1430
1578
  case "com.amazonaws.devopsguru#ThrottlingException":
1431
1579
  response = {
@@ -1458,26 +1606,42 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
1458
1606
  delete response.Message;
1459
1607
  return Promise.reject(Object.assign(new Error(message), response));
1460
1608
  };
1461
- const deserializeAws_restJson1ListEventsCommand = async (output, context) => {
1609
+ const deserializeAws_restJson1GetCostEstimationCommand = async (output, context) => {
1462
1610
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
- return deserializeAws_restJson1ListEventsCommandError(output, context);
1611
+ return deserializeAws_restJson1GetCostEstimationCommandError(output, context);
1464
1612
  }
1465
1613
  const contents = {
1466
1614
  $metadata: deserializeMetadata(output),
1467
- Events: undefined,
1615
+ Costs: undefined,
1468
1616
  NextToken: undefined,
1617
+ ResourceCollection: undefined,
1618
+ Status: undefined,
1619
+ TimeRange: undefined,
1620
+ TotalCost: undefined,
1469
1621
  };
1470
1622
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1471
- if (data.Events !== undefined && data.Events !== null) {
1472
- contents.Events = deserializeAws_restJson1Events(data.Events, context);
1623
+ if (data.Costs !== undefined && data.Costs !== null) {
1624
+ contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
1473
1625
  }
1474
1626
  if (data.NextToken !== undefined && data.NextToken !== null) {
1475
1627
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1476
1628
  }
1629
+ if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1630
+ contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
1631
+ }
1632
+ if (data.Status !== undefined && data.Status !== null) {
1633
+ contents.Status = smithy_client_1.expectString(data.Status);
1634
+ }
1635
+ if (data.TimeRange !== undefined && data.TimeRange !== null) {
1636
+ contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
1637
+ }
1638
+ if (data.TotalCost !== undefined && data.TotalCost !== null) {
1639
+ contents.TotalCost = smithy_client_1.limitedParseDouble(data.TotalCost);
1640
+ }
1477
1641
  return Promise.resolve(contents);
1478
1642
  };
1479
- exports.deserializeAws_restJson1ListEventsCommand = deserializeAws_restJson1ListEventsCommand;
1480
- const deserializeAws_restJson1ListEventsCommandError = async (output, context) => {
1643
+ exports.deserializeAws_restJson1GetCostEstimationCommand = deserializeAws_restJson1GetCostEstimationCommand;
1644
+ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, context) => {
1481
1645
  const parsedOutput = {
1482
1646
  ...output,
1483
1647
  body: await parseBody(output.body, context),
@@ -1542,30 +1706,26 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
1542
1706
  delete response.Message;
1543
1707
  return Promise.reject(Object.assign(new Error(message), response));
1544
1708
  };
1545
- const deserializeAws_restJson1ListInsightsCommand = async (output, context) => {
1709
+ const deserializeAws_restJson1GetResourceCollectionCommand = async (output, context) => {
1546
1710
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
- return deserializeAws_restJson1ListInsightsCommandError(output, context);
1711
+ return deserializeAws_restJson1GetResourceCollectionCommandError(output, context);
1548
1712
  }
1549
1713
  const contents = {
1550
1714
  $metadata: deserializeMetadata(output),
1551
1715
  NextToken: undefined,
1552
- ProactiveInsights: undefined,
1553
- ReactiveInsights: undefined,
1716
+ ResourceCollection: undefined,
1554
1717
  };
1555
1718
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1556
1719
  if (data.NextToken !== undefined && data.NextToken !== null) {
1557
1720
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1558
1721
  }
1559
- if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1560
- contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
1561
- }
1562
- if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1563
- contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
1722
+ if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1723
+ contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
1564
1724
  }
1565
1725
  return Promise.resolve(contents);
1566
1726
  };
1567
- exports.deserializeAws_restJson1ListInsightsCommand = deserializeAws_restJson1ListInsightsCommand;
1568
- const deserializeAws_restJson1ListInsightsCommandError = async (output, context) => {
1727
+ exports.deserializeAws_restJson1GetResourceCollectionCommand = deserializeAws_restJson1GetResourceCollectionCommand;
1728
+ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output, context) => {
1569
1729
  const parsedOutput = {
1570
1730
  ...output,
1571
1731
  body: await parseBody(output.body, context),
@@ -1590,6 +1750,14 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
1590
1750
  $metadata: deserializeMetadata(output),
1591
1751
  };
1592
1752
  break;
1753
+ case "ResourceNotFoundException":
1754
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
1755
+ response = {
1756
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1757
+ name: errorCode,
1758
+ $metadata: deserializeMetadata(output),
1759
+ };
1760
+ break;
1593
1761
  case "ThrottlingException":
1594
1762
  case "com.amazonaws.devopsguru#ThrottlingException":
1595
1763
  response = {
@@ -1622,26 +1790,30 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
1622
1790
  delete response.Message;
1623
1791
  return Promise.reject(Object.assign(new Error(message), response));
1624
1792
  };
1625
- const deserializeAws_restJson1ListNotificationChannelsCommand = async (output, context) => {
1793
+ const deserializeAws_restJson1ListAnomaliesForInsightCommand = async (output, context) => {
1626
1794
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return deserializeAws_restJson1ListNotificationChannelsCommandError(output, context);
1795
+ return deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context);
1628
1796
  }
1629
1797
  const contents = {
1630
1798
  $metadata: deserializeMetadata(output),
1631
- Channels: undefined,
1632
1799
  NextToken: undefined,
1800
+ ProactiveAnomalies: undefined,
1801
+ ReactiveAnomalies: undefined,
1633
1802
  };
1634
1803
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1635
- if (data.Channels !== undefined && data.Channels !== null) {
1636
- contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
1637
- }
1638
1804
  if (data.NextToken !== undefined && data.NextToken !== null) {
1639
1805
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1640
1806
  }
1807
+ if (data.ProactiveAnomalies !== undefined && data.ProactiveAnomalies !== null) {
1808
+ contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
1809
+ }
1810
+ if (data.ReactiveAnomalies !== undefined && data.ReactiveAnomalies !== null) {
1811
+ contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
1812
+ }
1641
1813
  return Promise.resolve(contents);
1642
1814
  };
1643
- exports.deserializeAws_restJson1ListNotificationChannelsCommand = deserializeAws_restJson1ListNotificationChannelsCommand;
1644
- const deserializeAws_restJson1ListNotificationChannelsCommandError = async (output, context) => {
1815
+ exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = deserializeAws_restJson1ListAnomaliesForInsightCommand;
1816
+ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (output, context) => {
1645
1817
  const parsedOutput = {
1646
1818
  ...output,
1647
1819
  body: await parseBody(output.body, context),
@@ -1666,6 +1838,14 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
1666
1838
  $metadata: deserializeMetadata(output),
1667
1839
  };
1668
1840
  break;
1841
+ case "ResourceNotFoundException":
1842
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
1843
+ response = {
1844
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1845
+ name: errorCode,
1846
+ $metadata: deserializeMetadata(output),
1847
+ };
1848
+ break;
1669
1849
  case "ThrottlingException":
1670
1850
  case "com.amazonaws.devopsguru#ThrottlingException":
1671
1851
  response = {
@@ -1698,26 +1878,26 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
1698
1878
  delete response.Message;
1699
1879
  return Promise.reject(Object.assign(new Error(message), response));
1700
1880
  };
1701
- const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
1881
+ const deserializeAws_restJson1ListEventsCommand = async (output, context) => {
1702
1882
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1703
- return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
1883
+ return deserializeAws_restJson1ListEventsCommandError(output, context);
1704
1884
  }
1705
1885
  const contents = {
1706
1886
  $metadata: deserializeMetadata(output),
1887
+ Events: undefined,
1707
1888
  NextToken: undefined,
1708
- Recommendations: undefined,
1709
1889
  };
1710
1890
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1891
+ if (data.Events !== undefined && data.Events !== null) {
1892
+ contents.Events = deserializeAws_restJson1Events(data.Events, context);
1893
+ }
1711
1894
  if (data.NextToken !== undefined && data.NextToken !== null) {
1712
1895
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1713
1896
  }
1714
- if (data.Recommendations !== undefined && data.Recommendations !== null) {
1715
- contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
1716
- }
1717
1897
  return Promise.resolve(contents);
1718
1898
  };
1719
- exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_restJson1ListRecommendationsCommand;
1720
- const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
1899
+ exports.deserializeAws_restJson1ListEventsCommand = deserializeAws_restJson1ListEventsCommand;
1900
+ const deserializeAws_restJson1ListEventsCommandError = async (output, context) => {
1721
1901
  const parsedOutput = {
1722
1902
  ...output,
1723
1903
  body: await parseBody(output.body, context),
@@ -1782,18 +1962,30 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
1782
1962
  delete response.Message;
1783
1963
  return Promise.reject(Object.assign(new Error(message), response));
1784
1964
  };
1785
- const deserializeAws_restJson1PutFeedbackCommand = async (output, context) => {
1965
+ const deserializeAws_restJson1ListInsightsCommand = async (output, context) => {
1786
1966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1787
- return deserializeAws_restJson1PutFeedbackCommandError(output, context);
1967
+ return deserializeAws_restJson1ListInsightsCommandError(output, context);
1788
1968
  }
1789
1969
  const contents = {
1790
1970
  $metadata: deserializeMetadata(output),
1971
+ NextToken: undefined,
1972
+ ProactiveInsights: undefined,
1973
+ ReactiveInsights: undefined,
1791
1974
  };
1792
- await collectBody(output.body, context);
1975
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1976
+ if (data.NextToken !== undefined && data.NextToken !== null) {
1977
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
1978
+ }
1979
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1980
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
1981
+ }
1982
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1983
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
1984
+ }
1793
1985
  return Promise.resolve(contents);
1794
1986
  };
1795
- exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1PutFeedbackCommand;
1796
- const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
1987
+ exports.deserializeAws_restJson1ListInsightsCommand = deserializeAws_restJson1ListInsightsCommand;
1988
+ const deserializeAws_restJson1ListInsightsCommandError = async (output, context) => {
1797
1989
  const parsedOutput = {
1798
1990
  ...output,
1799
1991
  body: await parseBody(output.body, context),
@@ -1810,14 +2002,6 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1810
2002
  $metadata: deserializeMetadata(output),
1811
2003
  };
1812
2004
  break;
1813
- case "ConflictException":
1814
- case "com.amazonaws.devopsguru#ConflictException":
1815
- response = {
1816
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1817
- name: errorCode,
1818
- $metadata: deserializeMetadata(output),
1819
- };
1820
- break;
1821
2005
  case "InternalServerException":
1822
2006
  case "com.amazonaws.devopsguru#InternalServerException":
1823
2007
  response = {
@@ -1826,14 +2010,6 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1826
2010
  $metadata: deserializeMetadata(output),
1827
2011
  };
1828
2012
  break;
1829
- case "ResourceNotFoundException":
1830
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
1831
- response = {
1832
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1833
- name: errorCode,
1834
- $metadata: deserializeMetadata(output),
1835
- };
1836
- break;
1837
2013
  case "ThrottlingException":
1838
2014
  case "com.amazonaws.devopsguru#ThrottlingException":
1839
2015
  response = {
@@ -1866,18 +2042,26 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1866
2042
  delete response.Message;
1867
2043
  return Promise.reject(Object.assign(new Error(message), response));
1868
2044
  };
1869
- const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
2045
+ const deserializeAws_restJson1ListNotificationChannelsCommand = async (output, context) => {
1870
2046
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1871
- return deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context);
2047
+ return deserializeAws_restJson1ListNotificationChannelsCommandError(output, context);
1872
2048
  }
1873
2049
  const contents = {
1874
2050
  $metadata: deserializeMetadata(output),
2051
+ Channels: undefined,
2052
+ NextToken: undefined,
1875
2053
  };
1876
- await collectBody(output.body, context);
2054
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2055
+ if (data.Channels !== undefined && data.Channels !== null) {
2056
+ contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
2057
+ }
2058
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2059
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2060
+ }
1877
2061
  return Promise.resolve(contents);
1878
2062
  };
1879
- exports.deserializeAws_restJson1RemoveNotificationChannelCommand = deserializeAws_restJson1RemoveNotificationChannelCommand;
1880
- const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
2063
+ exports.deserializeAws_restJson1ListNotificationChannelsCommand = deserializeAws_restJson1ListNotificationChannelsCommand;
2064
+ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (output, context) => {
1881
2065
  const parsedOutput = {
1882
2066
  ...output,
1883
2067
  body: await parseBody(output.body, context),
@@ -1894,14 +2078,6 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1894
2078
  $metadata: deserializeMetadata(output),
1895
2079
  };
1896
2080
  break;
1897
- case "ConflictException":
1898
- case "com.amazonaws.devopsguru#ConflictException":
1899
- response = {
1900
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1901
- name: errorCode,
1902
- $metadata: deserializeMetadata(output),
1903
- };
1904
- break;
1905
2081
  case "InternalServerException":
1906
2082
  case "com.amazonaws.devopsguru#InternalServerException":
1907
2083
  response = {
@@ -1910,14 +2086,6 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1910
2086
  $metadata: deserializeMetadata(output),
1911
2087
  };
1912
2088
  break;
1913
- case "ResourceNotFoundException":
1914
- case "com.amazonaws.devopsguru#ResourceNotFoundException":
1915
- response = {
1916
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1917
- name: errorCode,
1918
- $metadata: deserializeMetadata(output),
1919
- };
1920
- break;
1921
2089
  case "ThrottlingException":
1922
2090
  case "com.amazonaws.devopsguru#ThrottlingException":
1923
2091
  response = {
@@ -1950,9 +2118,9 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1950
2118
  delete response.Message;
1951
2119
  return Promise.reject(Object.assign(new Error(message), response));
1952
2120
  };
1953
- const deserializeAws_restJson1SearchInsightsCommand = async (output, context) => {
2121
+ const deserializeAws_restJson1ListOrganizationInsightsCommand = async (output, context) => {
1954
2122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1955
- return deserializeAws_restJson1SearchInsightsCommandError(output, context);
2123
+ return deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context);
1956
2124
  }
1957
2125
  const contents = {
1958
2126
  $metadata: deserializeMetadata(output),
@@ -1965,15 +2133,15 @@ const deserializeAws_restJson1SearchInsightsCommand = async (output, context) =>
1965
2133
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
1966
2134
  }
1967
2135
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1968
- contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
2136
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
1969
2137
  }
1970
2138
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1971
- contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2139
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
1972
2140
  }
1973
2141
  return Promise.resolve(contents);
1974
2142
  };
1975
- exports.deserializeAws_restJson1SearchInsightsCommand = deserializeAws_restJson1SearchInsightsCommand;
1976
- const deserializeAws_restJson1SearchInsightsCommandError = async (output, context) => {
2143
+ exports.deserializeAws_restJson1ListOrganizationInsightsCommand = deserializeAws_restJson1ListOrganizationInsightsCommand;
2144
+ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (output, context) => {
1977
2145
  const parsedOutput = {
1978
2146
  ...output,
1979
2147
  body: await parseBody(output.body, context),
@@ -2030,18 +2198,26 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
2030
2198
  delete response.Message;
2031
2199
  return Promise.reject(Object.assign(new Error(message), response));
2032
2200
  };
2033
- const deserializeAws_restJson1StartCostEstimationCommand = async (output, context) => {
2201
+ const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
2034
2202
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2035
- return deserializeAws_restJson1StartCostEstimationCommandError(output, context);
2203
+ return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
2036
2204
  }
2037
2205
  const contents = {
2038
2206
  $metadata: deserializeMetadata(output),
2207
+ NextToken: undefined,
2208
+ Recommendations: undefined,
2039
2209
  };
2040
- await collectBody(output.body, context);
2210
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2211
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2212
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2213
+ }
2214
+ if (data.Recommendations !== undefined && data.Recommendations !== null) {
2215
+ contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
2216
+ }
2041
2217
  return Promise.resolve(contents);
2042
2218
  };
2043
- exports.deserializeAws_restJson1StartCostEstimationCommand = deserializeAws_restJson1StartCostEstimationCommand;
2044
- const deserializeAws_restJson1StartCostEstimationCommandError = async (output, context) => {
2219
+ exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_restJson1ListRecommendationsCommand;
2220
+ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
2045
2221
  const parsedOutput = {
2046
2222
  ...output,
2047
2223
  body: await parseBody(output.body, context),
@@ -2058,14 +2234,6 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
2058
2234
  $metadata: deserializeMetadata(output),
2059
2235
  };
2060
2236
  break;
2061
- case "ConflictException":
2062
- case "com.amazonaws.devopsguru#ConflictException":
2063
- response = {
2064
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2065
- name: errorCode,
2066
- $metadata: deserializeMetadata(output),
2067
- };
2068
- break;
2069
2237
  case "InternalServerException":
2070
2238
  case "com.amazonaws.devopsguru#InternalServerException":
2071
2239
  response = {
@@ -2114,9 +2282,9 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
2114
2282
  delete response.Message;
2115
2283
  return Promise.reject(Object.assign(new Error(message), response));
2116
2284
  };
2117
- const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, context) => {
2285
+ const deserializeAws_restJson1PutFeedbackCommand = async (output, context) => {
2118
2286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2119
- return deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context);
2287
+ return deserializeAws_restJson1PutFeedbackCommandError(output, context);
2120
2288
  }
2121
2289
  const contents = {
2122
2290
  $metadata: deserializeMetadata(output),
@@ -2124,8 +2292,8 @@ const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, c
2124
2292
  await collectBody(output.body, context);
2125
2293
  return Promise.resolve(contents);
2126
2294
  };
2127
- exports.deserializeAws_restJson1UpdateResourceCollectionCommand = deserializeAws_restJson1UpdateResourceCollectionCommand;
2128
- const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (output, context) => {
2295
+ exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1PutFeedbackCommand;
2296
+ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
2129
2297
  const parsedOutput = {
2130
2298
  ...output,
2131
2299
  body: await parseBody(output.body, context),
@@ -2158,6 +2326,14 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
2158
2326
  $metadata: deserializeMetadata(output),
2159
2327
  };
2160
2328
  break;
2329
+ case "ResourceNotFoundException":
2330
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
2331
+ response = {
2332
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2333
+ name: errorCode,
2334
+ $metadata: deserializeMetadata(output),
2335
+ };
2336
+ break;
2161
2337
  case "ThrottlingException":
2162
2338
  case "com.amazonaws.devopsguru#ThrottlingException":
2163
2339
  response = {
@@ -2190,9 +2366,9 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
2190
2366
  delete response.Message;
2191
2367
  return Promise.reject(Object.assign(new Error(message), response));
2192
2368
  };
2193
- const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, context) => {
2369
+ const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
2194
2370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2195
- return deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context);
2371
+ return deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context);
2196
2372
  }
2197
2373
  const contents = {
2198
2374
  $metadata: deserializeMetadata(output),
@@ -2200,8 +2376,8 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, c
2200
2376
  await collectBody(output.body, context);
2201
2377
  return Promise.resolve(contents);
2202
2378
  };
2203
- exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = deserializeAws_restJson1UpdateServiceIntegrationCommand;
2204
- const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (output, context) => {
2379
+ exports.deserializeAws_restJson1RemoveNotificationChannelCommand = deserializeAws_restJson1RemoveNotificationChannelCommand;
2380
+ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
2205
2381
  const parsedOutput = {
2206
2382
  ...output,
2207
2383
  body: await parseBody(output.body, context),
@@ -2234,6 +2410,14 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
2234
2410
  $metadata: deserializeMetadata(output),
2235
2411
  };
2236
2412
  break;
2413
+ case "ResourceNotFoundException":
2414
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
2415
+ response = {
2416
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2417
+ name: errorCode,
2418
+ $metadata: deserializeMetadata(output),
2419
+ };
2420
+ break;
2237
2421
  case "ThrottlingException":
2238
2422
  case "com.amazonaws.devopsguru#ThrottlingException":
2239
2423
  response = {
@@ -2266,23 +2450,419 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
2266
2450
  delete response.Message;
2267
2451
  return Promise.reject(Object.assign(new Error(message), response));
2268
2452
  };
2269
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2453
+ const deserializeAws_restJson1SearchInsightsCommand = async (output, context) => {
2454
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2455
+ return deserializeAws_restJson1SearchInsightsCommandError(output, context);
2456
+ }
2270
2457
  const contents = {
2271
- name: "AccessDeniedException",
2272
- $fault: "client",
2273
- $metadata: deserializeMetadata(parsedOutput),
2274
- Message: undefined,
2458
+ $metadata: deserializeMetadata(output),
2459
+ NextToken: undefined,
2460
+ ProactiveInsights: undefined,
2461
+ ReactiveInsights: undefined,
2275
2462
  };
2276
- const data = parsedOutput.body;
2277
- if (data.Message !== undefined && data.Message !== null) {
2278
- contents.Message = smithy_client_1.expectString(data.Message);
2463
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2464
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2465
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2279
2466
  }
2280
- return contents;
2281
- };
2282
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2283
- const contents = {
2284
- name: "ConflictException",
2285
- $fault: "client",
2467
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
2468
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
2469
+ }
2470
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2471
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2472
+ }
2473
+ return Promise.resolve(contents);
2474
+ };
2475
+ exports.deserializeAws_restJson1SearchInsightsCommand = deserializeAws_restJson1SearchInsightsCommand;
2476
+ const deserializeAws_restJson1SearchInsightsCommandError = async (output, context) => {
2477
+ const parsedOutput = {
2478
+ ...output,
2479
+ body: await parseBody(output.body, context),
2480
+ };
2481
+ let response;
2482
+ let errorCode = "UnknownError";
2483
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2484
+ switch (errorCode) {
2485
+ case "AccessDeniedException":
2486
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2487
+ response = {
2488
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2489
+ name: errorCode,
2490
+ $metadata: deserializeMetadata(output),
2491
+ };
2492
+ break;
2493
+ case "InternalServerException":
2494
+ case "com.amazonaws.devopsguru#InternalServerException":
2495
+ response = {
2496
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2497
+ name: errorCode,
2498
+ $metadata: deserializeMetadata(output),
2499
+ };
2500
+ break;
2501
+ case "ThrottlingException":
2502
+ case "com.amazonaws.devopsguru#ThrottlingException":
2503
+ response = {
2504
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2505
+ name: errorCode,
2506
+ $metadata: deserializeMetadata(output),
2507
+ };
2508
+ break;
2509
+ case "ValidationException":
2510
+ case "com.amazonaws.devopsguru#ValidationException":
2511
+ response = {
2512
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2513
+ name: errorCode,
2514
+ $metadata: deserializeMetadata(output),
2515
+ };
2516
+ break;
2517
+ default:
2518
+ const parsedBody = parsedOutput.body;
2519
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2520
+ response = {
2521
+ ...parsedBody,
2522
+ name: `${errorCode}`,
2523
+ message: parsedBody.message || parsedBody.Message || errorCode,
2524
+ $fault: "client",
2525
+ $metadata: deserializeMetadata(output),
2526
+ };
2527
+ }
2528
+ const message = response.message || response.Message || errorCode;
2529
+ response.message = message;
2530
+ delete response.Message;
2531
+ return Promise.reject(Object.assign(new Error(message), response));
2532
+ };
2533
+ const deserializeAws_restJson1SearchOrganizationInsightsCommand = async (output, context) => {
2534
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2535
+ return deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context);
2536
+ }
2537
+ const contents = {
2538
+ $metadata: deserializeMetadata(output),
2539
+ NextToken: undefined,
2540
+ ProactiveInsights: undefined,
2541
+ ReactiveInsights: undefined,
2542
+ };
2543
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2544
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2545
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2546
+ }
2547
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
2548
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
2549
+ }
2550
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2551
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2552
+ }
2553
+ return Promise.resolve(contents);
2554
+ };
2555
+ exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = deserializeAws_restJson1SearchOrganizationInsightsCommand;
2556
+ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (output, context) => {
2557
+ const parsedOutput = {
2558
+ ...output,
2559
+ body: await parseBody(output.body, context),
2560
+ };
2561
+ let response;
2562
+ let errorCode = "UnknownError";
2563
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2564
+ switch (errorCode) {
2565
+ case "AccessDeniedException":
2566
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2567
+ response = {
2568
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2569
+ name: errorCode,
2570
+ $metadata: deserializeMetadata(output),
2571
+ };
2572
+ break;
2573
+ case "InternalServerException":
2574
+ case "com.amazonaws.devopsguru#InternalServerException":
2575
+ response = {
2576
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2577
+ name: errorCode,
2578
+ $metadata: deserializeMetadata(output),
2579
+ };
2580
+ break;
2581
+ case "ThrottlingException":
2582
+ case "com.amazonaws.devopsguru#ThrottlingException":
2583
+ response = {
2584
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2585
+ name: errorCode,
2586
+ $metadata: deserializeMetadata(output),
2587
+ };
2588
+ break;
2589
+ case "ValidationException":
2590
+ case "com.amazonaws.devopsguru#ValidationException":
2591
+ response = {
2592
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2593
+ name: errorCode,
2594
+ $metadata: deserializeMetadata(output),
2595
+ };
2596
+ break;
2597
+ default:
2598
+ const parsedBody = parsedOutput.body;
2599
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2600
+ response = {
2601
+ ...parsedBody,
2602
+ name: `${errorCode}`,
2603
+ message: parsedBody.message || parsedBody.Message || errorCode,
2604
+ $fault: "client",
2605
+ $metadata: deserializeMetadata(output),
2606
+ };
2607
+ }
2608
+ const message = response.message || response.Message || errorCode;
2609
+ response.message = message;
2610
+ delete response.Message;
2611
+ return Promise.reject(Object.assign(new Error(message), response));
2612
+ };
2613
+ const deserializeAws_restJson1StartCostEstimationCommand = async (output, context) => {
2614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2615
+ return deserializeAws_restJson1StartCostEstimationCommandError(output, context);
2616
+ }
2617
+ const contents = {
2618
+ $metadata: deserializeMetadata(output),
2619
+ };
2620
+ await collectBody(output.body, context);
2621
+ return Promise.resolve(contents);
2622
+ };
2623
+ exports.deserializeAws_restJson1StartCostEstimationCommand = deserializeAws_restJson1StartCostEstimationCommand;
2624
+ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, context) => {
2625
+ const parsedOutput = {
2626
+ ...output,
2627
+ body: await parseBody(output.body, context),
2628
+ };
2629
+ let response;
2630
+ let errorCode = "UnknownError";
2631
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2632
+ switch (errorCode) {
2633
+ case "AccessDeniedException":
2634
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2635
+ response = {
2636
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2637
+ name: errorCode,
2638
+ $metadata: deserializeMetadata(output),
2639
+ };
2640
+ break;
2641
+ case "ConflictException":
2642
+ case "com.amazonaws.devopsguru#ConflictException":
2643
+ response = {
2644
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2645
+ name: errorCode,
2646
+ $metadata: deserializeMetadata(output),
2647
+ };
2648
+ break;
2649
+ case "InternalServerException":
2650
+ case "com.amazonaws.devopsguru#InternalServerException":
2651
+ response = {
2652
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2653
+ name: errorCode,
2654
+ $metadata: deserializeMetadata(output),
2655
+ };
2656
+ break;
2657
+ case "ResourceNotFoundException":
2658
+ case "com.amazonaws.devopsguru#ResourceNotFoundException":
2659
+ response = {
2660
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2661
+ name: errorCode,
2662
+ $metadata: deserializeMetadata(output),
2663
+ };
2664
+ break;
2665
+ case "ThrottlingException":
2666
+ case "com.amazonaws.devopsguru#ThrottlingException":
2667
+ response = {
2668
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2669
+ name: errorCode,
2670
+ $metadata: deserializeMetadata(output),
2671
+ };
2672
+ break;
2673
+ case "ValidationException":
2674
+ case "com.amazonaws.devopsguru#ValidationException":
2675
+ response = {
2676
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2677
+ name: errorCode,
2678
+ $metadata: deserializeMetadata(output),
2679
+ };
2680
+ break;
2681
+ default:
2682
+ const parsedBody = parsedOutput.body;
2683
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2684
+ response = {
2685
+ ...parsedBody,
2686
+ name: `${errorCode}`,
2687
+ message: parsedBody.message || parsedBody.Message || errorCode,
2688
+ $fault: "client",
2689
+ $metadata: deserializeMetadata(output),
2690
+ };
2691
+ }
2692
+ const message = response.message || response.Message || errorCode;
2693
+ response.message = message;
2694
+ delete response.Message;
2695
+ return Promise.reject(Object.assign(new Error(message), response));
2696
+ };
2697
+ const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, context) => {
2698
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2699
+ return deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context);
2700
+ }
2701
+ const contents = {
2702
+ $metadata: deserializeMetadata(output),
2703
+ };
2704
+ await collectBody(output.body, context);
2705
+ return Promise.resolve(contents);
2706
+ };
2707
+ exports.deserializeAws_restJson1UpdateResourceCollectionCommand = deserializeAws_restJson1UpdateResourceCollectionCommand;
2708
+ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (output, context) => {
2709
+ const parsedOutput = {
2710
+ ...output,
2711
+ body: await parseBody(output.body, context),
2712
+ };
2713
+ let response;
2714
+ let errorCode = "UnknownError";
2715
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2716
+ switch (errorCode) {
2717
+ case "AccessDeniedException":
2718
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2719
+ response = {
2720
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2721
+ name: errorCode,
2722
+ $metadata: deserializeMetadata(output),
2723
+ };
2724
+ break;
2725
+ case "ConflictException":
2726
+ case "com.amazonaws.devopsguru#ConflictException":
2727
+ response = {
2728
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2729
+ name: errorCode,
2730
+ $metadata: deserializeMetadata(output),
2731
+ };
2732
+ break;
2733
+ case "InternalServerException":
2734
+ case "com.amazonaws.devopsguru#InternalServerException":
2735
+ response = {
2736
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2737
+ name: errorCode,
2738
+ $metadata: deserializeMetadata(output),
2739
+ };
2740
+ break;
2741
+ case "ThrottlingException":
2742
+ case "com.amazonaws.devopsguru#ThrottlingException":
2743
+ response = {
2744
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2745
+ name: errorCode,
2746
+ $metadata: deserializeMetadata(output),
2747
+ };
2748
+ break;
2749
+ case "ValidationException":
2750
+ case "com.amazonaws.devopsguru#ValidationException":
2751
+ response = {
2752
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2753
+ name: errorCode,
2754
+ $metadata: deserializeMetadata(output),
2755
+ };
2756
+ break;
2757
+ default:
2758
+ const parsedBody = parsedOutput.body;
2759
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2760
+ response = {
2761
+ ...parsedBody,
2762
+ name: `${errorCode}`,
2763
+ message: parsedBody.message || parsedBody.Message || errorCode,
2764
+ $fault: "client",
2765
+ $metadata: deserializeMetadata(output),
2766
+ };
2767
+ }
2768
+ const message = response.message || response.Message || errorCode;
2769
+ response.message = message;
2770
+ delete response.Message;
2771
+ return Promise.reject(Object.assign(new Error(message), response));
2772
+ };
2773
+ const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, context) => {
2774
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2775
+ return deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context);
2776
+ }
2777
+ const contents = {
2778
+ $metadata: deserializeMetadata(output),
2779
+ };
2780
+ await collectBody(output.body, context);
2781
+ return Promise.resolve(contents);
2782
+ };
2783
+ exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = deserializeAws_restJson1UpdateServiceIntegrationCommand;
2784
+ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (output, context) => {
2785
+ const parsedOutput = {
2786
+ ...output,
2787
+ body: await parseBody(output.body, context),
2788
+ };
2789
+ let response;
2790
+ let errorCode = "UnknownError";
2791
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2792
+ switch (errorCode) {
2793
+ case "AccessDeniedException":
2794
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2795
+ response = {
2796
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2797
+ name: errorCode,
2798
+ $metadata: deserializeMetadata(output),
2799
+ };
2800
+ break;
2801
+ case "ConflictException":
2802
+ case "com.amazonaws.devopsguru#ConflictException":
2803
+ response = {
2804
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2805
+ name: errorCode,
2806
+ $metadata: deserializeMetadata(output),
2807
+ };
2808
+ break;
2809
+ case "InternalServerException":
2810
+ case "com.amazonaws.devopsguru#InternalServerException":
2811
+ response = {
2812
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2813
+ name: errorCode,
2814
+ $metadata: deserializeMetadata(output),
2815
+ };
2816
+ break;
2817
+ case "ThrottlingException":
2818
+ case "com.amazonaws.devopsguru#ThrottlingException":
2819
+ response = {
2820
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2821
+ name: errorCode,
2822
+ $metadata: deserializeMetadata(output),
2823
+ };
2824
+ break;
2825
+ case "ValidationException":
2826
+ case "com.amazonaws.devopsguru#ValidationException":
2827
+ response = {
2828
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2829
+ name: errorCode,
2830
+ $metadata: deserializeMetadata(output),
2831
+ };
2832
+ break;
2833
+ default:
2834
+ const parsedBody = parsedOutput.body;
2835
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2836
+ response = {
2837
+ ...parsedBody,
2838
+ name: `${errorCode}`,
2839
+ message: parsedBody.message || parsedBody.Message || errorCode,
2840
+ $fault: "client",
2841
+ $metadata: deserializeMetadata(output),
2842
+ };
2843
+ }
2844
+ const message = response.message || response.Message || errorCode;
2845
+ response.message = message;
2846
+ delete response.Message;
2847
+ return Promise.reject(Object.assign(new Error(message), response));
2848
+ };
2849
+ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2850
+ const contents = {
2851
+ name: "AccessDeniedException",
2852
+ $fault: "client",
2853
+ $metadata: deserializeMetadata(parsedOutput),
2854
+ Message: undefined,
2855
+ };
2856
+ const data = parsedOutput.body;
2857
+ if (data.Message !== undefined && data.Message !== null) {
2858
+ contents.Message = smithy_client_1.expectString(data.Message);
2859
+ }
2860
+ return contents;
2861
+ };
2862
+ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2863
+ const contents = {
2864
+ name: "ConflictException",
2865
+ $fault: "client",
2286
2866
  $metadata: deserializeMetadata(parsedOutput),
2287
2867
  Message: undefined,
2288
2868
  ResourceId: undefined,
@@ -2397,6 +2977,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2397
2977
  }
2398
2978
  return contents;
2399
2979
  };
2980
+ const serializeAws_restJson1AccountIdList = (input, context) => {
2981
+ return input
2982
+ .filter((e) => e != null)
2983
+ .map((entry) => {
2984
+ if (entry === null) {
2985
+ return null;
2986
+ }
2987
+ return entry;
2988
+ });
2989
+ };
2400
2990
  const serializeAws_restJson1CloudFormationCollection = (input, context) => {
2401
2991
  return {
2402
2992
  ...(input.StackNames !== undefined &&
@@ -2417,6 +3007,10 @@ const serializeAws_restJson1CostEstimationResourceCollectionFilter = (input, con
2417
3007
  input.CloudFormation !== null && {
2418
3008
  CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
2419
3009
  }),
3010
+ ...(input.Tags !== undefined &&
3011
+ input.Tags !== null && {
3012
+ Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
3013
+ }),
2420
3014
  };
2421
3015
  };
2422
3016
  const serializeAws_restJson1CostEstimationStackNames = (input, context) => {
@@ -2429,6 +3023,16 @@ const serializeAws_restJson1CostEstimationStackNames = (input, context) => {
2429
3023
  return entry;
2430
3024
  });
2431
3025
  };
3026
+ const serializeAws_restJson1CostEstimationTagValues = (input, context) => {
3027
+ return input
3028
+ .filter((e) => e != null)
3029
+ .map((entry) => {
3030
+ if (entry === null) {
3031
+ return null;
3032
+ }
3033
+ return entry;
3034
+ });
3035
+ };
2432
3036
  const serializeAws_restJson1EndTimeRange = (input, context) => {
2433
3037
  return {
2434
3038
  ...(input.FromTime !== undefined &&
@@ -2485,6 +3089,16 @@ const serializeAws_restJson1ListEventsFilters = (input, context) => {
2485
3089
  }),
2486
3090
  };
2487
3091
  };
3092
+ const serializeAws_restJson1ListInsightsAccountIdList = (input, context) => {
3093
+ return input
3094
+ .filter((e) => e != null)
3095
+ .map((entry) => {
3096
+ if (entry === null) {
3097
+ return null;
3098
+ }
3099
+ return entry;
3100
+ });
3101
+ };
2488
3102
  const serializeAws_restJson1ListInsightsAnyStatusFilter = (input, context) => {
2489
3103
  return {
2490
3104
  ...(input.StartTimeRange !== undefined &&
@@ -2506,6 +3120,16 @@ const serializeAws_restJson1ListInsightsOngoingStatusFilter = (input, context) =
2506
3120
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2507
3121
  };
2508
3122
  };
3123
+ const serializeAws_restJson1ListInsightsOrganizationalUnitIdList = (input, context) => {
3124
+ return input
3125
+ .filter((e) => e != null)
3126
+ .map((entry) => {
3127
+ if (entry === null) {
3128
+ return null;
3129
+ }
3130
+ return entry;
3131
+ });
3132
+ };
2509
3133
  const serializeAws_restJson1ListInsightsStatusFilter = (input, context) => {
2510
3134
  return {
2511
3135
  ...(input.Any !== undefined &&
@@ -2529,14 +3153,36 @@ const serializeAws_restJson1OpsCenterIntegrationConfig = (input, context) => {
2529
3153
  ...(input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }),
2530
3154
  };
2531
3155
  };
3156
+ const serializeAws_restJson1OrganizationalUnitIdList = (input, context) => {
3157
+ return input
3158
+ .filter((e) => e != null)
3159
+ .map((entry) => {
3160
+ if (entry === null) {
3161
+ return null;
3162
+ }
3163
+ return entry;
3164
+ });
3165
+ };
2532
3166
  const serializeAws_restJson1ResourceCollection = (input, context) => {
2533
3167
  return {
2534
3168
  ...(input.CloudFormation !== undefined &&
2535
3169
  input.CloudFormation !== null && {
2536
3170
  CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
2537
3171
  }),
3172
+ ...(input.Tags !== undefined &&
3173
+ input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }),
2538
3174
  };
2539
3175
  };
3176
+ const serializeAws_restJson1SearchInsightsAccountIdList = (input, context) => {
3177
+ return input
3178
+ .filter((e) => e != null)
3179
+ .map((entry) => {
3180
+ if (entry === null) {
3181
+ return null;
3182
+ }
3183
+ return entry;
3184
+ });
3185
+ };
2540
3186
  const serializeAws_restJson1SearchInsightsFilters = (input, context) => {
2541
3187
  return {
2542
3188
  ...(input.ResourceCollection !== undefined &&
@@ -2553,6 +3199,22 @@ const serializeAws_restJson1SearchInsightsFilters = (input, context) => {
2553
3199
  input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
2554
3200
  };
2555
3201
  };
3202
+ const serializeAws_restJson1SearchOrganizationInsightsFilters = (input, context) => {
3203
+ return {
3204
+ ...(input.ResourceCollection !== undefined &&
3205
+ input.ResourceCollection !== null && {
3206
+ ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3207
+ }),
3208
+ ...(input.ServiceCollection !== undefined &&
3209
+ input.ServiceCollection !== null && {
3210
+ ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3211
+ }),
3212
+ ...(input.Severities !== undefined &&
3213
+ input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
3214
+ ...(input.Statuses !== undefined &&
3215
+ input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
3216
+ };
3217
+ };
2556
3218
  const serializeAws_restJson1ServiceCollection = (input, context) => {
2557
3219
  return {
2558
3220
  ...(input.ServiceNames !== undefined &&
@@ -2591,6 +3253,54 @@ const serializeAws_restJson1StartTimeRange = (input, context) => {
2591
3253
  ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2592
3254
  };
2593
3255
  };
3256
+ const serializeAws_restJson1TagCollection = (input, context) => {
3257
+ return {
3258
+ ...(input.AppBoundaryKey !== undefined &&
3259
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
3260
+ ...(input.TagValues !== undefined &&
3261
+ input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }),
3262
+ };
3263
+ };
3264
+ const serializeAws_restJson1TagCollections = (input, context) => {
3265
+ return input
3266
+ .filter((e) => e != null)
3267
+ .map((entry) => {
3268
+ if (entry === null) {
3269
+ return null;
3270
+ }
3271
+ return serializeAws_restJson1TagCollection(entry, context);
3272
+ });
3273
+ };
3274
+ const serializeAws_restJson1TagCostEstimationResourceCollectionFilter = (input, context) => {
3275
+ return {
3276
+ ...(input.AppBoundaryKey !== undefined &&
3277
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
3278
+ ...(input.TagValues !== undefined &&
3279
+ input.TagValues !== null && {
3280
+ TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
3281
+ }),
3282
+ };
3283
+ };
3284
+ const serializeAws_restJson1TagCostEstimationResourceCollectionFilters = (input, context) => {
3285
+ return input
3286
+ .filter((e) => e != null)
3287
+ .map((entry) => {
3288
+ if (entry === null) {
3289
+ return null;
3290
+ }
3291
+ return serializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
3292
+ });
3293
+ };
3294
+ const serializeAws_restJson1TagValues = (input, context) => {
3295
+ return input
3296
+ .filter((e) => e != null)
3297
+ .map((entry) => {
3298
+ if (entry === null) {
3299
+ return null;
3300
+ }
3301
+ return entry;
3302
+ });
3303
+ };
2594
3304
  const serializeAws_restJson1UpdateCloudFormationCollectionFilter = (input, context) => {
2595
3305
  return {
2596
3306
  ...(input.StackNames !== undefined &&
@@ -2603,6 +3313,8 @@ const serializeAws_restJson1UpdateResourceCollectionFilter = (input, context) =>
2603
3313
  input.CloudFormation !== null && {
2604
3314
  CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
2605
3315
  }),
3316
+ ...(input.Tags !== undefined &&
3317
+ input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }),
2606
3318
  };
2607
3319
  };
2608
3320
  const serializeAws_restJson1UpdateServiceIntegrationConfig = (input, context) => {
@@ -2613,16 +3325,68 @@ const serializeAws_restJson1UpdateServiceIntegrationConfig = (input, context) =>
2613
3325
  }),
2614
3326
  };
2615
3327
  };
2616
- const serializeAws_restJson1UpdateStackNames = (input, context) => {
2617
- return input
3328
+ const serializeAws_restJson1UpdateStackNames = (input, context) => {
3329
+ return input
3330
+ .filter((e) => e != null)
3331
+ .map((entry) => {
3332
+ if (entry === null) {
3333
+ return null;
3334
+ }
3335
+ return entry;
3336
+ });
3337
+ };
3338
+ const serializeAws_restJson1UpdateTagCollectionFilter = (input, context) => {
3339
+ return {
3340
+ ...(input.AppBoundaryKey !== undefined &&
3341
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
3342
+ ...(input.TagValues !== undefined &&
3343
+ input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }),
3344
+ };
3345
+ };
3346
+ const serializeAws_restJson1UpdateTagCollectionFilters = (input, context) => {
3347
+ return input
3348
+ .filter((e) => e != null)
3349
+ .map((entry) => {
3350
+ if (entry === null) {
3351
+ return null;
3352
+ }
3353
+ return serializeAws_restJson1UpdateTagCollectionFilter(entry, context);
3354
+ });
3355
+ };
3356
+ const serializeAws_restJson1UpdateTagValues = (input, context) => {
3357
+ return input
3358
+ .filter((e) => e != null)
3359
+ .map((entry) => {
3360
+ if (entry === null) {
3361
+ return null;
3362
+ }
3363
+ return entry;
3364
+ });
3365
+ };
3366
+ const deserializeAws_restJson1AccountHealth = (output, context) => {
3367
+ return {
3368
+ AccountId: smithy_client_1.expectString(output.AccountId),
3369
+ Insight: output.Insight !== undefined && output.Insight !== null
3370
+ ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
3371
+ : undefined,
3372
+ };
3373
+ };
3374
+ const deserializeAws_restJson1AccountHealths = (output, context) => {
3375
+ return (output || [])
2618
3376
  .filter((e) => e != null)
2619
3377
  .map((entry) => {
2620
3378
  if (entry === null) {
2621
3379
  return null;
2622
3380
  }
2623
- return entry;
3381
+ return deserializeAws_restJson1AccountHealth(entry, context);
2624
3382
  });
2625
3383
  };
3384
+ const deserializeAws_restJson1AccountInsightHealth = (output, context) => {
3385
+ return {
3386
+ OpenProactiveInsights: smithy_client_1.expectInt32(output.OpenProactiveInsights),
3387
+ OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
3388
+ };
3389
+ };
2626
3390
  const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
2627
3391
  return {
2628
3392
  CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
@@ -2633,11 +3397,30 @@ const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
2633
3397
  : undefined,
2634
3398
  };
2635
3399
  };
3400
+ const deserializeAws_restJson1AnomalyResource = (output, context) => {
3401
+ return {
3402
+ Name: smithy_client_1.expectString(output.Name),
3403
+ Type: smithy_client_1.expectString(output.Type),
3404
+ };
3405
+ };
3406
+ const deserializeAws_restJson1AnomalyResources = (output, context) => {
3407
+ return (output || [])
3408
+ .filter((e) => e != null)
3409
+ .map((entry) => {
3410
+ if (entry === null) {
3411
+ return null;
3412
+ }
3413
+ return deserializeAws_restJson1AnomalyResource(entry, context);
3414
+ });
3415
+ };
2636
3416
  const deserializeAws_restJson1AnomalySourceDetails = (output, context) => {
2637
3417
  return {
2638
3418
  CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
2639
3419
  ? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
2640
3420
  : undefined,
3421
+ PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
3422
+ ? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
3423
+ : undefined,
2641
3424
  };
2642
3425
  };
2643
3426
  const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
@@ -2650,6 +3433,16 @@ const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
2650
3433
  : undefined,
2651
3434
  };
2652
3435
  };
3436
+ const deserializeAws_restJson1AssociatedResourceArns = (output, context) => {
3437
+ return (output || [])
3438
+ .filter((e) => e != null)
3439
+ .map((entry) => {
3440
+ if (entry === null) {
3441
+ return null;
3442
+ }
3443
+ return smithy_client_1.expectString(entry);
3444
+ });
3445
+ };
2653
3446
  const deserializeAws_restJson1Channels = (output, context) => {
2654
3447
  return (output || [])
2655
3448
  .filter((e) => e != null)
@@ -2699,11 +3492,22 @@ const deserializeAws_restJson1CloudFormationHealths = (output, context) => {
2699
3492
  return deserializeAws_restJson1CloudFormationHealth(entry, context);
2700
3493
  });
2701
3494
  };
3495
+ const deserializeAws_restJson1CloudWatchMetricsDataSummary = (output, context) => {
3496
+ return {
3497
+ StatusCode: smithy_client_1.expectString(output.StatusCode),
3498
+ TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
3499
+ ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
3500
+ : undefined,
3501
+ };
3502
+ };
2702
3503
  const deserializeAws_restJson1CloudWatchMetricsDetail = (output, context) => {
2703
3504
  return {
2704
3505
  Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
2705
3506
  ? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
2706
3507
  : undefined,
3508
+ MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
3509
+ ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
3510
+ : undefined,
2707
3511
  MetricName: smithy_client_1.expectString(output.MetricName),
2708
3512
  Namespace: smithy_client_1.expectString(output.Namespace),
2709
3513
  Period: smithy_client_1.expectInt32(output.Period),
@@ -2742,6 +3546,9 @@ const deserializeAws_restJson1CostEstimationResourceCollectionFilter = (output,
2742
3546
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
2743
3547
  ? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
2744
3548
  : undefined,
3549
+ Tags: output.Tags !== undefined && output.Tags !== null
3550
+ ? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
3551
+ : undefined,
2745
3552
  };
2746
3553
  };
2747
3554
  const deserializeAws_restJson1CostEstimationStackNames = (output, context) => {
@@ -2754,6 +3561,16 @@ const deserializeAws_restJson1CostEstimationStackNames = (output, context) => {
2754
3561
  return smithy_client_1.expectString(entry);
2755
3562
  });
2756
3563
  };
3564
+ const deserializeAws_restJson1CostEstimationTagValues = (output, context) => {
3565
+ return (output || [])
3566
+ .filter((e) => e != null)
3567
+ .map((entry) => {
3568
+ if (entry === null) {
3569
+ return null;
3570
+ }
3571
+ return smithy_client_1.expectString(entry);
3572
+ });
3573
+ };
2757
3574
  const deserializeAws_restJson1CostEstimationTimeRange = (output, context) => {
2758
3575
  return {
2759
3576
  EndTime: output.EndTime !== undefined && output.EndTime !== null
@@ -2852,6 +3669,131 @@ const deserializeAws_restJson1OpsCenterIntegration = (output, context) => {
2852
3669
  OptInStatus: smithy_client_1.expectString(output.OptInStatus),
2853
3670
  };
2854
3671
  };
3672
+ const deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = (output, context) => {
3673
+ return {
3674
+ Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3675
+ ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
3676
+ : undefined,
3677
+ Group: smithy_client_1.expectString(output.Group),
3678
+ Limit: smithy_client_1.expectInt32(output.Limit),
3679
+ };
3680
+ };
3681
+ const deserializeAws_restJson1PerformanceInsightsMetricDimensions = (output, context) => {
3682
+ return (output || [])
3683
+ .filter((e) => e != null)
3684
+ .map((entry) => {
3685
+ if (entry === null) {
3686
+ return null;
3687
+ }
3688
+ return smithy_client_1.expectString(entry);
3689
+ });
3690
+ };
3691
+ const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = (output, context) => {
3692
+ return Object.entries(output).reduce((acc, [key, value]) => {
3693
+ if (value === null) {
3694
+ return acc;
3695
+ }
3696
+ return {
3697
+ ...acc,
3698
+ [key]: smithy_client_1.expectString(value),
3699
+ };
3700
+ }, {});
3701
+ };
3702
+ const deserializeAws_restJson1PerformanceInsightsMetricQuery = (output, context) => {
3703
+ return {
3704
+ Filter: output.Filter !== undefined && output.Filter !== null
3705
+ ? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
3706
+ : undefined,
3707
+ GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
3708
+ ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
3709
+ : undefined,
3710
+ Metric: smithy_client_1.expectString(output.Metric),
3711
+ };
3712
+ };
3713
+ const deserializeAws_restJson1PerformanceInsightsMetricsDetail = (output, context) => {
3714
+ return {
3715
+ MetricDisplayName: smithy_client_1.expectString(output.MetricDisplayName),
3716
+ MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3717
+ ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3718
+ : undefined,
3719
+ ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
3720
+ ? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
3721
+ : undefined,
3722
+ StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
3723
+ ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
3724
+ : undefined,
3725
+ StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
3726
+ ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
3727
+ : undefined,
3728
+ Unit: smithy_client_1.expectString(output.Unit),
3729
+ };
3730
+ };
3731
+ const deserializeAws_restJson1PerformanceInsightsMetricsDetails = (output, context) => {
3732
+ return (output || [])
3733
+ .filter((e) => e != null)
3734
+ .map((entry) => {
3735
+ if (entry === null) {
3736
+ return null;
3737
+ }
3738
+ return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context);
3739
+ });
3740
+ };
3741
+ const deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = (output, context) => {
3742
+ return {
3743
+ ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
3744
+ ? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
3745
+ : undefined,
3746
+ ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
3747
+ ? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
3748
+ : undefined,
3749
+ };
3750
+ };
3751
+ const deserializeAws_restJson1PerformanceInsightsReferenceData = (output, context) => {
3752
+ return {
3753
+ ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
3754
+ ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
3755
+ : undefined,
3756
+ Name: smithy_client_1.expectString(output.Name),
3757
+ };
3758
+ };
3759
+ const deserializeAws_restJson1PerformanceInsightsReferenceDataList = (output, context) => {
3760
+ return (output || [])
3761
+ .filter((e) => e != null)
3762
+ .map((entry) => {
3763
+ if (entry === null) {
3764
+ return null;
3765
+ }
3766
+ return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context);
3767
+ });
3768
+ };
3769
+ const deserializeAws_restJson1PerformanceInsightsReferenceMetric = (output, context) => {
3770
+ return {
3771
+ MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3772
+ ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3773
+ : undefined,
3774
+ };
3775
+ };
3776
+ const deserializeAws_restJson1PerformanceInsightsReferenceScalar = (output, context) => {
3777
+ return {
3778
+ Value: smithy_client_1.limitedParseDouble(output.Value),
3779
+ };
3780
+ };
3781
+ const deserializeAws_restJson1PerformanceInsightsStat = (output, context) => {
3782
+ return {
3783
+ Type: smithy_client_1.expectString(output.Type),
3784
+ Value: smithy_client_1.limitedParseDouble(output.Value),
3785
+ };
3786
+ };
3787
+ const deserializeAws_restJson1PerformanceInsightsStats = (output, context) => {
3788
+ return (output || [])
3789
+ .filter((e) => e != null)
3790
+ .map((entry) => {
3791
+ if (entry === null) {
3792
+ return null;
3793
+ }
3794
+ return deserializeAws_restJson1PerformanceInsightsStat(entry, context);
3795
+ });
3796
+ };
2855
3797
  const deserializeAws_restJson1PredictionTimeRange = (output, context) => {
2856
3798
  return {
2857
3799
  EndTime: output.EndTime !== undefined && output.EndTime !== null
@@ -2956,11 +3898,46 @@ const deserializeAws_restJson1ProactiveInsights = (output, context) => {
2956
3898
  };
2957
3899
  const deserializeAws_restJson1ProactiveInsightSummary = (output, context) => {
2958
3900
  return {
3901
+ AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3902
+ ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
3903
+ : undefined,
3904
+ Id: smithy_client_1.expectString(output.Id),
3905
+ InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3906
+ ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3907
+ : undefined,
3908
+ Name: smithy_client_1.expectString(output.Name),
3909
+ PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3910
+ ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3911
+ : undefined,
3912
+ ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3913
+ ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3914
+ : undefined,
3915
+ ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3916
+ ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3917
+ : undefined,
3918
+ Severity: smithy_client_1.expectString(output.Severity),
3919
+ Status: smithy_client_1.expectString(output.Status),
3920
+ };
3921
+ };
3922
+ const deserializeAws_restJson1ProactiveOrganizationInsights = (output, context) => {
3923
+ return (output || [])
3924
+ .filter((e) => e != null)
3925
+ .map((entry) => {
3926
+ if (entry === null) {
3927
+ return null;
3928
+ }
3929
+ return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
3930
+ });
3931
+ };
3932
+ const deserializeAws_restJson1ProactiveOrganizationInsightSummary = (output, context) => {
3933
+ return {
3934
+ AccountId: smithy_client_1.expectString(output.AccountId),
2959
3935
  Id: smithy_client_1.expectString(output.Id),
2960
3936
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
2961
3937
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
2962
3938
  : undefined,
2963
3939
  Name: smithy_client_1.expectString(output.Name),
3940
+ OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
2964
3941
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
2965
3942
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
2966
3943
  : undefined,
@@ -2989,11 +3966,17 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
2989
3966
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
2990
3967
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
2991
3968
  : undefined,
3969
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3970
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3971
+ : undefined,
2992
3972
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
2993
3973
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
2994
3974
  : undefined,
2995
3975
  AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
3976
+ CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
3977
+ Description: smithy_client_1.expectString(output.Description),
2996
3978
  Id: smithy_client_1.expectString(output.Id),
3979
+ Name: smithy_client_1.expectString(output.Name),
2997
3980
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
2998
3981
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
2999
3982
  : undefined,
@@ -3002,6 +3985,7 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
3002
3985
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3003
3986
  : undefined,
3004
3987
  Status: smithy_client_1.expectString(output.Status),
3988
+ Type: smithy_client_1.expectString(output.Type),
3005
3989
  };
3006
3990
  };
3007
3991
  const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
@@ -3009,11 +3993,17 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
3009
3993
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3010
3994
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3011
3995
  : undefined,
3996
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3997
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3998
+ : undefined,
3012
3999
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3013
4000
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3014
4001
  : undefined,
3015
4002
  AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
4003
+ CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
4004
+ Description: smithy_client_1.expectString(output.Description),
3016
4005
  Id: smithy_client_1.expectString(output.Id),
4006
+ Name: smithy_client_1.expectString(output.Name),
3017
4007
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3018
4008
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3019
4009
  : undefined,
@@ -3022,6 +4012,7 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
3022
4012
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3023
4013
  : undefined,
3024
4014
  Status: smithy_client_1.expectString(output.Status),
4015
+ Type: smithy_client_1.expectString(output.Type),
3025
4016
  };
3026
4017
  };
3027
4018
  const deserializeAws_restJson1ReactiveInsight = (output, context) => {
@@ -3051,11 +4042,43 @@ const deserializeAws_restJson1ReactiveInsights = (output, context) => {
3051
4042
  };
3052
4043
  const deserializeAws_restJson1ReactiveInsightSummary = (output, context) => {
3053
4044
  return {
4045
+ AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
4046
+ ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4047
+ : undefined,
4048
+ Id: smithy_client_1.expectString(output.Id),
4049
+ InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4050
+ ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4051
+ : undefined,
4052
+ Name: smithy_client_1.expectString(output.Name),
4053
+ ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4054
+ ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4055
+ : undefined,
4056
+ ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4057
+ ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4058
+ : undefined,
4059
+ Severity: smithy_client_1.expectString(output.Severity),
4060
+ Status: smithy_client_1.expectString(output.Status),
4061
+ };
4062
+ };
4063
+ const deserializeAws_restJson1ReactiveOrganizationInsights = (output, context) => {
4064
+ return (output || [])
4065
+ .filter((e) => e != null)
4066
+ .map((entry) => {
4067
+ if (entry === null) {
4068
+ return null;
4069
+ }
4070
+ return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
4071
+ });
4072
+ };
4073
+ const deserializeAws_restJson1ReactiveOrganizationInsightSummary = (output, context) => {
4074
+ return {
4075
+ AccountId: smithy_client_1.expectString(output.AccountId),
3054
4076
  Id: smithy_client_1.expectString(output.Id),
3055
4077
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3056
4078
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3057
4079
  : undefined,
3058
4080
  Name: smithy_client_1.expectString(output.Name),
4081
+ OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
3059
4082
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3060
4083
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3061
4084
  : undefined,
@@ -3092,6 +4115,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = (output, context)
3092
4115
  };
3093
4116
  const deserializeAws_restJson1RecommendationRelatedAnomaly = (output, context) => {
3094
4117
  return {
4118
+ AnomalyId: smithy_client_1.expectString(output.AnomalyId),
3095
4119
  Resources: output.Resources !== undefined && output.Resources !== null
3096
4120
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
3097
4121
  : undefined,
@@ -3198,6 +4222,9 @@ const deserializeAws_restJson1ResourceCollection = (output, context) => {
3198
4222
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3199
4223
  ? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
3200
4224
  : undefined,
4225
+ Tags: output.Tags !== undefined && output.Tags !== null
4226
+ ? deserializeAws_restJson1TagCollections(output.Tags, context)
4227
+ : undefined,
3201
4228
  };
3202
4229
  };
3203
4230
  const deserializeAws_restJson1ResourceCollectionFilter = (output, context) => {
@@ -3205,6 +4232,9 @@ const deserializeAws_restJson1ResourceCollectionFilter = (output, context) => {
3205
4232
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3206
4233
  ? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
3207
4234
  : undefined,
4235
+ Tags: output.Tags !== undefined && output.Tags !== null
4236
+ ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
4237
+ : undefined,
3208
4238
  };
3209
4239
  };
3210
4240
  const deserializeAws_restJson1ServiceCollection = (output, context) => {
@@ -3289,6 +4319,107 @@ const deserializeAws_restJson1StackNames = (output, context) => {
3289
4319
  return smithy_client_1.expectString(entry);
3290
4320
  });
3291
4321
  };
4322
+ const deserializeAws_restJson1TagCollection = (output, context) => {
4323
+ return {
4324
+ AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
4325
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4326
+ ? deserializeAws_restJson1TagValues(output.TagValues, context)
4327
+ : undefined,
4328
+ };
4329
+ };
4330
+ const deserializeAws_restJson1TagCollectionFilter = (output, context) => {
4331
+ return {
4332
+ AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
4333
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4334
+ ? deserializeAws_restJson1TagValues(output.TagValues, context)
4335
+ : undefined,
4336
+ };
4337
+ };
4338
+ const deserializeAws_restJson1TagCollectionFilters = (output, context) => {
4339
+ return (output || [])
4340
+ .filter((e) => e != null)
4341
+ .map((entry) => {
4342
+ if (entry === null) {
4343
+ return null;
4344
+ }
4345
+ return deserializeAws_restJson1TagCollectionFilter(entry, context);
4346
+ });
4347
+ };
4348
+ const deserializeAws_restJson1TagCollections = (output, context) => {
4349
+ return (output || [])
4350
+ .filter((e) => e != null)
4351
+ .map((entry) => {
4352
+ if (entry === null) {
4353
+ return null;
4354
+ }
4355
+ return deserializeAws_restJson1TagCollection(entry, context);
4356
+ });
4357
+ };
4358
+ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = (output, context) => {
4359
+ return {
4360
+ AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
4361
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4362
+ ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
4363
+ : undefined,
4364
+ };
4365
+ };
4366
+ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = (output, context) => {
4367
+ return (output || [])
4368
+ .filter((e) => e != null)
4369
+ .map((entry) => {
4370
+ if (entry === null) {
4371
+ return null;
4372
+ }
4373
+ return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
4374
+ });
4375
+ };
4376
+ const deserializeAws_restJson1TagHealth = (output, context) => {
4377
+ return {
4378
+ AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
4379
+ Insight: output.Insight !== undefined && output.Insight !== null
4380
+ ? deserializeAws_restJson1InsightHealth(output.Insight, context)
4381
+ : undefined,
4382
+ TagValue: smithy_client_1.expectString(output.TagValue),
4383
+ };
4384
+ };
4385
+ const deserializeAws_restJson1TagHealths = (output, context) => {
4386
+ return (output || [])
4387
+ .filter((e) => e != null)
4388
+ .map((entry) => {
4389
+ if (entry === null) {
4390
+ return null;
4391
+ }
4392
+ return deserializeAws_restJson1TagHealth(entry, context);
4393
+ });
4394
+ };
4395
+ const deserializeAws_restJson1TagValues = (output, context) => {
4396
+ return (output || [])
4397
+ .filter((e) => e != null)
4398
+ .map((entry) => {
4399
+ if (entry === null) {
4400
+ return null;
4401
+ }
4402
+ return smithy_client_1.expectString(entry);
4403
+ });
4404
+ };
4405
+ const deserializeAws_restJson1TimestampMetricValuePair = (output, context) => {
4406
+ return {
4407
+ MetricValue: smithy_client_1.limitedParseDouble(output.MetricValue),
4408
+ Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
4409
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
4410
+ : undefined,
4411
+ };
4412
+ };
4413
+ const deserializeAws_restJson1TimestampMetricValuePairList = (output, context) => {
4414
+ return (output || [])
4415
+ .filter((e) => e != null)
4416
+ .map((entry) => {
4417
+ if (entry === null) {
4418
+ return null;
4419
+ }
4420
+ return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
4421
+ });
4422
+ };
3292
4423
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
3293
4424
  return {
3294
4425
  Message: smithy_client_1.expectString(output.Message),