@aws-sdk/client-devops-guru 3.118.1 → 3.128.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.
@@ -15,8 +15,7 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
15
15
  "content-type": "application/json",
16
16
  };
17
17
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
18
- body = JSON.stringify(__assign({}, (input.Config !== undefined &&
19
- input.Config !== null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) })));
18
+ body = JSON.stringify(__assign({}, (input.Config != null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) })));
20
19
  return [2, new __HttpRequest({
21
20
  protocol: protocol,
22
21
  hostname: hostname,
@@ -95,8 +94,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
95
94
  "content-type": "application/json",
96
95
  };
97
96
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts/overview";
98
- body = JSON.stringify(__assign(__assign({}, (input.FromTime !== undefined &&
99
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
97
+ body = JSON.stringify(__assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
100
98
  return [2, new __HttpRequest({
101
99
  protocol: protocol,
102
100
  hostname: hostname,
@@ -177,7 +175,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
177
175
  "content-type": "application/json",
178
176
  };
179
177
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
180
- body = JSON.stringify(__assign({}, (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })));
178
+ body = JSON.stringify(__assign({}, (input.InsightId != null && { InsightId: input.InsightId })));
181
179
  return [2, new __HttpRequest({
182
180
  protocol: protocol,
183
181
  hostname: hostname,
@@ -234,9 +232,7 @@ export var serializeAws_restJson1DescribeOrganizationHealthCommand = function (i
234
232
  "content-type": "application/json",
235
233
  };
236
234
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health";
237
- body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
238
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds !== undefined &&
239
- input.OrganizationalUnitIds !== null && {
235
+ body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds != null && {
240
236
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
241
237
  })));
242
238
  return [2, new __HttpRequest({
@@ -262,12 +258,9 @@ export var serializeAws_restJson1DescribeOrganizationOverviewCommand = function
262
258
  "content-type": "application/json",
263
259
  };
264
260
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/overview";
265
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
266
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime !== undefined &&
267
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds !== undefined &&
268
- input.OrganizationalUnitIds !== null && {
261
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds != null && {
269
262
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
270
- })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
263
+ })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
271
264
  return [2, new __HttpRequest({
272
265
  protocol: protocol,
273
266
  hostname: hostname,
@@ -291,12 +284,9 @@ export var serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCom
291
284
  "content-type": "application/json",
292
285
  };
293
286
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health/resource-collection";
294
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
295
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType !== undefined &&
296
- input.OrganizationResourceCollectionType !== null && {
287
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType != null && {
297
288
  OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
298
- })), (input.OrganizationalUnitIds !== undefined &&
299
- input.OrganizationalUnitIds !== null && {
289
+ })), (input.OrganizationalUnitIds != null && {
300
290
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
301
291
  })));
302
292
  return [2, new __HttpRequest({
@@ -447,8 +437,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
447
437
  else {
448
438
  throw new Error("No value provided for input HTTP label: InsightId.");
449
439
  }
450
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
451
- input.StartTimeRange !== null && {
440
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
452
441
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
453
442
  })));
454
443
  return [2, new __HttpRequest({
@@ -474,8 +463,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
474
463
  "content-type": "application/json",
475
464
  };
476
465
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
477
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Filters !== undefined &&
478
- 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 })));
466
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Filters != null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
479
467
  return [2, new __HttpRequest({
480
468
  protocol: protocol,
481
469
  hostname: hostname,
@@ -499,8 +487,7 @@ export var serializeAws_restJson1ListInsightsCommand = function (input, context)
499
487
  "content-type": "application/json",
500
488
  };
501
489
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights";
502
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StatusFilter !== undefined &&
503
- input.StatusFilter !== null && {
490
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StatusFilter != null && {
504
491
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
505
492
  })));
506
493
  return [2, new __HttpRequest({
@@ -526,7 +513,7 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
526
513
  "content-type": "application/json",
527
514
  };
528
515
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
529
- body = JSON.stringify(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
516
+ body = JSON.stringify(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })));
530
517
  return [2, new __HttpRequest({
531
518
  protocol: protocol,
532
519
  hostname: hostname,
@@ -550,14 +537,11 @@ export var serializeAws_restJson1ListOrganizationInsightsCommand = function (inp
550
537
  "content-type": "application/json",
551
538
  };
552
539
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights";
553
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
554
- input.AccountIds !== null && {
540
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
555
541
  AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
556
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds !== undefined &&
557
- input.OrganizationalUnitIds !== null && {
542
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds != null && {
558
543
  OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
559
- })), (input.StatusFilter !== undefined &&
560
- input.StatusFilter !== null && {
544
+ })), (input.StatusFilter != null && {
561
545
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
562
546
  })));
563
547
  return [2, new __HttpRequest({
@@ -583,7 +567,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
583
567
  "content-type": "application/json",
584
568
  };
585
569
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recommendations";
586
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
570
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.InsightId != null && { InsightId: input.InsightId })), (input.Locale != null && { Locale: input.Locale })), (input.NextToken != null && { NextToken: input.NextToken })));
587
571
  return [2, new __HttpRequest({
588
572
  protocol: protocol,
589
573
  hostname: hostname,
@@ -607,8 +591,7 @@ export var serializeAws_restJson1PutFeedbackCommand = function (input, context)
607
591
  "content-type": "application/json",
608
592
  };
609
593
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
610
- body = JSON.stringify(__assign({}, (input.InsightFeedback !== undefined &&
611
- input.InsightFeedback !== null && {
594
+ body = JSON.stringify(__assign({}, (input.InsightFeedback != null && {
612
595
  InsightFeedback: serializeAws_restJson1InsightFeedback(input.InsightFeedback, context),
613
596
  })));
614
597
  return [2, new __HttpRequest({
@@ -665,11 +648,9 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
665
648
  "content-type": "application/json",
666
649
  };
667
650
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/search";
668
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
669
- input.Filters !== null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
670
- input.StartTimeRange !== null && {
651
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
671
652
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
672
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
653
+ })), (input.Type != null && { Type: input.Type })));
673
654
  return [2, new __HttpRequest({
674
655
  protocol: protocol,
675
656
  hostname: hostname,
@@ -693,16 +674,13 @@ export var serializeAws_restJson1SearchOrganizationInsightsCommand = function (i
693
674
  "content-type": "application/json",
694
675
  };
695
676
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights/search";
696
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
697
- input.AccountIds !== null && {
677
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
698
678
  AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
699
- })), (input.Filters !== undefined &&
700
- input.Filters !== null && {
679
+ })), (input.Filters != null && {
701
680
  Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
702
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
703
- input.StartTimeRange !== null && {
681
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
704
682
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
705
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
683
+ })), (input.Type != null && { Type: input.Type })));
706
684
  return [2, new __HttpRequest({
707
685
  protocol: protocol,
708
686
  hostname: hostname,
@@ -727,8 +705,7 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
727
705
  "content-type": "application/json",
728
706
  };
729
707
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cost-estimation";
730
- body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ResourceCollection !== undefined &&
731
- input.ResourceCollection !== null && {
708
+ body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ResourceCollection != null && {
732
709
  ResourceCollection: serializeAws_restJson1CostEstimationResourceCollectionFilter(input.ResourceCollection, context),
733
710
  })));
734
711
  return [2, new __HttpRequest({
@@ -754,8 +731,7 @@ export var serializeAws_restJson1UpdateEventSourcesConfigCommand = function (inp
754
731
  "content-type": "application/json",
755
732
  };
756
733
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
757
- body = JSON.stringify(__assign({}, (input.EventSources !== undefined &&
758
- input.EventSources !== null && {
734
+ body = JSON.stringify(__assign({}, (input.EventSources != null && {
759
735
  EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
760
736
  })));
761
737
  return [2, new __HttpRequest({
@@ -781,8 +757,7 @@ export var serializeAws_restJson1UpdateResourceCollectionCommand = function (inp
781
757
  "content-type": "application/json",
782
758
  };
783
759
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resource-collections";
784
- body = JSON.stringify(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.ResourceCollection !== undefined &&
785
- input.ResourceCollection !== null && {
760
+ body = JSON.stringify(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.ResourceCollection != null && {
786
761
  ResourceCollection: serializeAws_restJson1UpdateResourceCollectionFilter(input.ResourceCollection, context),
787
762
  })));
788
763
  return [2, new __HttpRequest({
@@ -808,8 +783,7 @@ export var serializeAws_restJson1UpdateServiceIntegrationCommand = function (inp
808
783
  "content-type": "application/json",
809
784
  };
810
785
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/service-integrations";
811
- body = JSON.stringify(__assign({}, (input.ServiceIntegration !== undefined &&
812
- input.ServiceIntegration !== null && {
786
+ body = JSON.stringify(__assign({}, (input.ServiceIntegration != null && {
813
787
  ServiceIntegration: serializeAws_restJson1UpdateServiceIntegrationConfig(input.ServiceIntegration, context),
814
788
  })));
815
789
  return [2, new __HttpRequest({
@@ -849,7 +823,7 @@ export var deserializeAws_restJson1AddNotificationChannelCommand = function (out
849
823
  });
850
824
  }); };
851
825
  var deserializeAws_restJson1AddNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
852
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
826
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
853
827
  var _c;
854
828
  return __generator(this, function (_d) {
855
829
  switch (_d.label) {
@@ -859,7 +833,6 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
859
833
  return [4, parseBody(output.body, context)];
860
834
  case 1:
861
835
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
862
- errorCode = "UnknownError";
863
836
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
864
837
  _b = errorCode;
865
838
  switch (_b) {
@@ -895,10 +868,12 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
895
868
  case 15: throw _d.sent();
896
869
  case 16:
897
870
  parsedBody = parsedOutput.body;
871
+ $metadata = deserializeMetadata(output);
872
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
898
873
  response = new __BaseException({
899
- name: parsedBody.code || parsedBody.Code || errorCode,
874
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
900
875
  $fault: "client",
901
- $metadata: deserializeMetadata(output),
876
+ $metadata: $metadata,
902
877
  });
903
878
  throw __decorateServiceException(response, parsedBody);
904
879
  }
@@ -923,7 +898,7 @@ export var deserializeAws_restJson1DeleteInsightCommand = function (output, cont
923
898
  });
924
899
  }); };
925
900
  var deserializeAws_restJson1DeleteInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
926
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
901
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
927
902
  var _c;
928
903
  return __generator(this, function (_d) {
929
904
  switch (_d.label) {
@@ -933,7 +908,6 @@ var deserializeAws_restJson1DeleteInsightCommandError = function (output, contex
933
908
  return [4, parseBody(output.body, context)];
934
909
  case 1:
935
910
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
936
- errorCode = "UnknownError";
937
911
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
912
  _b = errorCode;
939
913
  switch (_b) {
@@ -965,10 +939,12 @@ var deserializeAws_restJson1DeleteInsightCommandError = function (output, contex
965
939
  case 13: throw _d.sent();
966
940
  case 14:
967
941
  parsedBody = parsedOutput.body;
942
+ $metadata = deserializeMetadata(output);
943
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
968
944
  response = new __BaseException({
969
- name: parsedBody.code || parsedBody.Code || errorCode,
945
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
970
946
  $fault: "client",
971
- $metadata: deserializeMetadata(output),
947
+ $metadata: $metadata,
972
948
  });
973
949
  throw __decorateServiceException(response, parsedBody);
974
950
  }
@@ -1011,7 +987,7 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
1011
987
  });
1012
988
  }); };
1013
989
  var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1014
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
990
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1015
991
  var _c;
1016
992
  return __generator(this, function (_d) {
1017
993
  switch (_d.label) {
@@ -1021,7 +997,6 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
1021
997
  return [4, parseBody(output.body, context)];
1022
998
  case 1:
1023
999
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1024
- errorCode = "UnknownError";
1025
1000
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1026
1001
  _b = errorCode;
1027
1002
  switch (_b) {
@@ -1045,10 +1020,12 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
1045
1020
  case 9: throw _d.sent();
1046
1021
  case 10:
1047
1022
  parsedBody = parsedOutput.body;
1023
+ $metadata = deserializeMetadata(output);
1024
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1048
1025
  response = new __BaseException({
1049
- name: parsedBody.code || parsedBody.Code || errorCode,
1026
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1050
1027
  $fault: "client",
1051
- $metadata: deserializeMetadata(output),
1028
+ $metadata: $metadata,
1052
1029
  });
1053
1030
  throw __decorateServiceException(response, parsedBody);
1054
1031
  }
@@ -1087,7 +1064,7 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
1087
1064
  });
1088
1065
  }); };
1089
1066
  var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1090
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1067
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1091
1068
  var _c;
1092
1069
  return __generator(this, function (_d) {
1093
1070
  switch (_d.label) {
@@ -1097,7 +1074,6 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
1097
1074
  return [4, parseBody(output.body, context)];
1098
1075
  case 1:
1099
1076
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1100
- errorCode = "UnknownError";
1101
1077
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
1078
  _b = errorCode;
1103
1079
  switch (_b) {
@@ -1121,10 +1097,12 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
1121
1097
  case 9: throw _d.sent();
1122
1098
  case 10:
1123
1099
  parsedBody = parsedOutput.body;
1100
+ $metadata = deserializeMetadata(output);
1101
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1124
1102
  response = new __BaseException({
1125
- name: parsedBody.code || parsedBody.Code || errorCode,
1103
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1126
1104
  $fault: "client",
1127
- $metadata: deserializeMetadata(output),
1105
+ $metadata: $metadata,
1128
1106
  });
1129
1107
  throw __decorateServiceException(response, parsedBody);
1130
1108
  }
@@ -1159,7 +1137,7 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
1159
1137
  });
1160
1138
  }); };
1161
1139
  var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1162
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1140
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1163
1141
  var _c;
1164
1142
  return __generator(this, function (_d) {
1165
1143
  switch (_d.label) {
@@ -1169,7 +1147,6 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
1169
1147
  return [4, parseBody(output.body, context)];
1170
1148
  case 1:
1171
1149
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1172
- errorCode = "UnknownError";
1173
1150
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1174
1151
  _b = errorCode;
1175
1152
  switch (_b) {
@@ -1197,10 +1174,12 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
1197
1174
  case 11: throw _d.sent();
1198
1175
  case 12:
1199
1176
  parsedBody = parsedOutput.body;
1177
+ $metadata = deserializeMetadata(output);
1178
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1200
1179
  response = new __BaseException({
1201
- name: parsedBody.code || parsedBody.Code || errorCode,
1180
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1202
1181
  $fault: "client",
1203
- $metadata: deserializeMetadata(output),
1182
+ $metadata: $metadata,
1204
1183
  });
1205
1184
  throw __decorateServiceException(response, parsedBody);
1206
1185
  }
@@ -1231,7 +1210,7 @@ export var deserializeAws_restJson1DescribeEventSourcesConfigCommand = function
1231
1210
  });
1232
1211
  }); };
1233
1212
  var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1234
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1213
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1235
1214
  var _c;
1236
1215
  return __generator(this, function (_d) {
1237
1216
  switch (_d.label) {
@@ -1241,7 +1220,6 @@ var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (o
1241
1220
  return [4, parseBody(output.body, context)];
1242
1221
  case 1:
1243
1222
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1244
- errorCode = "UnknownError";
1245
1223
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1246
1224
  _b = errorCode;
1247
1225
  switch (_b) {
@@ -1265,10 +1243,12 @@ var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (o
1265
1243
  case 9: throw _d.sent();
1266
1244
  case 10:
1267
1245
  parsedBody = parsedOutput.body;
1246
+ $metadata = deserializeMetadata(output);
1247
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1268
1248
  response = new __BaseException({
1269
- name: parsedBody.code || parsedBody.Code || errorCode,
1249
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1270
1250
  $fault: "client",
1271
- $metadata: deserializeMetadata(output),
1251
+ $metadata: $metadata,
1272
1252
  });
1273
1253
  throw __decorateServiceException(response, parsedBody);
1274
1254
  }
@@ -1299,7 +1279,7 @@ export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, c
1299
1279
  });
1300
1280
  }); };
1301
1281
  var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1302
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1282
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1303
1283
  var _c;
1304
1284
  return __generator(this, function (_d) {
1305
1285
  switch (_d.label) {
@@ -1309,7 +1289,6 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
1309
1289
  return [4, parseBody(output.body, context)];
1310
1290
  case 1:
1311
1291
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1312
- errorCode = "UnknownError";
1313
1292
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1314
1293
  _b = errorCode;
1315
1294
  switch (_b) {
@@ -1337,10 +1316,12 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
1337
1316
  case 11: throw _d.sent();
1338
1317
  case 12:
1339
1318
  parsedBody = parsedOutput.body;
1319
+ $metadata = deserializeMetadata(output);
1320
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1340
1321
  response = new __BaseException({
1341
- name: parsedBody.code || parsedBody.Code || errorCode,
1322
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1342
1323
  $fault: "client",
1343
- $metadata: deserializeMetadata(output),
1324
+ $metadata: $metadata,
1344
1325
  });
1345
1326
  throw __decorateServiceException(response, parsedBody);
1346
1327
  }
@@ -1375,7 +1356,7 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
1375
1356
  });
1376
1357
  }); };
1377
1358
  var deserializeAws_restJson1DescribeInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1378
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1359
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1379
1360
  var _c;
1380
1361
  return __generator(this, function (_d) {
1381
1362
  switch (_d.label) {
@@ -1385,7 +1366,6 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1385
1366
  return [4, parseBody(output.body, context)];
1386
1367
  case 1:
1387
1368
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1388
- errorCode = "UnknownError";
1389
1369
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1390
1370
  _b = errorCode;
1391
1371
  switch (_b) {
@@ -1413,10 +1393,12 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1413
1393
  case 11: throw _d.sent();
1414
1394
  case 12:
1415
1395
  parsedBody = parsedOutput.body;
1396
+ $metadata = deserializeMetadata(output);
1397
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1416
1398
  response = new __BaseException({
1417
- name: parsedBody.code || parsedBody.Code || errorCode,
1399
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1418
1400
  $fault: "client",
1419
- $metadata: deserializeMetadata(output),
1401
+ $metadata: $metadata,
1420
1402
  });
1421
1403
  throw __decorateServiceException(response, parsedBody);
1422
1404
  }
@@ -1459,7 +1441,7 @@ export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function
1459
1441
  });
1460
1442
  }); };
1461
1443
  var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1462
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1444
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1463
1445
  var _c;
1464
1446
  return __generator(this, function (_d) {
1465
1447
  switch (_d.label) {
@@ -1469,7 +1451,6 @@ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (o
1469
1451
  return [4, parseBody(output.body, context)];
1470
1452
  case 1:
1471
1453
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1472
- errorCode = "UnknownError";
1473
1454
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
1455
  _b = errorCode;
1475
1456
  switch (_b) {
@@ -1493,10 +1474,12 @@ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (o
1493
1474
  case 9: throw _d.sent();
1494
1475
  case 10:
1495
1476
  parsedBody = parsedOutput.body;
1477
+ $metadata = deserializeMetadata(output);
1478
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1496
1479
  response = new __BaseException({
1497
- name: parsedBody.code || parsedBody.Code || errorCode,
1480
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1498
1481
  $fault: "client",
1499
- $metadata: deserializeMetadata(output),
1482
+ $metadata: $metadata,
1500
1483
  });
1501
1484
  throw __decorateServiceException(response, parsedBody);
1502
1485
  }
@@ -1531,7 +1514,7 @@ export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = functio
1531
1514
  });
1532
1515
  }); };
1533
1516
  var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1534
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1517
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1535
1518
  var _c;
1536
1519
  return __generator(this, function (_d) {
1537
1520
  switch (_d.label) {
@@ -1541,7 +1524,6 @@ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function
1541
1524
  return [4, parseBody(output.body, context)];
1542
1525
  case 1:
1543
1526
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1544
- errorCode = "UnknownError";
1545
1527
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
1528
  _b = errorCode;
1547
1529
  switch (_b) {
@@ -1565,10 +1547,12 @@ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function
1565
1547
  case 9: throw _d.sent();
1566
1548
  case 10:
1567
1549
  parsedBody = parsedOutput.body;
1550
+ $metadata = deserializeMetadata(output);
1551
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1568
1552
  response = new __BaseException({
1569
- name: parsedBody.code || parsedBody.Code || errorCode,
1553
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1570
1554
  $fault: "client",
1571
- $metadata: deserializeMetadata(output),
1555
+ $metadata: $metadata,
1572
1556
  });
1573
1557
  throw __decorateServiceException(response, parsedBody);
1574
1558
  }
@@ -1615,7 +1599,7 @@ export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthC
1615
1599
  });
1616
1600
  }); };
1617
1601
  var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1618
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1602
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1619
1603
  var _c;
1620
1604
  return __generator(this, function (_d) {
1621
1605
  switch (_d.label) {
@@ -1625,7 +1609,6 @@ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandE
1625
1609
  return [4, parseBody(output.body, context)];
1626
1610
  case 1:
1627
1611
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1628
- errorCode = "UnknownError";
1629
1612
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1630
1613
  _b = errorCode;
1631
1614
  switch (_b) {
@@ -1649,10 +1632,12 @@ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandE
1649
1632
  case 9: throw _d.sent();
1650
1633
  case 10:
1651
1634
  parsedBody = parsedOutput.body;
1635
+ $metadata = deserializeMetadata(output);
1636
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1652
1637
  response = new __BaseException({
1653
- name: parsedBody.code || parsedBody.Code || errorCode,
1638
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1654
1639
  $fault: "client",
1655
- $metadata: deserializeMetadata(output),
1640
+ $metadata: $metadata,
1656
1641
  });
1657
1642
  throw __decorateServiceException(response, parsedBody);
1658
1643
  }
@@ -1695,7 +1680,7 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
1695
1680
  });
1696
1681
  }); };
1697
1682
  var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1698
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1683
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1699
1684
  var _c;
1700
1685
  return __generator(this, function (_d) {
1701
1686
  switch (_d.label) {
@@ -1705,7 +1690,6 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1705
1690
  return [4, parseBody(output.body, context)];
1706
1691
  case 1:
1707
1692
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1708
- errorCode = "UnknownError";
1709
1693
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
1694
  _b = errorCode;
1711
1695
  switch (_b) {
@@ -1729,10 +1713,12 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1729
1713
  case 9: throw _d.sent();
1730
1714
  case 10:
1731
1715
  parsedBody = parsedOutput.body;
1716
+ $metadata = deserializeMetadata(output);
1717
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1732
1718
  response = new __BaseException({
1733
- name: parsedBody.code || parsedBody.Code || errorCode,
1719
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1734
1720
  $fault: "client",
1735
- $metadata: deserializeMetadata(output),
1721
+ $metadata: $metadata,
1736
1722
  });
1737
1723
  throw __decorateServiceException(response, parsedBody);
1738
1724
  }
@@ -1763,7 +1749,7 @@ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function
1763
1749
  });
1764
1750
  }); };
1765
1751
  var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1766
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1752
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1767
1753
  var _c;
1768
1754
  return __generator(this, function (_d) {
1769
1755
  switch (_d.label) {
@@ -1773,7 +1759,6 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1773
1759
  return [4, parseBody(output.body, context)];
1774
1760
  case 1:
1775
1761
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1776
- errorCode = "UnknownError";
1777
1762
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1778
1763
  _b = errorCode;
1779
1764
  switch (_b) {
@@ -1797,10 +1782,12 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1797
1782
  case 9: throw _d.sent();
1798
1783
  case 10:
1799
1784
  parsedBody = parsedOutput.body;
1785
+ $metadata = deserializeMetadata(output);
1786
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1800
1787
  response = new __BaseException({
1801
- name: parsedBody.code || parsedBody.Code || errorCode,
1788
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1802
1789
  $fault: "client",
1803
- $metadata: deserializeMetadata(output),
1790
+ $metadata: $metadata,
1804
1791
  });
1805
1792
  throw __decorateServiceException(response, parsedBody);
1806
1793
  }
@@ -1851,7 +1838,7 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
1851
1838
  });
1852
1839
  }); };
1853
1840
  var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1854
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1841
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1855
1842
  var _c;
1856
1843
  return __generator(this, function (_d) {
1857
1844
  switch (_d.label) {
@@ -1861,7 +1848,6 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1861
1848
  return [4, parseBody(output.body, context)];
1862
1849
  case 1:
1863
1850
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1864
- errorCode = "UnknownError";
1865
1851
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1866
1852
  _b = errorCode;
1867
1853
  switch (_b) {
@@ -1889,10 +1875,12 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1889
1875
  case 11: throw _d.sent();
1890
1876
  case 12:
1891
1877
  parsedBody = parsedOutput.body;
1878
+ $metadata = deserializeMetadata(output);
1879
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1892
1880
  response = new __BaseException({
1893
- name: parsedBody.code || parsedBody.Code || errorCode,
1881
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1894
1882
  $fault: "client",
1895
- $metadata: deserializeMetadata(output),
1883
+ $metadata: $metadata,
1896
1884
  });
1897
1885
  throw __decorateServiceException(response, parsedBody);
1898
1886
  }
@@ -1927,7 +1915,7 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
1927
1915
  });
1928
1916
  }); };
