@aws-sdk/client-devops-guru 3.40.0 → 3.44.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 +8 -0
  11. package/dist-cjs/models/models_0.js +219 -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 +1335 -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 +8 -0
  25. package/dist-es/models/models_0.js +153 -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 +1280 -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 +5 -7
  34. package/dist-types/commands/DescribeAccountHealthCommand.d.ts +4 -5
  35. package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +4 -5
  36. package/dist-types/commands/DescribeAnomalyCommand.d.ts +2 -4
  37. package/dist-types/commands/DescribeFeedbackCommand.d.ts +2 -3
  38. package/dist-types/commands/DescribeInsightCommand.d.ts +2 -4
  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 +6 -6
  43. package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +3 -5
  44. package/dist-types/commands/GetCostEstimationCommand.d.ts +2 -2
  45. package/dist-types/commands/GetResourceCollectionCommand.d.ts +5 -5
  46. package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +3 -4
  47. package/dist-types/commands/ListEventsCommand.d.ts +3 -4
  48. package/dist-types/commands/ListInsightsCommand.d.ts +4 -5
  49. package/dist-types/commands/ListNotificationChannelsCommand.d.ts +5 -6
  50. package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +35 -0
  51. package/dist-types/commands/ListRecommendationsCommand.d.ts +3 -4
  52. package/dist-types/commands/PutFeedbackCommand.d.ts +2 -4
  53. package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +4 -5
  54. package/dist-types/commands/SearchInsightsCommand.d.ts +9 -10
  55. package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +42 -0
  56. package/dist-types/commands/StartCostEstimationCommand.d.ts +3 -2
  57. package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +5 -4
  58. package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +4 -5
  59. package/dist-types/commands/index.d.ts +5 -0
  60. package/dist-types/models/models_0.d.ts +2040 -885
  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 +486 -6
  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 +4 -4
@@ -1,4 +1,4 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
1
+ import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -77,7 +77,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
77
77
  });
78
78
  }); };
79
79
  export var serializeAws_restJson1DescribeAnomalyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
80
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
80
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
81
81
  return __generator(this, function (_c) {
82
82
  switch (_c.label) {
83
83
  case 0: return [4, context.endpoint()];
@@ -95,6 +95,7 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
95
95
  else {
96
96
  throw new Error("No value provided for input HTTP label: Id.");
97
97
  }
98
+ query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
98
99
  return [2, new __HttpRequest({
99
100
  protocol: protocol,
100
101
  hostname: hostname,
@@ -102,6 +103,7 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
102
103
  method: "GET",
103
104
  headers: headers,
104
105
  path: resolvedPath,
106
+ query: query,
105
107
  body: body,
106
108
  })];
107
109
  }
@@ -132,7 +134,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
132
134
  });
133
135
  }); };
134
136
  export var serializeAws_restJson1DescribeInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
135
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
137
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
136
138
  return __generator(this, function (_c) {
137
139
  switch (_c.label) {
138
140
  case 0: return [4, context.endpoint()];
@@ -150,6 +152,7 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
150
152
  else {
151
153
  throw new Error("No value provided for input HTTP label: Id.");
152
154
  }
155
+ query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
153
156
  return [2, new __HttpRequest({
154
157
  protocol: protocol,
155
158
  hostname: hostname,
@@ -157,6 +160,95 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
157
160
  method: "GET",
158
161
  headers: headers,
159
162
  path: resolvedPath,
163
+ query: query,
164
+ body: body,
165
+ })];
166
+ }
167
+ });
168
+ }); };
169
+ export var serializeAws_restJson1DescribeOrganizationHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
170
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
171
+ return __generator(this, function (_c) {
172
+ switch (_c.label) {
173
+ case 0: return [4, context.endpoint()];
174
+ case 1:
175
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
176
+ headers = {
177
+ "content-type": "application/json",
178
+ };
179
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health";
180
+ body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
181
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds !== undefined &&
182
+ input.OrganizationalUnitIds !== null && {
183
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
184
+ })));
185
+ return [2, new __HttpRequest({
186
+ protocol: protocol,
187
+ hostname: hostname,
188
+ port: port,
189
+ method: "POST",
190
+ headers: headers,
191
+ path: resolvedPath,
192
+ body: body,
193
+ })];
194
+ }
195
+ });
196
+ }); };
197
+ export var serializeAws_restJson1DescribeOrganizationOverviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
198
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
199
+ return __generator(this, function (_c) {
200
+ switch (_c.label) {
201
+ case 0: return [4, context.endpoint()];
202
+ case 1:
203
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
204
+ headers = {
205
+ "content-type": "application/json",
206
+ };
207
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/overview";
208
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
209
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime !== undefined &&
210
+ input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds !== undefined &&
211
+ input.OrganizationalUnitIds !== null && {
212
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
213
+ })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
214
+ return [2, new __HttpRequest({
215
+ protocol: protocol,
216
+ hostname: hostname,
217
+ port: port,
218
+ method: "POST",
219
+ headers: headers,
220
+ path: resolvedPath,
221
+ body: body,
222
+ })];
223
+ }
224
+ });
225
+ }); };
226
+ export var serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
227
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
228
+ return __generator(this, function (_c) {
229
+ switch (_c.label) {
230
+ case 0: return [4, context.endpoint()];
231
+ case 1:
232
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
233
+ headers = {
234
+ "content-type": "application/json",
235
+ };
236
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health/resource-collection";
237
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
238
+ input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType !== undefined &&
239
+ input.OrganizationResourceCollectionType !== null && {
240
+ OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
241
+ })), (input.OrganizationalUnitIds !== undefined &&
242
+ input.OrganizationalUnitIds !== null && {
243
+ OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
244
+ })));
245
+ return [2, new __HttpRequest({
246
+ protocol: protocol,
247
+ hostname: hostname,
248
+ port: port,
249
+ method: "POST",
250
+ headers: headers,
251
+ path: resolvedPath,
160
252
  body: body,
161
253
  })];
162
254
  }
@@ -298,7 +390,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
298
390
  else {
299
391
  throw new Error("No value provided for input HTTP label: InsightId.");
300
392
  }
301
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
393
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
302
394
  input.StartTimeRange !== null && {
303
395
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
304
396
  })));
@@ -325,7 +417,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
325
417
  "content-type": "application/json",
326
418
  };
327
419
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
328
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
420
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Filters !== undefined &&
329
421
  input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
330
422
  return [2, new __HttpRequest({
331
423
  protocol: protocol,
@@ -390,6 +482,39 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
390
482
  }
391
483
  });
392
484
  }); };
485
+ export var serializeAws_restJson1ListOrganizationInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
486
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
487
+ return __generator(this, function (_c) {
488
+ switch (_c.label) {
489
+ case 0: return [4, context.endpoint()];
490
+ case 1:
491
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
492
+ headers = {
493
+ "content-type": "application/json",
494
+ };
495
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights";
496
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
497
+ input.AccountIds !== null && {
498
+ AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
499
+ })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds !== undefined &&
500
+ input.OrganizationalUnitIds !== null && {
501
+ OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
502
+ })), (input.StatusFilter !== undefined &&
503
+ input.StatusFilter !== null && {
504
+ StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
505
+ })));
506
+ return [2, new __HttpRequest({
507
+ protocol: protocol,
508
+ hostname: hostname,
509
+ port: port,
510
+ method: "POST",
511
+ headers: headers,
512
+ path: resolvedPath,
513
+ body: body,
514
+ })];
515
+ }
516
+ });
517
+ }); };
393
518
  export var serializeAws_restJson1ListRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
