@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 @@ const serializeAws_restJson1AddNotificationChannelCommand = async (input, contex
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ...(input.Config !== undefined &&
19
- input.Config !== null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) }),
18
+ ...(input.Config != null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) }),
20
19
  });
21
20
  return new protocol_http_1.HttpRequest({
22
21
  protocol,
@@ -82,9 +81,8 @@ const serializeAws_restJson1DescribeAccountOverviewCommand = async (input, conte
82
81
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/overview";
83
82
  let body;
84
83
  body = JSON.stringify({
85
- ...(input.FromTime !== undefined &&
86
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
87
- ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
84
+ ...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
85
+ ...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
88
86
  });
89
87
  return new protocol_http_1.HttpRequest({
90
88
  protocol,
@@ -154,7 +152,7 @@ const serializeAws_restJson1DescribeFeedbackCommand = async (input, context) =>
154
152
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
155
153
  let body;
156
154
  body = JSON.stringify({
157
- ...(input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId }),
155
+ ...(input.InsightId != null && { InsightId: input.InsightId }),
158
156
  });
159
157
  return new protocol_http_1.HttpRequest({
160
158
  protocol,
@@ -205,10 +203,8 @@ const serializeAws_restJson1DescribeOrganizationHealthCommand = async (input, co
205
203
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health";
206
204
  let body;
207
205
  body = JSON.stringify({
208
- ...(input.AccountIds !== undefined &&
209
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
210
- ...(input.OrganizationalUnitIds !== undefined &&
211
- input.OrganizationalUnitIds !== null && {
206
+ ...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
207
+ ...(input.OrganizationalUnitIds != null && {
212
208
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
213
209
  }),
214
210
  });
@@ -231,15 +227,12 @@ const serializeAws_restJson1DescribeOrganizationOverviewCommand = async (input,
231
227
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/overview";
232
228
  let body;
233
229
  body = JSON.stringify({
234
- ...(input.AccountIds !== undefined &&
235
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
236
- ...(input.FromTime !== undefined &&
237
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
238
- ...(input.OrganizationalUnitIds !== undefined &&
239
- input.OrganizationalUnitIds !== null && {
230
+ ...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
231
+ ...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
232
+ ...(input.OrganizationalUnitIds != null && {
240
233
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
241
234
  }),
242
- ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
235
+ ...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
243
236
  });
244
237
  return new protocol_http_1.HttpRequest({
245
238
  protocol,
@@ -260,16 +253,13 @@ const serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand
260
253
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health/resource-collection";
261
254
  let body;
262
255
  body = JSON.stringify({
263
- ...(input.AccountIds !== undefined &&
264
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
265
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
266
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
267
- ...(input.OrganizationResourceCollectionType !== undefined &&
268
- input.OrganizationResourceCollectionType !== null && {
256
+ ...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
257
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
258
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
259
+ ...(input.OrganizationResourceCollectionType != null && {
269
260
  OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
270
261
  }),
271
- ...(input.OrganizationalUnitIds !== undefined &&
272
- input.OrganizationalUnitIds !== null && {
262
+ ...(input.OrganizationalUnitIds != null && {
273
263
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
274
264
  }),
275
265
  });
@@ -403,11 +393,10 @@ const serializeAws_restJson1ListAnomaliesForInsightCommand = async (input, conte
403
393
  }
404
394
  let body;
405
395
  body = JSON.stringify({
406
- ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
407
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
408
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
409
- ...(input.StartTimeRange !== undefined &&
410
- input.StartTimeRange !== null && {
396
+ ...(input.AccountId != null && { AccountId: input.AccountId }),
397
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
398
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
399
+ ...(input.StartTimeRange != null && {
411
400
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
412
401
  }),
413
402
  });
@@ -430,11 +419,10 @@ const serializeAws_restJson1ListEventsCommand = async (input, context) => {
430
419
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
431
420
  let body;
432
421
  body = JSON.stringify({
433
- ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
434
- ...(input.Filters !== undefined &&
435
- input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) }),
436
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
437
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
422
+ ...(input.AccountId != null && { AccountId: input.AccountId }),
423
+ ...(input.Filters != null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) }),
424
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
425
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
438
426
  });
439
427
  return new protocol_http_1.HttpRequest({
440
428
  protocol,
@@ -455,10 +443,9 @@ const serializeAws_restJson1ListInsightsCommand = async (input, context) => {
455
443
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
456
444
  let body;
457
445
  body = JSON.stringify({
458
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
459
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
460
- ...(input.StatusFilter !== undefined &&
461
- input.StatusFilter !== null && {
446
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
447
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
448
+ ...(input.StatusFilter != null && {
462
449
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
463
450
  }),
464
451
  });
@@ -481,7 +468,7 @@ const serializeAws_restJson1ListNotificationChannelsCommand = async (input, cont
481
468
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
482
469
  let body;
483
470
  body = JSON.stringify({
484
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
471
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
485
472
  });
486
473
  return new protocol_http_1.HttpRequest({
487
474
  protocol,
@@ -502,18 +489,15 @@ const serializeAws_restJson1ListOrganizationInsightsCommand = async (input, cont
502
489
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights";
503
490
  let body;
504
491
  body = JSON.stringify({
505
- ...(input.AccountIds !== undefined &&
506
- input.AccountIds !== null && {
492
+ ...(input.AccountIds != null && {
507
493
  AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
508
494
  }),
509
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
510
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
511
- ...(input.OrganizationalUnitIds !== undefined &&
512
- input.OrganizationalUnitIds !== null && {
495
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
496
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
497
+ ...(input.OrganizationalUnitIds != null && {
513
498
  OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
514
499
  }),
515
- ...(input.StatusFilter !== undefined &&
516
- input.StatusFilter !== null && {
500
+ ...(input.StatusFilter != null && {
517
501
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
518
502
  }),
519
503
  });
@@ -536,10 +520,10 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
536
520
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations";
537
521
  let body;
538
522
  body = JSON.stringify({
539
- ...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
540
- ...(input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId }),
541
- ...(input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale }),
542
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
523
+ ...(input.AccountId != null && { AccountId: input.AccountId }),
524
+ ...(input.InsightId != null && { InsightId: input.InsightId }),
525
+ ...(input.Locale != null && { Locale: input.Locale }),
526
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
543
527
  });
544
528
  return new protocol_http_1.HttpRequest({
545
529
  protocol,
@@ -560,8 +544,7 @@ const serializeAws_restJson1PutFeedbackCommand = async (input, context) => {
560
544
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
561
545
  let body;
562
546
  body = JSON.stringify({
563
- ...(input.InsightFeedback !== undefined &&
564
- input.InsightFeedback !== null && {
547
+ ...(input.InsightFeedback != null && {
565
548
  InsightFeedback: serializeAws_restJson1InsightFeedback(input.InsightFeedback, context),
566
549
  }),
567
550
  });
@@ -610,15 +593,13 @@ const serializeAws_restJson1SearchInsightsCommand = async (input, context) => {
610
593
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/search";
611
594
  let body;
612
595
  body = JSON.stringify({
613
- ...(input.Filters !== undefined &&
614
- input.Filters !== null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) }),
615
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
616
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
617
- ...(input.StartTimeRange !== undefined &&
618
- input.StartTimeRange !== null && {
596
+ ...(input.Filters != null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) }),
597
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
598
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
599
+ ...(input.StartTimeRange != null && {
619
600
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
620
601
  }),
621
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
602
+ ...(input.Type != null && { Type: input.Type }),
622
603
  });
623
604
  return new protocol_http_1.HttpRequest({
624
605
  protocol,
@@ -639,21 +620,18 @@ const serializeAws_restJson1SearchOrganizationInsightsCommand = async (input, co
639
620
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights/search";
640
621
  let body;
641
622
  body = JSON.stringify({
642
- ...(input.AccountIds !== undefined &&
643
- input.AccountIds !== null && {
623
+ ...(input.AccountIds != null && {
644
624
  AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
645
625
  }),
646
- ...(input.Filters !== undefined &&
647
- input.Filters !== null && {
626
+ ...(input.Filters != null && {
648
627
  Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
649
628
  }),
650
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
651
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
652
- ...(input.StartTimeRange !== undefined &&
653
- input.StartTimeRange !== null && {
629
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
630
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
631
+ ...(input.StartTimeRange != null && {
654
632
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
655
633
  }),
656
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
634
+ ...(input.Type != null && { Type: input.Type }),
657
635
  });
658
636
  return new protocol_http_1.HttpRequest({
659
637
  protocol,
@@ -676,8 +654,7 @@ const serializeAws_restJson1StartCostEstimationCommand = async (input, context)
676
654
  let body;
677
655
  body = JSON.stringify({
678
656
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
679
- ...(input.ResourceCollection !== undefined &&
680
- input.ResourceCollection !== null && {
657
+ ...(input.ResourceCollection != null && {
681
658
  ResourceCollection: serializeAws_restJson1CostEstimationResourceCollectionFilter(input.ResourceCollection, context),
682
659
  }),
683
660
  });
@@ -700,8 +677,7 @@ const serializeAws_restJson1UpdateEventSourcesConfigCommand = async (input, cont
700
677
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
701
678
  let body;
702
679
  body = JSON.stringify({
703
- ...(input.EventSources !== undefined &&
704
- input.EventSources !== null && {
680
+ ...(input.EventSources != null && {
705
681
  EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
706
682
  }),
707
683
  });
@@ -724,9 +700,8 @@ const serializeAws_restJson1UpdateResourceCollectionCommand = async (input, cont
724
700
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/resource-collections";
725
701
  let body;
726
702
  body = JSON.stringify({
727
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
728
- ...(input.ResourceCollection !== undefined &&
729
- input.ResourceCollection !== null && {
703
+ ...(input.Action != null && { Action: input.Action }),
704
+ ...(input.ResourceCollection != null && {
730
705
  ResourceCollection: serializeAws_restJson1UpdateResourceCollectionFilter(input.ResourceCollection, context),
731
706
  }),
732
707
  });
@@ -749,8 +724,7 @@ const serializeAws_restJson1UpdateServiceIntegrationCommand = async (input, cont
749
724
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/service-integrations";
750
725
  let body;
751
726
  body = JSON.stringify({
752
- ...(input.ServiceIntegration !== undefined &&
753
- input.ServiceIntegration !== null && {
727
+ ...(input.ServiceIntegration != null && {
754
728
  ServiceIntegration: serializeAws_restJson1UpdateServiceIntegrationConfig(input.ServiceIntegration, context),
755
729
  }),
756
730
  });
@@ -786,8 +760,7 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
786
760
  body: await parseBody(output.body, context),
787
761
  };
788
762
  let response;
789
- let errorCode = "UnknownError";
790
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
791
764
  switch (errorCode) {
792
765
  case "AccessDeniedException":
793
766
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -812,10 +785,12 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
812
785
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
813
786
  default:
814
787
  const parsedBody = parsedOutput.body;
788
+ const $metadata = deserializeMetadata(output);
789
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
815
790
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
816
- name: parsedBody.code || parsedBody.Code || errorCode,
791
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
817
792
  $fault: "client",
818
- $metadata: deserializeMetadata(output),
793
+ $metadata,
819
794
  });
820
795
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
821
796
  }
@@ -837,8 +812,7 @@ const deserializeAws_restJson1DeleteInsightCommandError = async (output, context
837
812
  body: await parseBody(output.body, context),
838
813
  };
839
814
  let response;
840
- let errorCode = "UnknownError";
841
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
842
816
  switch (errorCode) {
843
817
  case "AccessDeniedException":
844
818
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -860,10 +834,12 @@ const deserializeAws_restJson1DeleteInsightCommandError = async (output, context
860
834
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
861
835
  default:
862
836
  const parsedBody = parsedOutput.body;
837
+ const $metadata = deserializeMetadata(output);
838
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
863
839
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
864
- name: parsedBody.code || parsedBody.Code || errorCode,
840
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
865
841
  $fault: "client",
866
- $metadata: deserializeMetadata(output),
842
+ $metadata,
867
843
  });
868
844
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
869
845
  }
@@ -901,8 +877,7 @@ const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output,
901
877
  body: await parseBody(output.body, context),
902
878
  };
903
879
  let response;
904
- let errorCode = "UnknownError";
905
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
906
881
  switch (errorCode) {
907
882
  case "AccessDeniedException":
908
883
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -918,10 +893,12 @@ const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output,
918
893
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
919
894
  default:
920
895
  const parsedBody = parsedOutput.body;
896
+ const $metadata = deserializeMetadata(output);
897
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
921
898
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
922
- name: parsedBody.code || parsedBody.Code || errorCode,
899
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
923
900
  $fault: "client",
924
- $metadata: deserializeMetadata(output),
901
+ $metadata,
925
902
  });
926
903
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
927
904
  }
@@ -955,8 +932,7 @@ const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (outpu
955
932
  body: await parseBody(output.body, context),
956
933
  };
957
934
  let response;
958
- let errorCode = "UnknownError";
959
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
935
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
960
936
  switch (errorCode) {
961
937
  case "AccessDeniedException":
962
938
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -972,10 +948,12 @@ const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (outpu
972
948
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
973
949
  default:
974
950
  const parsedBody = parsedOutput.body;
951
+ const $metadata = deserializeMetadata(output);
952
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
975
953
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
976
- name: parsedBody.code || parsedBody.Code || errorCode,
954
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
977
955
  $fault: "client",
978
- $metadata: deserializeMetadata(output),
956
+ $metadata,
979
957
  });
980
958
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
981
959
  }
@@ -1005,8 +983,7 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
1005
983
  body: await parseBody(output.body, context),
1006
984
  };
1007
985
  let response;
1008
- let errorCode = "UnknownError";
1009
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
986
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1010
987
  switch (errorCode) {
1011
988
  case "AccessDeniedException":
1012
989
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1025,10 +1002,12 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
1025
1002
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1026
1003
  default:
1027
1004
  const parsedBody = parsedOutput.body;
1005
+ const $metadata = deserializeMetadata(output);
1006
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1028
1007
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1029
- name: parsedBody.code || parsedBody.Code || errorCode,
1008
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1030
1009
  $fault: "client",
1031
- $metadata: deserializeMetadata(output),
1010
+ $metadata,
1032
1011
  });
1033
1012
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1034
1013
  }
@@ -1054,8 +1033,7 @@ const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (ou
1054
1033
  body: await parseBody(output.body, context),
1055
1034
  };
1056
1035
  let response;
1057
- let errorCode = "UnknownError";
1058
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1036
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1059
1037
  switch (errorCode) {
1060
1038
  case "AccessDeniedException":
1061
1039
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1071,10 +1049,12 @@ const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (ou
1071
1049
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1072
1050
  default:
1073
1051
  const parsedBody = parsedOutput.body;
1052
+ const $metadata = deserializeMetadata(output);
1053
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1074
1054
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1075
- name: parsedBody.code || parsedBody.Code || errorCode,
1055
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1076
1056
  $fault: "client",
1077
- $metadata: deserializeMetadata(output),
1057
+ $metadata,
1078
1058
  });
1079
1059
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1080
1060
  }
@@ -1100,8 +1080,7 @@ const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, cont
1100
1080
  body: await parseBody(output.body, context),
1101
1081
  };
1102
1082
  let response;
1103
- let errorCode = "UnknownError";
1104
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1083
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1105
1084
  switch (errorCode) {
1106
1085
  case "AccessDeniedException":
1107
1086
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1120,10 +1099,12 @@ const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, cont
1120
1099
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1121
1100
  default:
1122
1101
  const parsedBody = parsedOutput.body;
1102
+ const $metadata = deserializeMetadata(output);
1103
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1123
1104
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1124
- name: parsedBody.code || parsedBody.Code || errorCode,
1105
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1125
1106
  $fault: "client",
1126
- $metadata: deserializeMetadata(output),
1107
+ $metadata,
1127
1108
  });
1128
1109
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1129
1110
  }
@@ -1153,8 +1134,7 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
1153
1134
  body: await parseBody(output.body, context),
1154
1135
  };
1155
1136
  let response;
1156
- let errorCode = "UnknownError";
1157
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1158
1138
  switch (errorCode) {
1159
1139
  case "AccessDeniedException":
1160
1140
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1173,10 +1153,12 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
1173
1153
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1174
1154
  default:
1175
1155
  const parsedBody = parsedOutput.body;
1156
+ const $metadata = deserializeMetadata(output);
1157
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1176
1158
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1177
- name: parsedBody.code || parsedBody.Code || errorCode,
1159
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1178
1160
  $fault: "client",
1179
- $metadata: deserializeMetadata(output),
1161
+ $metadata,
1180
1162
  });
1181
1163
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1182
1164
  }
@@ -1214,8 +1196,7 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (ou
1214
1196
  body: await parseBody(output.body, context),
1215
1197
  };
1216
1198
  let response;
1217
- let errorCode = "UnknownError";
1218
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
1200
  switch (errorCode) {
1220
1201
  case "AccessDeniedException":
1221
1202
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1231,10 +1212,12 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (ou
1231
1212
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1232
1213
  default:
1233
1214
  const parsedBody = parsedOutput.body;
1215
+ const $metadata = deserializeMetadata(output);
1216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1234
1217
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1235
- name: parsedBody.code || parsedBody.Code || errorCode,
1218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1236
1219
  $fault: "client",
1237
- $metadata: deserializeMetadata(output),
1220
+ $metadata,
1238
1221
  });
1239
1222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1240
1223
  }
@@ -1264,8 +1247,7 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (
1264
1247
  body: await parseBody(output.body, context),
1265
1248
  };
1266
1249
  let response;
1267
- let errorCode = "UnknownError";
1268
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1250
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1269
1251
  switch (errorCode) {
1270
1252
  case "AccessDeniedException":
1271
1253
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1281,10 +1263,12 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (
1281
1263
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1282
1264
  default:
1283
1265
  const parsedBody = parsedOutput.body;
1266
+ const $metadata = deserializeMetadata(output);
1267
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1284
1268
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1285
- name: parsedBody.code || parsedBody.Code || errorCode,
1269
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1286
1270
  $fault: "client",
1287
- $metadata: deserializeMetadata(output),
1271
+ $metadata,
1288
1272
  });
1289
1273
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1290
1274
  }
@@ -1326,8 +1310,7 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
1326
1310
  body: await parseBody(output.body, context),
1327
1311
  };
1328
1312
  let response;
1329
- let errorCode = "UnknownError";
1330
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1313
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
1314
  switch (errorCode) {
1332
1315
  case "AccessDeniedException":
1333
1316
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1343,10 +1326,12 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
1343
1326
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1344
1327
  default:
1345
1328
  const parsedBody = parsedOutput.body;
1329
+ const $metadata = deserializeMetadata(output);
1330
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1346
1331
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1347
- name: parsedBody.code || parsedBody.Code || errorCode,
1332
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1348
1333
  $fault: "client",
1349
- $metadata: deserializeMetadata(output),
1334
+ $metadata,
1350
1335
  });
1351
1336
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1352
1337
  }
@@ -1384,8 +1369,7 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
1384
1369
  body: await parseBody(output.body, context),
1385
1370
  };
1386
1371
  let response;
1387
- let errorCode = "UnknownError";
1388
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1372
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1389
1373
  switch (errorCode) {
1390
1374
  case "AccessDeniedException":
1391
1375
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1401,10 +1385,12 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
1401
1385
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1402
1386
  default:
1403
1387
  const parsedBody = parsedOutput.body;
1388
+ const $metadata = deserializeMetadata(output);
1389
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1404
1390
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1405
- name: parsedBody.code || parsedBody.Code || errorCode,
1391
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1406
1392
  $fault: "client",
1407
- $metadata: deserializeMetadata(output),
1393
+ $metadata,
1408
1394
  });
1409
1395
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1410
1396
  }
@@ -1430,8 +1416,7 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
1430
1416
  body: await parseBody(output.body, context),
1431
1417
  };
1432
1418
  let response;
1433
- let errorCode = "UnknownError";
1434
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1435
1420
  switch (errorCode) {
1436
1421
  case "AccessDeniedException":
1437
1422
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1447,10 +1432,12 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
1447
1432
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1448
1433
  default:
1449
1434
  const parsedBody = parsedOutput.body;
1435
+ const $metadata = deserializeMetadata(output);
1436
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1450
1437
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1451
- name: parsedBody.code || parsedBody.Code || errorCode,
1438
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1452
1439
  $fault: "client",
1453
- $metadata: deserializeMetadata(output),
1440
+ $metadata,
1454
1441
  });
1455
1442
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1456
1443
  }
@@ -1496,8 +1483,7 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
1496
1483
  body: await parseBody(output.body, context),
1497
1484
  };
1498
1485
  let response;
1499
- let errorCode = "UnknownError";
1500
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1486
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1501
1487
  switch (errorCode) {
1502
1488
  case "AccessDeniedException":
1503
1489
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1516,10 +1502,12 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
1516
1502
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1517
1503
  default:
1518
1504
  const parsedBody = parsedOutput.body;
1505
+ const $metadata = deserializeMetadata(output);
1506
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1519
1507
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1520
- name: parsedBody.code || parsedBody.Code || errorCode,
1508
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1521
1509
  $fault: "client",
1522
- $metadata: deserializeMetadata(output),
1510
+ $metadata,
1523
1511
  });
1524
1512
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1525
1513
  }
@@ -1549,8 +1537,7 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
1549
1537
  body: await parseBody(output.body, context),
1550
1538
  };
1551
1539
  let response;
1552
- let errorCode = "UnknownError";
1553
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1540
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1554
1541
  switch (errorCode) {
1555
1542
  case "AccessDeniedException":
1556
1543
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1569,10 +1556,12 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
1569
1556
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1570
1557
  default:
1571
1558
  const parsedBody = parsedOutput.body;
1559
+ const $metadata = deserializeMetadata(output);
1560
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1572
1561
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1573
- name: parsedBody.code || parsedBody.Code || errorCode,
1562
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1574
1563
  $fault: "client",
1575
- $metadata: deserializeMetadata(output),
1564
+ $metadata,
1576
1565
  });
1577
1566
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1578
1567
  }
@@ -1606,8 +1595,7 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
1606
1595
  body: await parseBody(output.body, context),
1607
1596
  };
1608
1597
  let response;
1609
- let errorCode = "UnknownError";
1610
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1598
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1611
1599
  switch (errorCode) {
1612
1600
  case "AccessDeniedException":
1613
1601
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1626,10 +1614,12 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
1626
1614
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1627
1615
  default:
1628
1616
  const parsedBody = parsedOutput.body;
1617
+ const $metadata = deserializeMetadata(output);
1618
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1629
1619
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1630
- name: parsedBody.code || parsedBody.Code || errorCode,
1620
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1631
1621
  $fault: "client",
1632
- $metadata: deserializeMetadata(output),
1622
+ $metadata,
1633
1623
  });
1634
1624
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1635
1625
  }
@@ -1659,8 +1649,7 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
1659
1649
  body: await parseBody(output.body, context),
1660
1650
  };
1661
1651
  let response;
1662
- let errorCode = "UnknownError";
1663
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
1653
  switch (errorCode) {
1665
1654
  case "AccessDeniedException":
1666
1655
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1679,10 +1668,12 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
1679
1668
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1680
1669
  default:
1681
1670
  const parsedBody = parsedOutput.body;
1671
+ const $metadata = deserializeMetadata(output);
1672
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1682
1673
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1683
- name: parsedBody.code || parsedBody.Code || errorCode,
1674
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1684
1675
  $fault: "client",
1685
- $metadata: deserializeMetadata(output),
1676
+ $metadata,
1686
1677
  });
1687
1678
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1688
1679
  }
@@ -1716,8 +1707,7 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
1716
1707
  body: await parseBody(output.body, context),
1717
1708
  };
1718
1709
  let response;
1719
- let errorCode = "UnknownError";
1720
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1721
1711
  switch (errorCode) {
1722
1712
  case "AccessDeniedException":
1723
1713
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1733,10 +1723,12 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
1733
1723
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1734
1724
  default:
1735
1725
  const parsedBody = parsedOutput.body;
1726
+ const $metadata = deserializeMetadata(output);
1727
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1736
1728
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1737
- name: parsedBody.code || parsedBody.Code || errorCode,
1729
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1738
1730
  $fault: "client",
1739
- $metadata: deserializeMetadata(output),
1731
+ $metadata,
1740
1732
  });
1741
1733
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1742
1734
  }
@@ -1766,8 +1758,7 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
1766
1758
  body: await parseBody(output.body, context),
1767
1759
  };
1768
1760
  let response;
1769
- let errorCode = "UnknownError";
1770
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
1762
  switch (errorCode) {
1772
1763
  case "AccessDeniedException":
1773
1764
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1783,10 +1774,12 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
1783
1774
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1784
1775
  default:
1785
1776
  const parsedBody = parsedOutput.body;
1777
+ const $metadata = deserializeMetadata(output);
1778
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1786
1779
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1787
- name: parsedBody.code || parsedBody.Code || errorCode,
1780
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1788
1781
  $fault: "client",
1789
- $metadata: deserializeMetadata(output),
1782
+ $metadata,
1790
1783
  });
1791
1784
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1792
1785
  }
@@ -1820,8 +1813,7 @@ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (outp
1820
1813
  body: await parseBody(output.body, context),
1821
1814
  };
1822
1815
  let response;
1823
- let errorCode = "UnknownError";
1824
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1825
1817
  switch (errorCode) {
1826
1818
  case "AccessDeniedException":
1827
1819
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1837,10 +1829,12 @@ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (outp
1837
1829
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1838
1830
  default:
1839
1831
  const parsedBody = parsedOutput.body;
1832
+ const $metadata = deserializeMetadata(output);
1833
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1840
1834
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1841
- name: parsedBody.code || parsedBody.Code || errorCode,
1835
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1842
1836
  $fault: "client",
1843
- $metadata: deserializeMetadata(output),
1837
+ $metadata,
1844
1838
  });
1845
1839
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1846
1840
  }
@@ -1870,8 +1864,7 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
1870
1864
  body: await parseBody(output.body, context),
1871
1865
  };
1872
1866
  let response;
1873
- let errorCode = "UnknownError";
1874
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1867
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1875
1868
  switch (errorCode) {
1876
1869
  case "AccessDeniedException":
1877
1870
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1890,10 +1883,12 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
1890
1883
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1891
1884
  default:
1892
1885
  const parsedBody = parsedOutput.body;
1886
+ const $metadata = deserializeMetadata(output);
1887
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1893
1888
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1894
- name: parsedBody.code || parsedBody.Code || errorCode,
1889
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1895
1890
  $fault: "client",
1896
- $metadata: deserializeMetadata(output),
1891
+ $metadata,
1897
1892
  });
1898
1893
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1899
1894
  }
@@ -1915,8 +1910,7 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1915
1910
  body: await parseBody(output.body, context),
1916
1911
  };
1917
1912
  let response;
1918
- let errorCode = "UnknownError";
1919
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1913
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1920
1914
  switch (errorCode) {
1921
1915
  case "AccessDeniedException":
1922
1916
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1938,10 +1932,12 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1938
1932
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1939
1933
  default:
1940
1934
  const parsedBody = parsedOutput.body;
1935
+ const $metadata = deserializeMetadata(output);
1936
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1941
1937
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1942
- name: parsedBody.code || parsedBody.Code || errorCode,
1938
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1943
1939
  $fault: "client",
1944
- $metadata: deserializeMetadata(output),
1940
+ $metadata,
1945
1941
  });
1946
1942
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1947
1943
  }
@@ -1963,8 +1959,7 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1963
1959
  body: await parseBody(output.body, context),
1964
1960
  };
1965
1961
  let response;
1966
- let errorCode = "UnknownError";
1967
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1962
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
1963
  switch (errorCode) {
1969
1964
  case "AccessDeniedException":
1970
1965
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -1986,10 +1981,12 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1986
1981
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1987
1982
  default:
1988
1983
  const parsedBody = parsedOutput.body;
1984
+ const $metadata = deserializeMetadata(output);
1985
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1989
1986
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1990
- name: parsedBody.code || parsedBody.Code || errorCode,
1987
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1991
1988
  $fault: "client",
1992
- $metadata: deserializeMetadata(output),
1989
+ $metadata,
1993
1990
  });
1994
1991
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1995
1992
  }
@@ -2023,8 +2020,7 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
2023
2020
  body: await parseBody(output.body, context),
2024
2021
  };
2025
2022
  let response;
2026
- let errorCode = "UnknownError";
2027
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2023
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2028
2024
  switch (errorCode) {
2029
2025
  case "AccessDeniedException":
2030
2026
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2040,10 +2036,12 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
2040
2036
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2041
2037
  default:
2042
2038
  const parsedBody = parsedOutput.body;
2039
+ const $metadata = deserializeMetadata(output);
2040
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2043
2041
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2044
- name: parsedBody.code || parsedBody.Code || errorCode,
2042
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2045
2043
  $fault: "client",
2046
- $metadata: deserializeMetadata(output),
2044
+ $metadata,
2047
2045
  });
2048
2046
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2049
2047
  }
@@ -2077,8 +2075,7 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (ou
2077
2075
  body: await parseBody(output.body, context),
2078
2076
  };
2079
2077
  let response;
2080
- let errorCode = "UnknownError";
2081
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2078
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2082
2079
  switch (errorCode) {
2083
2080
  case "AccessDeniedException":
2084
2081
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2094,10 +2091,12 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (ou
2094
2091
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2095
2092
  default:
2096
2093
  const parsedBody = parsedOutput.body;
2094
+ const $metadata = deserializeMetadata(output);
2095
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2097
2096
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2098
- name: parsedBody.code || parsedBody.Code || errorCode,
2097
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2099
2098
  $fault: "client",
2100
- $metadata: deserializeMetadata(output),
2099
+ $metadata,
2101
2100
  });
2102
2101
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2103
2102
  }