1929
1917
  var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1930
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1918
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1931
1919
  var _c;
1932
1920
  return __generator(this, function (_d) {
1933
1921
  switch (_d.label) {
@@ -1937,7 +1925,6 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
1937
1925
  return [4, parseBody(output.body, context)];
1938
1926
  case 1:
1939
1927
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1940
- errorCode = "UnknownError";
1941
1928
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1942
1929
  _b = errorCode;
1943
1930
  switch (_b) {
@@ -1965,10 +1952,12 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
1965
1952
  case 11: throw _d.sent();
1966
1953
  case 12:
1967
1954
  parsedBody = parsedOutput.body;
1955
+ $metadata = deserializeMetadata(output);
1956
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1968
1957
  response = new __BaseException({
1969
- name: parsedBody.code || parsedBody.Code || errorCode,
1958
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1970
1959
  $fault: "client",
1971
- $metadata: deserializeMetadata(output),
1960
+ $metadata: $metadata,
1972
1961
  });
1973
1962
  throw __decorateServiceException(response, parsedBody);
1974
1963
  }
@@ -2007,7 +1996,7 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
2007
1996
  });
2008
1997
  }); };
2009
1998
  var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2010
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1999
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2011
2000
  var _c;
2012
2001
  return __generator(this, function (_d) {
2013
2002
  switch (_d.label) {
@@ -2017,7 +2006,6 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
2017
2006
  return [4, parseBody(output.body, context)];
2018
2007
  case 1:
2019
2008
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2020
- errorCode = "UnknownError";
2021
2009
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2022
2010
  _b = errorCode;
2023
2011
  switch (_b) {
@@ -2045,10 +2033,12 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
2045
2033
  case 11: throw _d.sent();
2046
2034
  case 12:
2047
2035
  parsedBody = parsedOutput.body;
2036
+ $metadata = deserializeMetadata(output);
2037
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2048
2038
  response = new __BaseException({
2049
- name: parsedBody.code || parsedBody.Code || errorCode,
2039
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2050
2040
  $fault: "client",
2051
- $metadata: deserializeMetadata(output),
2041
+ $metadata: $metadata,
2052
2042
  });
2053
2043
  throw __decorateServiceException(response, parsedBody);
2054
2044
  }
@@ -2083,7 +2073,7 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
2083
2073
  });
2084
2074
  }); };
