@aws-sdk/client-devops-guru 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/DevOpsGuru.js +30 -0
  3. package/dist-cjs/DevOpsGuruClient.js +13 -13
  4. package/dist-cjs/commands/AddNotificationChannelCommand.js +3 -3
  5. package/dist-cjs/commands/DescribeAccountHealthCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeAccountOverviewCommand.js +3 -3
  7. package/dist-cjs/commands/DescribeAnomalyCommand.js +3 -3
  8. package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeFeedbackCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeInsightCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeOrganizationHealthCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeOrganizationOverviewCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeOrganizationResourceCollectionHealthCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeResourceCollectionHealthCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeServiceIntegrationCommand.js +3 -3
  16. package/dist-cjs/commands/GetCostEstimationCommand.js +3 -3
  17. package/dist-cjs/commands/GetResourceCollectionCommand.js +3 -3
  18. package/dist-cjs/commands/ListAnomaliesForInsightCommand.js +3 -3
  19. package/dist-cjs/commands/ListEventsCommand.js +3 -3
  20. package/dist-cjs/commands/ListInsightsCommand.js +3 -3
  21. package/dist-cjs/commands/ListNotificationChannelsCommand.js +3 -3
  22. package/dist-cjs/commands/ListOrganizationInsightsCommand.js +3 -3
  23. package/dist-cjs/commands/ListRecommendationsCommand.js +3 -3
  24. package/dist-cjs/commands/PutFeedbackCommand.js +3 -3
  25. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +3 -3
  26. package/dist-cjs/commands/SearchInsightsCommand.js +3 -3
  27. package/dist-cjs/commands/SearchOrganizationInsightsCommand.js +3 -3
  28. package/dist-cjs/commands/StartCostEstimationCommand.js +3 -3
  29. package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +36 -0
  30. package/dist-cjs/commands/UpdateResourceCollectionCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateServiceIntegrationCommand.js +3 -3
  32. package/dist-cjs/commands/index.js +2 -0
  33. package/dist-cjs/endpoints.js +1 -1
  34. package/dist-cjs/models/models_0.js +51 -4
  35. package/dist-cjs/protocols/Aws_restJson1.js +430 -252
  36. package/dist-cjs/runtimeConfig.browser.js +4 -4
  37. package/dist-cjs/runtimeConfig.js +9 -9
  38. package/dist-cjs/runtimeConfig.native.js +1 -1
  39. package/dist-es/DevOpsGuru.js +56 -26
  40. package/dist-es/commands/DescribeEventSourcesConfigCommand.js +39 -0
  41. package/dist-es/commands/UpdateEventSourcesConfigCommand.js +39 -0
  42. package/dist-es/commands/index.js +2 -0
  43. package/dist-es/models/models_0.js +33 -0
  44. package/dist-es/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +4 -4
  45. package/dist-es/pagination/DescribeResourceCollectionHealthPaginator.js +4 -4
  46. package/dist-es/pagination/GetCostEstimationPaginator.js +4 -4
  47. package/dist-es/pagination/GetResourceCollectionPaginator.js +4 -4
  48. package/dist-es/pagination/ListAnomaliesForInsightPaginator.js +4 -4
  49. package/dist-es/pagination/ListEventsPaginator.js +4 -4
  50. package/dist-es/pagination/ListInsightsPaginator.js +4 -4
  51. package/dist-es/pagination/ListNotificationChannelsPaginator.js +4 -4
  52. package/dist-es/pagination/ListOrganizationInsightsPaginator.js +4 -4
  53. package/dist-es/pagination/ListRecommendationsPaginator.js +4 -4
  54. package/dist-es/pagination/SearchInsightsPaginator.js +4 -4
  55. package/dist-es/pagination/SearchOrganizationInsightsPaginator.js +4 -4
  56. package/dist-es/protocols/Aws_restJson1.js +250 -26
  57. package/dist-types/DevOpsGuru.d.ts +19 -4
  58. package/dist-types/DevOpsGuruClient.d.ts +6 -4
  59. package/dist-types/commands/DescribeEventSourcesConfigCommand.d.ts +36 -0
  60. package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +4 -4
  61. package/dist-types/commands/UpdateEventSourcesConfigCommand.d.ts +35 -0
  62. package/dist-types/commands/index.d.ts +2 -0
  63. package/dist-types/models/models_0.d.ts +343 -198
  64. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  65. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  66. package/dist-types/runtimeConfig.d.ts +1 -1
  67. package/dist-types/runtimeConfig.native.d.ts +3 -3
  68. package/dist-types/ts3.4/DevOpsGuru.d.ts +10 -0
  69. package/dist-types/ts3.4/DevOpsGuruClient.d.ts +6 -4
  70. package/dist-types/ts3.4/commands/DescribeEventSourcesConfigCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/UpdateEventSourcesConfigCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +77 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  75. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  76. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  77. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  78. package/package.json +34 -34
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListOrganizationInsightsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchOrganizationInsightsCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListOrganizationInsightsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = exports.serializeAws_restJson1DescribeOrganizationHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = void 0;
3
+ exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListOrganizationInsightsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeEventSourcesConfigCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1UpdateEventSourcesConfigCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchOrganizationInsightsCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListOrganizationInsightsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = exports.serializeAws_restJson1DescribeOrganizationHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeEventSourcesConfigCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -80,7 +80,7 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
80
80
  if (labelValue.length <= 0) {
81
81
  throw new Error("Empty value provided for input HTTP label: Id.");
82
82
  }
83
- resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
83
+ resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
84
84
  }
85
85
  else {
86
86
  throw new Error("No value provided for input HTTP label: Id.");
@@ -101,6 +101,25 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
101
101
  });
102
102
  };
103
103
  exports.serializeAws_restJson1DescribeAnomalyCommand = serializeAws_restJson1DescribeAnomalyCommand;
104
+ const serializeAws_restJson1DescribeEventSourcesConfigCommand = async (input, context) => {
105
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const headers = {
107
+ "content-type": "application/json",
108
+ };
109
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
110
+ let body;
111
+ body = "";
112
+ return new protocol_http_1.HttpRequest({
113
+ protocol,
114
+ hostname,
115
+ port,
116
+ method: "POST",
117
+ headers,
118
+ path: resolvedPath,
119
+ body,
120
+ });
121
+ };
122
+ exports.serializeAws_restJson1DescribeEventSourcesConfigCommand = serializeAws_restJson1DescribeEventSourcesConfigCommand;
104
123
  const serializeAws_restJson1DescribeFeedbackCommand = async (input, context) => {
105
124
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
125
  const headers = {
@@ -131,7 +150,7 @@ const serializeAws_restJson1DescribeInsightCommand = async (input, context) => {
131
150
  if (labelValue.length <= 0) {
132
151
  throw new Error("Empty value provided for input HTTP label: Id.");
133
152
  }
134
- resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
153
+ resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
135
154
  }
136
155
  else {
137
156
  throw new Error("No value provided for input HTTP label: Id.");
@@ -249,7 +268,7 @@ const serializeAws_restJson1DescribeResourceCollectionHealthCommand = async (inp
249
268
  if (labelValue.length <= 0) {
250
269
  throw new Error("Empty value provided for input HTTP label: ResourceCollectionType.");
251
270
  }
252
- resolvedPath = resolvedPath.replace("{ResourceCollectionType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
271
+ resolvedPath = resolvedPath.replace("{ResourceCollectionType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
253
272
  }
254
273
  else {
255
274
  throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
@@ -319,7 +338,7 @@ const serializeAws_restJson1GetResourceCollectionCommand = async (input, context
319
338
  if (labelValue.length <= 0) {
320
339
  throw new Error("Empty value provided for input HTTP label: ResourceCollectionType.");
321
340
  }
322
- resolvedPath = resolvedPath.replace("{ResourceCollectionType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
341
+ resolvedPath = resolvedPath.replace("{ResourceCollectionType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
323
342
  }
324
343
  else {
325
344
  throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
@@ -351,7 +370,7 @@ const serializeAws_restJson1ListAnomaliesForInsightCommand = async (input, conte
351
370
  if (labelValue.length <= 0) {
352
371
  throw new Error("Empty value provided for input HTTP label: InsightId.");
353
372
  }
354
- resolvedPath = resolvedPath.replace("{InsightId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
373
+ resolvedPath = resolvedPath.replace("{InsightId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
355
374
  }
356
375
  else {
357
376
  throw new Error("No value provided for input HTTP label: InsightId.");
@@ -540,7 +559,7 @@ const serializeAws_restJson1RemoveNotificationChannelCommand = async (input, con
540
559
  if (labelValue.length <= 0) {
541
560
  throw new Error("Empty value provided for input HTTP label: Id.");
542
561
  }
543
- resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
562
+ resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
544
563
  }
545
564
  else {
546
565
  throw new Error("No value provided for input HTTP label: Id.");
@@ -630,7 +649,7 @@ const serializeAws_restJson1StartCostEstimationCommand = async (input, context)
630
649
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cost-estimation";
631
650
  let body;
632
651
  body = JSON.stringify({
633
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
652
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
634
653
  ...(input.ResourceCollection !== undefined &&
635
654
  input.ResourceCollection !== null && {
636
655
  ResourceCollection: serializeAws_restJson1CostEstimationResourceCollectionFilter(input.ResourceCollection, context),
@@ -647,6 +666,30 @@ const serializeAws_restJson1StartCostEstimationCommand = async (input, context)
647
666
  });
648
667
  };
649
668
  exports.serializeAws_restJson1StartCostEstimationCommand = serializeAws_restJson1StartCostEstimationCommand;
669
+ const serializeAws_restJson1UpdateEventSourcesConfigCommand = async (input, context) => {
670
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
671
+ const headers = {
672
+ "content-type": "application/json",
673
+ };
674
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-sources";
675
+ let body;
676
+ body = JSON.stringify({
677
+ ...(input.EventSources !== undefined &&
678
+ input.EventSources !== null && {
679
+ EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
680
+ }),
681
+ });
682
+ return new protocol_http_1.HttpRequest({
683
+ protocol,
684
+ hostname,
685
+ port,
686
+ method: "PUT",
687
+ headers,
688
+ path: resolvedPath,
689
+ body,
690
+ });
691
+ };
692
+ exports.serializeAws_restJson1UpdateEventSourcesConfigCommand = serializeAws_restJson1UpdateEventSourcesConfigCommand;
650
693
  const serializeAws_restJson1UpdateResourceCollectionCommand = async (input, context) => {
651
694
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
695
  const headers = {
@@ -704,9 +747,9 @@ const deserializeAws_restJson1AddNotificationChannelCommand = async (output, con
704
747
  $metadata: deserializeMetadata(output),
705
748
  Id: undefined,
706
749
  };
707
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
750
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
708
751
  if (data.Id !== undefined && data.Id !== null) {
709
- contents.Id = smithy_client_1.expectString(data.Id);
752
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
710
753
  }
711
754
  return Promise.resolve(contents);
712
755
  };
@@ -748,7 +791,7 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
748
791
  $fault: "client",
749
792
  $metadata: deserializeMetadata(output),
750
793
  });
751
- throw smithy_client_1.decorateServiceException(response, parsedBody);
794
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
752
795
  }
753
796
  };
754
797
  const deserializeAws_restJson1DescribeAccountHealthCommand = async (output, context) => {
@@ -762,18 +805,18 @@ const deserializeAws_restJson1DescribeAccountHealthCommand = async (output, cont
762
805
  OpenReactiveInsights: undefined,
763
806
  ResourceHours: undefined,
764
807
  };
765
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
808
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
766
809
  if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
767
- contents.MetricsAnalyzed = smithy_client_1.expectInt32(data.MetricsAnalyzed);
810
+ contents.MetricsAnalyzed = (0, smithy_client_1.expectInt32)(data.MetricsAnalyzed);
768
811
  }
769
812
  if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
770
- contents.OpenProactiveInsights = smithy_client_1.expectInt32(data.OpenProactiveInsights);
813
+ contents.OpenProactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenProactiveInsights);
771
814
  }
772
815
  if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
773
- contents.OpenReactiveInsights = smithy_client_1.expectInt32(data.OpenReactiveInsights);
816
+ contents.OpenReactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenReactiveInsights);
774
817
  }
775
818
  if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
776
- contents.ResourceHours = smithy_client_1.expectLong(data.ResourceHours);
819
+ contents.ResourceHours = (0, smithy_client_1.expectLong)(data.ResourceHours);
777
820
  }
778
821
  return Promise.resolve(contents);
779
822
  };
@@ -806,7 +849,7 @@ const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output,
806
849
  $fault: "client",
807
850
  $metadata: deserializeMetadata(output),
808
851
  });
809
- throw smithy_client_1.decorateServiceException(response, parsedBody);
852
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
810
853
  }
811
854
  };
812
855
  const deserializeAws_restJson1DescribeAccountOverviewCommand = async (output, context) => {
@@ -819,15 +862,15 @@ const deserializeAws_restJson1DescribeAccountOverviewCommand = async (output, co
819
862
  ProactiveInsights: undefined,
820
863
  ReactiveInsights: undefined,
821
864
  };
822
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
865
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
823
866
  if (data.MeanTimeToRecoverInMilliseconds !== undefined && data.MeanTimeToRecoverInMilliseconds !== null) {
824
- contents.MeanTimeToRecoverInMilliseconds = smithy_client_1.expectLong(data.MeanTimeToRecoverInMilliseconds);
867
+ contents.MeanTimeToRecoverInMilliseconds = (0, smithy_client_1.expectLong)(data.MeanTimeToRecoverInMilliseconds);
825
868
  }
826
869
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
827
- contents.ProactiveInsights = smithy_client_1.expectInt32(data.ProactiveInsights);
870
+ contents.ProactiveInsights = (0, smithy_client_1.expectInt32)(data.ProactiveInsights);
828
871
  }
829
872
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
830
- contents.ReactiveInsights = smithy_client_1.expectInt32(data.ReactiveInsights);
873
+ contents.ReactiveInsights = (0, smithy_client_1.expectInt32)(data.ReactiveInsights);
831
874
  }