394
519
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
395
520
  return __generator(this, function (_c) {
@@ -401,7 +526,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
401
526
  "content-type": "application/json",
402
527
  };
403
528
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recommendations";
404
- body = JSON.stringify(__assign(__assign(__assign({}, (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
529
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
405
530
  return [2, new __HttpRequest({
406
531
  protocol: protocol,
407
532
  hostname: hostname,
@@ -500,6 +625,39 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
500
625
  }
501
626
  });
502
627
  }); };
628
+ export var serializeAws_restJson1SearchOrganizationInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
629
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
630
+ return __generator(this, function (_c) {
631
+ switch (_c.label) {
632
+ case 0: return [4, context.endpoint()];
633
+ case 1:
634
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
635
+ headers = {
636
+ "content-type": "application/json",
637
+ };
638
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights/search";
639
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
640
+ input.AccountIds !== null && {
641
+ AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
642
+ })), (input.Filters !== undefined &&
643
+ input.Filters !== null && {
644
+ Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
645
+ })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
646
+ input.StartTimeRange !== null && {
647
+ StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
648
+ })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
649
+ return [2, new __HttpRequest({
650
+ protocol: protocol,
651
+ hostname: hostname,
652
+ port: port,
653
+ method: "POST",
654
+ headers: headers,
655
+ path: resolvedPath,
656
+ body: body,
657
+ })];
658
+ }
659
+ });
660
+ }); };
503
661
  export var serializeAws_restJson1StartCostEstimationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
504
662
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
505
663
  var _c;
@@ -1174,39 +1332,43 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1174
1332
  }
1175
1333
  });
1176
1334
  }); };
1177
- export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1335
+ export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1178
1336
  var contents, data, _a, _b;
1179
1337
  return __generator(this, function (_c) {
1180
1338
  switch (_c.label) {
1181
1339
  case 0:
1182
1340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1183
- return [2, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
1341
+ return [2, deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context)];
1184
1342
  }
1185
1343
  contents = {
1186
1344
  $metadata: deserializeMetadata(output),
1187
- CloudFormation: undefined,
1188
- NextToken: undefined,
1189
- Service: undefined,
1345
+ MetricsAnalyzed: undefined,
1346
+ OpenProactiveInsights: undefined,
1347
+ OpenReactiveInsights: undefined,
1348
+ ResourceHours: undefined,
1190
1349
  };
1191
1350
  _a = __expectNonNull;
1192
1351
  _b = __expectObject;
1193
1352
  return [4, parseBody(output.body, context)];
1194
1353
  case 1:
1195
1354
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1196
- if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1197
- contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1355
+ if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
1356
+ contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed);
1198
1357
  }
1199
- if (data.NextToken !== undefined && data.NextToken !== null) {
1200
- contents.NextToken = __expectString(data.NextToken);
1358
+ if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
1359
+ contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights);
1201
1360
  }
1202
- if (data.Service !== undefined && data.Service !== null) {
1203
- contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1361
+ if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
1362
+ contents.OpenReactiveInsights = __expectInt32(data.OpenReactiveInsights);
1363
+ }
1364
+ if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
1365
+ contents.ResourceHours = __expectLong(data.ResourceHours);
1204
1366
  }
1205
1367
  return [2, Promise.resolve(contents)];
1206
1368
  }
1207
1369
  });
1208
1370
  }); };
1209
- var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1371
+ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1210
1372
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1211
1373
  var _g;
1212
1374
  return __generator(this, function (_h) {
@@ -1268,31 +1430,35 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1268
1430
  }
1269
1431
  });
1270
1432
  }); };
1271
- export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1433
+ export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1272
1434
  var contents, data, _a, _b;
1273
1435
  return __generator(this, function (_c) {
1274
1436
  switch (_c.label) {
1275
1437
  case 0:
1276
1438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
- return [2, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
1439
+ return [2, deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context)];
1278
1440
  }
1279
1441
  contents = {
1280
1442
  $metadata: deserializeMetadata(output),
1281
- ServiceIntegration: undefined,
1443
+ ProactiveInsights: undefined,
1444
+ ReactiveInsights: undefined,
1282
1445
  };
1283
1446
  _a = __expectNonNull;
1284
1447
  _b = __expectObject;
1285
1448
  return [4, parseBody(output.body, context)];
1286
1449
  case 1:
1287
1450
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1288
- if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1289
- contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1451
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1452
+ contents.ProactiveInsights = __expectInt32(data.ProactiveInsights);
1453
+ }
1454
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1455
+ contents.ReactiveInsights = __expectInt32(data.ReactiveInsights);
1290
1456
  }
1291
1457
  return [2, Promise.resolve(contents)];
1292
1458
  }
1293
1459
  });
1294
1460
  }); };
1295
- var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1461
+ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1296
1462
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1297
1463
  var _g;
1298
1464
  return __generator(this, function (_h) {
@@ -1354,61 +1520,53 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1354
1520
  }
1355
1521
  });
1356
1522
  }); };
1357
- export var deserializeAws_restJson1GetCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1523
+ export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1358
1524
  var contents, data, _a, _b;
1359
1525
  return __generator(this, function (_c) {
1360
1526
  switch (_c.label) {
1361
1527
  case 0:
1362
1528
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
- return [2, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
1529
+ return [2, deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context)];
1364
1530
  }
1365
1531
  contents = {
1366
1532
  $metadata: deserializeMetadata(output),
1367
- Costs: undefined,
1533
+ Account: undefined,
1534
+ CloudFormation: undefined,
1368
1535
  NextToken: undefined,
1369
- ResourceCollection: undefined,
1370
- Status: undefined,
1371
- TimeRange: undefined,
1372
- TotalCost: undefined,
1536
+ Service: undefined,
1373
1537
  };
1374
1538
  _a = __expectNonNull;
1375
1539
  _b = __expectObject;
1376
1540
  return [4, parseBody(output.body, context)];
1377
1541
  case 1:
1378
1542
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1379
- if (data.Costs !== undefined && data.Costs !== null) {
1380
- contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
1543
+ if (data.Account !== undefined && data.Account !== null) {
1544
+ contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
1545
+ }
1546
+ if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1547
+ contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1381
1548
  }
1382
1549
  if (data.NextToken !== undefined && data.NextToken !== null) {
1383
1550
  contents.NextToken = __expectString(data.NextToken);
1384
1551
  }
1385
- if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1386
- contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
1387
- }
1388
- if (data.Status !== undefined && data.Status !== null) {
1389
- contents.Status = __expectString(data.Status);
1390
- }
1391
- if (data.TimeRange !== undefined && data.TimeRange !== null) {
1392
- contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
1393
- }
1394
- if (data.TotalCost !== undefined && data.TotalCost !== null) {
1395
- contents.TotalCost = __limitedParseDouble(data.TotalCost);
1552
+ if (data.Service !== undefined && data.Service !== null) {
1553
+ contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1396
1554
  }
1397
1555
  return [2, Promise.resolve(contents)];
1398
1556
  }
1399
1557
  });
1400
1558
  }); };
1401
- var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1402
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1403
- var _h;
1404
- return __generator(this, function (_j) {
1405
- switch (_j.label) {
1559
+ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1560
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1561
+ var _g;
1562
+ return __generator(this, function (_h) {
1563
+ switch (_h.label) {
1406
1564
  case 0:
1407
1565
  _a = [__assign({}, output)];
1408
- _h = {};
1566
+ _g = {};
1409
1567
  return [4, parseBody(output.body, context)];
1410
1568
  case 1:
1411
- parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1569
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1412
1570
  errorCode = "UnknownError";
1413
1571
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
1572
  _b = errorCode;
@@ -1417,50 +1575,42 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1417
1575
  case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1418
1576
  case "InternalServerException": return [3, 4];
1419
1577
  case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1420
- case "ResourceNotFoundException": return [3, 6];
1421
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1422
- case "ThrottlingException": return [3, 8];
1423
- case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1424
- case "ValidationException": return [3, 10];
1425
- case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1578
+ case "ThrottlingException": return [3, 6];
1579
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1580
+ case "ValidationException": return [3, 8];
1581
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1426
1582
  }
1427
- return [3, 12];
1583
+ return [3, 10];
1428
1584
  case 2:
1429
1585
  _c = [{}];
1430
1586
  return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1431
1587
  case 3:
1432
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1433
- return [3, 13];
1588
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1589
+ return [3, 11];
1434
1590
  case 4:
1435
1591
  _d = [{}];
1436
1592
  return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1437
1593
  case 5:
1438
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1439
- return [3, 13];
1594
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1595
+ return [3, 11];
1440
1596
  case 6:
1441
1597
  _e = [{}];
1442
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1598
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1443
1599
  case 7:
1444
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1445
- return [3, 13];
1600
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1601
+ return [3, 11];
1446
1602
  case 8:
1447
1603
  _f = [{}];
1448
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1604
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1449
1605
  case 9:
1450
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1451
- return [3, 13];
1606
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1607
+ return [3, 11];
1452
1608
  case 10:
1453
- _g = [{}];
1454
- return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1455
- case 11:
1456
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1457
- return [3, 13];
1458
- case 12:
1459
1609
  parsedBody = parsedOutput.body;
1460
1610
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
1461
1611
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1462
- _j.label = 13;
1463
- case 13:
1612
+ _h.label = 11;
1613
+ case 11:
1464
1614
  message = response.message || response.Message || errorCode;
1465
1615
  response.message = message;
1466
1616
  delete response.Message;
@@ -1468,36 +1618,334 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1468
1618
  }
1469
1619
  });
1470
1620
  }); };