2085
2075
  var deserializeAws_restJson1ListEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2086
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2076
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2087
2077
  var _c;
2088
2078
  return __generator(this, function (_d) {
2089
2079
  switch (_d.label) {
@@ -2093,7 +2083,6 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
2093
2083
  return [4, parseBody(output.body, context)];
2094
2084
  case 1:
2095
2085
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2096
- errorCode = "UnknownError";
2097
2086
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2098
2087
  _b = errorCode;
2099
2088
  switch (_b) {
@@ -2121,10 +2110,12 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
2121
2110
  case 11: throw _d.sent();
2122
2111
  case 12:
2123
2112
  parsedBody = parsedOutput.body;
2113
+ $metadata = deserializeMetadata(output);
2114
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2124
2115
  response = new __BaseException({
2125
- name: parsedBody.code || parsedBody.Code || errorCode,
2116
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2126
2117
  $fault: "client",
2127
- $metadata: deserializeMetadata(output),
2118
+ $metadata: $metadata,
2128
2119
  });
2129
2120
  throw __decorateServiceException(response, parsedBody);
2130
2121
  }
@@ -2163,7 +2154,7 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
2163
2154
  });
2164
2155
  }); };
2165
2156
  var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2166
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2157
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2167
2158
  var _c;
2168
2159
  return __generator(this, function (_d) {
2169
2160
  switch (_d.label) {
@@ -2173,7 +2164,6 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
2173
2164
  return [4, parseBody(output.body, context)];
2174
2165
  case 1:
2175
2166
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2176
- errorCode = "UnknownError";
2177
2167
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
2168
  _b = errorCode;
2179
2169
  switch (_b) {
@@ -2197,10 +2187,12 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
2197
2187
  case 9: throw _d.sent();
2198
2188
  case 10:
2199
2189
  parsedBody = parsedOutput.body;
2190
+ $metadata = deserializeMetadata(output);
2191
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2200
2192
  response = new __BaseException({
2201
- name: parsedBody.code || parsedBody.Code || errorCode,
2193
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2202
2194
  $fault: "client",
2203
- $metadata: deserializeMetadata(output),
2195
+ $metadata: $metadata,
2204
2196
  });
2205
2197
  throw __decorateServiceException(response, parsedBody);
2206
2198
  }
@@ -2235,7 +2227,7 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
2235
2227
  });
2236
2228
  }); };
2237
2229
  var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2238
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2230
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2239
2231
  var _c;
2240
2232
  return __generator(this, function (_d) {
2241
2233
  switch (_d.label) {
@@ -2245,7 +2237,6 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
2245
2237
  return [4, parseBody(output.body, context)];
2246
2238
  case 1:
2247
2239
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2248
- errorCode = "UnknownError";
2249
2240
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2250
2241
  _b = errorCode;
2251
2242
  switch (_b) {
@@ -2269,10 +2260,12 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
2269
2260
  case 9: throw _d.sent();
2270
2261
  case 10:
2271
2262
  parsedBody = parsedOutput.body;
2263
+ $metadata = deserializeMetadata(output);
2264
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2272
2265
  response = new __BaseException({
2273
- name: parsedBody.code || parsedBody.Code || errorCode,
2266
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2274
2267
  $fault: "client",
2275
- $metadata: deserializeMetadata(output),
2268
+ $metadata: $metadata,
2276
2269
  });
2277
2270
  throw __decorateServiceException(response, parsedBody);
2278
2271
  }
@@ -2311,7 +2304,7 @@ export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (o
2311
2304
  });
2312
2305
  }); };
