@aws-sdk/client-devops-guru 3.33.0 → 3.34.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 (85) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/package.json +38 -38
  3. package/dist/es/DevOpsGuru.js +1 -19
  4. package/dist/es/DevOpsGuru.js.map +1 -1
  5. package/dist/es/DevOpsGuruClient.js +1 -24
  6. package/dist/es/DevOpsGuruClient.js.map +1 -1
  7. package/dist/es/commands/AddNotificationChannelCommand.js +2 -37
  8. package/dist/es/commands/AddNotificationChannelCommand.js.map +1 -1
  9. package/dist/es/commands/DescribeAccountHealthCommand.js +2 -30
  10. package/dist/es/commands/DescribeAccountHealthCommand.js.map +1 -1
  11. package/dist/es/commands/DescribeAccountOverviewCommand.js +2 -30
  12. package/dist/es/commands/DescribeAccountOverviewCommand.js.map +1 -1
  13. package/dist/es/commands/DescribeAnomalyCommand.js +2 -29
  14. package/dist/es/commands/DescribeAnomalyCommand.js.map +1 -1
  15. package/dist/es/commands/DescribeFeedbackCommand.js +2 -29
  16. package/dist/es/commands/DescribeFeedbackCommand.js.map +1 -1
  17. package/dist/es/commands/DescribeInsightCommand.js +2 -29
  18. package/dist/es/commands/DescribeInsightCommand.js.map +1 -1
  19. package/dist/es/commands/DescribeResourceCollectionHealthCommand.js +2 -31
  20. package/dist/es/commands/DescribeResourceCollectionHealthCommand.js.map +1 -1
  21. package/dist/es/commands/DescribeServiceIntegrationCommand.js +2 -31
  22. package/dist/es/commands/DescribeServiceIntegrationCommand.js.map +1 -1
  23. package/dist/es/commands/GetCostEstimationCommand.js +2 -31
  24. package/dist/es/commands/GetCostEstimationCommand.js.map +1 -1
  25. package/dist/es/commands/GetResourceCollectionCommand.js +2 -30
  26. package/dist/es/commands/GetResourceCollectionCommand.js.map +1 -1
  27. package/dist/es/commands/ListAnomaliesForInsightCommand.js +2 -29
  28. package/dist/es/commands/ListAnomaliesForInsightCommand.js.map +1 -1
  29. package/dist/es/commands/ListEventsCommand.js +2 -29
  30. package/dist/es/commands/ListEventsCommand.js.map +1 -1
  31. package/dist/es/commands/ListInsightsCommand.js +2 -30
  32. package/dist/es/commands/ListInsightsCommand.js.map +1 -1
  33. package/dist/es/commands/ListNotificationChannelsCommand.js +2 -31
  34. package/dist/es/commands/ListNotificationChannelsCommand.js.map +1 -1
  35. package/dist/es/commands/ListRecommendationsCommand.js +2 -29
  36. package/dist/es/commands/ListRecommendationsCommand.js.map +1 -1
  37. package/dist/es/commands/PutFeedbackCommand.js +2 -29
  38. package/dist/es/commands/PutFeedbackCommand.js.map +1 -1
  39. package/dist/es/commands/RemoveNotificationChannelCommand.js +2 -30
  40. package/dist/es/commands/RemoveNotificationChannelCommand.js.map +1 -1
  41. package/dist/es/commands/SearchInsightsCommand.js +2 -35
  42. package/dist/es/commands/SearchInsightsCommand.js.map +1 -1
  43. package/dist/es/commands/StartCostEstimationCommand.js +2 -27
  44. package/dist/es/commands/StartCostEstimationCommand.js.map +1 -1
  45. package/dist/es/commands/UpdateResourceCollectionCommand.js +2 -30
  46. package/dist/es/commands/UpdateResourceCollectionCommand.js.map +1 -1
  47. package/dist/es/commands/UpdateServiceIntegrationCommand.js +2 -30
  48. package/dist/es/commands/UpdateServiceIntegrationCommand.js.map +1 -1
  49. package/dist/es/endpoints.js +1 -1
  50. package/dist/es/endpoints.js.map +1 -1
  51. package/dist/es/models/models_0.js +0 -318
  52. package/dist/es/models/models_0.js.map +1 -1
  53. package/dist/es/package.json +38 -38
  54. package/dist/es/pagination/DescribeResourceCollectionHealthPaginator.js +16 -28
  55. package/dist/es/pagination/DescribeResourceCollectionHealthPaginator.js.map +1 -1
  56. package/dist/es/pagination/GetCostEstimationPaginator.js +16 -28
  57. package/dist/es/pagination/GetCostEstimationPaginator.js.map +1 -1
  58. package/dist/es/pagination/GetResourceCollectionPaginator.js +16 -28
  59. package/dist/es/pagination/GetResourceCollectionPaginator.js.map +1 -1
  60. package/dist/es/pagination/ListAnomaliesForInsightPaginator.js +16 -28
  61. package/dist/es/pagination/ListAnomaliesForInsightPaginator.js.map +1 -1
  62. package/dist/es/pagination/ListEventsPaginator.js +16 -28
  63. package/dist/es/pagination/ListEventsPaginator.js.map +1 -1
  64. package/dist/es/pagination/ListInsightsPaginator.js +16 -28
  65. package/dist/es/pagination/ListInsightsPaginator.js.map +1 -1
  66. package/dist/es/pagination/ListNotificationChannelsPaginator.js +16 -28
  67. package/dist/es/pagination/ListNotificationChannelsPaginator.js.map +1 -1
  68. package/dist/es/pagination/ListRecommendationsPaginator.js +16 -28
  69. package/dist/es/pagination/ListRecommendationsPaginator.js.map +1 -1
  70. package/dist/es/pagination/SearchInsightsPaginator.js +16 -28
  71. package/dist/es/pagination/SearchInsightsPaginator.js.map +1 -1
  72. package/dist/es/protocols/Aws_restJson1.js +608 -613
  73. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  74. package/dist/es/runtimeConfig.browser.js +0 -3
  75. package/dist/es/runtimeConfig.browser.js.map +1 -1
  76. package/dist/es/runtimeConfig.js +0 -3
  77. package/dist/es/runtimeConfig.js.map +1 -1
  78. package/dist/es/runtimeConfig.native.js +0 -3
  79. package/dist/es/runtimeConfig.native.js.map +1 -1
  80. package/dist/es/runtimeConfig.shared.js +0 -3
  81. package/dist/es/runtimeConfig.shared.js.map +1 -1
  82. package/package.json +38 -38
  83. package/tsconfig.es.json +0 -2
  84. package/tsconfig.json +4 -5
  85. package/tsconfig.types.json +8 -0