1471
- export var deserializeAws_restJson1GetResourceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1621
+ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1472
1622
  var contents, data, _a, _b;
1473
1623
  return __generator(this, function (_c) {
1474
1624
  switch (_c.label) {
1475
1625
  case 0:
1476
1626
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1477
- return [2, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
1627
+ return [2, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
1478
1628
  }
1479
1629
  contents = {
1480
1630
  $metadata: deserializeMetadata(output),
1631
+ CloudFormation: undefined,
1481
1632
  NextToken: undefined,
1482
- ResourceCollection: undefined,
1633
+ Service: undefined,
1634
+ Tags: undefined,
1483
1635
  };
1484
1636
  _a = __expectNonNull;
1485
1637
  _b = __expectObject;
1486
1638
  return [4, parseBody(output.body, context)];
1487
1639
  case 1:
1488
1640
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1641
+ if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1642
+ contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1643
+ }
1489
1644
  if (data.NextToken !== undefined && data.NextToken !== null) {
1490
1645
  contents.NextToken = __expectString(data.NextToken);
1491
1646
  }
1492
- if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1493
- contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
1647
+ if (data.Service !== undefined && data.Service !== null) {
1648
+ contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1649
+ }
1650
+ if (data.Tags !== undefined && data.Tags !== null) {
1651
+ contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
1494
1652
  }
1495
1653
  return [2, Promise.resolve(contents)];
1496
1654
  }
1497
1655
  });
1498
1656
  }); };
1499
- var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1500
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1657
+ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1658
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1659
+ var _g;
1660
+ return __generator(this, function (_h) {
1661
+ switch (_h.label) {
1662
+ case 0:
1663
+ _a = [__assign({}, output)];
1664
+ _g = {};
1665
+ return [4, parseBody(output.body, context)];
1666
+ case 1:
1667
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1668
+ errorCode = "UnknownError";
1669
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1670
+ _b = errorCode;
1671
+ switch (_b) {
1672
+ case "AccessDeniedException": return [3, 2];
1673
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1674
+ case "InternalServerException": return [3, 4];
1675
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1676
+ case "ThrottlingException": return [3, 6];
1677
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1678
+ case "ValidationException": return [3, 8];
1679
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1680
+ }
1681
+ return [3, 10];
1682
+ case 2:
1683
+ _c = [{}];
1684
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1685
+ case 3:
1686
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1687
+ return [3, 11];
1688
+ case 4:
1689
+ _d = [{}];
1690
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1691
+ case 5:
1692
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1693
+ return [3, 11];
1694
+ case 6:
1695
+ _e = [{}];
1696
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1697
+ case 7:
1698
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1699
+ return [3, 11];
1700
+ case 8:
1701
+ _f = [{}];
1702
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1703
+ case 9:
1704
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1705
+ return [3, 11];
1706
+ case 10:
1707
+ parsedBody = parsedOutput.body;
1708
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1709
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1710
+ _h.label = 11;
1711
+ case 11:
1712
+ message = response.message || response.Message || errorCode;
1713
+ response.message = message;
1714
+ delete response.Message;
1715
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1716
+ }
1717
+ });
1718
+ }); };
1719
+ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1720
+ var contents, data, _a, _b;
1721
+ return __generator(this, function (_c) {
1722
+ switch (_c.label) {
1723
+ case 0:
1724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1725
+ return [2, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
1726
+ }
1727
+ contents = {
1728
+ $metadata: deserializeMetadata(output),
1729
+ ServiceIntegration: undefined,
1730
+ };
1731
+ _a = __expectNonNull;
1732
+ _b = __expectObject;
1733
+ return [4, parseBody(output.body, context)];
1734
+ case 1:
1735
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1736
+ if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1737
+ contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1738
+ }
1739
+ return [2, Promise.resolve(contents)];
1740
+ }
1741
+ });
1742
+ }); };
1743
+ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1744
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1745
+ var _g;
1746
+ return __generator(this, function (_h) {
1747
+ switch (_h.label) {
1748
+ case 0:
1749
+ _a = [__assign({}, output)];
1750
+ _g = {};
1751
+ return [4, parseBody(output.body, context)];
1752
+ case 1:
1753
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1754
+ errorCode = "UnknownError";
1755
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1756
+ _b = errorCode;
1757
+ switch (_b) {
1758
+ case "AccessDeniedException": return [3, 2];
1759
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1760
+ case "InternalServerException": return [3, 4];
1761
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1762
+ case "ThrottlingException": return [3, 6];
1763
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1764
+ case "ValidationException": return [3, 8];
1765
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1766
+ }
1767
+ return [3, 10];
1768
+ case 2:
1769
+ _c = [{}];
1770
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1771
+ case 3:
1772
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1773
+ return [3, 11];
1774
+ case 4:
1775
+ _d = [{}];
1776
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1777
+ case 5:
1778
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1779
+ return [3, 11];
1780
+ case 6:
1781
+ _e = [{}];
1782
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1783
+ case 7:
1784
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1785
+ return [3, 11];
1786
+ case 8:
1787
+ _f = [{}];
1788
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1789
+ case 9:
1790
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1791
+ return [3, 11];
1792
+ case 10:
1793
+ parsedBody = parsedOutput.body;
1794
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1795
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1796
+ _h.label = 11;
1797
+ case 11:
1798
+ message = response.message || response.Message || errorCode;
1799
+ response.message = message;
1800
+ delete response.Message;
1801
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1802
+ }
1803
+ });
1804
+ }); };
1805
+ export var deserializeAws_restJson1GetCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1806
+ var contents, data, _a, _b;
1807
+ return __generator(this, function (_c) {
1808
+ switch (_c.label) {
1809
+ case 0:
1810
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1811
+ return [2, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
1812
+ }
1813
+ contents = {
1814
+ $metadata: deserializeMetadata(output),
1815
+ Costs: undefined,
1816
+ NextToken: undefined,
1817
+ ResourceCollection: undefined,
1818
+ Status: undefined,
1819
+ TimeRange: undefined,
1820
+ TotalCost: undefined,
1821
+ };
1822
+ _a = __expectNonNull;
1823
+ _b = __expectObject;
1824
+ return [4, parseBody(output.body, context)];
1825
+ case 1:
1826
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1827
+ if (data.Costs !== undefined && data.Costs !== null) {
1828
+ contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
1829
+ }
1830
+ if (data.NextToken !== undefined && data.NextToken !== null) {
1831
+ contents.NextToken = __expectString(data.NextToken);
1832
+ }
1833
+ if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1834
+ contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
1835
+ }
1836
+ if (data.Status !== undefined && data.Status !== null) {
1837
+ contents.Status = __expectString(data.Status);
1838
+ }
1839
+ if (data.TimeRange !== undefined && data.TimeRange !== null) {
1840
+ contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
1841
+ }
1842
+ if (data.TotalCost !== undefined && data.TotalCost !== null) {
1843
+ contents.TotalCost = __limitedParseDouble(data.TotalCost);
1844
+ }
1845
+ return [2, Promise.resolve(contents)];
1846
+ }
1847
+ });
1848
+ }); };
1849
+ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1850
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1851
+ var _h;
1852
+ return __generator(this, function (_j) {
1853
+ switch (_j.label) {
1854
+ case 0:
1855
+ _a = [__assign({}, output)];
1856
+ _h = {};
1857
+ return [4, parseBody(output.body, context)];
1858
+ case 1:
1859
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1860
+ errorCode = "UnknownError";
1861
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1862
+ _b = errorCode;
1863
+ switch (_b) {
1864
+ case "AccessDeniedException": return [3, 2];
1865
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1866
+ case "InternalServerException": return [3, 4];
1867
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1868
+ case "ResourceNotFoundException": return [3, 6];
1869
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1870
+ case "ThrottlingException": return [3, 8];
1871
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1872
+ case "ValidationException": return [3, 10];
1873
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1874
+ }
1875
+ return [3, 12];
1876
+ case 2:
1877
+ _c = [{}];
1878
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1879
+ case 3:
1880
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1881
+ return [3, 13];
1882
+ case 4:
1883
+ _d = [{}];
1884
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1885
+ case 5:
1886
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1887
+ return [3, 13];
1888
+ case 6:
1889
+ _e = [{}];
1890
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1891
+ case 7:
1892
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1893
+ return [3, 13];
1894
+ case 8:
1895
+ _f = [{}];
1896
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1897
+ case 9:
1898
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1899
+ return [3, 13];
1900
+ case 10:
1901
+ _g = [{}];
1902
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1903
+ case 11:
1904
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1905
+ return [3, 13];
1906
+ case 12:
1907
+ parsedBody = parsedOutput.body;
1908
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1909
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1910
+ _j.label = 13;
1911
+ case 13:
1912
+ message = response.message || response.Message || errorCode;
1913
+ response.message = message;
1914
+ delete response.Message;
1915
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1916
+ }
1917
+ });
1918
+ }); };
1919
+ export var deserializeAws_restJson1GetResourceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1920
+ var contents, data, _a, _b;
1921
+ return __generator(this, function (_c) {
1922
+ switch (_c.label) {
1923
+ case 0:
1924
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1925
+ return [2, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
1926
+ }
1927
+ contents = {
1928
+ $metadata: deserializeMetadata(output),
1929
+ NextToken: undefined,
1930
+ ResourceCollection: undefined,
1931
+ };
1932
+ _a = __expectNonNull;
1933
+ _b = __expectObject;
1934
+ return [4, parseBody(output.body, context)];
1935
+ case 1:
1936
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1937
+ if (data.NextToken !== undefined && data.NextToken !== null) {
1938
+ contents.NextToken = __expectString(data.NextToken);
1939
+ }
1940
+ if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1941
+ contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
1942
+ }
1943
+ return [2, Promise.resolve(contents)];
1944
+ }
1945
+ });
1946
+ }); };
1947
+ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1948
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1501
1949
  var _h;