2313
2306
  var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2314
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2307
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2315
2308
  var _c;
2316
2309
  return __generator(this, function (_d) {
2317
2310
  switch (_d.label) {
@@ -2321,7 +2314,6 @@ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (out
2321
2314
  return [4, parseBody(output.body, context)];
2322
2315
  case 1:
2323
2316
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2324
- errorCode = "UnknownError";
2325
2317
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2326
2318
  _b = errorCode;
2327
2319
  switch (_b) {
@@ -2345,10 +2337,12 @@ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (out
2345
2337
  case 9: throw _d.sent();
2346
2338
  case 10:
2347
2339
  parsedBody = parsedOutput.body;
2340
+ $metadata = deserializeMetadata(output);
2341
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2348
2342
  response = new __BaseException({
2349
- name: parsedBody.code || parsedBody.Code || errorCode,
2343
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2350
2344
  $fault: "client",
2351
- $metadata: deserializeMetadata(output),
2345
+ $metadata: $metadata,
2352
2346
  });
2353
2347
  throw __decorateServiceException(response, parsedBody);
2354
2348
  }
@@ -2383,7 +2377,7 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
2383
2377
  });
2384
2378
  }); };
2385
2379
  var deserializeAws_restJson1ListRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2386
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2380
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2387
2381
  var _c;
2388
2382
  return __generator(this, function (_d) {
2389
2383
  switch (_d.label) {
@@ -2393,7 +2387,6 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
2393
2387
  return [4, parseBody(output.body, context)];
2394
2388
  case 1:
2395
2389
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2396
- errorCode = "UnknownError";
2397
2390
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2398
2391
  _b = errorCode;
2399
2392
  switch (_b) {
@@ -2421,10 +2414,12 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
2421
2414
  case 11: throw _d.sent();
2422
2415
  case 12:
2423
2416
  parsedBody = parsedOutput.body;
2417
+ $metadata = deserializeMetadata(output);
2418
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2424
2419
  response = new __BaseException({
2425
- name: parsedBody.code || parsedBody.Code || errorCode,
2420
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2426
2421
  $fault: "client",
2427
- $metadata: deserializeMetadata(output),
2422
+ $metadata: $metadata,
2428
2423
  });
2429
2424
  throw __decorateServiceException(response, parsedBody);
2430
2425
  }
@@ -2449,7 +2444,7 @@ export var deserializeAws_restJson1PutFeedbackCommand = function (output, contex
2449
2444
  });
2450
2445
  }); };
2451
2446
  var deserializeAws_restJson1PutFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2452
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2447
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2453
2448
  var _c;
2454
2449
  return __generator(this, function (_d) {
2455
2450
  switch (_d.label) {
@@ -2459,7 +2454,6 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
2459
2454
  return [4, parseBody(output.body, context)];
2460
2455
  case 1:
2461
2456
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2462
- errorCode = "UnknownError";
2463
2457
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2464
2458
  _b = errorCode;
2465
2459
  switch (_b) {
@@ -2491,10 +2485,12 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
2491
2485
  case 13: throw _d.sent();
2492
2486
  case 14:
2493
2487
  parsedBody = parsedOutput.body;
2488
+ $metadata = deserializeMetadata(output);
2489
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2494
2490
  response = new __BaseException({
2495
- name: parsedBody.code || parsedBody.Code || errorCode,
2491
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2496
2492
  $fault: "client",
2497
- $metadata: deserializeMetadata(output),
2493
+ $metadata: $metadata,
2498
2494
  });
2499
2495
  throw __decorateServiceException(response, parsedBody);
2500
2496
  }
@@ -2519,7 +2515,7 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
2519
2515
  });
2520
2516
  }); };
2521
2517
  var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2522
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2518
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2523
2519
  var _c;
2524
2520
  return __generator(this, function (_d) {
2525
2521
  switch (_d.label) {
@@ -2529,7 +2525,6 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
2529
2525
  return [4, parseBody(output.body, context)];
2530
2526
  case 1:
2531
2527
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2532
- errorCode = "UnknownError";
2533
2528
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2534
2529
  _b = errorCode;
2535
2530
  switch (_b) {
@@ -2561,10 +2556,12 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
2561
2556
  case 13: throw _d.sent();
2562
2557
  case 14:
2563
2558
  parsedBody = parsedOutput.body;
2559
+ $metadata = deserializeMetadata(output);
2560
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2564
2561
  response = new __BaseException({
2565
- name: parsedBody.code || parsedBody.Code || errorCode,
2562
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2566
2563
  $fault: "client",
2567
- $metadata: deserializeMetadata(output),
2564
+ $metadata: $metadata,
2568
2565
  });
2569
2566
  throw __decorateServiceException(response, parsedBody);
2570
2567
  }
@@ -2603,7 +2600,7 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
2603
2600
  });
2604
2601
  }); };
2605
2602
  var deserializeAws_restJson1SearchInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2606
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2603
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2607
2604
  var _c;
2608
2605
  return __generator(this, function (_d) {
2609
2606
  switch (_d.label) {
@@ -2613,7 +2610,6 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2613
2610
  return [4, parseBody(output.body, context)];
2614
2611
  case 1:
2615
2612
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2616
- errorCode = "UnknownError";
2617
2613
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2618
2614
  _b = errorCode;
2619
2615
  switch (_b) {
@@ -2637,10 +2633,12 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2637
2633
  case 9: throw _d.sent();
2638
2634
  case 10:
2639
2635
  parsedBody = parsedOutput.body;
2636
+ $metadata = deserializeMetadata(output);
2637
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2640
2638
  response = new __BaseException({
2641
- name: parsedBody.code || parsedBody.Code || errorCode,
2639
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2642
2640
  $fault: "client",
2643
- $metadata: deserializeMetadata(output),
2641
+ $metadata: $metadata,
2644
2642
  });
2645
2643
  throw __decorateServiceException(response, parsedBody);
2646
2644
  }
@@ -2679,7 +2677,7 @@ export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function
2679
2677
  });
2680
2678
  }); };
2681
2679
  var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2682
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2680
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2683
2681
  var _c;
2684
2682
  return __generator(this, function (_d) {
2685
2683
  switch (_d.label) {
@@ -2689,7 +2687,6 @@ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (o
2689
2687
  return [4, parseBody(output.body, context)];
2690
2688
  case 1:
2691
2689
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2692
- errorCode = "UnknownError";
2693
2690
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2694
2691
  _b = errorCode;
2695
2692
  switch (_b) {
@@ -2713,10 +2710,12 @@ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (o
2713
2710
  case 9: throw _d.sent();
2714
2711
  case 10:
2715
2712
  parsedBody = parsedOutput.body;
2713
+ $metadata = deserializeMetadata(output);
2714
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2716
2715
  response = new __BaseException({
2717
- name: parsedBody.code || parsedBody.Code || errorCode,
2716
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2718
2717
  $fault: "client",
2719
- $metadata: deserializeMetadata(output),
2718
+ $metadata: $metadata,
2720
2719
  });
2721
2720
  throw __decorateServiceException(response, parsedBody);
2722
2721
  }
@@ -2741,7 +2740,7 @@ export var deserializeAws_restJson1StartCostEstimationCommand = function (output
2741
2740
  });
2742
2741
  }); };
2743
2742
  var deserializeAws_restJson1StartCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2744
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2743
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2745
2744
  var _c;
2746
2745
  return __generator(this, function (_d) {
2747
2746
  switch (_d.label) {
@@ -2751,7 +2750,6 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
2751
2750
  return [4, parseBody(output.body, context)];
2752
2751
  case 1:
2753
2752
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2754
- errorCode = "UnknownError";
2755
2753
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2756
2754
  _b = errorCode;
2757
2755
  switch (_b) {
@@ -2783,10 +2781,12 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
2783
2781
  case 13: throw _d.sent();
2784
2782
  case 14:
2785
2783
  parsedBody = parsedOutput.body;
2784
+ $metadata = deserializeMetadata(output);
2785
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2786
2786
  response = new __BaseException({
2787
- name: parsedBody.code || parsedBody.Code || errorCode,
2787
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2788
2788
  $fault: "client",
2789
- $metadata: deserializeMetadata(output),
2789
+ $metadata: $metadata,
2790
2790
  });
2791
2791
  throw __decorateServiceException(response, parsedBody);
2792
2792
  }
@@ -2811,7 +2811,7 @@ export var deserializeAws_restJson1UpdateEventSourcesConfigCommand = function (o
2811
2811
  });
2812
2812
  }); };
2813
2813
  var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2814
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2814
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2815
2815
  var _c;
2816
2816
  return __generator(this, function (_d) {
2817
2817
  switch (_d.label) {
@@ -2821,7 +2821,6 @@ var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (out
2821
2821
  return [4, parseBody(output.body, context)];
2822
2822
  case 1:
2823
2823
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2824
- errorCode = "UnknownError";
2825
2824
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2826
2825
  _b = errorCode;
2827
2826
  switch (_b) {
@@ -2845,10 +2844,12 @@ var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (out
2845
2844
  case 9: throw _d.sent();
2846
2845
  case 10:
2847
2846
  parsedBody = parsedOutput.body;
2847
+ $metadata = deserializeMetadata(output);
2848
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2848
2849
  response = new __BaseException({
2849
- name: parsedBody.code || parsedBody.Code || errorCode,
2850
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2850
2851
  $fault: "client",
2851
- $metadata: deserializeMetadata(output),
2852
+ $metadata: $metadata,
2852
2853
  });
2853
2854
  throw __decorateServiceException(response, parsedBody);
2854
2855
  }
@@ -2873,7 +2874,7 @@ export var deserializeAws_restJson1UpdateResourceCollectionCommand = function (o
2873
2874
  });
2874
2875
  }); };
2875
2876
  var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2876
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2877
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2877
2878
  var _c;
2878
2879
  return __generator(this, function (_d) {
2879
2880
  switch (_d.label) {
@@ -2883,7 +2884,6 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
2883
2884
  return [4, parseBody(output.body, context)];
2884
2885
  case 1:
2885
2886
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2886
- errorCode = "UnknownError";
2887
2887
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2888
2888
  _b = errorCode;
2889
2889
  switch (_b) {
@@ -2911,10 +2911,12 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
2911
2911
  case 11: throw _d.sent();
2912
2912
  case 12:
2913
2913
  parsedBody = parsedOutput.body;
2914
+ $metadata = deserializeMetadata(output);
2915
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2914
2916
  response = new __BaseException({
2915
- name: parsedBody.code || parsedBody.Code || errorCode,
2917
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2916
2918
  $fault: "client",
2917
- $metadata: deserializeMetadata(output),
2919
+ $metadata: $metadata,
2918
2920
  });
2919
2921
  throw __decorateServiceException(response, parsedBody);
2920
2922
  }
@@ -2939,7 +2941,7 @@ export var deserializeAws_restJson1UpdateServiceIntegrationCommand = function (o
2939
2941
  });
2940
2942
  }); };