@@ -6,7 +6,7 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
7
7
  return __generator(this, function (_c) {
8
8
  switch (_c.label) {
9
- case 0: return [4 /*yield*/, context.endpoint()];
9
+ case 0: return [4, context.endpoint()];
10
10
  case 1:
11
11
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
12
12
  headers = {
@@ -15,7 +15,7 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
15
15
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
16
16
  body = JSON.stringify(__assign({}, (input.Config !== undefined &&
17
17
  input.Config !== null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) })));
18
- return [2 /*return*/, new __HttpRequest({
18
+ return [2, new __HttpRequest({
19
19
  protocol: protocol,
20
20
  hostname: hostname,
21
21
  port: port,
@@ -31,7 +31,7 @@ export var serializeAws_restJson1DescribeAccountHealthCommand = function (input,
31
31
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
32
32
  return __generator(this, function (_c) {
33
33
  switch (_c.label) {
34
- case 0: return [4 /*yield*/, context.endpoint()];
34
+ case 0: return [4, context.endpoint()];
35
35
  case 1:
36
36
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
37
37
  headers = {
@@ -39,7 +39,7 @@ export var serializeAws_restJson1DescribeAccountHealthCommand = function (input,
39
39
  };
40
40
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts/health";
41
41
  body = "";
42
- return [2 /*return*/, new __HttpRequest({
42
+ return [2, new __HttpRequest({
43
43
  protocol: protocol,
44
44
  hostname: hostname,
45
45
  port: port,
@@ -55,7 +55,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
55
55
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
56
56
  return __generator(this, function (_c) {
57
57
  switch (_c.label) {
58
- case 0: return [4 /*yield*/, context.endpoint()];
58
+ case 0: return [4, context.endpoint()];
59
59
  case 1:
60
60
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
61
61
  headers = {
@@ -64,7 +64,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
64
64
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts/overview";
65
65
  body = JSON.stringify(__assign(__assign({}, (input.FromTime !== undefined &&
66
66
  input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
67
- return [2 /*return*/, new __HttpRequest({
67
+ return [2, new __HttpRequest({
68
68
  protocol: protocol,
69
69
  hostname: hostname,
70
70
  port: port,
@@ -80,7 +80,7 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
80
80
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
81
81
  return __generator(this, function (_c) {
82
82
  switch (_c.label) {
83
- case 0: return [4 /*yield*/, context.endpoint()];
83
+ case 0: return [4, context.endpoint()];
84
84
  case 1:
85
85
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
86
86
  headers = {};
@@ -95,7 +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
- return [2 /*return*/, new __HttpRequest({
98
+ return [2, new __HttpRequest({
99
99
  protocol: protocol,
100
100
  hostname: hostname,
101
101
  port: port,
@@ -111,7 +111,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
111
111
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
112
112
  return __generator(this, function (_c) {
113
113
  switch (_c.label) {
114
- case 0: return [4 /*yield*/, context.endpoint()];
114
+ case 0: return [4, context.endpoint()];
115
115
  case 1:
116
116
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
117
117
  headers = {
@@ -119,7 +119,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
119
119
  };
120
120
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
121
121
  body = JSON.stringify(__assign({}, (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })));
122
- return [2 /*return*/, new __HttpRequest({
122
+ return [2, new __HttpRequest({
123
123
  protocol: protocol,
124
124
  hostname: hostname,
125
125
  port: port,
@@ -135,7 +135,7 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
135
135
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
136
136
  return __generator(this, function (_c) {
137
137
  switch (_c.label) {
138
- case 0: return [4 /*yield*/, context.endpoint()];
138
+ case 0: return [4, context.endpoint()];
139
139
  case 1:
140
140
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
141
141
  headers = {};
@@ -150,7 +150,7 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
150
150
  else {
151
151
  throw new Error("No value provided for input HTTP label: Id.");
152
152
  }
153
- return [2 /*return*/, new __HttpRequest({
153
+ return [2, new __HttpRequest({
154
154
  protocol: protocol,
155
155
  hostname: hostname,
156
156
  port: port,
@@ -166,7 +166,7 @@ export var serializeAws_restJson1DescribeResourceCollectionHealthCommand = funct
166
166
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
167
167
  return __generator(this, function (_c) {
168
168
  switch (_c.label) {
169
- case 0: return [4 /*yield*/, context.endpoint()];
169
+ case 0: return [4, context.endpoint()];
170
170
  case 1:
171
171
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
172
172
  headers = {};
@@ -183,7 +183,7 @@ export var serializeAws_restJson1DescribeResourceCollectionHealthCommand = funct
183
183
  throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
184
184
  }
185
185
  query = __assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken }));
186
- return [2 /*return*/, new __HttpRequest({
186
+ return [2, new __HttpRequest({
187
187
  protocol: protocol,
188
188
  hostname: hostname,
189
189
  port: port,
@@ -200,7 +200,7 @@ export var serializeAws_restJson1DescribeServiceIntegrationCommand = function (i
200
200
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
201
201
  return __generator(this, function (_c) {
202
202
  switch (_c.label) {
203
- case 0: return [4 /*yield*/, context.endpoint()];
203
+ case 0: return [4, context.endpoint()];
204
204
  case 1:
205
205
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
206
206
  headers = {
@@ -208,7 +208,7 @@ export var serializeAws_restJson1DescribeServiceIntegrationCommand = function (i
208
208
  };
209
209
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/service-integrations";
210
210
  body = "";
211
- return [2 /*return*/, new __HttpRequest({
211
+ return [2, new __HttpRequest({
212
212
  protocol: protocol,
213
213
  hostname: hostname,
214
214
  port: port,
@@ -224,13 +224,13 @@ export var serializeAws_restJson1GetCostEstimationCommand = function (input, con
224
224
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
225
225
  return __generator(this, function (_c) {
226
226
  switch (_c.label) {
227
- case 0: return [4 /*yield*/, context.endpoint()];
227
+ case 0: return [4, context.endpoint()];
228
228
  case 1:
229
229
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
230
230
  headers = {};
231
231
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cost-estimation";
232
232
  query = __assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken }));
233
- return [2 /*return*/, new __HttpRequest({
233
+ return [2, new __HttpRequest({
234
234
  protocol: protocol,
235
235
  hostname: hostname,
236
236
  port: port,
@@ -247,7 +247,7 @@ export var serializeAws_restJson1GetResourceCollectionCommand = function (input,
247
247
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
248
248
  return __generator(this, function (_c) {
249
249
  switch (_c.label) {
250
- case 0: return [4 /*yield*/, context.endpoint()];
250
+ case 0: return [4, context.endpoint()];
251
251
  case 1:
252
252
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
253
253
  headers = {};
@@ -264,7 +264,7 @@ export var serializeAws_restJson1GetResourceCollectionCommand = function (input,
264
264
  throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
265
265
  }
266
266
  query = __assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken }));
267
- return [2 /*return*/, new __HttpRequest({
267
+ return [2, new __HttpRequest({
268
268
  protocol: protocol,
269
269
  hostname: hostname,
270
270
  port: port,
@@ -281,7 +281,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
281
281
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
282
282
  return __generator(this, function (_c) {
283
283
  switch (_c.label) {
284
- case 0: return [4 /*yield*/, context.endpoint()];
284
+ case 0: return [4, context.endpoint()];
285
285
  case 1:
286
286
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
287
287
  headers = {
@@ -302,7 +302,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
302
302
  input.StartTimeRange !== null && {
303
303
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
304
304
  })));
305
- return [2 /*return*/, new __HttpRequest({
305
+ return [2, new __HttpRequest({
306
306
  protocol: protocol,
307
307
  hostname: hostname,
308
308
  port: port,
@@ -318,7 +318,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
318
318
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
319
319
  return __generator(this, function (_c) {
320
320
  switch (_c.label) {
321
- case 0: return [4 /*yield*/, context.endpoint()];
321
+ case 0: return [4, context.endpoint()];
322
322
  case 1:
323
323
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
324
324
  headers = {
@@ -327,7 +327,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
327
327
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
328
328
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
329
329
  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
- return [2 /*return*/, new __HttpRequest({
330
+ return [2, new __HttpRequest({
331
331
  protocol: protocol,
332
332
  hostname: hostname,
333
333
  port: port,
@@ -343,7 +343,7 @@ export var serializeAws_restJson1ListInsightsCommand = function (input, context)
343
343
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
344
344
  return __generator(this, function (_c) {
345
345
  switch (_c.label) {
346
- case 0: return [4 /*yield*/, context.endpoint()];
346
+ case 0: return [4, context.endpoint()];
347
347
  case 1:
348
348
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
349
349
  headers = {
@@ -354,7 +354,7 @@ export var serializeAws_restJson1ListInsightsCommand = function (input, context)
354
354
  input.StatusFilter !== null && {
355
355
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
356
356
  })));
357
- return [2 /*return*/, new __HttpRequest({
357
+ return [2, new __HttpRequest({
358
358
  protocol: protocol,
359
359
  hostname: hostname,
360
360
  port: port,
@@ -370,7 +370,7 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
370
370
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
371
371
  return __generator(this, function (_c) {
372
372
  switch (_c.label) {
373
- case 0: return [4 /*yield*/, context.endpoint()];
373
+ case 0: return [4, context.endpoint()];
374
374
  case 1:
375
375
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
376
376
  headers = {
@@ -378,7 +378,7 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
378
378
  };
379
379
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
380
380
  body = JSON.stringify(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
381
- return [2 /*return*/, new __HttpRequest({
381
+ return [2, new __HttpRequest({
382
382
  protocol: protocol,
383
383
  hostname: hostname,
384
384
  port: port,
@@ -394,7 +394,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
394
394
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
395
395
  return __generator(this, function (_c) {
396
396
  switch (_c.label) {
397
- case 0: return [4 /*yield*/, context.endpoint()];
397
+ case 0: return [4, context.endpoint()];
398
398
  case 1:
399
399
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
400
400
  headers = {
@@ -402,7 +402,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
402
402
  };
403
403
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recommendations";
404
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 })));
405
- return [2 /*return*/, new __HttpRequest({
405
+ return [2, new __HttpRequest({
406
406
  protocol: protocol,
407
407
  hostname: hostname,
408
408
  port: port,
@@ -418,7 +418,7 @@ export var serializeAws_restJson1PutFeedbackCommand = function (input, context)
418
418
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
419
419
  return __generator(this, function (_c) {
420
420
  switch (_c.label) {
421
- case 0: return [4 /*yield*/, context.endpoint()];
421
+ case 0: return [4, context.endpoint()];
422
422
  case 1:
423
423
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
424
424
  headers = {
@@ -429,7 +429,7 @@ export var serializeAws_restJson1PutFeedbackCommand = function (input, context)
429
429
  input.InsightFeedback !== null && {
430
430
  InsightFeedback: serializeAws_restJson1InsightFeedback(input.InsightFeedback, context),
431
431
  })));
432
- return [2 /*return*/, new __HttpRequest({
432
+ return [2, new __HttpRequest({
433
433
  protocol: protocol,
434
434
  hostname: hostname,
435
435
  port: port,
@@ -445,7 +445,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
445
445
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
446
446
  return __generator(this, function (_c) {
447
447
  switch (_c.label) {
448
- case 0: return [4 /*yield*/, context.endpoint()];
448
+ case 0: return [4, context.endpoint()];
449
449
  case 1:
450
450
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
451
451
  headers = {};
@@ -460,7 +460,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
460
460
  else {
461
461
  throw new Error("No value provided for input HTTP label: Id.");
462
462
  }
463
- return [2 /*return*/, new __HttpRequest({
463
+ return [2, new __HttpRequest({
464
464
  protocol: protocol,
465
465
  hostname: hostname,
466
466
  port: port,
@@ -476,7 +476,7 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
476
476
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
477
477
  return __generator(this, function (_c) {
478
478
  switch (_c.label) {
479
- case 0: return [4 /*yield*/, context.endpoint()];
479
+ case 0: return [4, context.endpoint()];
480
480
  case 1:
481
481
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
482
482
  headers = {
@@ -488,7 +488,7 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
488
488
  input.StartTimeRange !== null && {
489
489
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
490
490
  })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
491
- return [2 /*return*/, new __HttpRequest({
491
+ return [2, new __HttpRequest({
492
492
  protocol: protocol,
493
493
  hostname: hostname,
494
494
  port: port,
@@ -505,7 +505,7 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
505
505
  var _c;
506
506
  return __generator(this, function (_d) {
507
507
  switch (_d.label) {
508
- case 0: return [4 /*yield*/, context.endpoint()];
508
+ case 0: return [4, context.endpoint()];
509
509
  case 1:
510
510
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
511
511
  headers = {
@@ -516,7 +516,7 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
516
516
  input.ResourceCollection !== null && {
517
517
  ResourceCollection: serializeAws_restJson1CostEstimationResourceCollectionFilter(input.ResourceCollection, context),
518
518
  })));
519
- return [2 /*return*/, new __HttpRequest({
519
+ return [2, new __HttpRequest({
520
520
  protocol: protocol,
521
521
  hostname: hostname,
522
522
  port: port,
@@ -532,7 +532,7 @@ export var serializeAws_restJson1UpdateResourceCollectionCommand = function (inp
532
532
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
533
533
  return __generator(this, function (_c) {
534
534
  switch (_c.label) {
535
- case 0: return [4 /*yield*/, context.endpoint()];
535
+ case 0: return [4, context.endpoint()];
536
536
  case 1:
537
537
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
538
538
  headers = {
@@ -543,7 +543,7 @@ export var serializeAws_restJson1UpdateResourceCollectionCommand = function (inp
543
543
  input.ResourceCollection !== null && {
544
544
  ResourceCollection: serializeAws_restJson1UpdateResourceCollectionFilter(input.ResourceCollection, context),
545
545
  })));
546
- return [2 /*return*/, new __HttpRequest({
546
+ return [2, new __HttpRequest({
547
547
  protocol: protocol,
548
548
  hostname: hostname,
549
549
  port: port,
@@ -559,7 +559,7 @@ export var serializeAws_restJson1UpdateServiceIntegrationCommand = function (inp
559
559
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
560
560
  return __generator(this, function (_c) {
561
561
  switch (_c.label) {
562
- case 0: return [4 /*yield*/, context.endpoint()];
562
+ case 0: return [4, context.endpoint()];
563
563
  case 1:
564
564
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
565
565
  headers = {
@@ -570,7 +570,7 @@ export var serializeAws_restJson1UpdateServiceIntegrationCommand = function (inp
570
570
  input.ServiceIntegration !== null && {
571
571
  ServiceIntegration: serializeAws_restJson1UpdateServiceIntegrationConfig(input.ServiceIntegration, context),
572
572
  })));
573
- return [2 /*return*/, new __HttpRequest({
573
+ return [2, new __HttpRequest({
574
574
  protocol: protocol,
575
575
  hostname: hostname,
576
576
  port: port,
@@ -588,7 +588,7 @@ export var deserializeAws_restJson1AddNotificationChannelCommand = function (out
588
588
  switch (_c.label) {
589
589
  case 0:
590
590
  if (output.statusCode !== 200 && output.statusCode >= 300) {
591
- return [2 /*return*/, deserializeAws_restJson1AddNotificationChannelCommandError(output, context)];
591
+ return [2, deserializeAws_restJson1AddNotificationChannelCommandError(output, context)];
592
592
  }
593
593
  contents = {
594
594
  $metadata: deserializeMetadata(output),
@@ -596,13 +596,13 @@ export var deserializeAws_restJson1AddNotificationChannelCommand = function (out
596
596
  };
597
597
  _a = __expectNonNull;
598
598
  _b = __expectObject;
599
- return [4 /*yield*/, parseBody(output.body, context)];
599
+ return [4, parseBody(output.body, context)];
600
600
  case 1:
601
601
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
602
602
  if (data.Id !== undefined && data.Id !== null) {
603
603
  contents.Id = __expectString(data.Id);
604
604
  }
605
- return [2 /*return*/, Promise.resolve(contents)];
605
+ return [2, Promise.resolve(contents)];
606
606
  }
607
607
  });
608
608
  }); };
@@ -614,71 +614,71 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
614
614
  case 0:
615
615
  _a = [__assign({}, output)];
616
616
  _k = {};
617
- return [4 /*yield*/, parseBody(output.body, context)];
617
+ return [4, parseBody(output.body, context)];
618
618
  case 1:
619
619
  parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
620
620
  errorCode = "UnknownError";
621
621
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
622
  _b = errorCode;
623
623
  switch (_b) {
624
- case "AccessDeniedException": return [3 /*break*/, 2];
625
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
626
- case "ConflictException": return [3 /*break*/, 4];
627
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
628
- case "InternalServerException": return [3 /*break*/, 6];
629
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
630
- case "ResourceNotFoundException": return [3 /*break*/, 8];
631
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 8];
632
- case "ServiceQuotaExceededException": return [3 /*break*/, 10];
633
- case "com.amazonaws.devopsguru#ServiceQuotaExceededException": return [3 /*break*/, 10];
634
- case "ThrottlingException": return [3 /*break*/, 12];
635
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 12];
636
- case "ValidationException": return [3 /*break*/, 14];
637
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 14];
638
- }
639
- return [3 /*break*/, 16];
624
+ case "AccessDeniedException": return [3, 2];
625
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
626
+ case "ConflictException": return [3, 4];
627
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
628
+ case "InternalServerException": return [3, 6];
629
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
630
+ case "ResourceNotFoundException": return [3, 8];
631
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 8];
632
+ case "ServiceQuotaExceededException": return [3, 10];
633
+ case "com.amazonaws.devopsguru#ServiceQuotaExceededException": return [3, 10];
634
+ case "ThrottlingException": return [3, 12];
635
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 12];
636
+ case "ValidationException": return [3, 14];
637
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 14];
638
+ }
639
+ return [3, 16];
640
640
  case 2:
641
641
  _c = [{}];
642
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
642
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
643
643
  case 3:
644
644
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
645
- return [3 /*break*/, 17];
645
+ return [3, 17];
646
646
  case 4:
647
647
  _d = [{}];
648
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
648
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
649
649
  case 5:
650
650
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
651
- return [3 /*break*/, 17];
651
+ return [3, 17];
652
652
  case 6:
653
653
  _e = [{}];
654
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
654
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
655
655
  case 7:
656
656
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
657
- return [3 /*break*/, 17];
657
+ return [3, 17];
658
658
  case 8:
659
659
  _f = [{}];
660
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
660
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
661
661
  case 9:
662
662
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
663
- return [3 /*break*/, 17];
663
+ return [3, 17];
664
664
  case 10:
665
665
  _g = [{}];
666
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
666
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
667
667
  case 11:
668
668
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
669
- return [3 /*break*/, 17];
669
+ return [3, 17];
670
670
  case 12:
671
671
  _h = [{}];
672
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
672
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
673
673
  case 13:
674
674
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
675
- return [3 /*break*/, 17];
675
+ return [3, 17];
676
676
  case 14:
677
677
  _j = [{}];
678
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
678
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
679
679
  case 15:
680
680
  response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
681
- return [3 /*break*/, 17];
681
+ return [3, 17];
682
682
  case 16:
683
683
  parsedBody = parsedOutput.body;
684
684
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -688,7 +688,7 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
688
688
  message = response.message || response.Message || errorCode;
689
689
  response.message = message;
690
690
  delete response.Message;
691
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
691
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
692
692
  }
693
693
  });
694
694
  }); };
@@ -698,7 +698,7 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
698
698
  switch (_c.label) {
699
699
  case 0:
700
700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
701
- return [2 /*return*/, deserializeAws_restJson1DescribeAccountHealthCommandError(output, context)];
701
+ return [2, deserializeAws_restJson1DescribeAccountHealthCommandError(output, context)];
702
702
  }
703
703
  contents = {
704
704
  $metadata: deserializeMetadata(output),
@@ -709,7 +709,7 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
709
709
  };
710
710
  _a = __expectNonNull;
711
711
  _b = __expectObject;
712
- return [4 /*yield*/, parseBody(output.body, context)];
712
+ return [4, parseBody(output.body, context)];
713
713
  case 1:
714
714
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
715
715
  if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
@@ -724,7 +724,7 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
724
724
  if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
725
725
  contents.ResourceHours = __expectLong(data.ResourceHours);
726
726
  }
727
- return [2 /*return*/, Promise.resolve(contents)];
727
+ return [2, Promise.resolve(contents)];
728
728
  }
729
729
  });
730
730
  }); };
@@ -736,47 +736,47 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
736
736
  case 0:
737
737
  _a = [__assign({}, output)];
738
738
  _g = {};
739
- return [4 /*yield*/, parseBody(output.body, context)];
739
+ return [4, parseBody(output.body, context)];
740
740
  case 1:
741
741
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
742
742
  errorCode = "UnknownError";
743
743
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
744
744
  _b = errorCode;
745
745
  switch (_b) {
746
- case "AccessDeniedException": return [3 /*break*/, 2];
747
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
748
- case "InternalServerException": return [3 /*break*/, 4];
749
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
750
- case "ThrottlingException": return [3 /*break*/, 6];
751
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
752
- case "ValidationException": return [3 /*break*/, 8];
753
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
754
- }
755
- return [3 /*break*/, 10];
746
+ case "AccessDeniedException": return [3, 2];
747
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
748
+ case "InternalServerException": return [3, 4];
749
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
750
+ case "ThrottlingException": return [3, 6];
751
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
752
+ case "ValidationException": return [3, 8];
753
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
754
+ }
755
+ return [3, 10];
756
756
  case 2:
757
757
  _c = [{}];
758
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
758
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
759
759
  case 3:
760
760
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
761
- return [3 /*break*/, 11];
761
+ return [3, 11];
762
762
  case 4:
763
763
  _d = [{}];
764
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
764
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
765
765
  case 5:
766
766
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
767
- return [3 /*break*/, 11];
767
+ return [3, 11];
768
768
  case 6:
769
769
  _e = [{}];
770
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
770
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
771
771
  case 7:
772
772
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
773
- return [3 /*break*/, 11];
773
+ return [3, 11];
774
774
  case 8:
775
775
  _f = [{}];
776
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
776
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
777
777
  case 9:
778
778
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
779
- return [3 /*break*/, 11];
779
+ return [3, 11];
780
780
  case 10:
781
781
  parsedBody = parsedOutput.body;
782
782
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -786,7 +786,7 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
786
786
  message = response.message || response.Message || errorCode;
787
787
  response.message = message;
788
788
  delete response.Message;
789
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
789
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
790
790
  }
791
791
  });
792
792
  }); };
@@ -796,7 +796,7 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
796
796
  switch (_c.label) {
797
797
  case 0:
798
798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
799
- return [2 /*return*/, deserializeAws_restJson1DescribeAccountOverviewCommandError(output, context)];
799
+ return [2, deserializeAws_restJson1DescribeAccountOverviewCommandError(output, context)];
800
800
  }
801
801
  contents = {
802
802
  $metadata: deserializeMetadata(output),
@@ -806,7 +806,7 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
806
806
  };
807
807
  _a = __expectNonNull;
808
808
  _b = __expectObject;
809
- return [4 /*yield*/, parseBody(output.body, context)];
809
+ return [4, parseBody(output.body, context)];
810
810
  case 1:
811
811
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
812
812
  if (data.MeanTimeToRecoverInMilliseconds !== undefined && data.MeanTimeToRecoverInMilliseconds !== null) {
@@ -818,7 +818,7 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
818
818
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
819
819
  contents.ReactiveInsights = __expectInt32(data.ReactiveInsights);
820
820
  }
821
- return [2 /*return*/, Promise.resolve(contents)];
821
+ return [2, Promise.resolve(contents)];
822
822
  }
823
823
  });
824
824
  }); };
@@ -830,47 +830,47 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
830
830
  case 0:
831
831
  _a = [__assign({}, output)];
832
832
  _g = {};
833
- return [4 /*yield*/, parseBody(output.body, context)];
833
+ return [4, parseBody(output.body, context)];
834
834
  case 1:
835
835
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
836
836
  errorCode = "UnknownError";
837
837
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
838
838
  _b = errorCode;
839
839
  switch (_b) {
840
- case "AccessDeniedException": return [3 /*break*/, 2];
841
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
842
- case "InternalServerException": return [3 /*break*/, 4];
843
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
844
- case "ThrottlingException": return [3 /*break*/, 6];
845
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
846
- case "ValidationException": return [3 /*break*/, 8];
847
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
848
- }
849
- return [3 /*break*/, 10];
840
+ case "AccessDeniedException": return [3, 2];
841
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
842
+ case "InternalServerException": return [3, 4];
843
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
844
+ case "ThrottlingException": return [3, 6];
845
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
846
+ case "ValidationException": return [3, 8];
847
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
848
+ }
849
+ return [3, 10];
850
850
  case 2:
851
851
  _c = [{}];
852
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
852
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
853
853
  case 3:
854
854
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
855
- return [3 /*break*/, 11];
855
+ return [3, 11];
856
856
  case 4:
857
857
  _d = [{}];
858
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
858
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
859
859
  case 5:
860
860
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
861
- return [3 /*break*/, 11];
861
+ return [3, 11];
862
862
  case 6:
863
863
  _e = [{}];
864
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
864
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
865
865
  case 7:
866
866
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
867
- return [3 /*break*/, 11];
867
+ return [3, 11];
868
868
  case 8:
869
869
  _f = [{}];
870
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
870
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
871
871
  case 9:
872
872
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
873
- return [3 /*break*/, 11];
873
+ return [3, 11];
874
874
  case 10:
875
875
  parsedBody = parsedOutput.body;
876
876
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -880,7 +880,7 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
880
880
  message = response.message || response.Message || errorCode;
881
881
  response.message = message;
882
882
  delete response.Message;
883
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
883
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
884
884
  }
885
885
  });
886
886
  }); };
@@ -890,7 +890,7 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
890
890
  switch (_c.label) {
891
891
  case 0:
892
892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
893
- return [2 /*return*/, deserializeAws_restJson1DescribeAnomalyCommandError(output, context)];
893
+ return [2, deserializeAws_restJson1DescribeAnomalyCommandError(output, context)];
894
894
  }
895
895
  contents = {
896
896
  $metadata: deserializeMetadata(output),
@@ -899,7 +899,7 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
899
899
  };
900
900
  _a = __expectNonNull;
901
901
  _b = __expectObject;
902
- return [4 /*yield*/, parseBody(output.body, context)];
902
+ return [4, parseBody(output.body, context)];
903
903
  case 1:
904
904
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
905
905
  if (data.ProactiveAnomaly !== undefined && data.ProactiveAnomaly !== null) {
@@ -908,7 +908,7 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
908
908
  if (data.ReactiveAnomaly !== undefined && data.ReactiveAnomaly !== null) {
909
909
  contents.ReactiveAnomaly = deserializeAws_restJson1ReactiveAnomaly(data.ReactiveAnomaly, context);
910
910
  }
911
- return [2 /*return*/, Promise.resolve(contents)];
911
+ return [2, Promise.resolve(contents)];
912
912
  }
913
913
  });
914
914
  }); };
@@ -920,55 +920,55 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
920
920
  case 0:
921
921
  _a = [__assign({}, output)];
922
922
  _h = {};
923
- return [4 /*yield*/, parseBody(output.body, context)];
923
+ return [4, parseBody(output.body, context)];
924
924
  case 1:
925
925
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
926
926
  errorCode = "UnknownError";
927
927
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
928
  _b = errorCode;
929
929
  switch (_b) {
930
- case "AccessDeniedException": return [3 /*break*/, 2];
931
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
932
- case "InternalServerException": return [3 /*break*/, 4];
933
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
934
- case "ResourceNotFoundException": return [3 /*break*/, 6];
935
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
936
- case "ThrottlingException": return [3 /*break*/, 8];
937
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
938
- case "ValidationException": return [3 /*break*/, 10];
939
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
940
- }
941
- return [3 /*break*/, 12];
930
+ case "AccessDeniedException": return [3, 2];
931
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
932
+ case "InternalServerException": return [3, 4];
933
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
934
+ case "ResourceNotFoundException": return [3, 6];
935
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
936
+ case "ThrottlingException": return [3, 8];
937
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
938
+ case "ValidationException": return [3, 10];
939
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
940
+ }
941
+ return [3, 12];
942
942
  case 2:
943
943
  _c = [{}];
944
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
944
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
945
945
  case 3:
946
946
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
947
- return [3 /*break*/, 13];
947
+ return [3, 13];
948
948
  case 4:
949
949
  _d = [{}];
950
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
950
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
951
951
  case 5:
952
952
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
953
- return [3 /*break*/, 13];
953
+ return [3, 13];
954
954
  case 6:
955
955
  _e = [{}];
956
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
956
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
957
957
  case 7:
958
958
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
959
- return [3 /*break*/, 13];
959
+ return [3, 13];
960
960
  case 8:
961
961
  _f = [{}];
962
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
962
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
963
963
  case 9:
964
964
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
965
- return [3 /*break*/, 13];
965
+ return [3, 13];
966
966
  case 10:
967
967
  _g = [{}];
968
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
968
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
969
969
  case 11:
970
970
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
971
- return [3 /*break*/, 13];
971
+ return [3, 13];
972
972
  case 12:
973
973
  parsedBody = parsedOutput.body;
974
974
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -978,7 +978,7 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
978
978
  message = response.message || response.Message || errorCode;
979
979
  response.message = message;
980
980
  delete response.Message;
981
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
981
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
982
982
  }
983
983
  });
984
984
  }); };
@@ -988,7 +988,7 @@ export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, c
988
988
  switch (_c.label) {
989
989
  case 0:
990
990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
991
- return [2 /*return*/, deserializeAws_restJson1DescribeFeedbackCommandError(output, context)];
991
+ return [2, deserializeAws_restJson1DescribeFeedbackCommandError(output, context)];
992
992
  }
993
993
  contents = {
994
994
  $metadata: deserializeMetadata(output),
@@ -996,13 +996,13 @@ export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, c
996
996
  };
997
997
  _a = __expectNonNull;
998
998
  _b = __expectObject;
999
- return [4 /*yield*/, parseBody(output.body, context)];
999
+ return [4, parseBody(output.body, context)];
1000
1000
  case 1:
1001
1001
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1002
1002
  if (data.InsightFeedback !== undefined && data.InsightFeedback !== null) {
1003
1003
  contents.InsightFeedback = deserializeAws_restJson1InsightFeedback(data.InsightFeedback, context);
1004
1004
  }
1005
- return [2 /*return*/, Promise.resolve(contents)];
1005
+ return [2, Promise.resolve(contents)];
1006
1006
  }
1007
1007
  });
1008
1008
  }); };
@@ -1014,55 +1014,55 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
1014
1014
  case 0:
1015
1015
  _a = [__assign({}, output)];
1016
1016
  _h = {};
1017
- return [4 /*yield*/, parseBody(output.body, context)];
1017
+ return [4, parseBody(output.body, context)];
1018
1018
  case 1:
1019
1019
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1020
1020
  errorCode = "UnknownError";
1021
1021
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
1022
  _b = errorCode;
1023
1023
  switch (_b) {
1024
- case "AccessDeniedException": return [3 /*break*/, 2];
1025
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1026
- case "InternalServerException": return [3 /*break*/, 4];
1027
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1028
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1029
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1030
- case "ThrottlingException": return [3 /*break*/, 8];
1031
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1032
- case "ValidationException": return [3 /*break*/, 10];
1033
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1034
- }
1035
- return [3 /*break*/, 12];
1024
+ case "AccessDeniedException": return [3, 2];
1025
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1026
+ case "InternalServerException": return [3, 4];
1027
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1028
+ case "ResourceNotFoundException": return [3, 6];
1029
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1030
+ case "ThrottlingException": return [3, 8];
1031
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1032
+ case "ValidationException": return [3, 10];
1033
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1034
+ }
1035
+ return [3, 12];
1036
1036
  case 2:
1037
1037
  _c = [{}];
1038
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1038
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1039
1039
  case 3:
1040
1040
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1041
- return [3 /*break*/, 13];
1041
+ return [3, 13];
1042
1042
  case 4:
1043
1043
  _d = [{}];
1044
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1044
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1045
1045
  case 5:
1046
1046
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1047
- return [3 /*break*/, 13];
1047
+ return [3, 13];
1048
1048
  case 6:
1049
1049
  _e = [{}];
1050
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1050
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1051
1051
  case 7:
1052
1052
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1053
- return [3 /*break*/, 13];
1053
+ return [3, 13];
1054
1054
  case 8:
1055
1055
  _f = [{}];
1056
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1056
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1057
1057
  case 9:
1058
1058
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1059
- return [3 /*break*/, 13];
1059
+ return [3, 13];
1060
1060
  case 10:
1061
1061
  _g = [{}];
1062
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1062
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1063
1063
  case 11:
1064
1064
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1065
- return [3 /*break*/, 13];
1065
+ return [3, 13];
1066
1066
  case 12:
1067
1067
  parsedBody = parsedOutput.body;
1068
1068
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1072,7 +1072,7 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
1072
1072
  message = response.message || response.Message || errorCode;
1073
1073
  response.message = message;
1074
1074
  delete response.Message;
1075
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1075
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1076
1076
  }
1077
1077
  });
1078
1078
  }); };
@@ -1082,7 +1082,7 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
1082
1082
  switch (_c.label) {
1083
1083
  case 0:
1084
1084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1085
- return [2 /*return*/, deserializeAws_restJson1DescribeInsightCommandError(output, context)];
1085
+ return [2, deserializeAws_restJson1DescribeInsightCommandError(output, context)];
1086
1086
  }
1087
1087
  contents = {
1088
1088
  $metadata: deserializeMetadata(output),
@@ -1091,7 +1091,7 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
1091
1091
  };
1092
1092
  _a = __expectNonNull;
1093
1093
  _b = __expectObject;
1094
- return [4 /*yield*/, parseBody(output.body, context)];
1094
+ return [4, parseBody(output.body, context)];
1095
1095
  case 1:
1096
1096
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1097
1097
  if (data.ProactiveInsight !== undefined && data.ProactiveInsight !== null) {
@@ -1100,7 +1100,7 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
1100
1100
  if (data.ReactiveInsight !== undefined && data.ReactiveInsight !== null) {
1101
1101
  contents.ReactiveInsight = deserializeAws_restJson1ReactiveInsight(data.ReactiveInsight, context);
1102
1102
  }
1103
- return [2 /*return*/, Promise.resolve(contents)];
1103
+ return [2, Promise.resolve(contents)];
1104
1104
  }
1105
1105
  });
1106
1106
  }); };
@@ -1112,55 +1112,55 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1112
1112
  case 0:
1113
1113
  _a = [__assign({}, output)];
1114
1114
  _h = {};
1115
- return [4 /*yield*/, parseBody(output.body, context)];
1115
+ return [4, parseBody(output.body, context)];
1116
1116
  case 1:
1117
1117
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1118
1118
  errorCode = "UnknownError";
1119
1119
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
1120
  _b = errorCode;
1121
1121
  switch (_b) {
1122
- case "AccessDeniedException": return [3 /*break*/, 2];
1123
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1124
- case "InternalServerException": return [3 /*break*/, 4];
1125
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1126
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1127
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1128
- case "ThrottlingException": return [3 /*break*/, 8];
1129
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1130
- case "ValidationException": return [3 /*break*/, 10];
1131
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1132
- }
1133
- return [3 /*break*/, 12];
1122
+ case "AccessDeniedException": return [3, 2];
1123
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1124
+ case "InternalServerException": return [3, 4];
1125
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1126
+ case "ResourceNotFoundException": return [3, 6];
1127
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1128
+ case "ThrottlingException": return [3, 8];
1129
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1130
+ case "ValidationException": return [3, 10];
1131
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1132
+ }
1133
+ return [3, 12];
1134
1134
  case 2:
1135
1135
  _c = [{}];
1136
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1136
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1137
1137
  case 3:
1138
1138
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1139
- return [3 /*break*/, 13];
1139
+ return [3, 13];
1140
1140
  case 4:
1141
1141
  _d = [{}];
1142
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1142
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1143
1143
  case 5:
1144
1144
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1145
- return [3 /*break*/, 13];
1145
+ return [3, 13];
1146
1146
  case 6:
1147
1147
  _e = [{}];
1148
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1148
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1149
1149
  case 7:
1150
1150
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1151
- return [3 /*break*/, 13];
1151
+ return [3, 13];
1152
1152
  case 8:
1153
1153
  _f = [{}];
1154
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1154
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1155
1155
  case 9:
1156
1156
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1157
- return [3 /*break*/, 13];
1157
+ return [3, 13];
1158
1158
  case 10:
1159
1159
  _g = [{}];
1160
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1160
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1161
1161
  case 11:
1162
1162
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1163
- return [3 /*break*/, 13];
1163
+ return [3, 13];
1164
1164
  case 12:
1165
1165
  parsedBody = parsedOutput.body;
1166
1166
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1170,7 +1170,7 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1170
1170
  message = response.message || response.Message || errorCode;
1171
1171
  response.message = message;
1172
1172
  delete response.Message;
1173
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1173
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1174
1174
  }
1175
1175
  });
1176
1176
  }); };
@@ -1180,7 +1180,7 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
1180
1180
  switch (_c.label) {
1181
1181
  case 0:
1182
1182
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1183
- return [2 /*return*/, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
1183
+ return [2, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
1184
1184
  }
1185
1185
  contents = {
1186
1186
  $metadata: deserializeMetadata(output),
@@ -1190,7 +1190,7 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
1190
1190
  };
1191
1191
  _a = __expectNonNull;
1192
1192
  _b = __expectObject;
1193
- return [4 /*yield*/, parseBody(output.body, context)];
1193
+ return [4, parseBody(output.body, context)];
1194
1194
  case 1:
1195
1195
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1196
1196
  if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
@@ -1202,7 +1202,7 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
1202
1202
  if (data.Service !== undefined && data.Service !== null) {
1203
1203
  contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
1204
1204
  }
1205
- return [2 /*return*/, Promise.resolve(contents)];
1205
+ return [2, Promise.resolve(contents)];
1206
1206
  }
1207
1207
  });
1208
1208
  }); };
@@ -1214,47 +1214,47 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1214
1214
  case 0:
1215
1215
  _a = [__assign({}, output)];
1216
1216
  _g = {};
1217
- return [4 /*yield*/, parseBody(output.body, context)];
1217
+ return [4, parseBody(output.body, context)];
1218
1218
  case 1:
1219
1219
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1220
1220
  errorCode = "UnknownError";
1221
1221
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1222
1222
  _b = errorCode;
1223
1223
  switch (_b) {
1224
- case "AccessDeniedException": return [3 /*break*/, 2];
1225
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1226
- case "InternalServerException": return [3 /*break*/, 4];
1227
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1228
- case "ThrottlingException": return [3 /*break*/, 6];
1229
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
1230
- case "ValidationException": return [3 /*break*/, 8];
1231
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
1232
- }
1233
- return [3 /*break*/, 10];
1224
+ case "AccessDeniedException": return [3, 2];
1225
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1226
+ case "InternalServerException": return [3, 4];
1227
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1228
+ case "ThrottlingException": return [3, 6];
1229
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1230
+ case "ValidationException": return [3, 8];
1231
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1232
+ }
1233
+ return [3, 10];
1234
1234
  case 2:
1235
1235
  _c = [{}];
1236
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1236
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1237
1237
  case 3:
1238
1238
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1239
- return [3 /*break*/, 11];
1239
+ return [3, 11];
1240
1240
  case 4:
1241
1241
  _d = [{}];
1242
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1242
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1243
1243
  case 5:
1244
1244
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1245
- return [3 /*break*/, 11];
1245
+ return [3, 11];
1246
1246
  case 6:
1247
1247
  _e = [{}];
1248
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1248
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1249
1249
  case 7:
1250
1250
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1251
- return [3 /*break*/, 11];
1251
+ return [3, 11];
1252
1252
  case 8:
1253
1253
  _f = [{}];
1254
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1254
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1255
1255
  case 9:
1256
1256
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1257
- return [3 /*break*/, 11];
1257
+ return [3, 11];
1258
1258
  case 10:
1259
1259
  parsedBody = parsedOutput.body;
1260
1260
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1264,7 +1264,7 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1264
1264
  message = response.message || response.Message || errorCode;
1265
1265
  response.message = message;
1266
1266
  delete response.Message;
1267
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1267
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1268
1268
  }
1269
1269
  });
1270
1270
  }); };
@@ -1274,7 +1274,7 @@ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function
1274
1274
  switch (_c.label) {
1275
1275
  case 0:
1276
1276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
- return [2 /*return*/, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
1277
+ return [2, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
1278
1278
  }
1279
1279
  contents = {
1280
1280
  $metadata: deserializeMetadata(output),
@@ -1282,13 +1282,13 @@ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function
1282
1282
  };
1283
1283
  _a = __expectNonNull;
1284
1284
  _b = __expectObject;
1285
- return [4 /*yield*/, parseBody(output.body, context)];
1285
+ return [4, parseBody(output.body, context)];
1286
1286
  case 1:
1287
1287
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1288
1288
  if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1289
1289
  contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1290
1290
  }
1291
- return [2 /*return*/, Promise.resolve(contents)];
1291
+ return [2, Promise.resolve(contents)];
1292
1292
  }
1293
1293
  });
1294
1294
  }); };
@@ -1300,47 +1300,47 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1300
1300
  case 0:
1301
1301
  _a = [__assign({}, output)];
1302
1302
  _g = {};
1303
- return [4 /*yield*/, parseBody(output.body, context)];
1303
+ return [4, parseBody(output.body, context)];
1304
1304
  case 1:
1305
1305
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1306
1306
  errorCode = "UnknownError";
1307
1307
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1308
1308
  _b = errorCode;
1309
1309
  switch (_b) {
1310
- case "AccessDeniedException": return [3 /*break*/, 2];
1311
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1312
- case "InternalServerException": return [3 /*break*/, 4];
1313
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1314
- case "ThrottlingException": return [3 /*break*/, 6];
1315
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
1316
- case "ValidationException": return [3 /*break*/, 8];
1317
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
1318
- }
1319
- return [3 /*break*/, 10];
1310
+ case "AccessDeniedException": return [3, 2];
1311
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1312
+ case "InternalServerException": return [3, 4];
1313
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1314
+ case "ThrottlingException": return [3, 6];
1315
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1316
+ case "ValidationException": return [3, 8];
1317
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1318
+ }
1319
+ return [3, 10];
1320
1320
  case 2:
1321
1321
  _c = [{}];
1322
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1322
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1323
1323
  case 3:
1324
1324
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1325
- return [3 /*break*/, 11];
1325
+ return [3, 11];
1326
1326
  case 4:
1327
1327
  _d = [{}];
1328
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1328
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1329
1329
  case 5:
1330
1330
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1331
- return [3 /*break*/, 11];
1331
+ return [3, 11];
1332
1332
  case 6:
1333
1333
  _e = [{}];
1334
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1334
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1335
1335
  case 7:
1336
1336
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1337
- return [3 /*break*/, 11];
1337
+ return [3, 11];
1338
1338
  case 8:
1339
1339
  _f = [{}];
1340
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1340
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1341
1341
  case 9:
1342
1342
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1343
- return [3 /*break*/, 11];
1343
+ return [3, 11];
1344
1344
  case 10:
1345
1345
  parsedBody = parsedOutput.body;
1346
1346
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1350,7 +1350,7 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1350
1350
  message = response.message || response.Message || errorCode;
1351
1351
  response.message = message;
1352
1352
  delete response.Message;
1353
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1353
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1354
1354
  }
1355
1355
  });
1356
1356
  }); };
@@ -1360,7 +1360,7 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
1360
1360
  switch (_c.label) {
1361
1361
  case 0:
1362
1362
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
- return [2 /*return*/, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
1363
+ return [2, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
1364
1364
  }
1365
1365
  contents = {
1366
1366
  $metadata: deserializeMetadata(output),
@@ -1373,7 +1373,7 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
1373
1373
  };
1374
1374
  _a = __expectNonNull;
1375
1375
  _b = __expectObject;
1376
- return [4 /*yield*/, parseBody(output.body, context)];
1376
+ return [4, parseBody(output.body, context)];
1377
1377
  case 1:
1378
1378
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1379
1379
  if (data.Costs !== undefined && data.Costs !== null) {
@@ -1394,7 +1394,7 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
1394
1394
  if (data.TotalCost !== undefined && data.TotalCost !== null) {
1395
1395
  contents.TotalCost = __limitedParseDouble(data.TotalCost);
1396
1396
  }
1397
- return [2 /*return*/, Promise.resolve(contents)];
1397
+ return [2, Promise.resolve(contents)];
1398
1398
  }
1399
1399
  });
1400
1400
  }); };
@@ -1406,55 +1406,55 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1406
1406
  case 0:
1407
1407
  _a = [__assign({}, output)];
1408
1408
  _h = {};
1409
- return [4 /*yield*/, parseBody(output.body, context)];
1409
+ return [4, parseBody(output.body, context)];
1410
1410
  case 1:
1411
1411
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1412
1412
  errorCode = "UnknownError";
1413
1413
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
1414
  _b = errorCode;
1415
1415
  switch (_b) {
1416
- case "AccessDeniedException": return [3 /*break*/, 2];
1417
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1418
- case "InternalServerException": return [3 /*break*/, 4];
1419
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1420
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1421
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1422
- case "ThrottlingException": return [3 /*break*/, 8];
1423
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1424
- case "ValidationException": return [3 /*break*/, 10];
1425
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1426
- }
1427
- return [3 /*break*/, 12];
1416
+ case "AccessDeniedException": return [3, 2];
1417
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1418
+ case "InternalServerException": return [3, 4];
1419
+ 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];
1426
+ }
1427
+ return [3, 12];
1428
1428
  case 2:
1429
1429
  _c = [{}];
1430
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1430
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1431
1431
  case 3:
1432
1432
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1433
- return [3 /*break*/, 13];
1433
+ return [3, 13];
1434
1434
  case 4:
1435
1435
  _d = [{}];
1436
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1436
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1437
1437
  case 5:
1438
1438
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1439
- return [3 /*break*/, 13];
1439
+ return [3, 13];
1440
1440
  case 6:
1441
1441
  _e = [{}];
1442
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1442
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1443
1443
  case 7:
1444
1444
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1445
- return [3 /*break*/, 13];
1445
+ return [3, 13];
1446
1446
  case 8:
1447
1447
  _f = [{}];
1448
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1448
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1449
1449
  case 9:
1450
1450
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1451
- return [3 /*break*/, 13];
1451
+ return [3, 13];
1452
1452
  case 10:
1453
1453
  _g = [{}];
1454
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1454
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1455
1455
  case 11:
1456
1456
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1457
- return [3 /*break*/, 13];
1457
+ return [3, 13];
1458
1458
  case 12:
1459
1459
  parsedBody = parsedOutput.body;
1460
1460
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1464,7 +1464,7 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1464
1464
  message = response.message || response.Message || errorCode;
1465
1465
  response.message = message;
1466
1466
  delete response.Message;
1467
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1467
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1468
1468
  }
1469
1469
  });
1470
1470
  }); };
@@ -1474,7 +1474,7 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
1474
1474
  switch (_c.label) {
1475
1475
  case 0:
1476
1476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1477
- return [2 /*return*/, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
1477
+ return [2, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
1478
1478
  }
1479
1479
  contents = {
1480
1480
  $metadata: deserializeMetadata(output),
@@ -1483,7 +1483,7 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
1483
1483
  };
1484
1484
  _a = __expectNonNull;
1485
1485
  _b = __expectObject;
1486
- return [4 /*yield*/, parseBody(output.body, context)];
1486
+ return [4, parseBody(output.body, context)];
1487
1487
  case 1:
1488
1488
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1489
1489
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1492,7 +1492,7 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
1492
1492
  if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1493
1493
  contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
1494
1494
  }
1495
- return [2 /*return*/, Promise.resolve(contents)];
1495
+ return [2, Promise.resolve(contents)];
1496
1496
  }
1497
1497
  });
1498
1498
  }); };
@@ -1504,55 +1504,55 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
1504
1504
  case 0:
1505
1505
  _a = [__assign({}, output)];
1506
1506
  _h = {};
1507
- return [4 /*yield*/, parseBody(output.body, context)];
1507
+ return [4, parseBody(output.body, context)];
1508
1508
  case 1:
1509
1509
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1510
1510
  errorCode = "UnknownError";
1511
1511
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1512
1512
  _b = errorCode;
1513
1513
  switch (_b) {
1514
- case "AccessDeniedException": return [3 /*break*/, 2];
1515
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1516
- case "InternalServerException": return [3 /*break*/, 4];
1517
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1518
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1519
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1520
- case "ThrottlingException": return [3 /*break*/, 8];
1521
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1522
- case "ValidationException": return [3 /*break*/, 10];
1523
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1524
- }
1525
- return [3 /*break*/, 12];
1514
+ case "AccessDeniedException": return [3, 2];
1515
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1516
+ case "InternalServerException": return [3, 4];
1517
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1518
+ case "ResourceNotFoundException": return [3, 6];
1519
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1520
+ case "ThrottlingException": return [3, 8];
1521
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1522
+ case "ValidationException": return [3, 10];
1523
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1524
+ }
1525
+ return [3, 12];
1526
1526
  case 2:
1527
1527
  _c = [{}];
1528
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1528
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1529
1529
  case 3:
1530
1530
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1531
- return [3 /*break*/, 13];
1531
+ return [3, 13];
1532
1532
  case 4:
1533
1533
  _d = [{}];
1534
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1534
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1535
1535
  case 5:
1536
1536
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1537
- return [3 /*break*/, 13];
1537
+ return [3, 13];
1538
1538
  case 6:
1539
1539
  _e = [{}];
1540
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1540
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1541
1541
  case 7:
1542
1542
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1543
- return [3 /*break*/, 13];
1543
+ return [3, 13];
1544
1544
  case 8:
1545
1545
  _f = [{}];
1546
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1546
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1547
1547
  case 9:
1548
1548
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1549
- return [3 /*break*/, 13];
1549
+ return [3, 13];
1550
1550
  case 10:
1551
1551
  _g = [{}];
1552
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1552
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1553
1553
  case 11:
1554
1554
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1555
- return [3 /*break*/, 13];
1555
+ return [3, 13];
1556
1556
  case 12:
1557
1557
  parsedBody = parsedOutput.body;
1558
1558
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1562,7 +1562,7 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
1562
1562
  message = response.message || response.Message || errorCode;
1563
1563
  response.message = message;
1564
1564
  delete response.Message;
1565
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1565
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1566
1566
  }
1567
1567
  });
1568
1568
  }); };
@@ -1572,7 +1572,7 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
1572
1572
  switch (_c.label) {
1573
1573
  case 0:
1574
1574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1575
- return [2 /*return*/, deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context)];
1575
+ return [2, deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context)];
1576
1576
  }
1577
1577
  contents = {
1578
1578
  $metadata: deserializeMetadata(output),
@@ -1582,7 +1582,7 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
1582
1582
  };
1583
1583
  _a = __expectNonNull;
1584
1584
  _b = __expectObject;
1585
- return [4 /*yield*/, parseBody(output.body, context)];
1585
+ return [4, parseBody(output.body, context)];
1586
1586
  case 1:
1587
1587
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1588
1588
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1594,7 +1594,7 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
1594
1594
  if (data.ReactiveAnomalies !== undefined && data.ReactiveAnomalies !== null) {
1595
1595
  contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
1596
1596
  }
1597
- return [2 /*return*/, Promise.resolve(contents)];
1597
+ return [2, Promise.resolve(contents)];
1598
1598
  }
1599
1599
  });
1600
1600
  }); };
@@ -1606,55 +1606,55 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
1606
1606
  case 0:
1607
1607
  _a = [__assign({}, output)];
1608
1608
  _h = {};
1609
- return [4 /*yield*/, parseBody(output.body, context)];
1609
+ return [4, parseBody(output.body, context)];
1610
1610
  case 1:
1611
1611
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1612
1612
  errorCode = "UnknownError";
1613
1613
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1614
1614
  _b = errorCode;
1615
1615
  switch (_b) {
1616
- case "AccessDeniedException": return [3 /*break*/, 2];
1617
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1618
- case "InternalServerException": return [3 /*break*/, 4];
1619
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1620
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1621
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1622
- case "ThrottlingException": return [3 /*break*/, 8];
1623
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1624
- case "ValidationException": return [3 /*break*/, 10];
1625
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1626
- }
1627
- return [3 /*break*/, 12];
1616
+ case "AccessDeniedException": return [3, 2];
1617
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1618
+ case "InternalServerException": return [3, 4];
1619
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1620
+ case "ResourceNotFoundException": return [3, 6];
1621
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1622
+ case "ThrottlingException": return [3, 8];
1623
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1624
+ case "ValidationException": return [3, 10];
1625
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1626
+ }
1627
+ return [3, 12];
1628
1628
  case 2:
1629
1629
  _c = [{}];
1630
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1630
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1631
1631
  case 3:
1632
1632
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1633
- return [3 /*break*/, 13];
1633
+ return [3, 13];
1634
1634
  case 4:
1635
1635
  _d = [{}];
1636
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1636
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1637
1637
  case 5:
1638
1638
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1639
- return [3 /*break*/, 13];
1639
+ return [3, 13];
1640
1640
  case 6:
1641
1641
  _e = [{}];
1642
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1642
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1643
1643
  case 7:
1644
1644
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1645
- return [3 /*break*/, 13];
1645
+ return [3, 13];
1646
1646
  case 8:
1647
1647
  _f = [{}];
1648
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1648
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1649
1649
  case 9:
1650
1650
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1651
- return [3 /*break*/, 13];
1651
+ return [3, 13];
1652
1652
  case 10:
1653
1653
  _g = [{}];
1654
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1654
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1655
1655
  case 11:
1656
1656
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1657
- return [3 /*break*/, 13];
1657
+ return [3, 13];
1658
1658
  case 12:
1659
1659
  parsedBody = parsedOutput.body;
1660
1660
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1664,7 +1664,7 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
1664
1664
  message = response.message || response.Message || errorCode;
1665
1665
  response.message = message;
1666
1666
  delete response.Message;
1667
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1667
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1668
1668
  }
1669
1669
  });
1670
1670
  }); };
@@ -1674,7 +1674,7 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
1674
1674
  switch (_c.label) {
1675
1675
  case 0:
1676
1676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
- return [2 /*return*/, deserializeAws_restJson1ListEventsCommandError(output, context)];
1677
+ return [2, deserializeAws_restJson1ListEventsCommandError(output, context)];
1678
1678
  }
1679
1679
  contents = {
1680
1680
  $metadata: deserializeMetadata(output),
@@ -1683,7 +1683,7 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
1683
1683
  };
1684
1684
  _a = __expectNonNull;
1685
1685
  _b = __expectObject;
1686
- return [4 /*yield*/, parseBody(output.body, context)];
1686
+ return [4, parseBody(output.body, context)];
1687
1687
  case 1:
1688
1688
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1689
1689
  if (data.Events !== undefined && data.Events !== null) {
@@ -1692,7 +1692,7 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
1692
1692
  if (data.NextToken !== undefined && data.NextToken !== null) {
1693
1693
  contents.NextToken = __expectString(data.NextToken);
1694
1694
  }
1695
- return [2 /*return*/, Promise.resolve(contents)];
1695
+ return [2, Promise.resolve(contents)];
1696
1696
  }
1697
1697
  });
1698
1698
  }); };
@@ -1704,55 +1704,55 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
1704
1704
  case 0:
1705
1705
  _a = [__assign({}, output)];
1706
1706
  _h = {};
1707
- return [4 /*yield*/, parseBody(output.body, context)];
1707
+ return [4, parseBody(output.body, context)];
1708
1708
  case 1:
1709
1709
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1710
1710
  errorCode = "UnknownError";
1711
1711
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1712
1712
  _b = errorCode;
1713
1713
  switch (_b) {
1714
- case "AccessDeniedException": return [3 /*break*/, 2];
1715
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1716
- case "InternalServerException": return [3 /*break*/, 4];
1717
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1718
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1719
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
1720
- case "ThrottlingException": return [3 /*break*/, 8];
1721
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
1722
- case "ValidationException": return [3 /*break*/, 10];
1723
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
1724
- }
1725
- return [3 /*break*/, 12];
1714
+ case "AccessDeniedException": return [3, 2];
1715
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1716
+ case "InternalServerException": return [3, 4];
1717
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1718
+ case "ResourceNotFoundException": return [3, 6];
1719
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
1720
+ case "ThrottlingException": return [3, 8];
1721
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
1722
+ case "ValidationException": return [3, 10];
1723
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
1724
+ }
1725
+ return [3, 12];
1726
1726
  case 2:
1727
1727
  _c = [{}];
1728
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1728
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1729
1729
  case 3:
1730
1730
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1731
- return [3 /*break*/, 13];
1731
+ return [3, 13];
1732
1732
  case 4:
1733
1733
  _d = [{}];
1734
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1734
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1735
1735
  case 5:
1736
1736
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1737
- return [3 /*break*/, 13];
1737
+ return [3, 13];
1738
1738
  case 6:
1739
1739
  _e = [{}];
1740
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1740
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1741
1741
  case 7:
1742
1742
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1743
- return [3 /*break*/, 13];
1743
+ return [3, 13];
1744
1744
  case 8:
1745
1745
  _f = [{}];
1746
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1746
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1747
1747
  case 9:
1748
1748
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1749
- return [3 /*break*/, 13];
1749
+ return [3, 13];
1750
1750
  case 10:
1751
1751
  _g = [{}];
1752
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1752
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1753
1753
  case 11:
1754
1754
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1755
- return [3 /*break*/, 13];
1755
+ return [3, 13];
1756
1756
  case 12:
1757
1757
  parsedBody = parsedOutput.body;
1758
1758
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1762,7 +1762,7 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
1762
1762
  message = response.message || response.Message || errorCode;
1763
1763
  response.message = message;
1764
1764
  delete response.Message;
1765
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1765
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1766
1766
  }
1767
1767
  });
1768
1768
  }); };
@@ -1772,7 +1772,7 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
1772
1772
  switch (_c.label) {
1773
1773
  case 0:
1774
1774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1775
- return [2 /*return*/, deserializeAws_restJson1ListInsightsCommandError(output, context)];
1775
+ return [2, deserializeAws_restJson1ListInsightsCommandError(output, context)];
1776
1776
  }
1777
1777
  contents = {
1778
1778
  $metadata: deserializeMetadata(output),
@@ -1782,7 +1782,7 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
1782
1782
  };
1783
1783
  _a = __expectNonNull;
1784
1784
  _b = __expectObject;
1785
- return [4 /*yield*/, parseBody(output.body, context)];
1785
+ return [4, parseBody(output.body, context)];
1786
1786
  case 1:
1787
1787
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1788
1788
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1794,7 +1794,7 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
1794
1794
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1795
1795
  contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
1796
1796
  }
1797
- return [2 /*return*/, Promise.resolve(contents)];
1797
+ return [2, Promise.resolve(contents)];
1798
1798
  }
1799
1799
  });
1800
1800
  }); };
@@ -1806,47 +1806,47 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
1806
1806
  case 0:
1807
1807
  _a = [__assign({}, output)];
1808
1808
  _g = {};
1809
- return [4 /*yield*/, parseBody(output.body, context)];
1809
+ return [4, parseBody(output.body, context)];
1810
1810
  case 1:
1811
1811
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1812
1812
  errorCode = "UnknownError";
1813
1813
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1814
1814
  _b = errorCode;
1815
1815
  switch (_b) {
1816
- case "AccessDeniedException": return [3 /*break*/, 2];
1817
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1818
- case "InternalServerException": return [3 /*break*/, 4];
1819
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1820
- case "ThrottlingException": return [3 /*break*/, 6];
1821
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
1822
- case "ValidationException": return [3 /*break*/, 8];
1823
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
1824
- }
1825
- return [3 /*break*/, 10];
1816
+ case "AccessDeniedException": return [3, 2];
1817
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1818
+ case "InternalServerException": return [3, 4];
1819
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1820
+ case "ThrottlingException": return [3, 6];
1821
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1822
+ case "ValidationException": return [3, 8];
1823
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1824
+ }
1825
+ return [3, 10];
1826
1826
  case 2:
1827
1827
  _c = [{}];
1828
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1828
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1829
1829
  case 3:
1830
1830
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1831
- return [3 /*break*/, 11];
1831
+ return [3, 11];
1832
1832
  case 4:
1833
1833
  _d = [{}];
1834
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1834
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1835
1835
  case 5:
1836
1836
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1837
- return [3 /*break*/, 11];
1837
+ return [3, 11];
1838
1838
  case 6:
1839
1839
  _e = [{}];
1840
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1840
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1841
1841
  case 7:
1842
1842
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1843
- return [3 /*break*/, 11];
1843
+ return [3, 11];
1844
1844
  case 8:
1845
1845
  _f = [{}];
1846
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1846
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1847
1847
  case 9:
1848
1848
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1849
- return [3 /*break*/, 11];
1849
+ return [3, 11];
1850
1850
  case 10:
1851
1851
  parsedBody = parsedOutput.body;
1852
1852
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1856,7 +1856,7 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
1856
1856
  message = response.message || response.Message || errorCode;
1857
1857
  response.message = message;
1858
1858
  delete response.Message;
1859
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1859
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1860
1860
  }
1861
1861
  });
1862
1862
  }); };
@@ -1866,7 +1866,7 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
1866
1866
  switch (_c.label) {
1867
1867
  case 0:
1868
1868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1869
- return [2 /*return*/, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
1869
+ return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
1870
1870
  }
1871
1871
  contents = {
1872
1872
  $metadata: deserializeMetadata(output),
@@ -1875,7 +1875,7 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
1875
1875
  };
1876
1876
  _a = __expectNonNull;
1877
1877
  _b = __expectObject;
1878
- return [4 /*yield*/, parseBody(output.body, context)];
1878
+ return [4, parseBody(output.body, context)];
1879
1879
  case 1:
1880
1880
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1881
1881
  if (data.Channels !== undefined && data.Channels !== null) {
@@ -1884,7 +1884,7 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
1884
1884
  if (data.NextToken !== undefined && data.NextToken !== null) {
1885
1885
  contents.NextToken = __expectString(data.NextToken);
1886
1886
  }
1887
- return [2 /*return*/, Promise.resolve(contents)];
1887
+ return [2, Promise.resolve(contents)];
1888
1888
  }
1889
1889
  });
1890
1890
  }); };
@@ -1896,47 +1896,47 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
1896
1896
  case 0:
1897
1897
  _a = [__assign({}, output)];
1898
1898
  _g = {};
1899
- return [4 /*yield*/, parseBody(output.body, context)];
1899
+ return [4, parseBody(output.body, context)];
1900
1900
  case 1:
1901
1901
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1902
1902
  errorCode = "UnknownError";
1903
1903
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
1904
  _b = errorCode;
1905
1905
  switch (_b) {
1906
- case "AccessDeniedException": return [3 /*break*/, 2];
1907
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1908
- case "InternalServerException": return [3 /*break*/, 4];
1909
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
1910
- case "ThrottlingException": return [3 /*break*/, 6];
1911
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
1912
- case "ValidationException": return [3 /*break*/, 8];
1913
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
1914
- }
1915
- return [3 /*break*/, 10];
1906
+ case "AccessDeniedException": return [3, 2];
1907
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1908
+ case "InternalServerException": return [3, 4];
1909
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
1910
+ case "ThrottlingException": return [3, 6];
1911
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
1912
+ case "ValidationException": return [3, 8];
1913
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
1914
+ }
1915
+ return [3, 10];
1916
1916
  case 2:
1917
1917
  _c = [{}];
1918
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1918
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1919
1919
  case 3:
1920
1920
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1921
- return [3 /*break*/, 11];
1921
+ return [3, 11];
1922
1922
  case 4:
1923
1923
  _d = [{}];
1924
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1924
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1925
1925
  case 5:
1926
1926
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1927
- return [3 /*break*/, 11];
1927
+ return [3, 11];
1928
1928
  case 6:
1929
1929
  _e = [{}];
1930
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1930
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
1931
1931
  case 7:
1932
1932
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1933
- return [3 /*break*/, 11];
1933
+ return [3, 11];
1934
1934
  case 8:
1935
1935
  _f = [{}];
1936
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1936
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1937
1937
  case 9:
1938
1938
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1939
- return [3 /*break*/, 11];
1939
+ return [3, 11];
1940
1940
  case 10:
1941
1941
  parsedBody = parsedOutput.body;
1942
1942
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1946,7 +1946,7 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
1946
1946
  message = response.message || response.Message || errorCode;
1947
1947
  response.message = message;
1948
1948
  delete response.Message;
1949
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1949
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1950
1950
  }
1951
1951
  });
1952
1952
  }); };