1502
1950
  return __generator(this, function (_j) {
1503
1951
  switch (_j.label) {
@@ -1757,8 +2205,102 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
1757
2205
  parsedBody = parsedOutput.body;
1758
2206
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
1759
2207
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1760
- _j.label = 13;
1761
- case 13:
2208
+ _j.label = 13;
2209
+ case 13:
2210
+ message = response.message || response.Message || errorCode;
2211
+ response.message = message;
2212
+ delete response.Message;
2213
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2214
+ }
2215
+ });
2216
+ }); };
2217
+ export var deserializeAws_restJson1ListInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2218
+ var contents, data, _a, _b;
2219
+ return __generator(this, function (_c) {
2220
+ switch (_c.label) {
2221
+ case 0:
2222
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2223
+ return [2, deserializeAws_restJson1ListInsightsCommandError(output, context)];
2224
+ }
2225
+ contents = {
2226
+ $metadata: deserializeMetadata(output),
2227
+ NextToken: undefined,
2228
+ ProactiveInsights: undefined,
2229
+ ReactiveInsights: undefined,
2230
+ };
2231
+ _a = __expectNonNull;
2232
+ _b = __expectObject;
2233
+ return [4, parseBody(output.body, context)];
2234
+ case 1:
2235
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2236
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2237
+ contents.NextToken = __expectString(data.NextToken);
2238
+ }
2239
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
2240
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
2241
+ }
2242
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2243
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2244
+ }
2245
+ return [2, Promise.resolve(contents)];
2246
+ }
2247
+ });
2248
+ }); };
2249
+ var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2250
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2251
+ var _g;
2252
+ return __generator(this, function (_h) {
2253
+ switch (_h.label) {
2254
+ case 0:
2255
+ _a = [__assign({}, output)];
2256
+ _g = {};
2257
+ return [4, parseBody(output.body, context)];
2258
+ case 1:
2259
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2260
+ errorCode = "UnknownError";
2261
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2262
+ _b = errorCode;
2263
+ switch (_b) {
2264
+ case "AccessDeniedException": return [3, 2];
2265
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2266
+ case "InternalServerException": return [3, 4];
2267
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
2268
+ case "ThrottlingException": return [3, 6];
2269
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
2270
+ case "ValidationException": return [3, 8];
2271
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
2272
+ }
2273
+ return [3, 10];
2274
+ case 2:
2275
+ _c = [{}];
2276
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2277
+ case 3:
2278
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2279
+ return [3, 11];
2280
+ case 4:
2281
+ _d = [{}];
2282
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2283
+ case 5:
2284
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2285
+ return [3, 11];
2286
+ case 6:
2287
+ _e = [{}];
2288
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2289
+ case 7:
2290
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2291
+ return [3, 11];
2292
+ case 8:
2293
+ _f = [{}];
2294
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2295
+ case 9:
2296
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2297
+ return [3, 11];
2298
+ case 10:
2299
+ parsedBody = parsedOutput.body;
2300
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2301
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2302
+ _h.label = 11;
2303
+ case 11:
1762
2304
  message = response.message || response.Message || errorCode;
1763
2305
  response.message = message;
1764
2306
  delete response.Message;
@@ -1766,39 +2308,35 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
1766
2308
  }
1767
2309
  });
1768
2310
  }); };
1769
- export var deserializeAws_restJson1ListInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2311
+ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1770
2312
  var contents, data, _a, _b;
1771
2313
  return __generator(this, function (_c) {
1772
2314
  switch (_c.label) {
1773
2315
  case 0:
1774
2316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1775
- return [2, deserializeAws_restJson1ListInsightsCommandError(output, context)];
2317
+ return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
1776
2318
  }
1777
2319
  contents = {
1778
2320
  $metadata: deserializeMetadata(output),
2321
+ Channels: undefined,
1779
2322
  NextToken: undefined,
1780
- ProactiveInsights: undefined,
1781
- ReactiveInsights: undefined,
1782
2323
  };
1783
2324
  _a = __expectNonNull;
1784
2325
  _b = __expectObject;
1785
2326
  return [4, parseBody(output.body, context)];
1786
2327
  case 1:
1787
2328
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2329
+ if (data.Channels !== undefined && data.Channels !== null) {
2330
+ contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
2331
+ }
1788
2332
  if (data.NextToken !== undefined && data.NextToken !== null) {
1789
2333
  contents.NextToken = __expectString(data.NextToken);
1790
2334
  }
1791
- if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1792
- contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
1793
- }
1794
- if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1795
- contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
1796
- }
1797
2335
  return [2, Promise.resolve(contents)];
1798
2336
  }
1799
2337
  });
1800
2338
  }); };
1801
- var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2339
+ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1802
2340
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1803
2341
  var _g;
1804
2342
  return __generator(this, function (_h) {
@@ -1860,35 +2398,39 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
1860
2398
  }
1861
2399
  });
1862
2400
  }); };
1863
- export var deserializeAws_restJson1ListNotificationChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2401
+ export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1864
2402
  var contents, data, _a, _b;