2941
2943
  var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2942
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2944
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2943
2945
  var _c;
2944
2946
  return __generator(this, function (_d) {
2945
2947
  switch (_d.label) {
@@ -2949,7 +2951,6 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
2949
2951
  return [4, parseBody(output.body, context)];
2950
2952
  case 1:
2951
2953
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2952
- errorCode = "UnknownError";
2953
2954
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2954
2955
  _b = errorCode;
2955
2956
  switch (_b) {
@@ -2977,10 +2978,12 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
2977
2978
  case 11: throw _d.sent();
2978
2979
  case 12:
2979
2980
  parsedBody = parsedOutput.body;
2981
+ $metadata = deserializeMetadata(output);
2982
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2980
2983
  response = new __BaseException({
2981
- name: parsedBody.code || parsedBody.Code || errorCode,
2984
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2982
2985
  $fault: "client",
2983
- $metadata: deserializeMetadata(output),
2986
+ $metadata: $metadata,
2984
2987
  });
2985
2988
  throw __decorateServiceException(response, parsedBody);
2986
2989
  }
@@ -3111,24 +3114,20 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
3111
3114
  });
3112
3115
  };
3113
3116
  var serializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (input, context) {
3114
- return __assign({}, (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
3117
+ return __assign({}, (input.Status != null && { Status: input.Status }));
3115
3118
  };
3116
3119
  var serializeAws_restJson1CloudFormationCollection = function (input, context) {
3117
- return __assign({}, (input.StackNames !== undefined &&
3118
- input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
3120
+ return __assign({}, (input.StackNames != null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
3119
3121
  };
3120
3122
  var serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = function (input, context) {
3121
- return __assign({}, (input.StackNames !== undefined &&
3122
- input.StackNames !== null && {
3123
+ return __assign({}, (input.StackNames != null && {
3123
3124
  StackNames: serializeAws_restJson1CostEstimationStackNames(input.StackNames, context),
3124
3125
  }));
3125
3126
  };
3126
3127
  var serializeAws_restJson1CostEstimationResourceCollectionFilter = function (input, context) {
3127
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3128
- input.CloudFormation !== null && {
3128
+ return __assign(__assign({}, (input.CloudFormation != null && {
3129
3129
  CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
3130
- })), (input.Tags !== undefined &&
3131
- input.Tags !== null && {
3130
+ })), (input.Tags != null && {
3132
3131
  Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
3133
3132
  }));
3134
3133
  };
@@ -3153,21 +3152,18 @@ var serializeAws_restJson1CostEstimationTagValues = function (input, context) {
3153
3152
  });
3154
3153
  };
3155
3154
  var serializeAws_restJson1EndTimeRange = function (input, context) {
3156
- return __assign(__assign({}, (input.FromTime !== undefined &&
3157
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3155
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3158
3156
  };
3159
3157
  var serializeAws_restJson1EventSourcesConfig = function (input, context) {
3160
- return __assign({}, (input.AmazonCodeGuruProfiler !== undefined &&
3161
- input.AmazonCodeGuruProfiler !== null && {
3158
+ return __assign({}, (input.AmazonCodeGuruProfiler != null && {
3162
3159
  AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
3163
3160
  }));
3164
3161
  };
3165
3162
  var serializeAws_restJson1EventTimeRange = function (input, context) {
3166
- return __assign(__assign({}, (input.FromTime !== undefined &&
3167
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3163
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3168
3164
  };
3169
3165
  var serializeAws_restJson1InsightFeedback = function (input, context) {
3170
- return __assign(__assign({}, (input.Feedback !== undefined && input.Feedback !== null && { Feedback: input.Feedback })), (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
3166
+ return __assign(__assign({}, (input.Feedback != null && { Feedback: input.Feedback })), (input.Id != null && { Id: input.Id }));
3171
3167
  };
3172
3168
  var serializeAws_restJson1InsightSeverities = function (input, context) {
3173
3169
  return input
@@ -3190,11 +3186,9 @@ var serializeAws_restJson1InsightStatuses = function (input, context) {
3190
3186
  });
3191
3187
  };
3192
3188
  var serializeAws_restJson1ListEventsFilters = function (input, context) {
3193
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource !== undefined && input.DataSource !== null && { DataSource: input.DataSource })), (input.EventClass !== undefined && input.EventClass !== null && { EventClass: input.EventClass })), (input.EventSource !== undefined && input.EventSource !== null && { EventSource: input.EventSource })), (input.EventTimeRange !== undefined &&
3194
- input.EventTimeRange !== null && {
3189
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource != null && { DataSource: input.DataSource })), (input.EventClass != null && { EventClass: input.EventClass })), (input.EventSource != null && { EventSource: input.EventSource })), (input.EventTimeRange != null && {
3195
3190
  EventTimeRange: serializeAws_restJson1EventTimeRange(input.EventTimeRange, context),
3196
- })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.ResourceCollection !== undefined &&
3197
- input.ResourceCollection !== null && {
3191
+ })), (input.InsightId != null && { InsightId: input.InsightId })), (input.ResourceCollection != null && {
3198
3192
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3199
3193
  }));
3200
3194
  };
@@ -3209,17 +3203,17 @@ var serializeAws_restJson1ListInsightsAccountIdList = function (input, context)
3209
3203
  });
3210
3204
  };
3211
3205
  var serializeAws_restJson1ListInsightsAnyStatusFilter = function (input, context) {
3212
- return __assign(__assign({}, (input.StartTimeRange !== undefined &&
3213
- input.StartTimeRange !== null && {
3206
+ return __assign(__assign({}, (input.StartTimeRange != null && {
3214
3207
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
3215
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3208
+ })), (input.Type != null && { Type: input.Type }));
3216
3209
  };
3217
3210
  var serializeAws_restJson1ListInsightsClosedStatusFilter = function (input, context) {
3218
- return __assign(__assign({}, (input.EndTimeRange !== undefined &&
3219
- input.EndTimeRange !== null && { EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3211
+ return __assign(__assign({}, (input.EndTimeRange != null && {
3212
+ EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context),
3213
+ })), (input.Type != null && { Type: input.Type }));
3220
3214
  };
3221
3215
  var serializeAws_restJson1ListInsightsOngoingStatusFilter = function (input, context) {
3222
- return __assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3216
+ return __assign({}, (input.Type != null && { Type: input.Type }));
3223
3217
  };
3224
3218
  var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input, context) {
3225
3219
  return input
@@ -3232,19 +3226,17 @@ var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input
3232
3226
  });
3233
3227
  };
3234
3228
  var serializeAws_restJson1ListInsightsStatusFilter = function (input, context) {
3235
- return __assign(__assign(__assign({}, (input.Any !== undefined &&
3236
- input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed !== undefined &&
3237
- input.Closed !== null && { Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context) })), (input.Ongoing !== undefined &&
3238
- input.Ongoing !== null && {
3229
+ return __assign(__assign(__assign({}, (input.Any != null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed != null && {
3230
+ Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context),
3231
+ })), (input.Ongoing != null && {
3239
3232
  Ongoing: serializeAws_restJson1ListInsightsOngoingStatusFilter(input.Ongoing, context),
3240
3233
  }));
3241
3234
  };
3242
3235
  var serializeAws_restJson1NotificationChannelConfig = function (input, context) {
3243
- return __assign({}, (input.Sns !== undefined &&
3244
- input.Sns !== null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }));
3236
+ return __assign({}, (input.Sns != null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }));
3245
3237
  };
3246
3238
  var serializeAws_restJson1OpsCenterIntegrationConfig = function (input, context) {
3247
- return __assign({}, (input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }));
3239
+ return __assign({}, (input.OptInStatus != null && { OptInStatus: input.OptInStatus }));
3248
3240
  };
3249
3241
  var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
3250
3242
  return input
@@ -3257,11 +3249,9 @@ var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
3257
3249
  });
3258
3250
  };
3259
3251
  var serializeAws_restJson1ResourceCollection = function (input, context) {
3260
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3261
- input.CloudFormation !== null && {
3252
+ return __assign(__assign({}, (input.CloudFormation != null && {
3262
3253
  CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
3263
- })), (input.Tags !== undefined &&
3264
- input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
3254
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
3265
3255
  };
3266
3256
  var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context) {
3267
3257
  return input
@@ -3274,30 +3264,23 @@ var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context
3274
3264
  });
3275
3265
  };
3276
3266
  var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
3277
- return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
3278
- input.ResourceCollection !== null && {
3267
+ return __assign(__assign(__assign(__assign({}, (input.ResourceCollection != null && {
3279
3268
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3280
- })), (input.ServiceCollection !== undefined &&
3281
- input.ServiceCollection !== null && {
3269
+ })), (input.ServiceCollection != null && {
3282
3270
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3283
- })), (input.Severities !== undefined &&
3284
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
3285
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3271
+ })), (input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3286
3272
  };
3287
3273
  var serializeAws_restJson1SearchOrganizationInsightsFilters = function (input, context) {
3288
- return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
3289
- input.ResourceCollection !== null && {
3274
+ return __assign(__assign(__assign(__assign({}, (input.ResourceCollection != null && {
3290
3275
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3291
- })), (input.ServiceCollection !== undefined &&
3292
- input.ServiceCollection !== null && {
3276
+ })), (input.ServiceCollection != null && {
3293
3277
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3294
- })), (input.Severities !== undefined &&
3295
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
3296
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3278
+ })), (input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3297
3279
  };
3298
3280
  var serializeAws_restJson1ServiceCollection = function (input, context) {
3299
- return __assign({}, (input.ServiceNames !== undefined &&
3300
- input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }));
3281
+ return __assign({}, (input.ServiceNames != null && {
3282
+ ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context),
3283
+ }));
3301
3284
  };
3302
3285
  var serializeAws_restJson1ServiceNames = function (input, context) {
3303
3286
  return input
@@ -3310,7 +3293,7 @@ var serializeAws_restJson1ServiceNames = function (input, context) {
3310
3293
  });
3311
3294
  };
3312
3295
  var serializeAws_restJson1SnsChannelConfig = function (input, context) {
3313
- return __assign({}, (input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }));
3296
+ return __assign({}, (input.TopicArn != null && { TopicArn: input.TopicArn }));
3314
3297
  };
3315
3298
  var serializeAws_restJson1StackNames = function (input, context) {
3316
3299
  return input
@@ -3323,13 +3306,10 @@ var serializeAws_restJson1StackNames = function (input, context) {
3323
3306
  });
3324
3307
  };
3325
3308
  var serializeAws_restJson1StartTimeRange = function (input, context) {
3326
- return __assign(__assign({}, (input.FromTime !== undefined &&
3327
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3309
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3328
3310
  };
3329
3311
  var serializeAws_restJson1TagCollection = function (input, context) {
3330
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3331
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3332
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
3312
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
3333
3313
  };
3334
3314
  var serializeAws_restJson1TagCollections = function (input, context) {
3335
3315
  return input
@@ -3342,9 +3322,7 @@ var serializeAws_restJson1TagCollections = function (input, context) {
3342
3322
  });
3343
3323
  };
3344
3324
  var serializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (input, context) {
3345
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3346
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3347
- input.TagValues !== null && {
3325
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && {
3348
3326
  TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
3349
3327
  }));
3350
3328
  };
@@ -3369,19 +3347,15 @@ var serializeAws_restJson1TagValues = function (input, context) {
3369
3347
  });
3370
3348
  };