@@ -1956,7 +1956,7 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
1956
1956
  switch (_c.label) {
1957
1957
  case 0:
1958
1958
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1959
- return [2 /*return*/, deserializeAws_restJson1ListRecommendationsCommandError(output, context)];
1959
+ return [2, deserializeAws_restJson1ListRecommendationsCommandError(output, context)];
1960
1960
  }
1961
1961
  contents = {
1962
1962
  $metadata: deserializeMetadata(output),
@@ -1965,7 +1965,7 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
1965
1965
  };
1966
1966
  _a = __expectNonNull;
1967
1967
  _b = __expectObject;
1968
- return [4 /*yield*/, parseBody(output.body, context)];
1968
+ return [4, parseBody(output.body, context)];
1969
1969
  case 1:
1970
1970
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1971
1971
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -1974,7 +1974,7 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
1974
1974
  if (data.Recommendations !== undefined && data.Recommendations !== null) {
1975
1975
  contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
1976
1976
  }
1977
- return [2 /*return*/, Promise.resolve(contents)];
1977
+ return [2, Promise.resolve(contents)];
1978
1978
  }
1979
1979
  });
1980
1980
  }); };
@@ -1986,55 +1986,55 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
1986
1986
  case 0:
1987
1987
  _a = [__assign({}, output)];