1865
2403
  return __generator(this, function (_c) {
1866
2404
  switch (_c.label) {
1867
2405
  case 0:
1868
2406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1869
- return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
2407
+ return [2, deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context)];
1870
2408
  }
1871
2409
  contents = {
1872
2410
  $metadata: deserializeMetadata(output),
1873
- Channels: undefined,
1874
2411
  NextToken: undefined,
2412
+ ProactiveInsights: undefined,
2413
+ ReactiveInsights: undefined,
1875
2414
  };
1876
2415
  _a = __expectNonNull;
1877
2416
  _b = __expectObject;
1878
2417
  return [4, parseBody(output.body, context)];
1879
2418
  case 1:
1880
2419
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1881
- if (data.Channels !== undefined && data.Channels !== null) {
1882
- contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
1883
- }
1884
2420
  if (data.NextToken !== undefined && data.NextToken !== null) {
1885
2421
  contents.NextToken = __expectString(data.NextToken);
1886
2422
  }
2423
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
2424
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
2425
+ }
2426
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2427
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
2428
+ }
1887
2429
  return [2, Promise.resolve(contents)];
1888
2430
  }
1889
2431
  });
1890
2432
  }); };
1891
- var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2433
+ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1892
2434
  var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1893
2435
  var _g;
1894
2436
  return __generator(this, function (_h) {
@@ -2334,6 +2876,100 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2334
2876
  }
2335
2877
  });
2336
2878
  }); };
2879
+ export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2880
+ var contents, data, _a, _b;
2881
+ return __generator(this, function (_c) {
2882
+ switch (_c.label) {
2883
+ case 0:
2884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2885
+ return [2, deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context)];
2886
+ }
2887
+ contents = {
2888
+ $metadata: deserializeMetadata(output),
2889
+ NextToken: undefined,
2890
+ ProactiveInsights: undefined,
2891
+ ReactiveInsights: undefined,
2892
+ };
2893
+ _a = __expectNonNull;
2894
+ _b = __expectObject;
2895
+ return [4, parseBody(output.body, context)];
2896
+ case 1:
2897
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2898
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2899
+ contents.NextToken = __expectString(data.NextToken);
2900
+ }
2901
+ if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
2902
+ contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
2903
+ }
2904
+ if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2905
+ contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2906
+ }
2907
+ return [2, Promise.resolve(contents)];
2908
+ }
2909
+ });
2910
+ }); };
2911
+ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2912
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2913
+ var _g;
2914
+ return __generator(this, function (_h) {
2915
+ switch (_h.label) {
2916
+ case 0:
2917
+ _a = [__assign({}, output)];
2918
+ _g = {};
2919
+ return [4, parseBody(output.body, context)];
2920
+ case 1:
2921
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2922
+ errorCode = "UnknownError";
2923
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2924
+ _b = errorCode;
2925
+ switch (_b) {
2926
+ case "AccessDeniedException": return [3, 2];
2927
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2928
+ case "InternalServerException": return [3, 4];
2929
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
2930
+ case "ThrottlingException": return [3, 6];
2931
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
2932
+ case "ValidationException": return [3, 8];
2933
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
2934
+ }
2935
+ return [3, 10];
2936
+ case 2:
2937
+ _c = [{}];
2938
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2939
+ case 3:
2940
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2941
+ return [3, 11];
2942
+ case 4:
2943
+ _d = [{}];
2944
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2945
+ case 5:
2946
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2947
+ return [3, 11];
2948
+ case 6:
2949
+ _e = [{}];
2950
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2951
+ case 7:
2952
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2953
+ return [3, 11];
2954
+ case 8:
2955
+ _f = [{}];
2956
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2957
+ case 9:
2958
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2959
+ return [3, 11];
2960
+ case 10:
2961
+ parsedBody = parsedOutput.body;
2962
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2963
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2964
+ _h.label = 11;
2965
+ case 11:
2966
+ message = response.message || response.Message || errorCode;
2967
+ response.message = message;
2968
+ delete response.Message;
2969
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2970
+ }
2971
+ });
2972
+ }); };
2337
2973
  export var deserializeAws_restJson1StartCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2338
2974
  var contents;
2339
2975
  return __generator(this, function (_a) {
@@ -2758,6 +3394,16 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2758
3394
  return [2, contents];
2759
3395
  });
2760
3396
  }); };
3397
+ var serializeAws_restJson1AccountIdList = function (input, context) {
3398
+ return input
3399
+ .filter(function (e) { return e != null; })
3400
+ .map(function (entry) {
3401
+ if (entry === null) {
3402
+ return null;
3403
+ }
3404
+ return entry;
3405
+ });
3406
+ };
2761
3407
  var serializeAws_restJson1CloudFormationCollection = function (input, context) {
2762
3408
  return __assign({}, (input.StackNames !== undefined &&
2763
3409
  input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
@@ -2769,9 +3415,12 @@ var serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter =
2769
3415
  }));
2770
3416
  };