3371
3349
  var serializeAws_restJson1UpdateCloudFormationCollectionFilter = function (input, context) {
3372
- return __assign({}, (input.StackNames !== undefined &&
3373
- input.StackNames !== null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
3350
+ return __assign({}, (input.StackNames != null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
3374
3351
  };
3375
3352
  var serializeAws_restJson1UpdateResourceCollectionFilter = function (input, context) {
3376
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3377
- input.CloudFormation !== null && {
3353
+ return __assign(__assign({}, (input.CloudFormation != null && {
3378
3354
  CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
3379
- })), (input.Tags !== undefined &&
3380
- input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
3355
+ })), (input.Tags != null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
3381
3356
  };
3382
3357
  var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, context) {
3383
- return __assign({}, (input.OpsCenter !== undefined &&
3384
- input.OpsCenter !== null && {
3358
+ return __assign({}, (input.OpsCenter != null && {
3385
3359
  OpsCenter: serializeAws_restJson1OpsCenterIntegrationConfig(input.OpsCenter, context),
3386
3360
  }));
3387
3361
  };
@@ -3396,9 +3370,7 @@ var serializeAws_restJson1UpdateStackNames = function (input, context) {
3396
3370
  });
3397
3371
  };
3398
3372
  var serializeAws_restJson1UpdateTagCollectionFilter = function (input, context) {
3399
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3400
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3401
- input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
3373
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
3402
3374
  };
3403
3375
  var serializeAws_restJson1UpdateTagCollectionFilters = function (input, context) {
3404
3376
  return input
@@ -3423,9 +3395,7 @@ var serializeAws_restJson1UpdateTagValues = function (input, context) {
3423
3395
  var deserializeAws_restJson1AccountHealth = function (output, context) {
3424
3396
  return {
3425
3397
  AccountId: __expectString(output.AccountId),
3426
- Insight: output.Insight !== undefined && output.Insight !== null
3427
- ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
3428
- : undefined,
3398
+ Insight: output.Insight != null ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context) : undefined,
3429
3399
  };
3430
3400
  };
3431
3401
  var deserializeAws_restJson1AccountHealths = function (output, context) {
@@ -3452,12 +3422,8 @@ var deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (output
3452
3422
  };
3453
3423
  var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
3454
3424
  return {
3455
- CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
3456
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CloseTime)))
3457
- : undefined,
3458
- OpenTime: output.OpenTime !== undefined && output.OpenTime !== null
3459
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OpenTime)))
3460
- : undefined,
3425
+ CloseTime: output.CloseTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CloseTime))) : undefined,
3426
+ OpenTime: output.OpenTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OpenTime))) : undefined,
3461
3427
  };
3462
3428
  };
3463
3429
  var deserializeAws_restJson1AnomalyResource = function (output, context) {
@@ -3479,10 +3445,10 @@ var deserializeAws_restJson1AnomalyResources = function (output, context) {
3479
3445
  };
3480
3446
  var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
3481
3447
  return {
3482
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
3448
+ CloudWatchMetrics: output.CloudWatchMetrics != null
3483
3449
  ? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
3484
3450
  : undefined,
3485
- PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
3451
+ PerformanceInsightsMetrics: output.PerformanceInsightsMetrics != null
3486
3452
  ? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
3487
3453
  : undefined,
3488
3454
  };
@@ -3496,12 +3462,8 @@ var deserializeAws_restJson1AnomalySourceMetadata = function (output, context) {
3496
3462
  };
3497
3463
  var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
3498
3464
  return {
3499
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3500
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3501
- : undefined,
3502
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3503
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3504
- : undefined,
3465
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3466
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3505
3467
  };
3506
3468
  };
3507
3469
  var deserializeAws_restJson1AssociatedResourceArns = function (output, context) {
@@ -3528,30 +3490,24 @@ var deserializeAws_restJson1Channels = function (output, context) {
3528
3490
  };
3529
3491
  var deserializeAws_restJson1CloudFormationCollection = function (output, context) {
3530
3492
  return {
3531
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3532
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
3533
- : undefined,
3493
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
3534
3494
  };
3535
3495
  };
3536
3496
  var deserializeAws_restJson1CloudFormationCollectionFilter = function (output, context) {
3537
3497
  return {
3538
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3539
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
3540
- : undefined,
3498
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
3541
3499
  };
3542
3500
  };
3543
3501
  var deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = function (output, context) {
3544
3502
  return {
3545
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3503
+ StackNames: output.StackNames != null
3546
3504
  ? deserializeAws_restJson1CostEstimationStackNames(output.StackNames, context)
3547
3505
  : undefined,
3548
3506
  };
3549
3507
  };
3550
3508
  var deserializeAws_restJson1CloudFormationHealth = function (output, context) {
3551
3509
  return {
3552
- Insight: output.Insight !== undefined && output.Insight !== null
3553
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
3554
- : undefined,
3510
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
3555
3511
  StackName: __expectString(output.StackName),
3556
3512
  };
3557
3513
  };
@@ -3569,17 +3525,17 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
3569
3525
  var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
3570
3526
  return {
3571
3527
  StatusCode: __expectString(output.StatusCode),
3572
- TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
3528
+ TimestampMetricValuePairList: output.TimestampMetricValuePairList != null
3573
3529
  ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
3574
3530
  : undefined,
3575
3531
  };
3576
3532
  };
3577
3533
  var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context) {
3578
3534
  return {
3579
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3535
+ Dimensions: output.Dimensions != null
3580
3536
  ? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
3581
3537
  : undefined,
3582
- MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
3538
+ MetricDataSummary: output.MetricDataSummary != null
3583
3539
  ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
3584
3540
  : undefined,
3585
3541
  MetricName: __expectString(output.MetricName),
@@ -3619,10 +3575,10 @@ var deserializeAws_restJson1CloudWatchMetricsDimensions = function (output, cont
3619
3575
  };
3620
3576
  var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (output, context) {
3621
3577
  return {
3622
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3578
+ CloudFormation: output.CloudFormation != null
3623
3579
  ? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
3624
3580
  : undefined,
3625
- Tags: output.Tags !== undefined && output.Tags !== null
3581
+ Tags: output.Tags != null
3626
3582
  ? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
3627
3583
  : undefined,
3628
3584
  };
@@ -3651,12 +3607,8 @@ var deserializeAws_restJson1CostEstimationTagValues = function (output, context)
3651
3607
  };
3652
3608
  var deserializeAws_restJson1CostEstimationTimeRange = function (output, context) {
3653
3609
  return {
3654
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3655
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3656
- : undefined,
3657
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3658
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3659
- : undefined,
3610
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3611
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3660
3612
  };
3661
3613
  };
3662
3614
  var deserializeAws_restJson1Event = function (output, context) {
@@ -3666,15 +3618,11 @@ var deserializeAws_restJson1Event = function (output, context) {
3666
3618
  EventSource: __expectString(output.EventSource),
3667
3619
  Id: __expectString(output.Id),
3668
3620
  Name: __expectString(output.Name),
3669
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3621
+ ResourceCollection: output.ResourceCollection != null
3670
3622
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3671
3623
  : undefined,
3672
- Resources: output.Resources !== undefined && output.Resources !== null
3673
- ? deserializeAws_restJson1EventResources(output.Resources, context)
3674
- : undefined,
3675
- Time: output.Time !== undefined && output.Time !== null
3676
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Time)))
3677
- : undefined,
3624
+ Resources: output.Resources != null ? deserializeAws_restJson1EventResources(output.Resources, context) : undefined,
3625
+ Time: output.Time != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Time))) : undefined,
3678
3626
  };
3679
3627
  };