@@ -2119,8 +2118,7 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
2119
2118
  body: await parseBody(output.body, context),
2120
2119
  };
2121
2120
  let response;
2122
- let errorCode = "UnknownError";
2123
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2124
2122
  switch (errorCode) {
2125
2123
  case "AccessDeniedException":
2126
2124
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2142,10 +2140,12 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
2142
2140
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2143
2141
  default:
2144
2142
  const parsedBody = parsedOutput.body;
2143
+ const $metadata = deserializeMetadata(output);
2144
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2145
2145
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2146
- name: parsedBody.code || parsedBody.Code || errorCode,
2146
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2147
2147
  $fault: "client",
2148
- $metadata: deserializeMetadata(output),
2148
+ $metadata,
2149
2149
  });
2150
2150
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2151
2151
  }
@@ -2167,8 +2167,7 @@ const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (outp
2167
2167
  body: await parseBody(output.body, context),
2168
2168
  };
2169
2169
  let response;
2170
- let errorCode = "UnknownError";
2171
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2170
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2172
2171
  switch (errorCode) {
2173
2172
  case "AccessDeniedException":
2174
2173
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2184,10 +2183,12 @@ const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (outp
2184
2183
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2185
2184
  default:
2186
2185
  const parsedBody = parsedOutput.body;
2186
+ const $metadata = deserializeMetadata(output);
2187
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2187
2188
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2188
- name: parsedBody.code || parsedBody.Code || errorCode,
2189
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2189
2190
  $fault: "client",
2190
- $metadata: deserializeMetadata(output),
2191
+ $metadata,
2191
2192
  });