2771
3417
  var serializeAws_restJson1CostEstimationResourceCollectionFilter = function (input, context) {
2772
- return __assign({}, (input.CloudFormation !== undefined &&
3418
+ return __assign(__assign({}, (input.CloudFormation !== undefined &&
2773
3419
  input.CloudFormation !== null && {
2774
3420
  CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
3421
+ })), (input.Tags !== undefined &&
3422
+ input.Tags !== null && {
3423
+ Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
2775
3424
  }));
2776
3425
  };
2777
3426
  var serializeAws_restJson1CostEstimationStackNames = function (input, context) {
@@ -2784,6 +3433,16 @@ var serializeAws_restJson1CostEstimationStackNames = function (input, context) {
2784
3433
  return entry;
2785
3434
  });
2786
3435
  };
3436
+ var serializeAws_restJson1CostEstimationTagValues = function (input, context) {
3437
+ return input
3438
+ .filter(function (e) { return e != null; })
3439
+ .map(function (entry) {
3440
+ if (entry === null) {
3441
+ return null;
3442
+ }
3443
+ return entry;
3444
+ });
3445
+ };
2787
3446
  var serializeAws_restJson1EndTimeRange = function (input, context) {
2788
3447
  return __assign(__assign({}, (input.FromTime !== undefined &&
2789
3448
  input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
@@ -2824,6 +3483,16 @@ var serializeAws_restJson1ListEventsFilters = function (input, context) {
2824
3483
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
2825
3484
  }));
2826
3485
  };
3486
+ var serializeAws_restJson1ListInsightsAccountIdList = function (input, context) {
3487
+ return input
3488
+ .filter(function (e) { return e != null; })
3489
+ .map(function (entry) {
3490
+ if (entry === null) {
3491
+ return null;
3492
+ }
3493
+ return entry;
3494
+ });
3495
+ };
2827
3496
  var serializeAws_restJson1ListInsightsAnyStatusFilter = function (input, context) {
2828
3497
  return __assign(__assign({}, (input.StartTimeRange !== undefined &&
2829
3498
  input.StartTimeRange !== null && {
@@ -2837,6 +3506,16 @@ var serializeAws_restJson1ListInsightsClosedStatusFilter = function (input, cont
2837
3506
  var serializeAws_restJson1ListInsightsOngoingStatusFilter = function (input, context) {
2838
3507
  return __assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2839
3508
  };
3509
+ var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input, context) {
3510
+ return input
3511
+ .filter(function (e) { return e != null; })
3512
+ .map(function (entry) {
3513
+ if (entry === null) {
3514
+ return null;
3515
+ }
3516
+ return entry;
3517
+ });
3518
+ };
2840
3519
  var serializeAws_restJson1ListInsightsStatusFilter = function (input, context) {
2841
3520
  return __assign(__assign(__assign({}, (input.Any !== undefined &&
2842
3521
  input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed !== undefined &&
@@ -2852,11 +3531,32 @@ var serializeAws_restJson1NotificationChannelConfig = function (input, context)
2852
3531
  var serializeAws_restJson1OpsCenterIntegrationConfig = function (input, context) {
2853
3532
  return __assign({}, (input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }));
2854
3533
  };
3534
+ var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
3535
+ return input
3536
+ .filter(function (e) { return e != null; })
3537
+ .map(function (entry) {
3538
+ if (entry === null) {
3539
+ return null;
3540
+ }
3541
+ return entry;
3542
+ });
3543
+ };
2855
3544
  var serializeAws_restJson1ResourceCollection = function (input, context) {
2856
- return __assign({}, (input.CloudFormation !== undefined &&
3545
+ return __assign(__assign({}, (input.CloudFormation !== undefined &&
2857
3546
  input.CloudFormation !== null && {
2858
3547
  CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
2859
- }));
3548
+ })), (input.Tags !== undefined &&
3549
+ input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
3550
+ };
3551
+ var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context) {
3552
+ return input
3553
+ .filter(function (e) { return e != null; })
3554
+ .map(function (entry) {
3555
+ if (entry === null) {
3556
+ return null;
3557
+ }
3558
+ return entry;
3559
+ });
2860
3560
  };
2861
3561
  var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
2862
3562
  return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
@@ -2869,6 +3569,17 @@ var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
2869
3569
  input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
2870
3570
  input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
2871
3571
  };
3572
+ var serializeAws_restJson1SearchOrganizationInsightsFilters = function (input, context) {
3573
+ return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
3574
+ input.ResourceCollection !== null && {
3575
+ ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3576
+ })), (input.ServiceCollection !== undefined &&
3577
+ input.ServiceCollection !== null && {
3578
+ ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3579
+ })), (input.Severities !== undefined &&
3580
+ input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
3581
+ input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3582
+ };
2872
3583
  var serializeAws_restJson1ServiceCollection = function (input, context) {
2873
3584
  return __assign({}, (input.ServiceNames !== undefined &&
2874
3585
  input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }));
@@ -2900,15 +3611,58 @@ var serializeAws_restJson1StartTimeRange = function (input, context) {
2900
3611
  return __assign(__assign({}, (input.FromTime !== undefined &&
2901
3612
  input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
2902
3613
  };
3614
+ var serializeAws_restJson1TagCollection = function (input, context) {
3615
+ return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3616
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3617
+ input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
3618
+ };
3619
+ var serializeAws_restJson1TagCollections = function (input, context) {
3620
+ return input
3621
+ .filter(function (e) { return e != null; })
3622
+ .map(function (entry) {
3623
+ if (entry === null) {
3624
+ return null;
3625
+ }
3626
+ return serializeAws_restJson1TagCollection(entry, context);
3627
+ });
3628
+ };
3629
+ var serializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (input, context) {
3630
+ return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3631
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3632
+ input.TagValues !== null && {
3633
+ TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
3634
+ }));
3635
+ };
3636
+ var serializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (input, context) {
3637
+ return input
3638
+ .filter(function (e) { return e != null; })
3639
+ .map(function (entry) {
3640
+ if (entry === null) {
3641
+ return null;
3642
+ }
3643
+ return serializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
3644
+ });
3645
+ };
3646
+ var serializeAws_restJson1TagValues = function (input, context) {
3647
+ return input
3648
+ .filter(function (e) { return e != null; })
3649
+ .map(function (entry) {
3650
+ if (entry === null) {
3651
+ return null;
3652
+ }
3653
+ return entry;
3654
+ });
3655
+ };
2903
3656
  var serializeAws_restJson1UpdateCloudFormationCollectionFilter = function (input, context) {
2904
3657
  return __assign({}, (input.StackNames !== undefined &&
2905
3658
  input.StackNames !== null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
2906
3659
  };
2907
3660
  var serializeAws_restJson1UpdateResourceCollectionFilter = function (input, context) {
2908
- return __assign({}, (input.CloudFormation !== undefined &&
3661
+ return __assign(__assign({}, (input.CloudFormation !== undefined &&
2909
3662
  input.CloudFormation !== null && {
2910
3663
  CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
2911
- }));
3664
+ })), (input.Tags !== undefined &&
3665
+ input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
2912
3666
  };
2913
3667
  var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, context) {
2914
3668
  return __assign({}, (input.OpsCenter !== undefined &&
@@ -2916,16 +3670,65 @@ var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, cont
2916
3670
  OpsCenter: serializeAws_restJson1OpsCenterIntegrationConfig(input.OpsCenter, context),
2917
3671
  }));
2918
3672
  };
2919
- var serializeAws_restJson1UpdateStackNames = function (input, context) {
2920
- return input
3673
+ var serializeAws_restJson1UpdateStackNames = function (input, context) {
3674
+ return input
3675
+ .filter(function (e) { return e != null; })
3676
+ .map(function (entry) {
3677
+ if (entry === null) {
3678
+ return null;
3679
+ }
3680
+ return entry;
3681
+ });
3682
+ };
3683
+ var serializeAws_restJson1UpdateTagCollectionFilter = function (input, context) {
3684
+ return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3685
+ input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3686
+ input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
3687
+ };
3688
+ var serializeAws_restJson1UpdateTagCollectionFilters = function (input, context) {
3689
+ return input
3690
+ .filter(function (e) { return e != null; })
3691
+ .map(function (entry) {
3692
+ if (entry === null) {
3693
+ return null;
3694
+ }
3695
+ return serializeAws_restJson1UpdateTagCollectionFilter(entry, context);
3696
+ });
3697
+ };
3698
+ var serializeAws_restJson1UpdateTagValues = function (input, context) {
3699
+ return input
3700
+ .filter(function (e) { return e != null; })
3701
+ .map(function (entry) {
3702
+ if (entry === null) {
3703
+ return null;
3704
+ }
3705
+ return entry;
3706
+ });
3707
+ };
3708
+ var deserializeAws_restJson1AccountHealth = function (output, context) {
3709
+ return {
3710
+ AccountId: __expectString(output.AccountId),
3711
+ Insight: output.Insight !== undefined && output.Insight !== null
3712
+ ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
3713
+ : undefined,
3714
+ };
3715
+ };
3716
+ var deserializeAws_restJson1AccountHealths = function (output, context) {
3717
+ return (output || [])
2921
3718
  .filter(function (e) { return e != null; })
2922
3719
  .map(function (entry) {
2923
3720
  if (entry === null) {
2924
3721
  return null;
2925
3722
  }
2926
- return entry;
3723
+ return deserializeAws_restJson1AccountHealth(entry, context);
2927
3724
  });
2928
3725
  };
3726
+ var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
3727
+ return {
3728
+ OpenProactiveInsights: __expectInt32(output.OpenProactiveInsights),
3729
+ OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights),
3730
+ };
3731
+ };
2929
3732
  var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
2930
3733
  return {
2931
3734
  CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
@@ -2936,11 +3739,30 @@ var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context
2936
3739
  : undefined,
2937
3740
  };
2938
3741
  };
3742
+ var deserializeAws_restJson1AnomalyResource = function (output, context) {
3743
+ return {
3744
+ Name: __expectString(output.Name),
3745
+ Type: __expectString(output.Type),
3746
+ };
3747
+ };
3748
+ var deserializeAws_restJson1AnomalyResources = function (output, context) {
3749
+ return (output || [])
3750
+ .filter(function (e) { return e != null; })
3751
+ .map(function (entry) {
3752
+ if (entry === null) {
3753
+ return null;
3754
+ }
3755
+ return deserializeAws_restJson1AnomalyResource(entry, context);
3756
+ });
3757
+ };
2939
3758
  var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
2940
3759
  return {
2941
3760
  CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
2942
3761
  ? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
2943
3762
  : undefined,
3763
+ PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
3764
+ ? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
3765
+ : undefined,
2944
3766
  };
2945
3767
  };
2946
3768
  var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
@@ -2953,6 +3775,16 @@ var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
2953
3775
  : undefined,
2954
3776
  };
2955
3777
  };
3778
+ var deserializeAws_restJson1AssociatedResourceArns = function (output, context) {
3779
+ return (output || [])
3780
+ .filter(function (e) { return e != null; })
3781
+ .map(function (entry) {
3782
+ if (entry === null) {
3783
+ return null;
3784
+ }
3785
+ return __expectString(entry);
3786
+ });
3787
+ };
2956
3788
  var deserializeAws_restJson1Channels = function (output, context) {
2957
3789
  return (output || [])
2958
3790
  .filter(function (e) { return e != null; })
@@ -3002,11 +3834,22 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
3002
3834
  return deserializeAws_restJson1CloudFormationHealth(entry, context);
3003
3835
  });
3004
3836
  };
3837
+ var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
3838
+ return {
3839
+ StatusCode: __expectString(output.StatusCode),
3840
+ TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
3841
+ ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
3842
+ : undefined,
3843
+ };
3844
+ };
3005
3845
  var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context) {
3006
3846
  return {
3007
3847
  Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3008
3848
  ? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
3009
3849
  : undefined,
3850
+ MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
3851
+ ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
3852
+ : undefined,
3010
3853
  MetricName: __expectString(output.MetricName),
3011
3854
  Namespace: __expectString(output.Namespace),
3012
3855
  Period: __expectInt32(output.Period),
@@ -3045,6 +3888,9 @@ var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (o
3045
3888
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3046
3889
  ? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
3047
3890
  : undefined,
3891
+ Tags: output.Tags !== undefined && output.Tags !== null
3892
+ ? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
3893
+ : undefined,
3048
3894
  };
3049
3895
  };
3050
3896
  var deserializeAws_restJson1CostEstimationStackNames = function (output, context) {
@@ -3057,6 +3903,16 @@ var deserializeAws_restJson1CostEstimationStackNames = function (output, context
3057
3903
  return __expectString(entry);
3058
3904
  });
3059
3905
  };