3680
3628
  var deserializeAws_restJson1EventResource = function (output, context) {
@@ -3708,7 +3656,7 @@ var deserializeAws_restJson1Events = function (output, context) {
3708
3656
  };
3709
3657
  var deserializeAws_restJson1EventSourcesConfig = function (output, context) {
3710
3658
  return {
3711
- AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
3659
+ AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler != null
3712
3660
  ? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
3713
3661
  : undefined,
3714
3662
  };
@@ -3728,27 +3676,19 @@ var deserializeAws_restJson1InsightHealth = function (output, context) {
3728
3676
  };
3729
3677
  var deserializeAws_restJson1InsightTimeRange = function (output, context) {
3730
3678
  return {
3731
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3732
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3733
- : undefined,
3734
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3735
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3736
- : undefined,
3679
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3680
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3737
3681
  };
3738
3682
  };
3739
3683
  var deserializeAws_restJson1NotificationChannel = function (output, context) {
3740
3684
  return {
3741
- Config: output.Config !== undefined && output.Config !== null
3742
- ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context)
3743
- : undefined,
3685
+ Config: output.Config != null ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context) : undefined,
3744
3686
  Id: __expectString(output.Id),
3745
3687
  };
3746
3688
  };
3747
3689
  var deserializeAws_restJson1NotificationChannelConfig = function (output, context) {
3748
3690
  return {
3749
- Sns: output.Sns !== undefined && output.Sns !== null
3750
- ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context)
3751
- : undefined,
3691
+ Sns: output.Sns != null ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context) : undefined,
3752
3692
  };
3753
3693
  };
3754
3694
  var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
@@ -3758,7 +3698,7 @@ var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
3758
3698
  };
3759
3699
  var deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = function (output, context) {
3760
3700
  return {
3761
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3701
+ Dimensions: output.Dimensions != null
3762
3702
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
3763
3703
  : undefined,
3764
3704
  Group: __expectString(output.Group),
@@ -3788,10 +3728,10 @@ var deserializeAws_restJson1PerformanceInsightsMetricFilterMap = function (outpu
3788
3728
  };
3789
3729
  var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, context) {
3790
3730
  return {
3791
- Filter: output.Filter !== undefined && output.Filter !== null
3731
+ Filter: output.Filter != null
3792
3732
  ? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
3793
3733
  : undefined,
3794
- GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
3734
+ GroupBy: output.GroupBy != null
3795
3735
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
3796
3736
  : undefined,
3797
3737
  Metric: __expectString(output.Metric),
@@ -3800,16 +3740,16 @@ var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, c
3800
3740
  var deserializeAws_restJson1PerformanceInsightsMetricsDetail = function (output, context) {
3801
3741
  return {
3802
3742
  MetricDisplayName: __expectString(output.MetricDisplayName),
3803
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3743
+ MetricQuery: output.MetricQuery != null
3804
3744
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3805
3745
  : undefined,
3806
- ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
3746
+ ReferenceData: output.ReferenceData != null
3807
3747
  ? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
3808
3748
  : undefined,
3809
- StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
3749
+ StatsAtAnomaly: output.StatsAtAnomaly != null
3810
3750
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
3811
3751
  : undefined,
3812
- StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
3752
+ StatsAtBaseline: output.StatsAtBaseline != null
3813
3753
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
3814
3754
  : undefined,
3815
3755
  Unit: __expectString(output.Unit),
@@ -3828,17 +3768,17 @@ var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output
3828
3768
  };
3829
3769
  var deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = function (output, context) {
3830
3770
  return {
3831
- ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
3771
+ ReferenceMetric: output.ReferenceMetric != null
3832
3772
  ? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
3833
3773
  : undefined,
3834
- ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
3774
+ ReferenceScalar: output.ReferenceScalar != null
3835
3775
  ? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
3836
3776
  : undefined,
3837
3777
  };
3838
3778
  };
3839
3779
  var deserializeAws_restJson1PerformanceInsightsReferenceData = function (output, context) {
3840
3780
  return {
3841
- ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
3781
+ ComparisonValues: output.ComparisonValues != null
3842
3782
  ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
3843
3783
  : undefined,
3844
3784
  Name: __expectString(output.Name),
@@ -3857,7 +3797,7 @@ var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (out
3857
3797
  };
3858
3798
  var deserializeAws_restJson1PerformanceInsightsReferenceMetric = function (output, context) {
3859
3799
  return {
3860
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3800
+ MetricQuery: output.MetricQuery != null
3861
3801
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3862
3802
  : undefined,
3863
3803
  };
@@ -3886,12 +3826,8 @@ var deserializeAws_restJson1PerformanceInsightsStats = function (output, context
3886
3826
  };
3887
3827
  var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
3888
3828
  return {
3889
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3890
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3891
- : undefined,
3892
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3893
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3894
- : undefined,
3829
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3830
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3895
3831
  };
3896
3832
  };
3897
3833
  var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
@@ -3907,82 +3843,78 @@ var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
3907
3843
  };
3908
3844
  var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
3909
3845
  return {
3910
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3846
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3911
3847
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3912
3848
  : undefined,
3913
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3849
+ AnomalyResources: output.AnomalyResources != null
3914
3850
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3915
3851
  : undefined,
3916
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3852
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3917
3853
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3918
3854
  : undefined,
3919
3855
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
3920
3856
  Id: __expectString(output.Id),
3921
3857
  Limit: __limitedParseDouble(output.Limit),
3922
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3858
+ PredictionTimeRange: output.PredictionTimeRange != null
3923
3859
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3924
3860
  : undefined,
3925
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3861
+ ResourceCollection: output.ResourceCollection != null
3926
3862
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3927
3863
  : undefined,
3928
3864
  Severity: __expectString(output.Severity),
3929
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3865
+ SourceDetails: output.SourceDetails != null
3930
3866
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3931
3867
  : undefined,
3932
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3868
+ SourceMetadata: output.SourceMetadata != null
3933
3869
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3934
3870
  : undefined,
3935
3871
  Status: __expectString(output.Status),
3936
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3937
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
3938
- : undefined,
3872
+ UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime))) : undefined,
3939
3873
  };
3940
3874
  };
3941
3875
  var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context) {
3942
3876
  return {
3943
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3877
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3944
3878
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3945
3879
  : undefined,
3946
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3880
+ AnomalyResources: output.AnomalyResources != null
3947
3881
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3948
3882
  : undefined,
3949
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3883
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3950
3884
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3951
3885
  : undefined,
3952
3886
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
3953
3887
  Id: __expectString(output.Id),
3954
3888
  Limit: __limitedParseDouble(output.Limit),
3955
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3889
+ PredictionTimeRange: output.PredictionTimeRange != null
3956
3890
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3957
3891
  : undefined,
3958
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3892
+ ResourceCollection: output.ResourceCollection != null
3959
3893
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3960
3894
  : undefined,
3961
3895
  Severity: __expectString(output.Severity),
3962
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3896
+ SourceDetails: output.SourceDetails != null
3963
3897
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3964
3898
  : undefined,
3965
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3899
+ SourceMetadata: output.SourceMetadata != null
3966
3900
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3967
3901
  : undefined,
3968
3902
  Status: __expectString(output.Status),
3969
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3970
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
3971
- : undefined,
3903
+ UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime))) : undefined,
3972
3904
  };
3973
3905
  };