832
875
  return Promise.resolve(contents);
833
876
  };
@@ -860,7 +903,7 @@ const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (outpu
860
903
  $fault: "client",
861
904
  $metadata: deserializeMetadata(output),
862
905
  });
863
- throw smithy_client_1.decorateServiceException(response, parsedBody);
906
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
864
907
  }
865
908
  };
866
909
  const deserializeAws_restJson1DescribeAnomalyCommand = async (output, context) => {
@@ -872,7 +915,7 @@ const deserializeAws_restJson1DescribeAnomalyCommand = async (output, context) =
872
915
  ProactiveAnomaly: undefined,
873
916
  ReactiveAnomaly: undefined,
874
917
  };
875
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
918
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
876
919
  if (data.ProactiveAnomaly !== undefined && data.ProactiveAnomaly !== null) {
877
920
  contents.ProactiveAnomaly = deserializeAws_restJson1ProactiveAnomaly(data.ProactiveAnomaly, context);
878
921
  }
@@ -913,7 +956,53 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
913
956
  $fault: "client",
914
957
  $metadata: deserializeMetadata(output),
915
958
  });
916
- throw smithy_client_1.decorateServiceException(response, parsedBody);
959
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
960
+ }
961
+ };
962
+ const deserializeAws_restJson1DescribeEventSourcesConfigCommand = async (output, context) => {
963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
964
+ return deserializeAws_restJson1DescribeEventSourcesConfigCommandError(output, context);
965
+ }
966
+ const contents = {
967
+ $metadata: deserializeMetadata(output),
968
+ EventSources: undefined,
969
+ };
970
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
971
+ if (data.EventSources !== undefined && data.EventSources !== null) {
972
+ contents.EventSources = deserializeAws_restJson1EventSourcesConfig(data.EventSources, context);
973
+ }
974
+ return Promise.resolve(contents);
975
+ };
976
+ exports.deserializeAws_restJson1DescribeEventSourcesConfigCommand = deserializeAws_restJson1DescribeEventSourcesConfigCommand;
977
+ const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (output, context) => {
978
+ const parsedOutput = {
979
+ ...output,
980
+ body: await parseBody(output.body, context),
981
+ };
982
+ let response;
983
+ let errorCode = "UnknownError";
984
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
985
+ switch (errorCode) {
986
+ case "AccessDeniedException":
987
+ case "com.amazonaws.devopsguru#AccessDeniedException":
988
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
989
+ case "InternalServerException":
990
+ case "com.amazonaws.devopsguru#InternalServerException":
991
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
992
+ case "ThrottlingException":
993
+ case "com.amazonaws.devopsguru#ThrottlingException":
994
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
995
+ case "ValidationException":
996
+ case "com.amazonaws.devopsguru#ValidationException":
997
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
998
+ default:
999
+ const parsedBody = parsedOutput.body;
1000
+ response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
1001
+ name: parsedBody.code || parsedBody.Code || errorCode,
1002
+ $fault: "client",
1003
+ $metadata: deserializeMetadata(output),
1004
+ });
1005
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
917
1006
  }
918
1007
  };
919
1008
  const deserializeAws_restJson1DescribeFeedbackCommand = async (output, context) => {
@@ -924,7 +1013,7 @@ const deserializeAws_restJson1DescribeFeedbackCommand = async (output, context)
924
1013
  $metadata: deserializeMetadata(output),
925
1014
  InsightFeedback: undefined,
926
1015
  };
927
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1016
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
928
1017
  if (data.InsightFeedback !== undefined && data.InsightFeedback !== null) {
929
1018
  contents.InsightFeedback = deserializeAws_restJson1InsightFeedback(data.InsightFeedback, context);
930
1019
  }
@@ -962,7 +1051,7 @@ const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, cont
962
1051
  $fault: "client",
963
1052
  $metadata: deserializeMetadata(output),
964
1053
  });
965
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1054
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
966
1055
  }
967
1056
  };
968
1057
  const deserializeAws_restJson1DescribeInsightCommand = async (output, context) => {
@@ -974,7 +1063,7 @@ const deserializeAws_restJson1DescribeInsightCommand = async (output, context) =
974
1063
  ProactiveInsight: undefined,
975
1064
  ReactiveInsight: undefined,
976
1065
  };
977
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1066
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
978
1067
  if (data.ProactiveInsight !== undefined && data.ProactiveInsight !== null) {
979
1068
  contents.ProactiveInsight = deserializeAws_restJson1ProactiveInsight(data.ProactiveInsight, context);
980
1069
  }
@@ -1015,7 +1104,7 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
1015
1104
  $fault: "client",
1016
1105
  $metadata: deserializeMetadata(output),
1017
1106
  });
1018
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1107
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1019
1108
  }
1020
1109
  };
1021
1110
  const deserializeAws_restJson1DescribeOrganizationHealthCommand = async (output, context) => {
@@ -1029,18 +1118,18 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommand = async (output,
1029
1118
  OpenReactiveInsights: undefined,
1030
1119
  ResourceHours: undefined,
1031
1120
  };
1032
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1121
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1033
1122
  if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
1034
- contents.MetricsAnalyzed = smithy_client_1.expectInt32(data.MetricsAnalyzed);
1123
+ contents.MetricsAnalyzed = (0, smithy_client_1.expectInt32)(data.MetricsAnalyzed);
1035
1124
  }
1036
1125
  if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
1037
- contents.OpenProactiveInsights = smithy_client_1.expectInt32(data.OpenProactiveInsights);
1126
+ contents.OpenProactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenProactiveInsights);
1038
1127
  }
1039
1128
  if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
1040
- contents.OpenReactiveInsights = smithy_client_1.expectInt32(data.OpenReactiveInsights);
1129
+ contents.OpenReactiveInsights = (0, smithy_client_1.expectInt32)(data.OpenReactiveInsights);
1041
1130
  }
1042
1131
  if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
1043
- contents.ResourceHours = smithy_client_1.expectLong(data.ResourceHours);
1132
+ contents.ResourceHours = (0, smithy_client_1.expectLong)(data.ResourceHours);
1044
1133
  }
1045
1134
  return Promise.resolve(contents);
1046
1135
  };
@@ -1073,7 +1162,7 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (ou
1073
1162
  $fault: "client",
1074
1163
  $metadata: deserializeMetadata(output),
1075
1164
  });
1076
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1165
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1077
1166
  }