2192
2193
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2193
2194
  }
@@ -2209,8 +2210,7 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
2209
2210
  body: await parseBody(output.body, context),
2210
2211
  };
2211
2212
  let response;
2212
- let errorCode = "UnknownError";
2213
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2213
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2214
2214
  switch (errorCode) {
2215
2215
  case "AccessDeniedException":
2216
2216
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2229,10 +2229,12 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
2229
2229
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2230
2230
  default:
2231
2231
  const parsedBody = parsedOutput.body;
2232
+ const $metadata = deserializeMetadata(output);
2233
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2232
2234
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2233
- name: parsedBody.code || parsedBody.Code || errorCode,
2235
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2234
2236
  $fault: "client",
2235
- $metadata: deserializeMetadata(output),
2237
+ $metadata,
2236
2238
  });
2237
2239
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2238
2240
  }
@@ -2254,8 +2256,7 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
2254
2256
  body: await parseBody(output.body, context),
2255
2257
  };
2256
2258
  let response;
2257
- let errorCode = "UnknownError";
2258
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2259
2260
  switch (errorCode) {
2260
2261
  case "AccessDeniedException":
2261
2262
  case "com.amazonaws.devopsguru#AccessDeniedException":
@@ -2274,10 +2275,12 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
2274
2275
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2275
2276
  default:
2276
2277
  const parsedBody = parsedOutput.body;
2278
+ const $metadata = deserializeMetadata(output);
2279
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2277
2280
  response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2278
- name: parsedBody.code || parsedBody.Code || errorCode,
2281
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2279
2282
  $fault: "client",
2280
- $metadata: deserializeMetadata(output),
2283
+ $metadata,
2281
2284
  });