3974
3906
  var deserializeAws_restJson1ProactiveInsight = function (output, context) {
3975
3907
  return {
3976
3908
  Description: __expectString(output.Description),
3977
3909
  Id: __expectString(output.Id),
3978
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3910
+ InsightTimeRange: output.InsightTimeRange != null
3979
3911
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3980
3912
  : undefined,
3981
3913
  Name: __expectString(output.Name),
3982
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3914
+ PredictionTimeRange: output.PredictionTimeRange != null
3983
3915
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3984
3916
  : undefined,
3985
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3917
+ ResourceCollection: output.ResourceCollection != null
3986
3918
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3987
3919
  : undefined,
3988
3920
  Severity: __expectString(output.Severity),
@@ -4003,21 +3935,21 @@ var deserializeAws_restJson1ProactiveInsights = function (output, context) {
4003
3935
  };
4004
3936
  var deserializeAws_restJson1ProactiveInsightSummary = function (output, context) {
4005
3937
  return {
4006
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3938
+ AssociatedResourceArns: output.AssociatedResourceArns != null
4007
3939
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4008
3940
  : undefined,
4009
3941
  Id: __expectString(output.Id),
4010
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3942
+ InsightTimeRange: output.InsightTimeRange != null
4011
3943
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4012
3944
  : undefined,
4013
3945
  Name: __expectString(output.Name),
4014
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3946
+ PredictionTimeRange: output.PredictionTimeRange != null
4015
3947
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4016
3948
  : undefined,
4017
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3949
+ ResourceCollection: output.ResourceCollection != null
4018
3950
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4019
3951
  : undefined,
4020
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3952
+ ServiceCollection: output.ServiceCollection != null
4021
3953
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4022
3954
  : undefined,
4023
3955
  Severity: __expectString(output.Severity),
@@ -4039,18 +3971,18 @@ var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (outp
4039
3971
  return {
4040
3972
  AccountId: __expectString(output.AccountId),
4041
3973
  Id: __expectString(output.Id),
4042
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3974
+ InsightTimeRange: output.InsightTimeRange != null
4043
3975
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4044
3976
  : undefined,
4045
3977
  Name: __expectString(output.Name),
4046
3978
  OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
4047
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3979
+ PredictionTimeRange: output.PredictionTimeRange != null
4048
3980
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4049
3981
  : undefined,
4050
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3982
+ ResourceCollection: output.ResourceCollection != null
4051
3983
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4052
3984
  : undefined,
4053
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3985
+ ServiceCollection: output.ServiceCollection != null
4054
3986
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4055
3987
  : undefined,
4056
3988
  Severity: __expectString(output.Severity),
@@ -4070,13 +4002,13 @@ var deserializeAws_restJson1ReactiveAnomalies = function (output, context) {
4070
4002
  };
4071
4003
  var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4072
4004
  return {
4073
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
4005
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
4074
4006
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
4075
4007
  : undefined,
4076
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4008
+ AnomalyResources: output.AnomalyResources != null
4077
4009
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4078
4010
  : undefined,
4079
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
4011
+ AnomalyTimeRange: output.AnomalyTimeRange != null
4080
4012
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
4081
4013
  : undefined,
4082
4014
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
@@ -4084,11 +4016,11 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4084
4016
  Description: __expectString(output.Description),
4085
4017
  Id: __expectString(output.Id),
4086
4018
  Name: __expectString(output.Name),
4087
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4019
+ ResourceCollection: output.ResourceCollection != null
4088
4020
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4089
4021
  : undefined,
4090
4022
  Severity: __expectString(output.Severity),
4091
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4023
+ SourceDetails: output.SourceDetails != null
4092
4024
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
4093
4025
  : undefined,
4094
4026
  Status: __expectString(output.Status),
@@ -4097,13 +4029,13 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4097
4029
  };
4098
4030
  var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context) {
4099
4031
  return {
4100
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
4032
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
4101
4033
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
4102
4034
  : undefined,
4103
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4035
+ AnomalyResources: output.AnomalyResources != null
4104
4036
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4105
4037
  : undefined,
4106
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
4038
+ AnomalyTimeRange: output.AnomalyTimeRange != null
4107
4039
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
4108
4040
  : undefined,
4109
4041
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
@@ -4111,11 +4043,11 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
4111
4043
  Description: __expectString(output.Description),
4112
4044
  Id: __expectString(output.Id),
4113
4045
  Name: __expectString(output.Name),
4114
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4046
+ ResourceCollection: output.ResourceCollection != null
4115
4047
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4116
4048
  : undefined,
4117
4049
  Severity: __expectString(output.Severity),
4118
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4050
+ SourceDetails: output.SourceDetails != null
4119
4051
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
4120
4052
  : undefined,
4121
4053
  Status: __expectString(output.Status),
@@ -4126,11 +4058,11 @@ var deserializeAws_restJson1ReactiveInsight = function (output, context) {
4126
4058
  return {
4127
4059
  Description: __expectString(output.Description),
4128
4060
  Id: __expectString(output.Id),
4129
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4061
+ InsightTimeRange: output.InsightTimeRange != null
4130
4062
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4131
4063
  : undefined,
4132
4064
  Name: __expectString(output.Name),
4133
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4065
+ ResourceCollection: output.ResourceCollection != null
4134
4066
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4135
4067
  : undefined,
4136
4068
  Severity: __expectString(output.Severity),
@@ -4151,18 +4083,18 @@ var deserializeAws_restJson1ReactiveInsights = function (output, context) {
4151
4083
  };
4152
4084
  var deserializeAws_restJson1ReactiveInsightSummary = function (output, context) {
4153
4085
  return {
4154
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
4086
+ AssociatedResourceArns: output.AssociatedResourceArns != null
4155
4087
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4156
4088
  : undefined,
4157
4089
  Id: __expectString(output.Id),
4158
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4090
+ InsightTimeRange: output.InsightTimeRange != null
4159
4091
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4160
4092
  : undefined,
4161
4093
  Name: __expectString(output.Name),
4162
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4094
+ ResourceCollection: output.ResourceCollection != null
4163
4095
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4164
4096
  : undefined,
4165
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4097
+ ServiceCollection: output.ServiceCollection != null
4166
4098
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4167
4099
  : undefined,
4168
4100
  Severity: __expectString(output.Severity),
@@ -4184,15 +4116,15 @@ var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (outpu
4184
4116
  return {
4185
4117
  AccountId: __expectString(output.AccountId),
4186
4118
  Id: __expectString(output.Id),
4187
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4119
+ InsightTimeRange: output.InsightTimeRange != null
4188
4120
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4189
4121
  : undefined,
4190
4122
  Name: __expectString(output.Name),
4191
4123
  OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
4192
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4124
+ ResourceCollection: output.ResourceCollection != null
4193
4125
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4194
4126
  : undefined,
4195
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4127
+ ServiceCollection: output.ServiceCollection != null
4196
4128
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4197
4129
  : undefined,
4198
4130
  Severity: __expectString(output.Severity),
@@ -4206,10 +4138,10 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
4206
4138
  Link: __expectString(output.Link),
4207
4139
  Name: __expectString(output.Name),
4208
4140
  Reason: __expectString(output.Reason),
4209
- RelatedAnomalies: output.RelatedAnomalies !== undefined && output.RelatedAnomalies !== null
4141
+ RelatedAnomalies: output.RelatedAnomalies != null
4210
4142
  ? deserializeAws_restJson1RecommendationRelatedAnomalies(output.RelatedAnomalies, context)
4211
4143
  : undefined,
4212
- RelatedEvents: output.RelatedEvents !== undefined && output.RelatedEvents !== null
4144
+ RelatedEvents: output.RelatedEvents != null
4213
4145
  ? deserializeAws_restJson1RecommendationRelatedEvents(output.RelatedEvents, context)
4214
4146
  : undefined,
4215
4147
  };
@@ -4228,10 +4160,10 @@ var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, c
4228
4160
  var deserializeAws_restJson1RecommendationRelatedAnomaly = function (output, context) {
4229
4161
  return {
4230
4162
  AnomalyId: __expectString(output.AnomalyId),
4231
- Resources: output.Resources !== undefined && output.Resources !== null
4163
+ Resources: output.Resources != null
4232
4164
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
4233
4165
  : undefined,
4234
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4166
+ SourceDetails: output.SourceDetails != null
4235
4167
  ? deserializeAws_restJson1RelatedAnomalySourceDetails(output.SourceDetails, context)
4236
4168
  : undefined,
4237
4169
  };
@@ -4255,7 +4187,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalyResources = function (ou
4255
4187
  };
4256
4188
  var deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = function (output, context) {
4257
4189
  return {
4258
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
4190
+ CloudWatchMetrics: output.CloudWatchMetrics != null
4259
4191
  ? deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails(output.CloudWatchMetrics, context)
4260
4192
  : undefined,
4261
4193
  };
@@ -4280,7 +4212,7 @@ var deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails
4280
4212
  var deserializeAws_restJson1RecommendationRelatedEvent = function (output, context) {
4281
4213
  return {
4282
4214
  Name: __expectString(output.Name),
4283
- Resources: output.Resources !== undefined && output.Resources !== null
4215
+ Resources: output.Resources != null
4284
4216
  ? deserializeAws_restJson1RecommendationRelatedEventResources(output.Resources, context)
4285
4217
  : undefined,
4286
4218
  };
@@ -4337,36 +4269,28 @@ var deserializeAws_restJson1RelatedAnomalySourceDetails = function (output, cont
4337
4269
  };
4338
4270
  var deserializeAws_restJson1ResourceCollection = function (output, context) {
4339
4271
  return {
4340
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
4272
+ CloudFormation: output.CloudFormation != null
4341
4273
  ? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
4342
4274
  : undefined,
4343
- Tags: output.Tags !== undefined && output.Tags !== null
4344
- ? deserializeAws_restJson1TagCollections(output.Tags, context)
4345
- : undefined,
4275
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollections(output.Tags, context) : undefined,
4346
4276
  };
4347
4277
  };
4348
4278
  var deserializeAws_restJson1ResourceCollectionFilter = function (output, context) {
4349
4279
  return {
4350
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
4280
+ CloudFormation: output.CloudFormation != null
4351
4281
  ? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
4352
4282
  : undefined,
4353
- Tags: output.Tags !== undefined && output.Tags !== null
4354
- ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
4355
- : undefined,
4283
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context) : undefined,
4356
4284
  };
4357
4285
  };
4358
4286
  var deserializeAws_restJson1ServiceCollection = function (output, context) {
4359
4287
  return {
4360
- ServiceNames: output.ServiceNames !== undefined && output.ServiceNames !== null
4361
- ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context)
4362
- : undefined,
4288
+ ServiceNames: output.ServiceNames != null ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context) : undefined,
4363
4289
  };
4364
4290
  };
4365
4291
  var deserializeAws_restJson1ServiceHealth = function (output, context) {
4366
4292
  return {
4367
- Insight: output.Insight !== undefined && output.Insight !== null
4368
- ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context)
4369
- : undefined,
4293
+ Insight: output.Insight != null ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context) : undefined,
4370
4294
  ServiceName: __expectString(output.ServiceName),
4371
4295
  };
4372
4296
  };
@@ -4389,9 +4313,7 @@ var deserializeAws_restJson1ServiceInsightHealth = function (output, context) {
4389
4313
  };
4390
4314
  var deserializeAws_restJson1ServiceIntegrationConfig = function (output, context) {
4391
4315
  return {
4392
- OpsCenter: output.OpsCenter !== undefined && output.OpsCenter !== null
4393
- ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context)
4394
- : undefined,
4316
+ OpsCenter: output.OpsCenter != null ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context) : undefined,
4395
4317
  };
4396
4318
  };
4397
4319
  var deserializeAws_restJson1ServiceNames = function (output, context) {
@@ -4444,17 +4366,13 @@ var deserializeAws_restJson1StackNames = function (output, context) {
4444
4366
  var deserializeAws_restJson1TagCollection = function (output, context) {
4445
4367
  return {
4446
4368
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4447
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4448
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
4449
- : undefined,
4369
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
4450
4370
  };
4451
4371
  };
4452
4372
  var deserializeAws_restJson1TagCollectionFilter = function (output, context) {
4453
4373
  return {
4454
4374
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4455
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4456
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
4457
- : undefined,
4375
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
4458
4376
  };
4459
4377
  };
4460
4378
  var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
@@ -4482,9 +4400,7 @@ var deserializeAws_restJson1TagCollections = function (output, context) {
4482
4400
  var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (output, context) {
4483
4401
  return {
4484
4402
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4485
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4486
- ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
4487
- : undefined,
4403
+ TagValues: output.TagValues != null ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context) : undefined,
4488
4404
  };
4489
4405
  };
4490
4406
  var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (output, context) {
@@ -4501,9 +4417,7 @@ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = functio
4501
4417
  var deserializeAws_restJson1TagHealth = function (output, context) {
4502
4418
  return {
4503
4419
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4504
- Insight: output.Insight !== undefined && output.Insight !== null
4505
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
4506
- : undefined,
4420
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
4507
4421
  TagValue: __expectString(output.TagValue),
4508
4422
  };
4509
4423
  };
@@ -4532,9 +4446,7 @@ var deserializeAws_restJson1TagValues = function (output, context) {
4532
4446
  var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
4533
4447
  return {
4534
4448
  MetricValue: __limitedParseDouble(output.MetricValue),
4535
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
4536
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
4537
- : undefined,
4449
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
4538
4450
  };
4539
4451
  };
4540
4452
  var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
@@ -4621,5 +4533,4 @@ var loadRestJsonErrorCode = function (output, data) {
4621
4533
  if (data["__type"] !== undefined) {
4622
4534
  return sanitizeErrorCode(data["__type"]);
4623
4535
  }
4624
- return "";
4625
4536
  };