1078
1167
  };
1079
1168
  const deserializeAws_restJson1DescribeOrganizationOverviewCommand = async (output, context) => {
@@ -1085,12 +1174,12 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommand = async (outpu
1085
1174
  ProactiveInsights: undefined,
1086
1175
  ReactiveInsights: undefined,
1087
1176
  };
1088
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1177
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1089
1178
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1090
- contents.ProactiveInsights = smithy_client_1.expectInt32(data.ProactiveInsights);
1179
+ contents.ProactiveInsights = (0, smithy_client_1.expectInt32)(data.ProactiveInsights);
1091
1180
  }
1092
1181
  if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
1093
- contents.ReactiveInsights = smithy_client_1.expectInt32(data.ReactiveInsights);
1182
+ contents.ReactiveInsights = (0, smithy_client_1.expectInt32)(data.ReactiveInsights);
1094
1183
  }
1095
1184
  return Promise.resolve(contents);
1096
1185
  };
@@ -1123,7 +1212,7 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (
1123
1212
  $fault: "client",
1124
1213
  $metadata: deserializeMetadata(output),
1125
1214
  });
1126
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1215
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1127
1216
  }
1128
1217
  };
1129
1218
  const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = async (output, context) => {
@@ -1138,7 +1227,7 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
1138
1227
  Service: undefined,
1139
1228
  Tags: undefined,
1140
1229
  };
1141
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1230
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1142
1231
  if (data.Account !== undefined && data.Account !== null) {
1143
1232
  contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
1144
1233
  }
@@ -1146,7 +1235,7 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
1146
1235
  contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1147
1236
  }
1148
1237
  if (data.NextToken !== undefined && data.NextToken !== null) {
1149
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1238
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1150
1239
  }
1151
1240
  if (data.Service !== undefined && data.Service !== null) {
1152
1241
  contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
@@ -1185,7 +1274,7 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
1185
1274
  $fault: "client",
1186
1275
  $metadata: deserializeMetadata(output),
1187
1276
  });
1188
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1277
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1189
1278
  }
1190
1279
  };
1191
1280
  const deserializeAws_restJson1DescribeResourceCollectionHealthCommand = async (output, context) => {
@@ -1199,12 +1288,12 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommand = async (o
1199
1288
  Service: undefined,
1200
1289
  Tags: undefined,
1201
1290
  };
1202
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1291
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1203
1292
  if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
1204
1293
  contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
1205
1294
  }
1206
1295
  if (data.NextToken !== undefined && data.NextToken !== null) {
1207
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1296
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1208
1297
  }
1209
1298
  if (data.Service !== undefined && data.Service !== null) {
1210
1299
  contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
@@ -1243,7 +1332,7 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
1243
1332
  $fault: "client",
1244
1333
  $metadata: deserializeMetadata(output),
1245
1334
  });
1246
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1335
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1247
1336
  }
1248
1337
  };
1249
1338
  const deserializeAws_restJson1DescribeServiceIntegrationCommand = async (output, context) => {
@@ -1254,7 +1343,7 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommand = async (output,
1254
1343
  $metadata: deserializeMetadata(output),
1255
1344
  ServiceIntegration: undefined,
1256
1345
  };
1257
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1346
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1258
1347
  if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
1259
1348
  contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
1260
1349
  }
@@ -1289,7 +1378,7 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
1289
1378
  $fault: "client",
1290
1379
  $metadata: deserializeMetadata(output),
1291
1380
  });
1292
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1381
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1293
1382
  }
1294
1383
  };
1295
1384
  const deserializeAws_restJson1GetCostEstimationCommand = async (output, context) => {
@@ -1305,24 +1394,24 @@ const deserializeAws_restJson1GetCostEstimationCommand = async (output, context)
1305
1394
  TimeRange: undefined,
1306
1395
  TotalCost: undefined,
1307
1396
  };
1308
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1397
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1309
1398
  if (data.Costs !== undefined && data.Costs !== null) {
1310
1399
  contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
1311
1400
  }
1312
1401
  if (data.NextToken !== undefined && data.NextToken !== null) {
1313
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1402
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1314
1403
  }
1315
1404
  if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1316
1405
  contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
1317
1406
  }
1318
1407
  if (data.Status !== undefined && data.Status !== null) {
1319
- contents.Status = smithy_client_1.expectString(data.Status);
1408
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
1320
1409
  }
1321
1410
  if (data.TimeRange !== undefined && data.TimeRange !== null) {
1322
1411
  contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
1323
1412
  }
1324
1413
  if (data.TotalCost !== undefined && data.TotalCost !== null) {
1325
- contents.TotalCost = smithy_client_1.limitedParseDouble(data.TotalCost);
1414
+ contents.TotalCost = (0, smithy_client_1.limitedParseDouble)(data.TotalCost);
1326
1415
  }
1327
1416
  return Promise.resolve(contents);
1328
1417
  };
@@ -1358,7 +1447,7 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
1358
1447
  $fault: "client",
1359
1448
  $metadata: deserializeMetadata(output),
1360
1449
  });
1361
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1450
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1362
1451
  }
1363
1452
  };
1364
1453
  const deserializeAws_restJson1GetResourceCollectionCommand = async (output, context) => {
@@ -1370,9 +1459,9 @@ const deserializeAws_restJson1GetResourceCollectionCommand = async (output, cont
1370
1459
  NextToken: undefined,
1371
1460
  ResourceCollection: undefined,
1372
1461
  };
1373
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1462
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1374
1463
  if (data.NextToken !== undefined && data.NextToken !== null) {
1375
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1464
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1376
1465
  }
1377
1466
  if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
1378
1467
  contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
@@ -1411,7 +1500,7 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
1411
1500
  $fault: "client",
1412
1501
  $metadata: deserializeMetadata(output),
1413
1502
  });
1414
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1503
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1415
1504
  }
1416
1505
  };
1417
1506
  const deserializeAws_restJson1ListAnomaliesForInsightCommand = async (output, context) => {
@@ -1424,9 +1513,9 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommand = async (output, co
1424
1513
  ProactiveAnomalies: undefined,
1425
1514
  ReactiveAnomalies: undefined,
1426
1515
  };
1427
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1516
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1428
1517
  if (data.NextToken !== undefined && data.NextToken !== null) {
1429
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1518
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1430
1519
  }
1431
1520
  if (data.ProactiveAnomalies !== undefined && data.ProactiveAnomalies !== null) {
1432
1521
  contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
@@ -1468,7 +1557,7 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
1468
1557
  $fault: "client",
1469
1558
  $metadata: deserializeMetadata(output),
1470
1559
  });
1471
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1560
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1472
1561
  }
1473
1562
  };
1474
1563
  const deserializeAws_restJson1ListEventsCommand = async (output, context) => {
@@ -1480,12 +1569,12 @@ const deserializeAws_restJson1ListEventsCommand = async (output, context) => {
1480
1569
  Events: undefined,
1481
1570
  NextToken: undefined,
1482
1571
  };
1483
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1572
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1484
1573
  if (data.Events !== undefined && data.Events !== null) {
1485
1574
  contents.Events = deserializeAws_restJson1Events(data.Events, context);
1486
1575
  }
1487
1576
  if (data.NextToken !== undefined && data.NextToken !== null) {
1488
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1577
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1489
1578
  }
1490
1579
  return Promise.resolve(contents);
1491
1580
  };
@@ -1521,7 +1610,7 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
1521
1610
  $fault: "client",
1522
1611
  $metadata: deserializeMetadata(output),
1523
1612
  });
1524
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1613
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1525
1614
  }
1526
1615
  };
1527
1616
  const deserializeAws_restJson1ListInsightsCommand = async (output, context) => {
@@ -1534,9 +1623,9 @@ const deserializeAws_restJson1ListInsightsCommand = async (output, context) => {
1534
1623
  ProactiveInsights: undefined,
1535
1624
  ReactiveInsights: undefined,
1536
1625
  };
1537
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1626
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1538
1627
  if (data.NextToken !== undefined && data.NextToken !== null) {
1539
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1628
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1540
1629
  }
1541
1630
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1542
1631
  contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
@@ -1575,7 +1664,7 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
1575
1664
  $fault: "client",
1576
1665
  $metadata: deserializeMetadata(output),
1577
1666
  });
1578
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1667
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1579
1668
  }
1580
1669
  };
1581
1670
  const deserializeAws_restJson1ListNotificationChannelsCommand = async (output, context) => {
@@ -1587,12 +1676,12 @@ const deserializeAws_restJson1ListNotificationChannelsCommand = async (output, c
1587
1676
  Channels: undefined,
1588
1677
  NextToken: undefined,
1589
1678
  };
1590
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1679
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1591
1680
  if (data.Channels !== undefined && data.Channels !== null) {
1592
1681
  contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
1593
1682
  }
1594
1683
  if (data.NextToken !== undefined && data.NextToken !== null) {
1595
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1684
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1596
1685
  }
1597
1686
  return Promise.resolve(contents);
1598
1687
  };
@@ -1625,7 +1714,7 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
1625
1714
  $fault: "client",
1626
1715
  $metadata: deserializeMetadata(output),
1627
1716
  });
1628
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1717
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1629
1718
  }
1630
1719
  };
1631
1720
  const deserializeAws_restJson1ListOrganizationInsightsCommand = async (output, context) => {
@@ -1638,9 +1727,9 @@ const deserializeAws_restJson1ListOrganizationInsightsCommand = async (output, c
1638
1727
  ProactiveInsights: undefined,
1639
1728
  ReactiveInsights: undefined,
1640
1729
  };
1641
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1730
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1642
1731
  if (data.NextToken !== undefined && data.NextToken !== null) {
1643
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1732
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1644
1733
  }
1645
1734
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1646
1735
  contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
@@ -1679,7 +1768,7 @@ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (outp
1679
1768
  $fault: "client",
1680
1769
  $metadata: deserializeMetadata(output),
1681
1770
  });
1682
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1771
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1683
1772
  }
1684
1773
  };
1685
1774
  const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
@@ -1691,9 +1780,9 @@ const deserializeAws_restJson1ListRecommendationsCommand = async (output, contex
1691
1780
  NextToken: undefined,
1692
1781
  Recommendations: undefined,
1693
1782
  };