1988
1988
  _h = {};
1989
- return [4 /*yield*/, parseBody(output.body, context)];
1989
+ return [4, parseBody(output.body, context)];
1990
1990
  case 1:
1991
1991
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1992
1992
  errorCode = "UnknownError";
1993
1993
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1994
1994
  _b = errorCode;
1995
1995
  switch (_b) {
1996
- case "AccessDeniedException": return [3 /*break*/, 2];
1997
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
1998
- case "InternalServerException": return [3 /*break*/, 4];
1999
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
2000
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2001
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 6];
2002
- case "ThrottlingException": return [3 /*break*/, 8];
2003
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
2004
- case "ValidationException": return [3 /*break*/, 10];
2005
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
2006
- }
2007
- return [3 /*break*/, 12];
1996
+ case "AccessDeniedException": return [3, 2];
1997
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
1998
+ case "InternalServerException": return [3, 4];
1999
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
2000
+ case "ResourceNotFoundException": return [3, 6];
2001
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
2002
+ case "ThrottlingException": return [3, 8];
2003
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
2004
+ case "ValidationException": return [3, 10];
2005
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
2006
+ }
2007
+ return [3, 12];
2008
2008
  case 2:
2009
2009
  _c = [{}];
2010
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2010
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2011
2011
  case 3:
2012
2012
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2013
- return [3 /*break*/, 13];
2013
+ return [3, 13];
2014
2014
  case 4:
2015
2015
  _d = [{}];
2016
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2016
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2017
2017
  case 5:
2018
2018
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2019
- return [3 /*break*/, 13];
2019
+ return [3, 13];
2020
2020
  case 6:
2021
2021
  _e = [{}];
2022
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2022
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2023
2023
  case 7:
2024
2024
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2025
- return [3 /*break*/, 13];
2025
+ return [3, 13];
2026
2026
  case 8:
2027
2027
  _f = [{}];
2028
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2028
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2029
2029
  case 9:
2030
2030
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2031
- return [3 /*break*/, 13];
2031
+ return [3, 13];
2032
2032
  case 10:
2033
2033
  _g = [{}];
2034
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2034
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2035
2035
  case 11:
2036
2036
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2037
- return [3 /*break*/, 13];
2037
+ return [3, 13];
2038
2038
  case 12:
2039
2039
  parsedBody = parsedOutput.body;
2040
2040
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2044,7 +2044,7 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
2044
2044
  message = response.message || response.Message || errorCode;
2045
2045
  response.message = message;
2046
2046
  delete response.Message;
2047
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2047
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2048
2048
  }
2049
2049
  });