2282
2285
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2283
2286
  }
@@ -2408,31 +2411,27 @@ const serializeAws_restJson1AccountIdList = (input, context) => {
2408
2411
  };
2409
2412
  const serializeAws_restJson1AmazonCodeGuruProfilerIntegration = (input, context) => {
2410
2413
  return {
2411
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
2414
+ ...(input.Status != null && { Status: input.Status }),
2412
2415
  };
2413
2416
  };
2414
2417
  const serializeAws_restJson1CloudFormationCollection = (input, context) => {
2415
2418
  return {
2416
- ...(input.StackNames !== undefined &&
2417
- input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }),
2419
+ ...(input.StackNames != null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }),
2418
2420
  };
2419
2421
  };
2420
2422
  const serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = (input, context) => {
2421
2423
  return {
2422
- ...(input.StackNames !== undefined &&
2423
- input.StackNames !== null && {
2424
+ ...(input.StackNames != null && {
2424
2425
  StackNames: serializeAws_restJson1CostEstimationStackNames(input.StackNames, context),
2425
2426
  }),
2426
2427
  };
2427
2428
  };
2428
2429
  const serializeAws_restJson1CostEstimationResourceCollectionFilter = (input, context) => {
2429
2430
  return {
2430
- ...(input.CloudFormation !== undefined &&
2431
- input.CloudFormation !== null && {
2431
+ ...(input.CloudFormation != null && {
2432
2432
  CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
2433
2433
  }),
2434
- ...(input.Tags !== undefined &&
2435
- input.Tags !== null && {
2434
+ ...(input.Tags != null && {
2436
2435
  Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
2437
2436
  }),
2438
2437
  };
@@ -2459,30 +2458,27 @@ const serializeAws_restJson1CostEstimationTagValues = (input, context) => {
2459
2458
  };
2460
2459
  const serializeAws_restJson1EndTimeRange = (input, context) => {
2461
2460
  return {
2462
- ...(input.FromTime !== undefined &&
2463
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2464
- ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2461
+ ...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2462
+ ...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2465
2463
  };
2466
2464
  };
2467
2465
  const serializeAws_restJson1EventSourcesConfig = (input, context) => {
2468
2466
  return {
2469
- ...(input.AmazonCodeGuruProfiler !== undefined &&
2470
- input.AmazonCodeGuruProfiler !== null && {
2467
+ ...(input.AmazonCodeGuruProfiler != null && {
2471
2468
  AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
2472
2469
  }),
2473
2470
  };
2474
2471
  };
2475
2472
  const serializeAws_restJson1EventTimeRange = (input, context) => {
2476
2473
  return {
2477
- ...(input.FromTime !== undefined &&
2478
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2479
- ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2474
+ ...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2475
+ ...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2480
2476
  };
2481
2477
  };
2482
2478
  const serializeAws_restJson1InsightFeedback = (input, context) => {
2483
2479
  return {
2484
- ...(input.Feedback !== undefined && input.Feedback !== null && { Feedback: input.Feedback }),
2485
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
2480
+ ...(input.Feedback != null && { Feedback: input.Feedback }),
2481
+ ...(input.Id != null && { Id: input.Id }),
2486
2482
  };
2487
2483
  };
2488
2484
  const serializeAws_restJson1InsightSeverities = (input, context) => {
@@ -2507,16 +2503,14 @@ const serializeAws_restJson1InsightStatuses = (input, context) => {
2507
2503
  };
2508
2504
  const serializeAws_restJson1ListEventsFilters = (input, context) => {
2509
2505
  return {
2510
- ...(input.DataSource !== undefined && input.DataSource !== null && { DataSource: input.DataSource }),
2511
- ...(input.EventClass !== undefined && input.EventClass !== null && { EventClass: input.EventClass }),
2512
- ...(input.EventSource !== undefined && input.EventSource !== null && { EventSource: input.EventSource }),
2513
- ...(input.EventTimeRange !== undefined &&
2514
- input.EventTimeRange !== null && {
2506
+ ...(input.DataSource != null && { DataSource: input.DataSource }),
2507
+ ...(input.EventClass != null && { EventClass: input.EventClass }),
2508
+ ...(input.EventSource != null && { EventSource: input.EventSource }),
2509
+ ...(input.EventTimeRange != null && {
2515
2510
  EventTimeRange: serializeAws_restJson1EventTimeRange(input.EventTimeRange, context),
2516
2511
  }),
2517
- ...(input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId }),
2518
- ...(input.ResourceCollection !== undefined &&
2519
- input.ResourceCollection !== null && {
2512
+ ...(input.InsightId != null && { InsightId: input.InsightId }),
2513
+ ...(input.ResourceCollection != null && {
2520
2514
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
2521
2515
  }),
2522
2516
  };
@@ -2533,23 +2527,23 @@ const serializeAws_restJson1ListInsightsAccountIdList = (input, context) => {
2533
2527
  };
2534
2528
  const serializeAws_restJson1ListInsightsAnyStatusFilter = (input, context) => {
2535
2529
  return {
2536
- ...(input.StartTimeRange !== undefined &&
2537
- input.StartTimeRange !== null && {
2530
+ ...(input.StartTimeRange != null && {
2538
2531
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
2539
2532
  }),
2540
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2533
+ ...(input.Type != null && { Type: input.Type }),
2541
2534
  };
2542
2535
  };
2543
2536
  const serializeAws_restJson1ListInsightsClosedStatusFilter = (input, context) => {
2544
2537
  return {
2545
- ...(input.EndTimeRange !== undefined &&
2546
- input.EndTimeRange !== null && { EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context) }),
2547
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2538
+ ...(input.EndTimeRange != null && {
2539
+ EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context),
2540
+ }),
2541
+ ...(input.Type != null && { Type: input.Type }),
2548
2542
  };
2549
2543
  };
2550
2544
  const serializeAws_restJson1ListInsightsOngoingStatusFilter = (input, context) => {
2551
2545
  return {
2552
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2546
+ ...(input.Type != null && { Type: input.Type }),
2553
2547
  };
2554
2548
  };
2555
2549
  const serializeAws_restJson1ListInsightsOrganizationalUnitIdList = (input, context) => {
@@ -2564,25 +2558,23 @@ const serializeAws_restJson1ListInsightsOrganizationalUnitIdList = (input, conte
2564
2558
  };
2565
2559
  const serializeAws_restJson1ListInsightsStatusFilter = (input, context) => {
2566
2560
  return {
2567
- ...(input.Any !== undefined &&
2568
- input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) }),
2569
- ...(input.Closed !== undefined &&
2570
- input.Closed !== null && { Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context) }),
2571
- ...(input.Ongoing !== undefined &&
2572
- input.Ongoing !== null && {
2561
+ ...(input.Any != null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) }),
2562
+ ...(input.Closed != null && {
2563
+ Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context),
2564
+ }),
2565
+ ...(input.Ongoing != null && {
2573
2566
  Ongoing: serializeAws_restJson1ListInsightsOngoingStatusFilter(input.Ongoing, context),
2574
2567
  }),
2575
2568
  };
2576
2569
  };
2577
2570
  const serializeAws_restJson1NotificationChannelConfig = (input, context) => {
2578
2571
  return {
2579
- ...(input.Sns !== undefined &&
2580
- input.Sns !== null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }),
2572
+ ...(input.Sns != null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }),
2581
2573
  };
2582
2574
  };
2583
2575
  const serializeAws_restJson1OpsCenterIntegrationConfig = (input, context) => {
2584
2576
  return {
2585
- ...(input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }),
2577
+ ...(input.OptInStatus != null && { OptInStatus: input.OptInStatus }),
2586
2578
  };
2587
2579
  };
2588
2580
  const serializeAws_restJson1OrganizationalUnitIdList = (input, context) => {
@@ -2597,12 +2589,10 @@ const serializeAws_restJson1OrganizationalUnitIdList = (input, context) => {
2597
2589
  };
2598
2590
  const serializeAws_restJson1ResourceCollection = (input, context) => {
2599
2591
  return {
2600
- ...(input.CloudFormation !== undefined &&
2601
- input.CloudFormation !== null && {
2592
+ ...(input.CloudFormation != null && {
2602
2593
  CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
2603
2594
  }),
2604
- ...(input.Tags !== undefined &&
2605
- input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }),
2595
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }),
2606
2596
  };
2607
2597
  };
2608
2598
  const serializeAws_restJson1SearchInsightsAccountIdList = (input, context) => {
@@ -2617,40 +2607,33 @@ const serializeAws_restJson1SearchInsightsAccountIdList = (input, context) => {
2617
2607
  };
2618
2608
  const serializeAws_restJson1SearchInsightsFilters = (input, context) => {
2619
2609
  return {
2620
- ...(input.ResourceCollection !== undefined &&
2621
- input.ResourceCollection !== null && {
2610
+ ...(input.ResourceCollection != null && {
2622
2611
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
2623
2612
  }),
2624
- ...(input.ServiceCollection !== undefined &&
2625
- input.ServiceCollection !== null && {
2613
+ ...(input.ServiceCollection != null && {
2626
2614
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
2627
2615
  }),
2628
- ...(input.Severities !== undefined &&
2629
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
2630
- ...(input.Statuses !== undefined &&
2631
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
2616
+ ...(input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
2617
+ ...(input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
2632
2618
  };
2633
2619
  };
2634
2620
  const serializeAws_restJson1SearchOrganizationInsightsFilters = (input, context) => {
2635
2621
  return {
2636
- ...(input.ResourceCollection !== undefined &&
2637
- input.ResourceCollection !== null && {
2622
+ ...(input.ResourceCollection != null && {
2638
2623
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
2639
2624
  }),
2640
- ...(input.ServiceCollection !== undefined &&
2641
- input.ServiceCollection !== null && {
2625
+ ...(input.ServiceCollection != null && {
2642
2626
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
2643
2627
  }),
2644
- ...(input.Severities !== undefined &&
2645
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
2646
- ...(input.Statuses !== undefined &&
2647
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
2628
+ ...(input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
2629
+ ...(input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
2648
2630
  };
2649
2631
  };
2650
2632
  const serializeAws_restJson1ServiceCollection = (input, context) => {
2651
2633
  return {
2652
- ...(input.ServiceNames !== undefined &&
2653
- input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }),
2634
+ ...(input.ServiceNames != null && {
2635
+ ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context),
2636
+ }),
2654
2637
  };
2655
2638
  };
2656
2639
  const serializeAws_restJson1ServiceNames = (input, context) => {
@@ -2665,7 +2648,7 @@ const serializeAws_restJson1ServiceNames = (input, context) => {
2665
2648
  };
2666
2649
  const serializeAws_restJson1SnsChannelConfig = (input, context) => {
2667
2650
  return {
2668
- ...(input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }),
2651
+ ...(input.TopicArn != null && { TopicArn: input.TopicArn }),
2669
2652
  };
2670
2653
  };
2671
2654
  const serializeAws_restJson1StackNames = (input, context) => {
@@ -2680,17 +2663,14 @@ const serializeAws_restJson1StackNames = (input, context) => {
2680
2663
  };
2681
2664
  const serializeAws_restJson1StartTimeRange = (input, context) => {
2682
2665
  return {
2683
- ...(input.FromTime !== undefined &&
2684
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2685
- ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2666
+ ...(input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
2667
+ ...(input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2686
2668
  };
2687
2669
  };
2688
2670
  const serializeAws_restJson1TagCollection = (input, context) => {
2689
2671
  return {
2690
- ...(input.AppBoundaryKey !== undefined &&
2691
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
2692
- ...(input.TagValues !== undefined &&
2693
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }),
2672
+ ...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
2673
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }),
2694
2674
  };
2695
2675
  };
2696
2676
  const serializeAws_restJson1TagCollections = (input, context) => {
@@ -2705,10 +2685,8 @@ const serializeAws_restJson1TagCollections = (input, context) => {
2705
2685
  };
2706
2686
  const serializeAws_restJson1TagCostEstimationResourceCollectionFilter = (input, context) => {
2707
2687
  return {
2708
- ...(input.AppBoundaryKey !== undefined &&
2709
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
2710
- ...(input.TagValues !== undefined &&
2711
- input.TagValues !== null && {
2688
+ ...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
2689
+ ...(input.TagValues != null && {
2712
2690
  TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
2713
2691
  }),
2714
2692
  };
@@ -2735,24 +2713,20 @@ const serializeAws_restJson1TagValues = (input, context) => {
2735
2713
  };
2736
2714
  const serializeAws_restJson1UpdateCloudFormationCollectionFilter = (input, context) => {
2737
2715
  return {
2738
- ...(input.StackNames !== undefined &&
2739
- input.StackNames !== null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }),
2716
+ ...(input.StackNames != null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }),
2740
2717
  };
2741
2718
  };
2742
2719
  const serializeAws_restJson1UpdateResourceCollectionFilter = (input, context) => {
2743
2720
  return {
2744
- ...(input.CloudFormation !== undefined &&
2745
- input.CloudFormation !== null && {
2721
+ ...(input.CloudFormation != null && {
2746
2722
  CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
2747
2723
  }),
2748
- ...(input.Tags !== undefined &&
2749
- input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }),
2724
+ ...(input.Tags != null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }),
2750
2725
  };
2751
2726
  };
2752
2727
  const serializeAws_restJson1UpdateServiceIntegrationConfig = (input, context) => {
2753
2728
  return {
2754
- ...(input.OpsCenter !== undefined &&
2755
- input.OpsCenter !== null && {
2729
+ ...(input.OpsCenter != null && {
2756
2730
  OpsCenter: serializeAws_restJson1OpsCenterIntegrationConfig(input.OpsCenter, context),
2757
2731
  }),
2758
2732
  };
@@ -2769,10 +2743,8 @@ const serializeAws_restJson1UpdateStackNames = (input, context) => {
2769
2743
  };
2770
2744
  const serializeAws_restJson1UpdateTagCollectionFilter = (input, context) => {
2771
2745
  return {
2772
- ...(input.AppBoundaryKey !== undefined &&
2773
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
2774
- ...(input.TagValues !== undefined &&
2775
- input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }),
2746
+ ...(input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey }),
2747
+ ...(input.TagValues != null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }),
2776
2748
  };
2777
2749
  };
2778
2750
  const serializeAws_restJson1UpdateTagCollectionFilters = (input, context) => {
@@ -2798,9 +2770,7 @@ const serializeAws_restJson1UpdateTagValues = (input, context) => {
2798
2770
  const deserializeAws_restJson1AccountHealth = (output, context) => {
2799
2771
  return {
2800
2772
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
2801
- Insight: output.Insight !== undefined && output.Insight !== null
2802
- ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
2803
- : undefined,
2773
+ Insight: output.Insight != null ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context) : undefined,
2804
2774
  };
2805
2775
  };
2806
2776
  const deserializeAws_restJson1AccountHealths = (output, context) => {
@@ -2827,12 +2797,8 @@ const deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = (output, conte
2827
2797
  };
2828
2798
  const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
2829
2799
  return {
2830
- CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
2831
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CloseTime)))
2832
- : undefined,
2833
- OpenTime: output.OpenTime !== undefined && output.OpenTime !== null
2834
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenTime)))
2835
- : undefined,
2800
+ CloseTime: output.CloseTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CloseTime))) : undefined,
2801
+ OpenTime: output.OpenTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenTime))) : undefined,
2836
2802
  };
2837
2803
  };
2838
2804
  const deserializeAws_restJson1AnomalyResource = (output, context) => {
@@ -2854,10 +2820,10 @@ const deserializeAws_restJson1AnomalyResources = (output, context) => {
2854
2820
  };
2855
2821
  const deserializeAws_restJson1AnomalySourceDetails = (output, context) => {
2856
2822
  return {
2857
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
2823
+ CloudWatchMetrics: output.CloudWatchMetrics != null
2858
2824
  ? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
2859
2825
  : undefined,
2860
- PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
2826
+ PerformanceInsightsMetrics: output.PerformanceInsightsMetrics != null
2861
2827
  ? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
2862
2828
  : undefined,
2863
2829
  };
@@ -2871,12 +2837,8 @@ const deserializeAws_restJson1AnomalySourceMetadata = (output, context) => {
2871
2837
  };
2872
2838
  const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
2873
2839
  return {
2874
- EndTime: output.EndTime !== undefined && output.EndTime !== null
2875
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2876
- : undefined,
2877
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2878
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2879
- : undefined,
2840
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2841
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2880
2842
  };
2881
2843
  };
2882
2844
  const deserializeAws_restJson1AssociatedResourceArns = (output, context) => {
@@ -2903,30 +2865,24 @@ const deserializeAws_restJson1Channels = (output, context) => {
2903
2865
  };
2904
2866
  const deserializeAws_restJson1CloudFormationCollection = (output, context) => {
2905
2867
  return {
2906
- StackNames: output.StackNames !== undefined && output.StackNames !== null
2907
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
2908
- : undefined,
2868
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
2909
2869
  };
2910
2870
  };
2911
2871
  const deserializeAws_restJson1CloudFormationCollectionFilter = (output, context) => {
2912
2872
  return {
2913
- StackNames: output.StackNames !== undefined && output.StackNames !== null
2914
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
2915
- : undefined,
2873
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
2916
2874
  };
2917
2875
  };
2918
2876
  const deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = (output, context) => {
2919
2877
  return {
2920
- StackNames: output.StackNames !== undefined && output.StackNames !== null
2878
+ StackNames: output.StackNames != null
2921
2879
  ? deserializeAws_restJson1CostEstimationStackNames(output.StackNames, context)
2922
2880
  : undefined,
2923
2881
  };
2924
2882
  };
2925
2883
  const deserializeAws_restJson1CloudFormationHealth = (output, context) => {
2926
2884
  return {
2927
- Insight: output.Insight !== undefined && output.Insight !== null
2928
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
2929
- : undefined,
2885
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
2930
2886
  StackName: (0, smithy_client_1.expectString)(output.StackName),
2931
2887
  };
2932
2888
  };
@@ -2944,17 +2900,17 @@ const deserializeAws_restJson1CloudFormationHealths = (output, context) => {
2944
2900
  const deserializeAws_restJson1CloudWatchMetricsDataSummary = (output, context) => {
2945
2901
  return {
2946
2902
  StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
2947
- TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
2903
+ TimestampMetricValuePairList: output.TimestampMetricValuePairList != null
2948
2904
  ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
2949
2905
  : undefined,
2950
2906
  };
2951
2907
  };
2952
2908
  const deserializeAws_restJson1CloudWatchMetricsDetail = (output, context) => {
2953
2909
  return {
2954
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
2910
+ Dimensions: output.Dimensions != null
2955
2911
  ? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
2956
2912
  : undefined,
2957
- MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
2913
+ MetricDataSummary: output.MetricDataSummary != null
2958
2914
  ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
2959
2915
  : undefined,
2960
2916
  MetricName: (0, smithy_client_1.expectString)(output.MetricName),
@@ -2994,10 +2950,10 @@ const deserializeAws_restJson1CloudWatchMetricsDimensions = (output, context) =>
2994
2950
  };
2995
2951
  const deserializeAws_restJson1CostEstimationResourceCollectionFilter = (output, context) => {
2996
2952
  return {
2997
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
2953
+ CloudFormation: output.CloudFormation != null
2998
2954
  ? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
2999
2955
  : undefined,
3000
- Tags: output.Tags !== undefined && output.Tags !== null
2956
+ Tags: output.Tags != null
3001
2957
  ? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
3002
2958
  : undefined,
3003
2959
  };
@@ -3026,12 +2982,8 @@ const deserializeAws_restJson1CostEstimationTagValues = (output, context) => {
3026
2982
  };
3027
2983
  const deserializeAws_restJson1CostEstimationTimeRange = (output, context) => {
3028
2984
  return {
3029
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3030
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
3031
- : undefined,
3032
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3033
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3034
- : undefined,
2985
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2986
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3035
2987
  };
3036
2988
  };
3037
2989
  const deserializeAws_restJson1Event = (output, context) => {
@@ -3041,15 +2993,11 @@ const deserializeAws_restJson1Event = (output, context) => {
3041
2993
  EventSource: (0, smithy_client_1.expectString)(output.EventSource),
3042
2994
  Id: (0, smithy_client_1.expectString)(output.Id),
3043
2995
  Name: (0, smithy_client_1.expectString)(output.Name),
3044
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
2996
+ ResourceCollection: output.ResourceCollection != null
3045
2997
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3046
2998
  : undefined,
3047
- Resources: output.Resources !== undefined && output.Resources !== null
3048
- ? deserializeAws_restJson1EventResources(output.Resources, context)
3049
- : undefined,
3050
- Time: output.Time !== undefined && output.Time !== null
3051
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Time)))
3052
- : undefined,
2999
+ Resources: output.Resources != null ? deserializeAws_restJson1EventResources(output.Resources, context) : undefined,
3000
+ Time: output.Time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Time))) : undefined,
3053
3001
  };
3054
3002
  };
3055
3003
  const deserializeAws_restJson1EventResource = (output, context) => {
@@ -3083,7 +3031,7 @@ const deserializeAws_restJson1Events = (output, context) => {
3083
3031
  };
3084
3032
  const deserializeAws_restJson1EventSourcesConfig = (output, context) => {
3085
3033
  return {
3086
- AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
3034
+ AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler != null
3087
3035
  ? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
3088
3036
  : undefined,
3089
3037
  };
@@ -3103,27 +3051,19 @@ const deserializeAws_restJson1InsightHealth = (output, context) => {
3103
3051
  };
3104
3052
  const deserializeAws_restJson1InsightTimeRange = (output, context) => {
3105
3053
  return {
3106
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3107
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
3108
- : undefined,
3109
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3110
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3111
- : undefined,
3054
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3055
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3112
3056
  };
3113
3057
  };
3114
3058
  const deserializeAws_restJson1NotificationChannel = (output, context) => {
3115
3059
  return {
3116
- Config: output.Config !== undefined && output.Config !== null
3117
- ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context)
3118
- : undefined,
3060
+ Config: output.Config != null ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context) : undefined,
3119
3061
  Id: (0, smithy_client_1.expectString)(output.Id),
3120
3062
  };
3121
3063
  };
3122
3064
  const deserializeAws_restJson1NotificationChannelConfig = (output, context) => {
3123
3065
  return {
3124
- Sns: output.Sns !== undefined && output.Sns !== null
3125
- ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context)
3126
- : undefined,
3066
+ Sns: output.Sns != null ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context) : undefined,
3127
3067
  };
3128
3068
  };
3129
3069
  const deserializeAws_restJson1OpsCenterIntegration = (output, context) => {
@@ -3133,7 +3073,7 @@ const deserializeAws_restJson1OpsCenterIntegration = (output, context) => {
3133
3073
  };
3134
3074
  const deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = (output, context) => {
3135
3075
  return {
3136
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3076
+ Dimensions: output.Dimensions != null
3137
3077
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
3138
3078
  : undefined,
3139
3079
  Group: (0, smithy_client_1.expectString)(output.Group),
@@ -3164,10 +3104,10 @@ const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = (output, cont
3164
3104
  };
3165
3105
  const deserializeAws_restJson1PerformanceInsightsMetricQuery = (output, context) => {
3166
3106
  return {
3167
- Filter: output.Filter !== undefined && output.Filter !== null
3107
+ Filter: output.Filter != null
3168
3108
  ? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
3169
3109
  : undefined,
3170
- GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
3110
+ GroupBy: output.GroupBy != null
3171
3111
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
3172
3112
  : undefined,
3173
3113
  Metric: (0, smithy_client_1.expectString)(output.Metric),
@@ -3176,16 +3116,16 @@ const deserializeAws_restJson1PerformanceInsightsMetricQuery = (output, context)
3176
3116
  const deserializeAws_restJson1PerformanceInsightsMetricsDetail = (output, context) => {
3177
3117
  return {
3178
3118
  MetricDisplayName: (0, smithy_client_1.expectString)(output.MetricDisplayName),
3179
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3119
+ MetricQuery: output.MetricQuery != null
3180
3120
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3181
3121
  : undefined,
3182
- ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
3122
+ ReferenceData: output.ReferenceData != null
3183
3123
  ? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
3184
3124
  : undefined,
3185
- StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
3125
+ StatsAtAnomaly: output.StatsAtAnomaly != null
3186
3126
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
3187
3127
  : undefined,
3188
- StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
3128
+ StatsAtBaseline: output.StatsAtBaseline != null
3189
3129
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
3190
3130
  : undefined,
3191
3131
  Unit: (0, smithy_client_1.expectString)(output.Unit),
@@ -3204,17 +3144,17 @@ const deserializeAws_restJson1PerformanceInsightsMetricsDetails = (output, conte
3204
3144
  };
3205
3145
  const deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = (output, context) => {
3206
3146
  return {
3207
- ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
3147
+ ReferenceMetric: output.ReferenceMetric != null
3208
3148
  ? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
3209
3149
  : undefined,
3210
- ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
3150
+ ReferenceScalar: output.ReferenceScalar != null
3211
3151
  ? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
3212
3152
  : undefined,
3213
3153
  };
3214
3154
  };
3215
3155
  const deserializeAws_restJson1PerformanceInsightsReferenceData = (output, context) => {
3216
3156
  return {
3217
- ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
3157
+ ComparisonValues: output.ComparisonValues != null
3218
3158
  ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
3219
3159
  : undefined,
3220
3160
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -3233,7 +3173,7 @@ const deserializeAws_restJson1PerformanceInsightsReferenceDataList = (output, co
3233
3173
  };
3234
3174
  const deserializeAws_restJson1PerformanceInsightsReferenceMetric = (output, context) => {
3235
3175
  return {
3236
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3176
+ MetricQuery: output.MetricQuery != null
3237
3177
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3238
3178
  : undefined,
3239
3179
  };
@@ -3262,12 +3202,8 @@ const deserializeAws_restJson1PerformanceInsightsStats = (output, context) => {
3262
3202
  };
3263
3203
  const deserializeAws_restJson1PredictionTimeRange = (output, context) => {
3264
3204
  return {
3265
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3266
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
3267
- : undefined,
3268
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3269
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3270
- : undefined,
3205
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
3206
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
3271
3207
  };
3272
3208
  };
3273
3209
  const deserializeAws_restJson1ProactiveAnomalies = (output, context) => {
@@ -3283,82 +3219,78 @@ const deserializeAws_restJson1ProactiveAnomalies = (output, context) => {
3283
3219
  };
3284
3220
  const deserializeAws_restJson1ProactiveAnomaly = (output, context) => {
3285
3221
  return {
3286
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3222
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3287
3223
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3288
3224
  : undefined,
3289
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3225
+ AnomalyResources: output.AnomalyResources != null
3290
3226
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3291
3227
  : undefined,
3292
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3228
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3293
3229
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3294
3230
  : undefined,
3295
3231
  AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3296
3232
  Id: (0, smithy_client_1.expectString)(output.Id),
3297
3233
  Limit: (0, smithy_client_1.limitedParseDouble)(output.Limit),
3298
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3234
+ PredictionTimeRange: output.PredictionTimeRange != null
3299
3235
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3300
3236
  : undefined,
3301
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3237
+ ResourceCollection: output.ResourceCollection != null
3302
3238
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3303
3239
  : undefined,
3304
3240
  Severity: (0, smithy_client_1.expectString)(output.Severity),
3305
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3241
+ SourceDetails: output.SourceDetails != null
3306
3242
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3307
3243
  : undefined,
3308
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3244
+ SourceMetadata: output.SourceMetadata != null
3309
3245
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3310
3246
  : undefined,
3311
3247
  Status: (0, smithy_client_1.expectString)(output.Status),
3312
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3313
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime)))
3314
- : undefined,
3248
+ UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime))) : undefined,
3315
3249
  };
3316
3250
  };
3317
3251
  const deserializeAws_restJson1ProactiveAnomalySummary = (output, context) => {
3318
3252
  return {
3319
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3253
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3320
3254
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3321
3255
  : undefined,
3322
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3256
+ AnomalyResources: output.AnomalyResources != null
3323
3257
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3324
3258
  : undefined,
3325
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3259
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3326
3260
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3327
3261
  : undefined,
3328
3262
  AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3329
3263
  Id: (0, smithy_client_1.expectString)(output.Id),
3330
3264
  Limit: (0, smithy_client_1.limitedParseDouble)(output.Limit),
3331
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3265
+ PredictionTimeRange: output.PredictionTimeRange != null
3332
3266
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3333
3267
  : undefined,
3334
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3268
+ ResourceCollection: output.ResourceCollection != null
3335
3269
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3336
3270
  : undefined,
3337
3271
  Severity: (0, smithy_client_1.expectString)(output.Severity),
3338
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3272
+ SourceDetails: output.SourceDetails != null
3339
3273
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3340
3274
  : undefined,
3341
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3275
+ SourceMetadata: output.SourceMetadata != null
3342
3276
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3343
3277
  : undefined,
3344
3278
  Status: (0, smithy_client_1.expectString)(output.Status),
3345
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3346
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime)))
3347
- : undefined,
3279
+ UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime))) : undefined,
3348
3280
  };
3349
3281
  };
3350
3282
  const deserializeAws_restJson1ProactiveInsight = (output, context) => {
3351
3283
  return {
3352
3284
  Description: (0, smithy_client_1.expectString)(output.Description),
3353
3285
  Id: (0, smithy_client_1.expectString)(output.Id),
3354
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3286
+ InsightTimeRange: output.InsightTimeRange != null
3355
3287
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3356
3288
  : undefined,
3357
3289
  Name: (0, smithy_client_1.expectString)(output.Name),
3358
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3290
+ PredictionTimeRange: output.PredictionTimeRange != null
3359
3291
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3360
3292
  : undefined,
3361
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3293
+ ResourceCollection: output.ResourceCollection != null
3362
3294
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3363
3295
  : undefined,
3364
3296
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3379,21 +3311,21 @@ const deserializeAws_restJson1ProactiveInsights = (output, context) => {
3379
3311
  };
3380
3312
  const deserializeAws_restJson1ProactiveInsightSummary = (output, context) => {
3381
3313
  return {
3382
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3314
+ AssociatedResourceArns: output.AssociatedResourceArns != null
3383
3315
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
3384
3316
  : undefined,
3385
3317
  Id: (0, smithy_client_1.expectString)(output.Id),
3386
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3318
+ InsightTimeRange: output.InsightTimeRange != null
3387
3319
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3388
3320
  : undefined,
3389
3321
  Name: (0, smithy_client_1.expectString)(output.Name),
3390
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3322
+ PredictionTimeRange: output.PredictionTimeRange != null
3391
3323
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3392
3324
  : undefined,
3393
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3325
+ ResourceCollection: output.ResourceCollection != null
3394
3326
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3395
3327
  : undefined,
3396
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3328
+ ServiceCollection: output.ServiceCollection != null
3397
3329
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3398
3330
  : undefined,
3399
3331
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3415,18 +3347,18 @@ const deserializeAws_restJson1ProactiveOrganizationInsightSummary = (output, con
3415
3347
  return {
3416
3348
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3417
3349
  Id: (0, smithy_client_1.expectString)(output.Id),
3418
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3350
+ InsightTimeRange: output.InsightTimeRange != null
3419
3351
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3420
3352
  : undefined,
3421
3353
  Name: (0, smithy_client_1.expectString)(output.Name),
3422
3354
  OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId),
3423
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3355
+ PredictionTimeRange: output.PredictionTimeRange != null
3424
3356
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3425
3357
  : undefined,
3426
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3358
+ ResourceCollection: output.ResourceCollection != null
3427
3359
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3428
3360
  : undefined,
3429
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3361
+ ServiceCollection: output.ServiceCollection != null
3430
3362
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3431
3363
  : undefined,
3432
3364
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3446,13 +3378,13 @@ const deserializeAws_restJson1ReactiveAnomalies = (output, context) => {
3446
3378
  };
3447
3379
  const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
3448
3380
  return {
3449
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3381
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3450
3382
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3451
3383
  : undefined,
3452
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3384
+ AnomalyResources: output.AnomalyResources != null
3453
3385
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3454
3386
  : undefined,
3455
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3387
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3456
3388
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3457
3389
  : undefined,
3458
3390
  AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
@@ -3460,11 +3392,11 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
3460
3392
  Description: (0, smithy_client_1.expectString)(output.Description),
3461
3393
  Id: (0, smithy_client_1.expectString)(output.Id),
3462
3394
  Name: (0, smithy_client_1.expectString)(output.Name),
3463
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3395
+ ResourceCollection: output.ResourceCollection != null
3464
3396
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3465
3397
  : undefined,
3466
3398
  Severity: (0, smithy_client_1.expectString)(output.Severity),
3467
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3399
+ SourceDetails: output.SourceDetails != null
3468
3400
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3469
3401
  : undefined,
3470
3402
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -3473,13 +3405,13 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
3473
3405
  };
3474
3406
  const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
3475
3407
  return {
3476
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3408
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3477
3409
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3478
3410
  : undefined,
3479
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3411
+ AnomalyResources: output.AnomalyResources != null
3480
3412
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3481
3413
  : undefined,
3482
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3414
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3483
3415
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3484
3416
  : undefined,
3485
3417
  AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
@@ -3487,11 +3419,11 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
3487
3419
  Description: (0, smithy_client_1.expectString)(output.Description),
3488
3420
  Id: (0, smithy_client_1.expectString)(output.Id),
3489
3421
  Name: (0, smithy_client_1.expectString)(output.Name),
3490
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3422
+ ResourceCollection: output.ResourceCollection != null
3491
3423
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3492
3424
  : undefined,
3493
3425
  Severity: (0, smithy_client_1.expectString)(output.Severity),
3494
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3426
+ SourceDetails: output.SourceDetails != null
3495
3427
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3496
3428
  : undefined,
3497
3429
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -3502,11 +3434,11 @@ const deserializeAws_restJson1ReactiveInsight = (output, context) => {
3502
3434
  return {
3503
3435
  Description: (0, smithy_client_1.expectString)(output.Description),
3504
3436
  Id: (0, smithy_client_1.expectString)(output.Id),
3505
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3437
+ InsightTimeRange: output.InsightTimeRange != null
3506
3438
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3507
3439
  : undefined,
3508
3440
  Name: (0, smithy_client_1.expectString)(output.Name),
3509
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3441
+ ResourceCollection: output.ResourceCollection != null
3510
3442
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3511
3443
  : undefined,
3512
3444
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3527,18 +3459,18 @@ const deserializeAws_restJson1ReactiveInsights = (output, context) => {
3527
3459
  };
3528
3460
  const deserializeAws_restJson1ReactiveInsightSummary = (output, context) => {
3529
3461
  return {
3530
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3462
+ AssociatedResourceArns: output.AssociatedResourceArns != null
3531
3463
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
3532
3464
  : undefined,
3533
3465
  Id: (0, smithy_client_1.expectString)(output.Id),
3534
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3466
+ InsightTimeRange: output.InsightTimeRange != null
3535
3467
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3536
3468
  : undefined,
3537
3469
  Name: (0, smithy_client_1.expectString)(output.Name),
3538
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3470
+ ResourceCollection: output.ResourceCollection != null
3539
3471
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3540
3472
  : undefined,
3541
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3473
+ ServiceCollection: output.ServiceCollection != null
3542
3474
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3543
3475
  : undefined,
3544
3476
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3560,15 +3492,15 @@ const deserializeAws_restJson1ReactiveOrganizationInsightSummary = (output, cont
3560
3492
  return {
3561
3493
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3562
3494
  Id: (0, smithy_client_1.expectString)(output.Id),
3563
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3495
+ InsightTimeRange: output.InsightTimeRange != null
3564
3496
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3565
3497
  : undefined,
3566
3498
  Name: (0, smithy_client_1.expectString)(output.Name),
3567
3499
  OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId),
3568
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3500
+ ResourceCollection: output.ResourceCollection != null
3569
3501
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3570
3502
  : undefined,
3571
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3503
+ ServiceCollection: output.ServiceCollection != null
3572
3504
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3573
3505
  : undefined,
3574
3506
  Severity: (0, smithy_client_1.expectString)(output.Severity),
@@ -3582,10 +3514,10 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
3582
3514
  Link: (0, smithy_client_1.expectString)(output.Link),
3583
3515
  Name: (0, smithy_client_1.expectString)(output.Name),
3584
3516
  Reason: (0, smithy_client_1.expectString)(output.Reason),
3585
- RelatedAnomalies: output.RelatedAnomalies !== undefined && output.RelatedAnomalies !== null
3517
+ RelatedAnomalies: output.RelatedAnomalies != null
3586
3518
  ? deserializeAws_restJson1RecommendationRelatedAnomalies(output.RelatedAnomalies, context)
3587
3519
  : undefined,
3588
- RelatedEvents: output.RelatedEvents !== undefined && output.RelatedEvents !== null
3520
+ RelatedEvents: output.RelatedEvents != null
3589
3521
  ? deserializeAws_restJson1RecommendationRelatedEvents(output.RelatedEvents, context)
3590
3522
  : undefined,
3591
3523
  };
@@ -3604,10 +3536,10 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = (output, context)
3604
3536
  const deserializeAws_restJson1RecommendationRelatedAnomaly = (output, context) => {
3605
3537
  return {
3606
3538
  AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
3607
- Resources: output.Resources !== undefined && output.Resources !== null
3539
+ Resources: output.Resources != null
3608
3540
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
3609
3541
  : undefined,
3610
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3542
+ SourceDetails: output.SourceDetails != null
3611
3543
  ? deserializeAws_restJson1RelatedAnomalySourceDetails(output.SourceDetails, context)
3612
3544
  : undefined,
3613
3545
  };
@@ -3631,7 +3563,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalyResources = (output, c
3631
3563
  };
3632
3564
  const deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = (output, context) => {
3633
3565
  return {
3634
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
3566
+ CloudWatchMetrics: output.CloudWatchMetrics != null
3635
3567
  ? deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails(output.CloudWatchMetrics, context)
3636
3568
  : undefined,
3637
3569
  };
@@ -3656,7 +3588,7 @@ const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail
3656
3588
  const deserializeAws_restJson1RecommendationRelatedEvent = (output, context) => {
3657
3589
  return {
3658
3590
  Name: (0, smithy_client_1.expectString)(output.Name),
3659
- Resources: output.Resources !== undefined && output.Resources !== null
3591
+ Resources: output.Resources != null
3660
3592
  ? deserializeAws_restJson1RecommendationRelatedEventResources(output.Resources, context)
3661
3593
  : undefined,
3662
3594
  };
@@ -3713,36 +3645,28 @@ const deserializeAws_restJson1RelatedAnomalySourceDetails = (output, context) =>
3713
3645
  };
3714
3646
  const deserializeAws_restJson1ResourceCollection = (output, context) => {
3715
3647
  return {
3716
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3648
+ CloudFormation: output.CloudFormation != null
3717
3649
  ? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
3718
3650
  : undefined,
3719
- Tags: output.Tags !== undefined && output.Tags !== null
3720
- ? deserializeAws_restJson1TagCollections(output.Tags, context)
3721
- : undefined,
3651
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollections(output.Tags, context) : undefined,
3722
3652
  };
3723
3653
  };
3724
3654
  const deserializeAws_restJson1ResourceCollectionFilter = (output, context) => {
3725
3655
  return {
3726
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3656
+ CloudFormation: output.CloudFormation != null
3727
3657
  ? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
3728
3658
  : undefined,
3729
- Tags: output.Tags !== undefined && output.Tags !== null
3730
- ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
3731
- : undefined,
3659
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context) : undefined,
3732
3660
  };
3733
3661
  };
3734
3662
  const deserializeAws_restJson1ServiceCollection = (output, context) => {
3735
3663
  return {
3736
- ServiceNames: output.ServiceNames !== undefined && output.ServiceNames !== null
3737
- ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context)
3738
- : undefined,
3664
+ ServiceNames: output.ServiceNames != null ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context) : undefined,
3739
3665
  };
3740
3666
  };
3741
3667
  const deserializeAws_restJson1ServiceHealth = (output, context) => {
3742
3668
  return {
3743
- Insight: output.Insight !== undefined && output.Insight !== null
3744
- ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context)
3745
- : undefined,
3669
+ Insight: output.Insight != null ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context) : undefined,
3746
3670
  ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
3747
3671
  };
3748
3672
  };
@@ -3765,9 +3689,7 @@ const deserializeAws_restJson1ServiceInsightHealth = (output, context) => {
3765
3689
  };
3766
3690
  const deserializeAws_restJson1ServiceIntegrationConfig = (output, context) => {
3767
3691
  return {
3768
- OpsCenter: output.OpsCenter !== undefined && output.OpsCenter !== null
3769
- ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context)
3770
- : undefined,
3692
+ OpsCenter: output.OpsCenter != null ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context) : undefined,
3771
3693
  };
3772
3694
  };
3773
3695
  const deserializeAws_restJson1ServiceNames = (output, context) => {
@@ -3820,17 +3742,13 @@ const deserializeAws_restJson1StackNames = (output, context) => {
3820
3742
  const deserializeAws_restJson1TagCollection = (output, context) => {
3821
3743
  return {
3822
3744
  AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3823
- TagValues: output.TagValues !== undefined && output.TagValues !== null
3824
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
3825
- : undefined,
3745
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
3826
3746
  };
3827
3747
  };
3828
3748
  const deserializeAws_restJson1TagCollectionFilter = (output, context) => {
3829
3749
  return {
3830
3750
  AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3831
- TagValues: output.TagValues !== undefined && output.TagValues !== null
3832
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
3833
- : undefined,
3751
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
3834
3752
  };
3835
3753
  };
3836
3754
  const deserializeAws_restJson1TagCollectionFilters = (output, context) => {
@@ -3858,9 +3776,7 @@ const deserializeAws_restJson1TagCollections = (output, context) => {
3858
3776
  const deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = (output, context) => {
3859
3777
  return {
3860
3778
  AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3861
- TagValues: output.TagValues !== undefined && output.TagValues !== null
3862
- ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
3863
- : undefined,
3779
+ TagValues: output.TagValues != null ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context) : undefined,
3864
3780
  };
3865
3781
  };
3866
3782
  const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = (output, context) => {
@@ -3877,9 +3793,7 @@ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = (outp
3877
3793
  const deserializeAws_restJson1TagHealth = (output, context) => {
3878
3794
  return {
3879
3795
  AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3880
- Insight: output.Insight !== undefined && output.Insight !== null
3881
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
3882
- : undefined,
3796
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
3883
3797
  TagValue: (0, smithy_client_1.expectString)(output.TagValue),
3884
3798
  };
3885
3799
  };
@@ -3908,9 +3822,7 @@ const deserializeAws_restJson1TagValues = (output, context) => {
3908
3822
  const deserializeAws_restJson1TimestampMetricValuePair = (output, context) => {
3909
3823
  return {
3910
3824
  MetricValue: (0, smithy_client_1.limitedParseDouble)(output.MetricValue),
3911
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
3912
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
3913
- : undefined,
3825
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
3914
3826
  };
3915
3827
  };
3916
3828
  const deserializeAws_restJson1TimestampMetricValuePairList = (output, context) => {
@@ -3990,5 +3902,4 @@ const loadRestJsonErrorCode = (output, data) => {
3990
3902
  if (data["__type"] !== undefined) {
3991
3903
  return sanitizeErrorCode(data["__type"]);
3992
3904
  }
3993
- return "";
3994
3905
  };