1694
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1783
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1695
1784
  if (data.NextToken !== undefined && data.NextToken !== null) {
1696
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1785
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1697
1786
  }
1698
1787
  if (data.Recommendations !== undefined && data.Recommendations !== null) {
1699
1788
  contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
@@ -1732,7 +1821,7 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
1732
1821
  $fault: "client",
1733
1822
  $metadata: deserializeMetadata(output),
1734
1823
  });
1735
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1824
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1736
1825
  }
1737
1826
  };
1738
1827
  const deserializeAws_restJson1PutFeedbackCommand = async (output, context) => {
@@ -1780,7 +1869,7 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
1780
1869
  $fault: "client",
1781
1870
  $metadata: deserializeMetadata(output),
1782
1871
  });
1783
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1872
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1784
1873
  }
1785
1874
  };
1786
1875
  const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
@@ -1828,7 +1917,7 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
1828
1917
  $fault: "client",
1829
1918
  $metadata: deserializeMetadata(output),
1830
1919
  });
1831
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1920
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1832
1921
  }
1833
1922
  };
1834
1923
  const deserializeAws_restJson1SearchInsightsCommand = async (output, context) => {
@@ -1841,9 +1930,9 @@ const deserializeAws_restJson1SearchInsightsCommand = async (output, context) =>
1841
1930
  ProactiveInsights: undefined,
1842
1931
  ReactiveInsights: undefined,
1843
1932
  };
1844
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1933
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1845
1934
  if (data.NextToken !== undefined && data.NextToken !== null) {
1846
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1935
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1847
1936
  }
1848
1937
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1849
1938
  contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
@@ -1882,7 +1971,7 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
1882
1971
  $fault: "client",
1883
1972
  $metadata: deserializeMetadata(output),
1884
1973
  });
1885
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1974
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1886
1975
  }
1887
1976
  };
1888
1977
  const deserializeAws_restJson1SearchOrganizationInsightsCommand = async (output, context) => {
@@ -1895,9 +1984,9 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommand = async (output,
1895
1984
  ProactiveInsights: undefined,
1896
1985
  ReactiveInsights: undefined,
1897
1986
  };
1898
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1987
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1899
1988
  if (data.NextToken !== undefined && data.NextToken !== null) {
1900
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1989
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1901
1990
  }
1902
1991
  if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
1903
1992
  contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
@@ -1936,7 +2025,7 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (ou
1936
2025
  $fault: "client",
1937
2026
  $metadata: deserializeMetadata(output),
1938
2027
  });
1939
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2028
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1940
2029
  }
1941
2030
  };
1942
2031
  const deserializeAws_restJson1StartCostEstimationCommand = async (output, context) => {
@@ -1984,7 +2073,49 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
1984
2073
  $fault: "client",
1985
2074
  $metadata: deserializeMetadata(output),
1986
2075
  });
1987
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2076
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2077
+ }
2078
+ };
2079
+ const deserializeAws_restJson1UpdateEventSourcesConfigCommand = async (output, context) => {
2080
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2081
+ return deserializeAws_restJson1UpdateEventSourcesConfigCommandError(output, context);
2082
+ }
2083
+ const contents = {
2084
+ $metadata: deserializeMetadata(output),
2085
+ };
2086
+ await collectBody(output.body, context);
2087
+ return Promise.resolve(contents);
2088
+ };
2089
+ exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = deserializeAws_restJson1UpdateEventSourcesConfigCommand;
2090
+ const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (output, context) => {
2091
+ const parsedOutput = {
2092
+ ...output,
2093
+ body: await parseBody(output.body, context),
2094
+ };
2095
+ let response;
2096
+ let errorCode = "UnknownError";
2097
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2098
+ switch (errorCode) {
2099
+ case "AccessDeniedException":
2100
+ case "com.amazonaws.devopsguru#AccessDeniedException":
2101
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2102
+ case "InternalServerException":
2103
+ case "com.amazonaws.devopsguru#InternalServerException":
2104
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2105
+ case "ThrottlingException":
2106
+ case "com.amazonaws.devopsguru#ThrottlingException":
2107
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2108
+ case "ValidationException":
2109
+ case "com.amazonaws.devopsguru#ValidationException":
2110
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2111
+ default:
2112
+ const parsedBody = parsedOutput.body;
2113
+ response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
2114
+ name: parsedBody.code || parsedBody.Code || errorCode,
2115
+ $fault: "client",
2116
+ $metadata: deserializeMetadata(output),
2117
+ });
2118
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1988
2119
  }
1989
2120
  };
1990
2121
  const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, context) => {
@@ -2029,7 +2160,7 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
2029
2160
  $fault: "client",
2030
2161
  $metadata: deserializeMetadata(output),
2031
2162
  });
2032
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2163
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2033
2164
  }
2034
2165
  };
2035
2166
  const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, context) => {
@@ -2074,104 +2205,104 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
2074
2205
  $fault: "client",
2075
2206
  $metadata: deserializeMetadata(output),
2076
2207
  });
2077
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2208
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2078
2209
  }
2079
2210
  };
2080
2211
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2081
2212
  const contents = {};
2082
2213
  const data = parsedOutput.body;
2083
2214
  if (data.Message !== undefined && data.Message !== null) {
2084
- contents.Message = smithy_client_1.expectString(data.Message);
2215
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2085
2216
  }
2086
2217
  const exception = new models_0_1.AccessDeniedException({
2087
2218
  $metadata: deserializeMetadata(parsedOutput),
2088
2219
  ...contents,
2089
2220
  });
2090
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2221
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2091
2222
  };
2092
2223
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2093
2224
  const contents = {};
2094
2225
  const data = parsedOutput.body;
2095
2226
  if (data.Message !== undefined && data.Message !== null) {
2096
- contents.Message = smithy_client_1.expectString(data.Message);
2227
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2097
2228
  }
2098
2229
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2099
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2230
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2100
2231
  }
2101
2232
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2102
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2233
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2103
2234
  }
2104
2235
  const exception = new models_0_1.ConflictException({
2105
2236
  $metadata: deserializeMetadata(parsedOutput),
2106
2237
  ...contents,
2107
2238
  });
2108
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2239
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2109
2240
  };
2110
2241
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
2111
2242
  const contents = {};
2112
2243
  if (parsedOutput.headers["retry-after"] !== undefined) {
2113
- contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
2244
+ contents.RetryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
2114
2245
  }
2115
2246
  const data = parsedOutput.body;
2116
2247
  if (data.Message !== undefined && data.Message !== null) {
2117
- contents.Message = smithy_client_1.expectString(data.Message);
2248
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2118
2249
  }
2119
2250
  const exception = new models_0_1.InternalServerException({
2120
2251
  $metadata: deserializeMetadata(parsedOutput),
2121
2252
  ...contents,
2122
2253
  });
2123
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2254
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2124
2255
  };
2125
2256
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2126
2257
  const contents = {};
2127
2258
  const data = parsedOutput.body;
2128
2259
  if (data.Message !== undefined && data.Message !== null) {
2129
- contents.Message = smithy_client_1.expectString(data.Message);
2260
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2130
2261
  }
2131
2262
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2132
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2263
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2133
2264
  }
2134
2265
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2135
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2266
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2136
2267
  }
2137
2268
  const exception = new models_0_1.ResourceNotFoundException({
2138
2269
  $metadata: deserializeMetadata(parsedOutput),
2139
2270
  ...contents,
2140
2271
  });
2141
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2272
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2142
2273
  };
2143
2274
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
2144
2275
  const contents = {};
2145
2276
  const data = parsedOutput.body;
2146
2277
  if (data.Message !== undefined && data.Message !== null) {
2147
- contents.Message = smithy_client_1.expectString(data.Message);
2278
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2148
2279
  }
2149
2280
  const exception = new models_0_1.ServiceQuotaExceededException({
2150
2281
  $metadata: deserializeMetadata(parsedOutput),
2151
2282
  ...contents,
2152
2283
  });
2153
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2284
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2154
2285
  };
2155
2286
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2156
2287
  const contents = {};
2157
2288
  if (parsedOutput.headers["retry-after"] !== undefined) {
2158
- contents.RetryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
2289
+ contents.RetryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
2159
2290
  }
2160
2291
  const data = parsedOutput.body;
2161
2292
  if (data.Message !== undefined && data.Message !== null) {
2162
- contents.Message = smithy_client_1.expectString(data.Message);
2293
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2163
2294
  }
2164
2295
  if (data.QuotaCode !== undefined && data.QuotaCode !== null) {
2165
- contents.QuotaCode = smithy_client_1.expectString(data.QuotaCode);
2296
+ contents.QuotaCode = (0, smithy_client_1.expectString)(data.QuotaCode);
2166
2297
  }
2167
2298
  if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
2168
- contents.ServiceCode = smithy_client_1.expectString(data.ServiceCode);
2299
+ contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
2169
2300
  }
2170
2301
  const exception = new models_0_1.ThrottlingException({
2171
2302
  $metadata: deserializeMetadata(parsedOutput),
2172
2303
  ...contents,
2173
2304
  });
2174
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2305
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2175
2306
  };
2176
2307
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
2177
2308
  const contents = {};
@@ -2180,16 +2311,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2180
2311
  contents.Fields = deserializeAws_restJson1ValidationExceptionFields(data.Fields, context);
2181
2312
  }
2182
2313
  if (data.Message !== undefined && data.Message !== null) {
2183
- contents.Message = smithy_client_1.expectString(data.Message);
2314
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2184
2315
  }
2185
2316
  if (data.Reason !== undefined && data.Reason !== null) {
2186
- contents.Reason = smithy_client_1.expectString(data.Reason);
2317
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
2187
2318
  }
2188
2319
  const exception = new models_0_1.ValidationException({
2189
2320
  $metadata: deserializeMetadata(parsedOutput),
2190
2321
  ...contents,
2191
2322
  });
2192
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2323
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2193
2324
  };
2194
2325
  const serializeAws_restJson1AccountIdList = (input, context) => {
2195
2326
  return input
@@ -2201,6 +2332,11 @@ const serializeAws_restJson1AccountIdList = (input, context) => {
2201
2332
  return entry;
2202
2333
  });