3906
+ var deserializeAws_restJson1CostEstimationTagValues = function (output, context) {
3907
+ return (output || [])
3908
+ .filter(function (e) { return e != null; })
3909
+ .map(function (entry) {
3910
+ if (entry === null) {
3911
+ return null;
3912
+ }
3913
+ return __expectString(entry);
3914
+ });
3915
+ };
3060
3916
  var deserializeAws_restJson1CostEstimationTimeRange = function (output, context) {
3061
3917
  return {
3062
3918
  EndTime: output.EndTime !== undefined && output.EndTime !== null
@@ -3155,6 +4011,130 @@ var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
3155
4011
  OptInStatus: __expectString(output.OptInStatus),
3156
4012
  };
3157
4013
  };
4014
+ var deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = function (output, context) {
4015
+ return {
4016
+ Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
4017
+ ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
4018
+ : undefined,
4019
+ Group: __expectString(output.Group),
4020
+ Limit: __expectInt32(output.Limit),
4021
+ };
4022
+ };
4023
+ var deserializeAws_restJson1PerformanceInsightsMetricDimensions = function (output, context) {
4024
+ return (output || [])
4025
+ .filter(function (e) { return e != null; })
4026
+ .map(function (entry) {
4027
+ if (entry === null) {
4028
+ return null;
4029
+ }
4030
+ return __expectString(entry);
4031
+ });
4032
+ };
4033
+ var deserializeAws_restJson1PerformanceInsightsMetricFilterMap = function (output, context) {
4034
+ return Object.entries(output).reduce(function (acc, _a) {
4035
+ var _b;
4036
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
4037
+ if (value === null) {
4038
+ return acc;
4039
+ }
4040
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
4041
+ }, {});
4042
+ };
4043
+ var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, context) {
4044
+ return {
4045
+ Filter: output.Filter !== undefined && output.Filter !== null
4046
+ ? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
4047
+ : undefined,
4048
+ GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
4049
+ ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
4050
+ : undefined,
4051
+ Metric: __expectString(output.Metric),
4052
+ };
4053
+ };
4054
+ var deserializeAws_restJson1PerformanceInsightsMetricsDetail = function (output, context) {
4055
+ return {
4056
+ MetricDisplayName: __expectString(output.MetricDisplayName),
4057
+ MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
4058
+ ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
4059
+ : undefined,
4060
+ ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
4061
+ ? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
4062
+ : undefined,
4063
+ StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
4064
+ ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
4065
+ : undefined,
4066
+ StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
4067
+ ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
4068
+ : undefined,
4069
+ Unit: __expectString(output.Unit),
4070
+ };
4071
+ };
4072
+ var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output, context) {
4073
+ return (output || [])
4074
+ .filter(function (e) { return e != null; })
4075
+ .map(function (entry) {
4076
+ if (entry === null) {
4077
+ return null;
4078
+ }
4079
+ return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context);
4080
+ });
4081
+ };
4082
+ var deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = function (output, context) {
4083
+ return {
4084
+ ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
4085
+ ? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
4086
+ : undefined,
4087
+ ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
4088
+ ? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
4089
+ : undefined,
4090
+ };
4091
+ };
4092
+ var deserializeAws_restJson1PerformanceInsightsReferenceData = function (output, context) {
4093
+ return {
4094
+ ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
4095
+ ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
4096
+ : undefined,
4097
+ Name: __expectString(output.Name),
4098
+ };
4099
+ };
4100
+ var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (output, context) {
4101
+ return (output || [])
4102
+ .filter(function (e) { return e != null; })
4103
+ .map(function (entry) {
4104
+ if (entry === null) {
4105
+ return null;
4106
+ }
4107
+ return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context);
4108
+ });
4109
+ };
4110
+ var deserializeAws_restJson1PerformanceInsightsReferenceMetric = function (output, context) {
4111
+ return {
4112
+ MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
4113
+ ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
4114
+ : undefined,
4115
+ };
4116
+ };
4117
+ var deserializeAws_restJson1PerformanceInsightsReferenceScalar = function (output, context) {
4118
+ return {
4119
+ Value: __limitedParseDouble(output.Value),
4120
+ };
4121
+ };
4122
+ var deserializeAws_restJson1PerformanceInsightsStat = function (output, context) {
4123
+ return {
4124
+ Type: __expectString(output.Type),
4125
+ Value: __limitedParseDouble(output.Value),
4126
+ };
4127
+ };
4128
+ var deserializeAws_restJson1PerformanceInsightsStats = function (output, context) {
4129
+ return (output || [])
4130
+ .filter(function (e) { return e != null; })
4131
+ .map(function (entry) {
4132
+ if (entry === null) {
4133
+ return null;
4134
+ }
4135
+ return deserializeAws_restJson1PerformanceInsightsStat(entry, context);
4136
+ });
4137
+ };
3158
4138
  var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
3159
4139
  return {
3160
4140
  EndTime: output.EndTime !== undefined && output.EndTime !== null
@@ -3259,11 +4239,46 @@ var deserializeAws_restJson1ProactiveInsights = function (output, context) {
3259
4239
  };
3260
4240
  var deserializeAws_restJson1ProactiveInsightSummary = function (output, context) {
3261
4241
  return {
4242
+ AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
4243
+ ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4244
+ : undefined,
4245
+ Id: __expectString(output.Id),
4246
+ InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4247
+ ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4248
+ : undefined,
4249
+ Name: __expectString(output.Name),
4250
+ PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
4251
+ ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4252
+ : undefined,
4253
+ ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4254
+ ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4255
+ : undefined,
4256
+ ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4257
+ ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4258
+ : undefined,
4259
+ Severity: __expectString(output.Severity),
4260
+ Status: __expectString(output.Status),
4261
+ };
4262
+ };
4263
+ var deserializeAws_restJson1ProactiveOrganizationInsights = function (output, context) {
4264
+ return (output || [])
4265
+ .filter(function (e) { return e != null; })
4266
+ .map(function (entry) {
4267
+ if (entry === null) {
4268
+ return null;
4269
+ }
4270
+ return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
4271
+ });
4272
+ };
4273
+ var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (output, context) {
4274
+ return {
4275
+ AccountId: __expectString(output.AccountId),
3262
4276
  Id: __expectString(output.Id),
3263
4277
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3264
4278
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3265
4279
  : undefined,
3266
4280
  Name: __expectString(output.Name),
4281
+ OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
3267
4282
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3268
4283
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3269
4284
  : undefined,
@@ -3292,11 +4307,17 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
3292
4307
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3293
4308
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3294
4309
  : undefined,
4310
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4311
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4312
+ : undefined,
3295
4313
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3296
4314
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3297
4315
  : undefined,
3298
4316
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
4317
+ CausalAnomalyId: __expectString(output.CausalAnomalyId),
4318
+ Description: __expectString(output.Description),
3299
4319
  Id: __expectString(output.Id),
4320
+ Name: __expectString(output.Name),
3300
4321
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3301
4322
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3302
4323
  : undefined,
@@ -3305,6 +4326,7 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
3305
4326
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3306
4327
  : undefined,
3307
4328
  Status: __expectString(output.Status),
4329
+ Type: __expectString(output.Type),
3308
4330
  };
3309
4331
  };
3310
4332
  var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context) {
@@ -3312,11 +4334,17 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
3312
4334
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3313
4335
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3314
4336
  : undefined,
4337
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4338
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4339
+ : undefined,
3315
4340
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3316
4341
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3317
4342
  : undefined,
3318
4343
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
4344
+ CausalAnomalyId: __expectString(output.CausalAnomalyId),
4345
+ Description: __expectString(output.Description),
3319
4346
  Id: __expectString(output.Id),
4347
+ Name: __expectString(output.Name),
3320
4348
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3321
4349
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3322
4350
  : undefined,
@@ -3325,6 +4353,7 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
3325
4353
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3326
4354
  : undefined,
3327
4355
  Status: __expectString(output.Status),
4356
+ Type: __expectString(output.Type),
3328
4357
  };