2050
2050
  }); };
@@ -2054,15 +2054,15 @@ export var deserializeAws_restJson1PutFeedbackCommand = function (output, contex
2054
2054
  switch (_a.label) {
2055
2055
  case 0:
2056
2056
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2057
- return [2 /*return*/, deserializeAws_restJson1PutFeedbackCommandError(output, context)];
2057
+ return [2, deserializeAws_restJson1PutFeedbackCommandError(output, context)];
2058
2058
  }
2059
2059
  contents = {
2060
2060
  $metadata: deserializeMetadata(output),
2061
2061
  };
2062
- return [4 /*yield*/, collectBody(output.body, context)];
2062
+ return [4, collectBody(output.body, context)];
2063
2063
  case 1:
2064
2064
  _a.sent();
2065
- return [2 /*return*/, Promise.resolve(contents)];
2065
+ return [2, Promise.resolve(contents)];
2066
2066
  }
2067
2067
  });
2068
2068
  }); };
@@ -2074,63 +2074,63 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
2074
2074
  case 0:
2075
2075
  _a = [__assign({}, output)];
2076
2076
  _j = {};
2077
- return [4 /*yield*/, parseBody(output.body, context)];
2077
+ return [4, parseBody(output.body, context)];
2078
2078
  case 1:
2079
2079
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
2080
2080
  errorCode = "UnknownError";