2203
2334
  };
2335
+ const serializeAws_restJson1AmazonCodeGuruProfilerIntegration = (input, context) => {
2336
+ return {
2337
+ ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
2338
+ };
2339
+ };
2204
2340
  const serializeAws_restJson1CloudFormationCollection = (input, context) => {
2205
2341
  return {
2206
2342
  ...(input.StackNames !== undefined &&
@@ -2254,6 +2390,14 @@ const serializeAws_restJson1EndTimeRange = (input, context) => {
2254
2390
  ...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
2255
2391
  };
2256
2392
  };
2393
+ const serializeAws_restJson1EventSourcesConfig = (input, context) => {
2394
+ return {
2395
+ ...(input.AmazonCodeGuruProfiler !== undefined &&
2396
+ input.AmazonCodeGuruProfiler !== null && {
2397
+ AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
2398
+ }),
2399
+ };
2400
+ };
2257
2401
  const serializeAws_restJson1EventTimeRange = (input, context) => {
2258
2402
  return {
2259
2403
  ...(input.FromTime !== undefined &&
@@ -2579,7 +2723,7 @@ const serializeAws_restJson1UpdateTagValues = (input, context) => {
2579
2723
  };
2580
2724
  const deserializeAws_restJson1AccountHealth = (output, context) => {
2581
2725
  return {
2582
- AccountId: smithy_client_1.expectString(output.AccountId),
2726
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
2583
2727
  Insight: output.Insight !== undefined && output.Insight !== null
2584
2728
  ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
2585
2729
  : undefined,
@@ -2598,24 +2742,29 @@ const deserializeAws_restJson1AccountHealths = (output, context) => {
2598
2742
  };
2599
2743
  const deserializeAws_restJson1AccountInsightHealth = (output, context) => {
2600
2744
  return {
2601
- OpenProactiveInsights: smithy_client_1.expectInt32(output.OpenProactiveInsights),
2602
- OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
2745
+ OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
2746
+ OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
2747
+ };
2748
+ };
2749
+ const deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = (output, context) => {
2750
+ return {
2751
+ Status: (0, smithy_client_1.expectString)(output.Status),
2603
2752
  };
2604
2753
  };
2605
2754
  const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
2606
2755
  return {
2607
2756
  CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
2608
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CloseTime)))
2757
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CloseTime)))
2609
2758
  : undefined,
2610
2759
  OpenTime: output.OpenTime !== undefined && output.OpenTime !== null
2611
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.OpenTime)))
2760
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenTime)))
2612
2761
  : undefined,
2613
2762
  };
2614
2763
  };
2615
2764
  const deserializeAws_restJson1AnomalyResource = (output, context) => {
2616
2765
  return {
2617
- Name: smithy_client_1.expectString(output.Name),
2618
- Type: smithy_client_1.expectString(output.Type),
2766
+ Name: (0, smithy_client_1.expectString)(output.Name),
2767
+ Type: (0, smithy_client_1.expectString)(output.Type),
2619
2768
  };
2620
2769
  };
2621
2770
  const deserializeAws_restJson1AnomalyResources = (output, context) => {
@@ -2639,13 +2788,20 @@ const deserializeAws_restJson1AnomalySourceDetails = (output, context) => {
2639
2788
  : undefined,
2640
2789
  };
2641
2790
  };
2791
+ const deserializeAws_restJson1AnomalySourceMetadata = (output, context) => {
2792
+ return {
2793
+ Source: (0, smithy_client_1.expectString)(output.Source),
2794
+ SourceResourceName: (0, smithy_client_1.expectString)(output.SourceResourceName),
2795
+ SourceResourceType: (0, smithy_client_1.expectString)(output.SourceResourceType),
2796
+ };
2797
+ };
2642
2798
  const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
2643
2799
  return {
2644
2800
  EndTime: output.EndTime !== undefined && output.EndTime !== null
2645
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
2801
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2646
2802
  : undefined,
2647
2803
  StartTime: output.StartTime !== undefined && output.StartTime !== null
2648
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
2804
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2649
2805
  : undefined,
2650
2806
  };
2651
2807
  };
@@ -2656,7 +2812,7 @@ const deserializeAws_restJson1AssociatedResourceArns = (output, context) => {
2656
2812
  if (entry === null) {
2657
2813
  return null;
2658
2814
  }
2659
- return smithy_client_1.expectString(entry);
2815
+ return (0, smithy_client_1.expectString)(entry);
2660
2816
  });
2661
2817
  return retVal;
2662
2818
  };
@@ -2697,7 +2853,7 @@ const deserializeAws_restJson1CloudFormationHealth = (output, context) => {
2697
2853
  Insight: output.Insight !== undefined && output.Insight !== null
2698
2854
  ? deserializeAws_restJson1InsightHealth(output.Insight, context)
2699
2855
  : undefined,
2700
- StackName: smithy_client_1.expectString(output.StackName),
2856
+ StackName: (0, smithy_client_1.expectString)(output.StackName),
2701
2857
  };
2702
2858
  };
2703
2859
  const deserializeAws_restJson1CloudFormationHealths = (output, context) => {
@@ -2713,7 +2869,7 @@ const deserializeAws_restJson1CloudFormationHealths = (output, context) => {
2713
2869
  };
2714
2870
  const deserializeAws_restJson1CloudWatchMetricsDataSummary = (output, context) => {
2715
2871
  return {
2716
- StatusCode: smithy_client_1.expectString(output.StatusCode),
2872
+ StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
2717
2873
  TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
2718
2874
  ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
2719
2875
  : undefined,
@@ -2727,11 +2883,11 @@ const deserializeAws_restJson1CloudWatchMetricsDetail = (output, context) => {
2727
2883
  MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
2728
2884
  ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
2729
2885
  : undefined,
2730
- MetricName: smithy_client_1.expectString(output.MetricName),
2731
- Namespace: smithy_client_1.expectString(output.Namespace),
2732
- Period: smithy_client_1.expectInt32(output.Period),
2733
- Stat: smithy_client_1.expectString(output.Stat),
2734
- Unit: smithy_client_1.expectString(output.Unit),
2886
+ MetricName: (0, smithy_client_1.expectString)(output.MetricName),
2887
+ Namespace: (0, smithy_client_1.expectString)(output.Namespace),
2888
+ Period: (0, smithy_client_1.expectInt32)(output.Period),
2889
+ Stat: (0, smithy_client_1.expectString)(output.Stat),
2890
+ Unit: (0, smithy_client_1.expectString)(output.Unit),
2735
2891
  };
2736
2892
  };
2737
2893
  const deserializeAws_restJson1CloudWatchMetricsDetails = (output, context) => {
@@ -2747,8 +2903,8 @@ const deserializeAws_restJson1CloudWatchMetricsDetails = (output, context) => {
2747
2903
  };
2748
2904
  const deserializeAws_restJson1CloudWatchMetricsDimension = (output, context) => {
2749
2905
  return {
2750
- Name: smithy_client_1.expectString(output.Name),
2751
- Value: smithy_client_1.expectString(output.Value),
2906
+ Name: (0, smithy_client_1.expectString)(output.Name),
2907
+ Value: (0, smithy_client_1.expectString)(output.Value),
2752
2908
  };
2753
2909
  };
2754
2910
  const deserializeAws_restJson1CloudWatchMetricsDimensions = (output, context) => {
@@ -2779,7 +2935,7 @@ const deserializeAws_restJson1CostEstimationStackNames = (output, context) => {
2779
2935
  if (entry === null) {
2780
2936
  return null;
2781
2937
  }
2782
- return smithy_client_1.expectString(entry);
2938
+ return (0, smithy_client_1.expectString)(entry);
2783
2939
  });
2784
2940
  return retVal;
2785
2941
  };
@@ -2790,27 +2946,27 @@ const deserializeAws_restJson1CostEstimationTagValues = (output, context) => {
2790
2946
  if (entry === null) {
2791
2947
  return null;
2792
2948
  }
2793
- return smithy_client_1.expectString(entry);
2949
+ return (0, smithy_client_1.expectString)(entry);
2794
2950
  });
2795
2951
  return retVal;
2796
2952
  };
2797
2953
  const deserializeAws_restJson1CostEstimationTimeRange = (output, context) => {
2798
2954
  return {
2799
2955
  EndTime: output.EndTime !== undefined && output.EndTime !== null
2800
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
2956
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2801
2957
  : undefined,
2802
2958
  StartTime: output.StartTime !== undefined && output.StartTime !== null
2803
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
2959
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2804
2960
  : undefined,
2805
2961
  };
2806
2962
  };
2807
2963
  const deserializeAws_restJson1Event = (output, context) => {
2808
2964
  return {
2809
- DataSource: smithy_client_1.expectString(output.DataSource),
2810
- EventClass: smithy_client_1.expectString(output.EventClass),
2811
- EventSource: smithy_client_1.expectString(output.EventSource),
2812
- Id: smithy_client_1.expectString(output.Id),
2813
- Name: smithy_client_1.expectString(output.Name),
2965
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
2966
+ EventClass: (0, smithy_client_1.expectString)(output.EventClass),
2967
+ EventSource: (0, smithy_client_1.expectString)(output.EventSource),
2968
+ Id: (0, smithy_client_1.expectString)(output.Id),
2969
+ Name: (0, smithy_client_1.expectString)(output.Name),
2814
2970
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
2815
2971
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
2816
2972
  : undefined,
@@ -2818,15 +2974,15 @@ const deserializeAws_restJson1Event = (output, context) => {
2818
2974
  ? deserializeAws_restJson1EventResources(output.Resources, context)
2819
2975
  : undefined,
2820
2976
  Time: output.Time !== undefined && output.Time !== null
2821
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Time)))
2977
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Time)))
2822
2978
  : undefined,
2823
2979
  };
2824
2980
  };
2825
2981
  const deserializeAws_restJson1EventResource = (output, context) => {
2826
2982
  return {
2827
- Arn: smithy_client_1.expectString(output.Arn),
2828
- Name: smithy_client_1.expectString(output.Name),
2829
- Type: smithy_client_1.expectString(output.Type),
2983
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
2984
+ Name: (0, smithy_client_1.expectString)(output.Name),
2985
+ Type: (0, smithy_client_1.expectString)(output.Type),
2830
2986
  };
2831
2987
  };