3329
4358
  };
3330
4359
  var deserializeAws_restJson1ReactiveInsight = function (output, context) {
@@ -3354,11 +4383,43 @@ var deserializeAws_restJson1ReactiveInsights = function (output, context) {
3354
4383
  };
3355
4384
  var deserializeAws_restJson1ReactiveInsightSummary = function (output, context) {
3356
4385
  return {
4386
+ AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
4387
+ ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4388
+ : undefined,
4389
+ Id: __expectString(output.Id),
4390
+ InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4391
+ ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4392
+ : undefined,
4393
+ Name: __expectString(output.Name),
4394
+ ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4395
+ ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4396
+ : undefined,
4397
+ ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4398
+ ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4399
+ : undefined,
4400
+ Severity: __expectString(output.Severity),
4401
+ Status: __expectString(output.Status),
4402
+ };
4403
+ };
4404
+ var deserializeAws_restJson1ReactiveOrganizationInsights = function (output, context) {
4405
+ return (output || [])
4406
+ .filter(function (e) { return e != null; })
4407
+ .map(function (entry) {
4408
+ if (entry === null) {
4409
+ return null;
4410
+ }
4411
+ return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
4412
+ });
4413
+ };
4414
+ var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (output, context) {
4415
+ return {
4416
+ AccountId: __expectString(output.AccountId),
3357
4417
  Id: __expectString(output.Id),
3358
4418
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3359
4419
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3360
4420
  : undefined,
3361
4421
  Name: __expectString(output.Name),
4422
+ OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
3362
4423
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3363
4424
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3364
4425
  : undefined,
@@ -3395,6 +4456,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, c
3395
4456
  };
3396
4457
  var deserializeAws_restJson1RecommendationRelatedAnomaly = function (output, context) {
3397
4458
  return {
4459
+ AnomalyId: __expectString(output.AnomalyId),
3398
4460
  Resources: output.Resources !== undefined && output.Resources !== null
3399
4461
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
3400
4462
  : undefined,
@@ -3501,6 +4563,9 @@ var deserializeAws_restJson1ResourceCollection = function (output, context) {
3501
4563
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3502
4564
  ? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
3503
4565
  : undefined,
4566
+ Tags: output.Tags !== undefined && output.Tags !== null
4567
+ ? deserializeAws_restJson1TagCollections(output.Tags, context)
4568
+ : undefined,
3504
4569
  };
3505
4570
  };
3506
4571
  var deserializeAws_restJson1ResourceCollectionFilter = function (output, context) {
@@ -3508,6 +4573,9 @@ var deserializeAws_restJson1ResourceCollectionFilter = function (output, context
3508
4573
  CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3509
4574
  ? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
3510
4575
  : undefined,
4576
+ Tags: output.Tags !== undefined && output.Tags !== null
4577
+ ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
4578
+ : undefined,
3511
4579
  };
3512
4580
  };
3513
4581
  var deserializeAws_restJson1ServiceCollection = function (output, context) {
@@ -3592,6 +4660,107 @@ var deserializeAws_restJson1StackNames = function (output, context) {
3592
4660
  return __expectString(entry);
3593
4661
  });
3594
4662
  };
4663
+ var deserializeAws_restJson1TagCollection = function (output, context) {
4664
+ return {
4665
+ AppBoundaryKey: __expectString(output.AppBoundaryKey),
4666
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4667
+ ? deserializeAws_restJson1TagValues(output.TagValues, context)
4668
+ : undefined,
4669
+ };
4670
+ };
4671
+ var deserializeAws_restJson1TagCollectionFilter = function (output, context) {
4672
+ return {
4673
+ AppBoundaryKey: __expectString(output.AppBoundaryKey),
4674
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4675
+ ? deserializeAws_restJson1TagValues(output.TagValues, context)
4676
+ : undefined,
4677
+ };
4678
+ };
4679
+ var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
4680
+ return (output || [])
4681
+ .filter(function (e) { return e != null; })
4682
+ .map(function (entry) {
4683
+ if (entry === null) {
4684
+ return null;
4685
+ }
4686
+ return deserializeAws_restJson1TagCollectionFilter(entry, context);
4687
+ });
4688
+ };
4689
+ var deserializeAws_restJson1TagCollections = function (output, context) {
4690
+ return (output || [])
4691
+ .filter(function (e) { return e != null; })
4692
+ .map(function (entry) {
4693
+ if (entry === null) {
4694
+ return null;
4695
+ }
4696
+ return deserializeAws_restJson1TagCollection(entry, context);
4697
+ });
4698
+ };
4699
+ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (output, context) {
4700
+ return {
4701
+ AppBoundaryKey: __expectString(output.AppBoundaryKey),
4702
+ TagValues: output.TagValues !== undefined && output.TagValues !== null
4703
+ ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
4704
+ : undefined,
4705
+ };
4706
+ };
4707
+ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (output, context) {
4708
+ return (output || [])
4709
+ .filter(function (e) { return e != null; })
4710
+ .map(function (entry) {
4711
+ if (entry === null) {
4712
+ return null;
4713
+ }
4714
+ return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
4715
+ });
4716
+ };
4717
+ var deserializeAws_restJson1TagHealth = function (output, context) {
4718
+ return {
4719
+ AppBoundaryKey: __expectString(output.AppBoundaryKey),
4720
+ Insight: output.Insight !== undefined && output.Insight !== null
4721
+ ? deserializeAws_restJson1InsightHealth(output.Insight, context)
4722
+ : undefined,
4723
+ TagValue: __expectString(output.TagValue),
4724
+ };
4725
+ };
4726
+ var deserializeAws_restJson1TagHealths = function (output, context) {
4727
+ return (output || [])
4728
+ .filter(function (e) { return e != null; })
4729
+ .map(function (entry) {
4730
+ if (entry === null) {
4731
+ return null;
4732
+ }
4733
+ return deserializeAws_restJson1TagHealth(entry, context);
4734
+ });
4735
+ };
4736
+ var deserializeAws_restJson1TagValues = function (output, context) {
4737
+ return (output || [])
4738
+ .filter(function (e) { return e != null; })
4739
+ .map(function (entry) {
4740
+ if (entry === null) {
4741
+ return null;
4742
+ }
4743
+ return __expectString(entry);
4744
+ });
4745
+ };
4746
+ var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
4747
+ return {
4748
+ MetricValue: __limitedParseDouble(output.MetricValue),
4749
+ Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
4750
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
4751
+ : undefined,
4752
+ };
4753
+ };
4754
+ var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
4755
+ return (output || [])
4756
+ .filter(function (e) { return e != null; })
4757
+ .map(function (entry) {
4758
+ if (entry === null) {
4759
+ return null;
4760
+ }
4761
+ return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
4762
+ });
4763
+ };
3595
4764
  var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
3596
4765
  return {
3597
4766
  Message: __expectString(output.Message),