2081
2081
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2082
2082
  _b = errorCode;
2083
2083
  switch (_b) {
2084
- case "AccessDeniedException": return [3 /*break*/, 2];
2085
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2086
- case "ConflictException": return [3 /*break*/, 4];
2087
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
2088
- case "InternalServerException": return [3 /*break*/, 6];
2089
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
2090
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2091
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 8];
2092
- case "ThrottlingException": return [3 /*break*/, 10];
2093
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 10];
2094
- case "ValidationException": return [3 /*break*/, 12];
2095
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 12];
2096
- }
2097
- return [3 /*break*/, 14];
2084
+ case "AccessDeniedException": return [3, 2];
2085
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2086
+ case "ConflictException": return [3, 4];
2087
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
2088
+ case "InternalServerException": return [3, 6];
2089
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
2090
+ case "ResourceNotFoundException": return [3, 8];
2091
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 8];
2092
+ case "ThrottlingException": return [3, 10];
2093
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 10];
2094
+ case "ValidationException": return [3, 12];
2095
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
2096
+ }
2097
+ return [3, 14];
2098
2098
  case 2:
2099
2099
  _c = [{}];
2100
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2100
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2101
2101
  case 3:
2102
2102
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2103
- return [3 /*break*/, 15];
2103
+ return [3, 15];
2104
2104
  case 4:
2105
2105
  _d = [{}];
2106
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2106
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2107
2107
  case 5:
2108
2108
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2109
- return [3 /*break*/, 15];
2109
+ return [3, 15];
2110
2110
  case 6:
2111
2111
  _e = [{}];
2112
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2112
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2113
2113
  case 7:
2114
2114
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2115
- return [3 /*break*/, 15];
2115
+ return [3, 15];
2116
2116
  case 8:
2117
2117
  _f = [{}];
2118
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2118
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2119
2119
  case 9:
2120
2120
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2121
- return [3 /*break*/, 15];
2121
+ return [3, 15];
2122
2122
  case 10:
2123
2123
  _g = [{}];
2124
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2124
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2125
2125
  case 11:
2126
2126
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2127
- return [3 /*break*/, 15];
2127
+ return [3, 15];
2128
2128
  case 12:
2129
2129
  _h = [{}];
2130
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2130
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2131
2131
  case 13:
2132
2132
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2133
- return [3 /*break*/, 15];
2133
+ return [3, 15];
2134
2134
  case 14:
2135
2135
  parsedBody = parsedOutput.body;
2136
2136
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2140,7 +2140,7 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
2140
2140
  message = response.message || response.Message || errorCode;
2141
2141
  response.message = message;
2142
2142
  delete response.Message;
2143
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2143
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2144
2144
  }
2145
2145
  });
2146
2146
  }); };
@@ -2150,15 +2150,15 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
2150
2150
  switch (_a.label) {
2151
2151
  case 0:
2152
2152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2153
- return [2 /*return*/, deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context)];
2153
+ return [2, deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context)];
2154
2154
  }
2155
2155
  contents = {
2156
2156
  $metadata: deserializeMetadata(output),
2157
2157
  };
2158
- return [4 /*yield*/, collectBody(output.body, context)];
2158
+ return [4, collectBody(output.body, context)];
2159
2159
  case 1:
2160
2160
  _a.sent();
2161
- return [2 /*return*/, Promise.resolve(contents)];
2161
+ return [2, Promise.resolve(contents)];
2162
2162
  }
2163
2163
  });
2164
2164
  }); };
@@ -2170,63 +2170,63 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
2170
2170
  case 0:
2171
2171
  _a = [__assign({}, output)];
2172
2172
  _j = {};
2173
- return [4 /*yield*/, parseBody(output.body, context)];
2173
+ return [4, parseBody(output.body, context)];
2174
2174
  case 1:
2175
2175
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
2176
2176
  errorCode = "UnknownError";
2177
2177
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
2178
  _b = errorCode;
2179
2179
  switch (_b) {
2180
- case "AccessDeniedException": return [3 /*break*/, 2];
2181
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2182
- case "ConflictException": return [3 /*break*/, 4];
2183
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
2184
- case "InternalServerException": return [3 /*break*/, 6];
2185
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
2186
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2187
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 8];
2188
- case "ThrottlingException": return [3 /*break*/, 10];
2189
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 10];
2190
- case "ValidationException": return [3 /*break*/, 12];
2191
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 12];
2192
- }
2193
- return [3 /*break*/, 14];
2180
+ case "AccessDeniedException": return [3, 2];
2181
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2182
+ case "ConflictException": return [3, 4];
2183
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
2184
+ case "InternalServerException": return [3, 6];
2185
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
2186
+ case "ResourceNotFoundException": return [3, 8];
2187
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 8];
2188
+ case "ThrottlingException": return [3, 10];
2189
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 10];
2190
+ case "ValidationException": return [3, 12];
2191
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
2192
+ }
2193
+ return [3, 14];
2194
2194
  case 2:
2195
2195
  _c = [{}];
2196
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2196
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2197
2197
  case 3:
2198
2198
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2199
- return [3 /*break*/, 15];
2199
+ return [3, 15];
2200
2200
  case 4:
2201
2201
  _d = [{}];
2202
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2202
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2203
2203
  case 5:
2204
2204
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2205
- return [3 /*break*/, 15];
2205
+ return [3, 15];
2206
2206
  case 6:
2207
2207
  _e = [{}];
2208
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2208
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2209
2209
  case 7:
2210
2210
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2211
- return [3 /*break*/, 15];
2211
+ return [3, 15];
2212
2212
  case 8:
2213
2213
  _f = [{}];
2214
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2214
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2215
2215
  case 9:
2216
2216
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2217
- return [3 /*break*/, 15];
2217
+ return [3, 15];
2218
2218
  case 10:
2219
2219
  _g = [{}];
2220
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2220
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2221
2221
  case 11:
2222
2222
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2223
- return [3 /*break*/, 15];
2223
+ return [3, 15];
2224
2224
  case 12:
2225
2225
  _h = [{}];
2226
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2226
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2227
2227
  case 13:
2228
2228
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2229
- return [3 /*break*/, 15];
2229
+ return [3, 15];
2230
2230
  case 14:
2231
2231
  parsedBody = parsedOutput.body;
2232
2232
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2236,7 +2236,7 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
2236
2236
  message = response.message || response.Message || errorCode;
2237
2237
  response.message = message;
2238
2238
  delete response.Message;
2239
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2239
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2240
2240
  }
2241
2241
  });
2242
2242
  }); };
@@ -2246,7 +2246,7 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
2246
2246
  switch (_c.label) {
2247
2247
  case 0:
2248
2248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2249
- return [2 /*return*/, deserializeAws_restJson1SearchInsightsCommandError(output, context)];
2249
+ return [2, deserializeAws_restJson1SearchInsightsCommandError(output, context)];
2250
2250
  }
2251
2251
  contents = {
2252
2252
  $metadata: deserializeMetadata(output),
@@ -2256,7 +2256,7 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
2256
2256
  };
2257
2257
  _a = __expectNonNull;
2258
2258
  _b = __expectObject;
2259
- return [4 /*yield*/, parseBody(output.body, context)];
2259
+ return [4, parseBody(output.body, context)];
2260
2260
  case 1:
2261
2261
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2262
2262
  if (data.NextToken !== undefined && data.NextToken !== null) {
@@ -2268,7 +2268,7 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
2268
2268
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
2269
2269
  contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
2270
2270
  }
2271
- return [2 /*return*/, Promise.resolve(contents)];
2271
+ return [2, Promise.resolve(contents)];
2272
2272
  }
2273
2273
  });
2274
2274
  }); };
@@ -2280,47 +2280,47 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2280
2280
  case 0:
2281
2281
  _a = [__assign({}, output)];
2282
2282
  _g = {};
2283
- return [4 /*yield*/, parseBody(output.body, context)];
2283
+ return [4, parseBody(output.body, context)];
2284
2284
  case 1:
2285
2285
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2286
2286
  errorCode = "UnknownError";
2287
2287
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2288
2288
  _b = errorCode;
2289
2289
  switch (_b) {
2290
- case "AccessDeniedException": return [3 /*break*/, 2];
2291
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2292
- case "InternalServerException": return [3 /*break*/, 4];
2293
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 4];
2294
- case "ThrottlingException": return [3 /*break*/, 6];
2295
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 6];
2296
- case "ValidationException": return [3 /*break*/, 8];
2297
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 8];
2298
- }
2299
- return [3 /*break*/, 10];
2290
+ case "AccessDeniedException": return [3, 2];
2291
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2292
+ case "InternalServerException": return [3, 4];
2293
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
2294
+ case "ThrottlingException": return [3, 6];
2295
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
2296
+ case "ValidationException": return [3, 8];
2297
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
2298
+ }
2299
+ return [3, 10];
2300
2300
  case 2:
2301
2301
  _c = [{}];
2302
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2302
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2303
2303
  case 3:
2304
2304
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2305
- return [3 /*break*/, 11];
2305
+ return [3, 11];
2306
2306
  case 4:
2307
2307
  _d = [{}];
2308
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2308
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2309
2309
  case 5:
2310
2310
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2311
- return [3 /*break*/, 11];
2311
+ return [3, 11];
2312
2312
  case 6:
2313
2313
  _e = [{}];
2314
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2314
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2315
2315
  case 7:
2316
2316
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2317
- return [3 /*break*/, 11];
2317
+ return [3, 11];
2318
2318
  case 8:
2319
2319
  _f = [{}];
2320
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2320
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2321
2321
  case 9:
2322
2322
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2323
- return [3 /*break*/, 11];
2323
+ return [3, 11];
2324
2324
  case 10:
2325
2325
  parsedBody = parsedOutput.body;
2326
2326
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2330,7 +2330,7 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2330
2330
  message = response.message || response.Message || errorCode;
2331
2331
  response.message = message;
2332
2332
  delete response.Message;
2333
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2333
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2334
2334
  }
2335
2335
  });
2336
2336
  }); };
@@ -2340,15 +2340,15 @@ export var deserializeAws_restJson1StartCostEstimationCommand = function (output
2340
2340
  switch (_a.label) {
2341
2341
  case 0:
2342
2342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2343
- return [2 /*return*/, deserializeAws_restJson1StartCostEstimationCommandError(output, context)];
2343
+ return [2, deserializeAws_restJson1StartCostEstimationCommandError(output, context)];
2344
2344
  }
2345
2345
  contents = {
2346
2346
  $metadata: deserializeMetadata(output),
2347
2347
  };
2348
- return [4 /*yield*/, collectBody(output.body, context)];
2348
+ return [4, collectBody(output.body, context)];
2349
2349
  case 1:
2350
2350
  _a.sent();
2351
- return [2 /*return*/, Promise.resolve(contents)];
2351
+ return [2, Promise.resolve(contents)];
2352
2352
  }
2353
2353
  });
2354
2354
  }); };
@@ -2360,63 +2360,63 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
2360
2360
  case 0:
2361
2361
  _a = [__assign({}, output)];
2362
2362
  _j = {};
2363
- return [4 /*yield*/, parseBody(output.body, context)];
2363
+ return [4, parseBody(output.body, context)];
2364
2364
  case 1:
2365
2365
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
2366
2366
  errorCode = "UnknownError";
2367
2367
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2368
2368
  _b = errorCode;
2369
2369
  switch (_b) {
2370
- case "AccessDeniedException": return [3 /*break*/, 2];
2371
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2372
- case "ConflictException": return [3 /*break*/, 4];
2373
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
2374
- case "InternalServerException": return [3 /*break*/, 6];
2375
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
2376
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2377
- case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3 /*break*/, 8];
2378
- case "ThrottlingException": return [3 /*break*/, 10];
2379
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 10];
2380
- case "ValidationException": return [3 /*break*/, 12];
2381
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 12];
2382
- }
2383
- return [3 /*break*/, 14];
2370
+ case "AccessDeniedException": return [3, 2];
2371
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2372
+ case "ConflictException": return [3, 4];
2373
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
2374
+ case "InternalServerException": return [3, 6];
2375
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
2376
+ case "ResourceNotFoundException": return [3, 8];
2377
+ case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 8];
2378
+ case "ThrottlingException": return [3, 10];
2379
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 10];
2380
+ case "ValidationException": return [3, 12];
2381
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
2382
+ }
2383
+ return [3, 14];
2384
2384
  case 2:
2385
2385
  _c = [{}];
2386
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2386
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2387
2387
  case 3:
2388
2388
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2389
- return [3 /*break*/, 15];
2389
+ return [3, 15];
2390
2390
  case 4:
2391
2391
  _d = [{}];
2392
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2392
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2393
2393
  case 5:
2394
2394
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2395
- return [3 /*break*/, 15];
2395
+ return [3, 15];
2396
2396
  case 6:
2397
2397
  _e = [{}];
2398
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2398
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2399
2399
  case 7:
2400
2400
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2401
- return [3 /*break*/, 15];
2401
+ return [3, 15];
2402
2402
  case 8:
2403
2403
  _f = [{}];
2404
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2404
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2405
2405
  case 9:
2406
2406
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2407
- return [3 /*break*/, 15];
2407
+ return [3, 15];
2408
2408
  case 10:
2409
2409
  _g = [{}];
2410
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2410
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2411
2411
  case 11:
2412
2412
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2413
- return [3 /*break*/, 15];
2413
+ return [3, 15];
2414
2414
  case 12:
2415
2415
  _h = [{}];
2416
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2416
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2417
2417
  case 13:
2418
2418
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2419
- return [3 /*break*/, 15];
2419
+ return [3, 15];
2420
2420
  case 14:
2421
2421
  parsedBody = parsedOutput.body;
2422
2422
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2426,7 +2426,7 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
2426
2426
  message = response.message || response.Message || errorCode;
2427
2427
  response.message = message;
2428
2428
  delete response.Message;
2429
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2429
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2430
2430
  }
2431
2431
  });
2432
2432
  }); };
@@ -2436,15 +2436,15 @@ export var deserializeAws_restJson1UpdateResourceCollectionCommand = function (o
2436
2436
  switch (_a.label) {
2437
2437
  case 0:
2438
2438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2439
- return [2 /*return*/, deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context)];
2439
+ return [2, deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context)];
2440
2440
  }
2441
2441
  contents = {
2442
2442
  $metadata: deserializeMetadata(output),
2443
2443
  };
2444
- return [4 /*yield*/, collectBody(output.body, context)];
2444
+ return [4, collectBody(output.body, context)];
2445
2445
  case 1:
2446
2446
  _a.sent();
2447
- return [2 /*return*/, Promise.resolve(contents)];
2447
+ return [2, Promise.resolve(contents)];
2448
2448
  }
2449
2449
  });
2450
2450
  }); };
@@ -2456,55 +2456,55 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
2456
2456
  case 0:
2457
2457
  _a = [__assign({}, output)];
2458
2458
  _h = {};
2459
- return [4 /*yield*/, parseBody(output.body, context)];
2459
+ return [4, parseBody(output.body, context)];
2460
2460
  case 1:
2461
2461
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2462
2462
  errorCode = "UnknownError";
2463
2463
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2464
2464
  _b = errorCode;
2465
2465
  switch (_b) {
2466
- case "AccessDeniedException": return [3 /*break*/, 2];
2467
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2468
- case "ConflictException": return [3 /*break*/, 4];
2469
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
2470
- case "InternalServerException": return [3 /*break*/, 6];
2471
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
2472
- case "ThrottlingException": return [3 /*break*/, 8];
2473
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
2474
- case "ValidationException": return [3 /*break*/, 10];
2475
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
2476
- }
2477
- return [3 /*break*/, 12];
2466
+ case "AccessDeniedException": return [3, 2];
2467
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2468
+ case "ConflictException": return [3, 4];
2469
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
2470
+ case "InternalServerException": return [3, 6];
2471
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
2472
+ case "ThrottlingException": return [3, 8];
2473
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
2474
+ case "ValidationException": return [3, 10];
2475
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
2476
+ }
2477
+ return [3, 12];
2478
2478
  case 2:
2479
2479
  _c = [{}];
2480
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2480
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2481
2481
  case 3:
2482
2482
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2483
- return [3 /*break*/, 13];
2483
+ return [3, 13];
2484
2484
  case 4:
2485
2485
  _d = [{}];
2486
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2486
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2487
2487
  case 5:
2488
2488
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2489
- return [3 /*break*/, 13];
2489
+ return [3, 13];
2490
2490
  case 6:
2491
2491
  _e = [{}];
2492
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2492
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2493
2493
  case 7:
2494
2494
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2495
- return [3 /*break*/, 13];
2495
+ return [3, 13];
2496
2496
  case 8:
2497
2497
  _f = [{}];
2498
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2498
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2499
2499
  case 9:
2500
2500
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2501
- return [3 /*break*/, 13];
2501
+ return [3, 13];
2502
2502
  case 10:
2503
2503
  _g = [{}];
2504
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2504
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2505
2505
  case 11:
2506
2506
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2507
- return [3 /*break*/, 13];
2507
+ return [3, 13];
2508
2508
  case 12:
2509
2509
  parsedBody = parsedOutput.body;
2510
2510
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2514,7 +2514,7 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
2514
2514
  message = response.message || response.Message || errorCode;
2515
2515
  response.message = message;
2516
2516
  delete response.Message;
2517
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2517
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2518
2518
  }
2519
2519
  });
2520
2520
  }); };
@@ -2524,15 +2524,15 @@ export var deserializeAws_restJson1UpdateServiceIntegrationCommand = function (o
2524
2524
  switch (_a.label) {
2525
2525
  case 0:
2526
2526
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2527
- return [2 /*return*/, deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context)];
2527
+ return [2, deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context)];
2528
2528
  }
2529
2529
  contents = {
2530
2530
  $metadata: deserializeMetadata(output),
2531
2531
  };
2532
- return [4 /*yield*/, collectBody(output.body, context)];
2532
+ return [4, collectBody(output.body, context)];
2533
2533
  case 1:
2534
2534
  _a.sent();
2535
- return [2 /*return*/, Promise.resolve(contents)];
2535
+ return [2, Promise.resolve(contents)];
2536
2536
  }
2537
2537
  });
2538
2538
  }); };
@@ -2544,55 +2544,55 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
2544
2544
  case 0:
2545
2545
  _a = [__assign({}, output)];
2546
2546
  _h = {};
2547
- return [4 /*yield*/, parseBody(output.body, context)];
2547
+ return [4, parseBody(output.body, context)];
2548
2548
  case 1:
2549
2549
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2550
2550
  errorCode = "UnknownError";
2551
2551
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2552
2552
  _b = errorCode;
2553
2553
  switch (_b) {
2554
- case "AccessDeniedException": return [3 /*break*/, 2];
2555
- case "com.amazonaws.devopsguru#AccessDeniedException": return [3 /*break*/, 2];
2556
- case "ConflictException": return [3 /*break*/, 4];
2557
- case "com.amazonaws.devopsguru#ConflictException": return [3 /*break*/, 4];
2558
- case "InternalServerException": return [3 /*break*/, 6];
2559
- case "com.amazonaws.devopsguru#InternalServerException": return [3 /*break*/, 6];
2560
- case "ThrottlingException": return [3 /*break*/, 8];
2561
- case "com.amazonaws.devopsguru#ThrottlingException": return [3 /*break*/, 8];
2562
- case "ValidationException": return [3 /*break*/, 10];
2563
- case "com.amazonaws.devopsguru#ValidationException": return [3 /*break*/, 10];
2564
- }
2565
- return [3 /*break*/, 12];
2554
+ case "AccessDeniedException": return [3, 2];
2555
+ case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
2556
+ case "ConflictException": return [3, 4];
2557
+ case "com.amazonaws.devopsguru#ConflictException": return [3, 4];
2558
+ case "InternalServerException": return [3, 6];
2559
+ case "com.amazonaws.devopsguru#InternalServerException": return [3, 6];
2560
+ case "ThrottlingException": return [3, 8];
2561
+ case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
2562
+ case "ValidationException": return [3, 10];
2563
+ case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
2564
+ }
2565
+ return [3, 12];
2566
2566
  case 2:
2567
2567
  _c = [{}];
2568
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2568
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2569
2569
  case 3:
2570
2570
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2571
- return [3 /*break*/, 13];
2571
+ return [3, 13];
2572
2572
  case 4:
2573
2573
  _d = [{}];
2574
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2574
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2575
2575
  case 5:
2576
2576
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2577
- return [3 /*break*/, 13];
2577
+ return [3, 13];
2578
2578
  case 6:
2579
2579
  _e = [{}];
2580
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2580
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2581
2581
  case 7:
2582
2582
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2583
- return [3 /*break*/, 13];
2583
+ return [3, 13];
2584
2584
  case 8:
2585
2585
  _f = [{}];
2586
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2586
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2587
2587
  case 9:
2588
2588
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2589
- return [3 /*break*/, 13];
2589
+ return [3, 13];
2590
2590
  case 10:
2591
2591
  _g = [{}];
2592
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2592
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2593
2593
  case 11:
2594
2594
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2595
- return [3 /*break*/, 13];
2595
+ return [3, 13];
2596
2596
  case 12:
2597
2597
  parsedBody = parsedOutput.body;
2598
2598
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2602,7 +2602,7 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
2602
2602
  message = response.message || response.Message || errorCode;
2603
2603
  response.message = message;
2604
2604
  delete response.Message;
2605
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2605
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2606
2606
  }
2607
2607
  });
2608
2608
  }); };
@@ -2619,7 +2619,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
2619
2619
  if (data.Message !== undefined && data.Message !== null) {
2620
2620
  contents.Message = __expectString(data.Message);
2621
2621
  }
2622
- return [2 /*return*/, contents];
2622
+ return [2, contents];
2623
2623
  });
2624
2624
  }); };
2625
2625
  var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2643,7 +2643,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
2643
2643
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2644
2644
  contents.ResourceType = __expectString(data.ResourceType);
2645
2645
  }
2646
- return [2 /*return*/, contents];
2646
+ return [2, contents];
2647
2647
  });
2648
2648
  }); };
2649
2649
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2663,7 +2663,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
2663
2663
  if (data.Message !== undefined && data.Message !== null) {
2664
2664
  contents.Message = __expectString(data.Message);
2665
2665
  }
2666
- return [2 /*return*/, contents];
2666
+ return [2, contents];
2667
2667
  });
2668
2668
  }); };
2669
2669
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2687,7 +2687,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
2687
2687
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2688
2688
  contents.ResourceType = __expectString(data.ResourceType);
2689
2689
  }
2690
- return [2 /*return*/, contents];
2690
+ return [2, contents];
2691
2691
  });
2692
2692
  }); };
2693
2693
  var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2703,7 +2703,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
2703
2703
  if (data.Message !== undefined && data.Message !== null) {
2704
2704
  contents.Message = __expectString(data.Message);
2705
2705
  }
2706
- return [2 /*return*/, contents];
2706
+ return [2, contents];
2707
2707
  });
2708
2708
  }); };
2709
2709
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2731,7 +2731,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
2731
2731
  if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
2732
2732
  contents.ServiceCode = __expectString(data.ServiceCode);
2733
2733
  }
2734
- return [2 /*return*/, contents];
2734
+ return [2, contents];
2735
2735
  });
2736
2736
  }); };
2737
2737
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2755,7 +2755,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2755
2755
  if (data.Reason !== undefined && data.Reason !== null) {
2756
2756
  contents.Reason = __expectString(data.Reason);
2757
2757
  }
2758
- return [2 /*return*/, contents];
2758
+ return [2, contents];
2759
2759
  });
2760
2760
  }); };
2761
2761
  var serializeAws_restJson1CloudFormationCollection = function (input, context) {
@@ -3617,7 +3617,6 @@ var deserializeMetadata = function (output) {
3617
3617
  cfId: output.headers["x-amz-cf-id"],
3618
3618
  });
3619
3619
  };
3620
- // Collect low-level response body stream to Uint8Array.
3621
3620
  var collectBody = function (streamBody, context) {
3622
3621
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
3623
3622
  if (streamBody instanceof Uint8Array) {
@@ -3625,7 +3624,6 @@ var collectBody = function (streamBody, context) {
3625
3624
  }
3626
3625
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3627
3626
  };
3628
- // Encode Uint8Array data into string with utf-8.
3629
3627
  var collectBodyString = function (streamBody, context) {
3630
3628
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
3631
3629
  };
@@ -3644,9 +3642,6 @@ var parseBody = function (streamBody, context) {
3644
3642
  return {};
3645
3643
  });
3646
3644
  };
3647
- /**
3648
- * Load an error code for the aws.rest-json-1.1 protocol.
3649
- */
3650
3645
  var loadRestJsonErrorCode = function (output, data) {
3651
3646
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3652
3647
  var sanitizeErrorCode = function (rawValue) {