2832
2988
  const deserializeAws_restJson1EventResources = (output, context) => {
@@ -2851,26 +3007,33 @@ const deserializeAws_restJson1Events = (output, context) => {
2851
3007
  });
2852
3008
  return retVal;
2853
3009
  };
3010
+ const deserializeAws_restJson1EventSourcesConfig = (output, context) => {
3011
+ return {
3012
+ AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
3013
+ ? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
3014
+ : undefined,
3015
+ };
3016
+ };
2854
3017
  const deserializeAws_restJson1InsightFeedback = (output, context) => {
2855
3018
  return {
2856
- Feedback: smithy_client_1.expectString(output.Feedback),
2857
- Id: smithy_client_1.expectString(output.Id),
3019
+ Feedback: (0, smithy_client_1.expectString)(output.Feedback),
3020
+ Id: (0, smithy_client_1.expectString)(output.Id),
2858
3021
  };
2859
3022
  };
2860
3023
  const deserializeAws_restJson1InsightHealth = (output, context) => {
2861
3024
  return {
2862
- MeanTimeToRecoverInMilliseconds: smithy_client_1.expectLong(output.MeanTimeToRecoverInMilliseconds),
2863
- OpenProactiveInsights: smithy_client_1.expectInt32(output.OpenProactiveInsights),
2864
- OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
3025
+ MeanTimeToRecoverInMilliseconds: (0, smithy_client_1.expectLong)(output.MeanTimeToRecoverInMilliseconds),
3026
+ OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
3027
+ OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
2865
3028
  };
2866
3029
  };
2867
3030
  const deserializeAws_restJson1InsightTimeRange = (output, context) => {
2868
3031
  return {
2869
3032
  EndTime: output.EndTime !== undefined && output.EndTime !== null
2870
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
3033
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2871
3034
  : undefined,
2872
3035
  StartTime: output.StartTime !== undefined && output.StartTime !== null
2873
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
3036
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2874
3037
  : undefined,
2875
3038
  };
2876
3039
  };
@@ -2879,7 +3042,7 @@ const deserializeAws_restJson1NotificationChannel = (output, context) => {
2879
3042
  Config: output.Config !== undefined && output.Config !== null
2880
3043
  ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context)
2881
3044
  : undefined,
2882
- Id: smithy_client_1.expectString(output.Id),
3045
+ Id: (0, smithy_client_1.expectString)(output.Id),
2883
3046
  };
2884
3047
  };
2885
3048
  const deserializeAws_restJson1NotificationChannelConfig = (output, context) => {
@@ -2891,7 +3054,7 @@ const deserializeAws_restJson1NotificationChannelConfig = (output, context) => {
2891
3054
  };
2892
3055
  const deserializeAws_restJson1OpsCenterIntegration = (output, context) => {
2893
3056
  return {
2894
- OptInStatus: smithy_client_1.expectString(output.OptInStatus),
3057
+ OptInStatus: (0, smithy_client_1.expectString)(output.OptInStatus),
2895
3058
  };
2896
3059
  };
2897
3060
  const deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = (output, context) => {
@@ -2899,8 +3062,8 @@ const deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = (output,
2899
3062
  Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
2900
3063
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
2901
3064
  : undefined,
2902
- Group: smithy_client_1.expectString(output.Group),
2903
- Limit: smithy_client_1.expectInt32(output.Limit),
3065
+ Group: (0, smithy_client_1.expectString)(output.Group),
3066
+ Limit: (0, smithy_client_1.expectInt32)(output.Limit),
2904
3067
  };
2905
3068
  };
2906
3069
  const deserializeAws_restJson1PerformanceInsightsMetricDimensions = (output, context) => {
@@ -2910,7 +3073,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricDimensions = (output, con
2910
3073
  if (entry === null) {
2911
3074
  return null;
2912
3075
  }
2913
- return smithy_client_1.expectString(entry);
3076
+ return (0, smithy_client_1.expectString)(entry);
2914
3077
  });
2915
3078
  return retVal;
2916
3079
  };
@@ -2921,7 +3084,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = (output, cont
2921
3084
  }
2922
3085
  return {
2923
3086
  ...acc,
2924
- [key]: smithy_client_1.expectString(value),
3087
+ [key]: (0, smithy_client_1.expectString)(value),
2925
3088
  };
2926
3089
  }, {});
2927
3090
  };
@@ -2933,12 +3096,12 @@ const deserializeAws_restJson1PerformanceInsightsMetricQuery = (output, context)
2933
3096
  GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
2934
3097
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
2935
3098
  : undefined,
2936
- Metric: smithy_client_1.expectString(output.Metric),
3099
+ Metric: (0, smithy_client_1.expectString)(output.Metric),
2937
3100
  };
2938
3101
  };
2939
3102
  const deserializeAws_restJson1PerformanceInsightsMetricsDetail = (output, context) => {
2940
3103
  return {
2941
- MetricDisplayName: smithy_client_1.expectString(output.MetricDisplayName),
3104
+ MetricDisplayName: (0, smithy_client_1.expectString)(output.MetricDisplayName),
2942
3105
  MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
2943
3106
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
2944
3107
  : undefined,
@@ -2951,7 +3114,7 @@ const deserializeAws_restJson1PerformanceInsightsMetricsDetail = (output, contex
2951
3114
  StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
2952
3115
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
2953
3116
  : undefined,
2954
- Unit: smithy_client_1.expectString(output.Unit),
3117
+ Unit: (0, smithy_client_1.expectString)(output.Unit),
2955
3118
  };
2956
3119
  };
2957
3120
  const deserializeAws_restJson1PerformanceInsightsMetricsDetails = (output, context) => {
@@ -2980,7 +3143,7 @@ const deserializeAws_restJson1PerformanceInsightsReferenceData = (output, contex
2980
3143
  ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
2981
3144
  ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
2982
3145
  : undefined,
2983
- Name: smithy_client_1.expectString(output.Name),
3146
+ Name: (0, smithy_client_1.expectString)(output.Name),
2984
3147
  };
2985
3148
  };
2986
3149
  const deserializeAws_restJson1PerformanceInsightsReferenceDataList = (output, context) => {
@@ -3003,13 +3166,13 @@ const deserializeAws_restJson1PerformanceInsightsReferenceMetric = (output, cont
3003
3166
  };
3004
3167
  const deserializeAws_restJson1PerformanceInsightsReferenceScalar = (output, context) => {
3005
3168
  return {
3006
- Value: smithy_client_1.limitedParseDouble(output.Value),
3169
+ Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
3007
3170
  };
3008
3171
  };
3009
3172
  const deserializeAws_restJson1PerformanceInsightsStat = (output, context) => {
3010
3173
  return {
3011
- Type: smithy_client_1.expectString(output.Type),
3012
- Value: smithy_client_1.limitedParseDouble(output.Value),
3174
+ Type: (0, smithy_client_1.expectString)(output.Type),
3175
+ Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
3013
3176
  };
3014
3177
  };
3015
3178
  const deserializeAws_restJson1PerformanceInsightsStats = (output, context) => {
@@ -3026,10 +3189,10 @@ const deserializeAws_restJson1PerformanceInsightsStats = (output, context) => {
3026
3189
  const deserializeAws_restJson1PredictionTimeRange = (output, context) => {
3027
3190
  return {
3028
3191
  EndTime: output.EndTime !== undefined && output.EndTime !== null
3029
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
3192
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
3030
3193
  : undefined,
3031
3194
  StartTime: output.StartTime !== undefined && output.StartTime !== null
3032
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
3195
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
3033
3196
  : undefined,
3034
3197
  };
3035
3198
  };
@@ -3049,25 +3212,31 @@ const deserializeAws_restJson1ProactiveAnomaly = (output, context) => {
3049
3212
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3050
3213
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3051
3214
  : undefined,
3215
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3216
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3217
+ : undefined,
3052
3218
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3053
3219
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3054
3220
  : undefined,
3055
- AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
3056
- Id: smithy_client_1.expectString(output.Id),
3057
- Limit: smithy_client_1.limitedParseDouble(output.Limit),
3221
+ AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3222
+ Id: (0, smithy_client_1.expectString)(output.Id),
3223
+ Limit: (0, smithy_client_1.limitedParseDouble)(output.Limit),
3058
3224
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3059
3225
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3060
3226
  : undefined,
3061
3227
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3062
3228
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3063
3229
  : undefined,
3064
- Severity: smithy_client_1.expectString(output.Severity),
3230
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3065
3231
  SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3066
3232
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3067
3233
  : undefined,
3068
- Status: smithy_client_1.expectString(output.Status),
3234
+ SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3235
+ ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3236
+ : undefined,
3237
+ Status: (0, smithy_client_1.expectString)(output.Status),
3069
3238
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3070
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateTime)))
3239
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime)))
3071
3240
  : undefined,
3072
3241
  };
3073
3242
  };
@@ -3076,44 +3245,51 @@ const deserializeAws_restJson1ProactiveAnomalySummary = (output, context) => {
3076
3245
  AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3077
3246
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3078
3247
  : undefined,
3248
+ AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3249
+ ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3250
+ : undefined,
3079
3251
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3080
3252
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3081
3253
  : undefined,
3082
- AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
3083
- Id: smithy_client_1.expectString(output.Id),
3084
- Limit: smithy_client_1.limitedParseDouble(output.Limit),
3254
+ AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3255
+ Id: (0, smithy_client_1.expectString)(output.Id),
3256
+ Limit: (0, smithy_client_1.limitedParseDouble)(output.Limit),
3085
3257
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3086
3258
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3087
3259
  : undefined,
3088
3260
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3089
3261
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3090
3262
  : undefined,
3091
- Severity: smithy_client_1.expectString(output.Severity),
3263
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3092
3264
  SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3093
3265
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3094
3266
  : undefined,
3095
- Status: smithy_client_1.expectString(output.Status),
3267
+ SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3268
+ ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3269
+ : undefined,
3270
+ Status: (0, smithy_client_1.expectString)(output.Status),
3096
3271
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3097
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdateTime)))
3272
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateTime)))
3098
3273
  : undefined,
3099
3274
  };
3100
3275
  };
3101
3276
  const deserializeAws_restJson1ProactiveInsight = (output, context) => {
3102
3277
  return {
3103
- Id: smithy_client_1.expectString(output.Id),
3278
+ Description: (0, smithy_client_1.expectString)(output.Description),
3279
+ Id: (0, smithy_client_1.expectString)(output.Id),
3104
3280
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3105
3281
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3106
3282
  : undefined,
3107
- Name: smithy_client_1.expectString(output.Name),
3283
+ Name: (0, smithy_client_1.expectString)(output.Name),
3108
3284
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3109
3285
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3110
3286
  : undefined,
3111
3287
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3112
3288
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3113
3289
  : undefined,
3114
- Severity: smithy_client_1.expectString(output.Severity),
3115
- SsmOpsItemId: smithy_client_1.expectString(output.SsmOpsItemId),
3116
- Status: smithy_client_1.expectString(output.Status),
3290
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3291
+ SsmOpsItemId: (0, smithy_client_1.expectString)(output.SsmOpsItemId),
3292
+ Status: (0, smithy_client_1.expectString)(output.Status),
3117
3293
  };
3118
3294
  };
3119
3295
  const deserializeAws_restJson1ProactiveInsights = (output, context) => {
@@ -3132,11 +3308,11 @@ const deserializeAws_restJson1ProactiveInsightSummary = (output, context) => {
3132
3308
  AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3133
3309
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
3134
3310
  : undefined,
3135
- Id: smithy_client_1.expectString(output.Id),
3311
+ Id: (0, smithy_client_1.expectString)(output.Id),
3136
3312
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3137
3313
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3138
3314
  : undefined,
3139
- Name: smithy_client_1.expectString(output.Name),
3315
+ Name: (0, smithy_client_1.expectString)(output.Name),
3140
3316
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3141
3317
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3142
3318
  : undefined,
@@ -3146,8 +3322,8 @@ const deserializeAws_restJson1ProactiveInsightSummary = (output, context) => {
3146
3322
  ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3147
3323
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3148
3324
  : undefined,
3149
- Severity: smithy_client_1.expectString(output.Severity),
3150
- Status: smithy_client_1.expectString(output.Status),
3325
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3326
+ Status: (0, smithy_client_1.expectString)(output.Status),
3151
3327
  };
3152
3328
  };
3153
3329
  const deserializeAws_restJson1ProactiveOrganizationInsights = (output, context) => {
@@ -3163,13 +3339,13 @@ const deserializeAws_restJson1ProactiveOrganizationInsights = (output, context)
3163
3339
  };
3164
3340
  const deserializeAws_restJson1ProactiveOrganizationInsightSummary = (output, context) => {
3165
3341
  return {
3166
- AccountId: smithy_client_1.expectString(output.AccountId),
3167
- Id: smithy_client_1.expectString(output.Id),
3342
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3343
+ Id: (0, smithy_client_1.expectString)(output.Id),
3168
3344
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3169
3345
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3170
3346
  : undefined,
3171
- Name: smithy_client_1.expectString(output.Name),
3172
- OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
3347
+ Name: (0, smithy_client_1.expectString)(output.Name),
3348
+ OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId),
3173
3349
  PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3174
3350
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3175
3351
  : undefined,
@@ -3179,8 +3355,8 @@ const deserializeAws_restJson1ProactiveOrganizationInsightSummary = (output, con
3179
3355
  ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3180
3356
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3181
3357
  : undefined,
3182
- Severity: smithy_client_1.expectString(output.Severity),
3183
- Status: smithy_client_1.expectString(output.Status),
3358
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3359
+ Status: (0, smithy_client_1.expectString)(output.Status),
3184
3360
  };
3185
3361
  };
3186
3362
  const deserializeAws_restJson1ReactiveAnomalies = (output, context) => {
@@ -3205,20 +3381,20 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
3205
3381
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3206
3382
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3207
3383
  : undefined,
3208
- AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
3209
- CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
3210
- Description: smithy_client_1.expectString(output.Description),
3211
- Id: smithy_client_1.expectString(output.Id),
3212
- Name: smithy_client_1.expectString(output.Name),
3384
+ AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3385
+ CausalAnomalyId: (0, smithy_client_1.expectString)(output.CausalAnomalyId),
3386
+ Description: (0, smithy_client_1.expectString)(output.Description),
3387
+ Id: (0, smithy_client_1.expectString)(output.Id),
3388
+ Name: (0, smithy_client_1.expectString)(output.Name),
3213
3389
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3214
3390
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3215
3391
  : undefined,
3216
- Severity: smithy_client_1.expectString(output.Severity),
3392
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3217
3393
  SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3218
3394
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3219
3395
  : undefined,
3220
- Status: smithy_client_1.expectString(output.Status),
3221
- Type: smithy_client_1.expectString(output.Type),
3396
+ Status: (0, smithy_client_1.expectString)(output.Status),
3397
+ Type: (0, smithy_client_1.expectString)(output.Type),
3222
3398
  };
3223
3399
  };
3224
3400
  const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
@@ -3232,35 +3408,36 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
3232
3408
  AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3233
3409
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3234
3410
  : undefined,
3235
- AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
3236
- CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
3237
- Description: smithy_client_1.expectString(output.Description),
3238
- Id: smithy_client_1.expectString(output.Id),
3239
- Name: smithy_client_1.expectString(output.Name),
3411
+ AssociatedInsightId: (0, smithy_client_1.expectString)(output.AssociatedInsightId),
3412
+ CausalAnomalyId: (0, smithy_client_1.expectString)(output.CausalAnomalyId),
3413
+ Description: (0, smithy_client_1.expectString)(output.Description),
3414
+ Id: (0, smithy_client_1.expectString)(output.Id),
3415
+ Name: (0, smithy_client_1.expectString)(output.Name),
3240
3416
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3241
3417
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3242
3418
  : undefined,
3243
- Severity: smithy_client_1.expectString(output.Severity),
3419
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3244
3420
  SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3245
3421
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3246
3422
  : undefined,
3247
- Status: smithy_client_1.expectString(output.Status),
3248
- Type: smithy_client_1.expectString(output.Type),
3423
+ Status: (0, smithy_client_1.expectString)(output.Status),
3424
+ Type: (0, smithy_client_1.expectString)(output.Type),
3249
3425
  };
3250
3426
  };
3251
3427
  const deserializeAws_restJson1ReactiveInsight = (output, context) => {
3252
3428
  return {
3253
- Id: smithy_client_1.expectString(output.Id),
3429
+ Description: (0, smithy_client_1.expectString)(output.Description),
3430
+ Id: (0, smithy_client_1.expectString)(output.Id),
3254
3431
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3255
3432
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3256
3433
  : undefined,
3257
- Name: smithy_client_1.expectString(output.Name),
3434
+ Name: (0, smithy_client_1.expectString)(output.Name),
3258
3435
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3259
3436
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3260
3437
  : undefined,
3261
- Severity: smithy_client_1.expectString(output.Severity),
3262
- SsmOpsItemId: smithy_client_1.expectString(output.SsmOpsItemId),
3263
- Status: smithy_client_1.expectString(output.Status),
3438
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3439
+ SsmOpsItemId: (0, smithy_client_1.expectString)(output.SsmOpsItemId),
3440
+ Status: (0, smithy_client_1.expectString)(output.Status),
3264
3441
  };
3265
3442
  };
3266
3443
  const deserializeAws_restJson1ReactiveInsights = (output, context) => {
@@ -3279,19 +3456,19 @@ const deserializeAws_restJson1ReactiveInsightSummary = (output, context) => {
3279
3456
  AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3280
3457
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
3281
3458
  : undefined,
3282
- Id: smithy_client_1.expectString(output.Id),
3459
+ Id: (0, smithy_client_1.expectString)(output.Id),
3283
3460
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3284
3461
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3285
3462
  : undefined,
3286
- Name: smithy_client_1.expectString(output.Name),
3463
+ Name: (0, smithy_client_1.expectString)(output.Name),
3287
3464
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3288
3465
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3289
3466
  : undefined,
3290
3467
  ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3291
3468
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3292
3469
  : undefined,
3293
- Severity: smithy_client_1.expectString(output.Severity),
3294
- Status: smithy_client_1.expectString(output.Status),
3470
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3471
+ Status: (0, smithy_client_1.expectString)(output.Status),
3295
3472
  };
3296
3473
  };
3297
3474
  const deserializeAws_restJson1ReactiveOrganizationInsights = (output, context) => {
@@ -3307,29 +3484,30 @@ const deserializeAws_restJson1ReactiveOrganizationInsights = (output, context) =
3307
3484
  };
3308
3485
  const deserializeAws_restJson1ReactiveOrganizationInsightSummary = (output, context) => {
3309
3486
  return {
3310
- AccountId: smithy_client_1.expectString(output.AccountId),
3311
- Id: smithy_client_1.expectString(output.Id),
3487
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3488
+ Id: (0, smithy_client_1.expectString)(output.Id),
3312
3489
  InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3313
3490
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
3314
3491
  : undefined,
3315
- Name: smithy_client_1.expectString(output.Name),
3316
- OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
3492
+ Name: (0, smithy_client_1.expectString)(output.Name),
3493
+ OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId),
3317
3494
  ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3318
3495
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3319
3496
  : undefined,
3320
3497
  ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3321
3498
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
3322
3499
  : undefined,
3323
- Severity: smithy_client_1.expectString(output.Severity),
3324
- Status: smithy_client_1.expectString(output.Status),
3500
+ Severity: (0, smithy_client_1.expectString)(output.Severity),
3501
+ Status: (0, smithy_client_1.expectString)(output.Status),
3325
3502
  };
3326
3503
  };
3327
3504
  const deserializeAws_restJson1Recommendation = (output, context) => {
3328
3505
  return {
3329
- Description: smithy_client_1.expectString(output.Description),
3330
- Link: smithy_client_1.expectString(output.Link),
3331
- Name: smithy_client_1.expectString(output.Name),
3332
- Reason: smithy_client_1.expectString(output.Reason),
3506
+ Category: (0, smithy_client_1.expectString)(output.Category),
3507
+ Description: (0, smithy_client_1.expectString)(output.Description),
3508
+ Link: (0, smithy_client_1.expectString)(output.Link),
3509
+ Name: (0, smithy_client_1.expectString)(output.Name),
3510
+ Reason: (0, smithy_client_1.expectString)(output.Reason),
3333
3511
  RelatedAnomalies: output.RelatedAnomalies !== undefined && output.RelatedAnomalies !== null
3334
3512
  ? deserializeAws_restJson1RecommendationRelatedAnomalies(output.RelatedAnomalies, context)
3335
3513
  : undefined,
@@ -3351,7 +3529,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = (output, context)
3351
3529
  };
3352
3530
  const deserializeAws_restJson1RecommendationRelatedAnomaly = (output, context) => {
3353
3531
  return {
3354
- AnomalyId: smithy_client_1.expectString(output.AnomalyId),
3532
+ AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
3355
3533
  Resources: output.Resources !== undefined && output.Resources !== null
3356
3534
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
3357
3535
  : undefined,
@@ -3362,8 +3540,8 @@ const deserializeAws_restJson1RecommendationRelatedAnomaly = (output, context) =
3362
3540
  };
3363
3541
  const deserializeAws_restJson1RecommendationRelatedAnomalyResource = (output, context) => {
3364
3542
  return {
3365
- Name: smithy_client_1.expectString(output.Name),
3366
- Type: smithy_client_1.expectString(output.Type),
3543
+ Name: (0, smithy_client_1.expectString)(output.Name),
3544
+ Type: (0, smithy_client_1.expectString)(output.Type),
3367
3545
  };
3368
3546
  };
3369
3547
  const deserializeAws_restJson1RecommendationRelatedAnomalyResources = (output, context) => {
@@ -3386,8 +3564,8 @@ const deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = (output
3386
3564
  };
3387
3565
  const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail = (output, context) => {
3388
3566
  return {
3389
- MetricName: smithy_client_1.expectString(output.MetricName),
3390
- Namespace: smithy_client_1.expectString(output.Namespace),
3567
+ MetricName: (0, smithy_client_1.expectString)(output.MetricName),
3568
+ Namespace: (0, smithy_client_1.expectString)(output.Namespace),
3391
3569
  };
3392
3570
  };
3393
3571
  const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails = (output, context) => {
@@ -3403,7 +3581,7 @@ const deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail
3403
3581
  };
3404
3582
  const deserializeAws_restJson1RecommendationRelatedEvent = (output, context) => {
3405
3583
  return {
3406
- Name: smithy_client_1.expectString(output.Name),
3584
+ Name: (0, smithy_client_1.expectString)(output.Name),
3407
3585
  Resources: output.Resources !== undefined && output.Resources !== null
3408
3586
  ? deserializeAws_restJson1RecommendationRelatedEventResources(output.Resources, context)
3409
3587
  : undefined,
@@ -3411,8 +3589,8 @@ const deserializeAws_restJson1RecommendationRelatedEvent = (output, context) =>
3411
3589
  };
3412
3590
  const deserializeAws_restJson1RecommendationRelatedEventResource = (output, context) => {
3413
3591
  return {
3414
- Name: smithy_client_1.expectString(output.Name),
3415
- Type: smithy_client_1.expectString(output.Type),
3592
+ Name: (0, smithy_client_1.expectString)(output.Name),
3593
+ Type: (0, smithy_client_1.expectString)(output.Type),
3416
3594
  };
3417
3595
  };
3418
3596
  const deserializeAws_restJson1RecommendationRelatedEventResources = (output, context) => {
@@ -3491,7 +3669,7 @@ const deserializeAws_restJson1ServiceHealth = (output, context) => {
3491
3669
  Insight: output.Insight !== undefined && output.Insight !== null
3492
3670
  ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context)
3493
3671
  : undefined,
3494
- ServiceName: smithy_client_1.expectString(output.ServiceName),
3672
+ ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
3495
3673
  };
3496
3674
  };
3497
3675
  const deserializeAws_restJson1ServiceHealths = (output, context) => {
@@ -3507,8 +3685,8 @@ const deserializeAws_restJson1ServiceHealths = (output, context) => {
3507
3685
  };
3508
3686
  const deserializeAws_restJson1ServiceInsightHealth = (output, context) => {
3509
3687
  return {
3510
- OpenProactiveInsights: smithy_client_1.expectInt32(output.OpenProactiveInsights),
3511
- OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
3688
+ OpenProactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenProactiveInsights),
3689
+ OpenReactiveInsights: (0, smithy_client_1.expectInt32)(output.OpenReactiveInsights),
3512
3690
  };
3513
3691
  };
3514
3692
  const deserializeAws_restJson1ServiceIntegrationConfig = (output, context) => {
@@ -3525,17 +3703,17 @@ const deserializeAws_restJson1ServiceNames = (output, context) => {
3525
3703
  if (entry === null) {
3526
3704
  return null;
3527
3705
  }
3528
- return smithy_client_1.expectString(entry);
3706
+ return (0, smithy_client_1.expectString)(entry);
3529
3707
  });
3530
3708
  return retVal;
3531
3709
  };
3532
3710
  const deserializeAws_restJson1ServiceResourceCost = (output, context) => {
3533
3711
  return {
3534
- Cost: smithy_client_1.limitedParseDouble(output.Cost),
3535
- Count: smithy_client_1.expectInt32(output.Count),
3536
- State: smithy_client_1.expectString(output.State),
3537
- Type: smithy_client_1.expectString(output.Type),
3538
- UnitCost: smithy_client_1.limitedParseDouble(output.UnitCost),
3712
+ Cost: (0, smithy_client_1.limitedParseDouble)(output.Cost),
3713
+ Count: (0, smithy_client_1.expectInt32)(output.Count),
3714
+ State: (0, smithy_client_1.expectString)(output.State),
3715
+ Type: (0, smithy_client_1.expectString)(output.Type),
3716
+ UnitCost: (0, smithy_client_1.limitedParseDouble)(output.UnitCost),
3539
3717
  };
3540
3718
  };
3541
3719
  const deserializeAws_restJson1ServiceResourceCosts = (output, context) => {
@@ -3551,7 +3729,7 @@ const deserializeAws_restJson1ServiceResourceCosts = (output, context) => {
3551
3729
  };
3552
3730
  const deserializeAws_restJson1SnsChannelConfig = (output, context) => {
3553
3731
  return {
3554
- TopicArn: smithy_client_1.expectString(output.TopicArn),
3732
+ TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
3555
3733
  };
3556
3734
  };
3557
3735
  const deserializeAws_restJson1StackNames = (output, context) => {
@@ -3561,13 +3739,13 @@ const deserializeAws_restJson1StackNames = (output, context) => {
3561
3739
  if (entry === null) {
3562
3740
  return null;
3563
3741
  }
3564
- return smithy_client_1.expectString(entry);
3742
+ return (0, smithy_client_1.expectString)(entry);
3565
3743
  });
3566
3744
  return retVal;
3567
3745
  };
3568
3746
  const deserializeAws_restJson1TagCollection = (output, context) => {
3569
3747
  return {
3570
- AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
3748
+ AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3571
3749
  TagValues: output.TagValues !== undefined && output.TagValues !== null
3572
3750
  ? deserializeAws_restJson1TagValues(output.TagValues, context)
3573
3751
  : undefined,
@@ -3575,7 +3753,7 @@ const deserializeAws_restJson1TagCollection = (output, context) => {
3575
3753
  };
3576
3754
  const deserializeAws_restJson1TagCollectionFilter = (output, context) => {
3577
3755
  return {
3578
- AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
3756
+ AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3579
3757
  TagValues: output.TagValues !== undefined && output.TagValues !== null
3580
3758
  ? deserializeAws_restJson1TagValues(output.TagValues, context)
3581
3759
  : undefined,
@@ -3605,7 +3783,7 @@ const deserializeAws_restJson1TagCollections = (output, context) => {
3605
3783
  };
3606
3784
  const deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = (output, context) => {
3607
3785
  return {
3608
- AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
3786
+ AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3609
3787
  TagValues: output.TagValues !== undefined && output.TagValues !== null
3610
3788
  ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
3611
3789
  : undefined,
@@ -3624,11 +3802,11 @@ const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = (outp
3624
3802
  };
3625
3803
  const deserializeAws_restJson1TagHealth = (output, context) => {
3626
3804
  return {
3627
- AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
3805
+ AppBoundaryKey: (0, smithy_client_1.expectString)(output.AppBoundaryKey),
3628
3806
  Insight: output.Insight !== undefined && output.Insight !== null
3629
3807
  ? deserializeAws_restJson1InsightHealth(output.Insight, context)
3630
3808
  : undefined,
3631
- TagValue: smithy_client_1.expectString(output.TagValue),
3809
+ TagValue: (0, smithy_client_1.expectString)(output.TagValue),
3632
3810
  };
3633
3811
  };
3634
3812
  const deserializeAws_restJson1TagHealths = (output, context) => {
@@ -3649,15 +3827,15 @@ const deserializeAws_restJson1TagValues = (output, context) => {
3649
3827
  if (entry === null) {
3650
3828
  return null;
3651
3829
  }
3652
- return smithy_client_1.expectString(entry);
3830
+ return (0, smithy_client_1.expectString)(entry);
3653
3831
  });
3654
3832
  return retVal;
3655
3833
  };
3656
3834
  const deserializeAws_restJson1TimestampMetricValuePair = (output, context) => {
3657
3835
  return {
3658
- MetricValue: smithy_client_1.limitedParseDouble(output.MetricValue),
3836
+ MetricValue: (0, smithy_client_1.limitedParseDouble)(output.MetricValue),
3659
3837
  Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
3660
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
3838
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
3661
3839
  : undefined,
3662
3840
  };
3663
3841
  };
@@ -3674,8 +3852,8 @@ const deserializeAws_restJson1TimestampMetricValuePairList = (output, context) =
3674
3852
  };
3675
3853
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
3676
3854
  return {
3677
- Message: smithy_client_1.expectString(output.Message),
3678
- Name: smithy_client_1.expectString(output.Name),
3855
+ Message: (0, smithy_client_1.expectString)(output.Message),
3856
+ Name: (0, smithy_client_1.expectString)(output.Name),
3679
3857
  };
3680
3858
  };
3681
3859
  const deserializeAws_restJson1ValidationExceptionFields = (output, context) => {