@aws-sdk/client-devops-guru 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,8 +15,7 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
15
15
  "content-type": "application/json",
16
16
  };
17
17
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
18
- body = JSON.stringify(__assign({}, (input.Config !== undefined &&
19
- input.Config !== null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) })));
18
+ body = JSON.stringify(__assign({}, (input.Config != null && { Config: serializeAws_restJson1NotificationChannelConfig(input.Config, context) })));
20
19
  return [2, new __HttpRequest({
21
20
  protocol: protocol,
22
21
  hostname: hostname,
@@ -95,8 +94,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
95
94
  "content-type": "application/json",
96
95
  };
97
96
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/accounts/overview";
98
- body = JSON.stringify(__assign(__assign({}, (input.FromTime !== undefined &&
99
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
97
+ body = JSON.stringify(__assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
100
98
  return [2, new __HttpRequest({
101
99
  protocol: protocol,
102
100
  hostname: hostname,
@@ -177,7 +175,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
177
175
  "content-type": "application/json",
178
176
  };
179
177
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
180
- body = JSON.stringify(__assign({}, (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })));
178
+ body = JSON.stringify(__assign({}, (input.InsightId != null && { InsightId: input.InsightId })));
181
179
  return [2, new __HttpRequest({
182
180
  protocol: protocol,
183
181
  hostname: hostname,
@@ -234,9 +232,7 @@ export var serializeAws_restJson1DescribeOrganizationHealthCommand = function (i
234
232
  "content-type": "application/json",
235
233
  };
236
234
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health";
237
- body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
238
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds !== undefined &&
239
- input.OrganizationalUnitIds !== null && {
235
+ body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds != null && {
240
236
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
241
237
  })));
242
238
  return [2, new __HttpRequest({
@@ -262,12 +258,9 @@ export var serializeAws_restJson1DescribeOrganizationOverviewCommand = function
262
258
  "content-type": "application/json",
263
259
  };
264
260
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/overview";
265
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
266
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime !== undefined &&
267
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds !== undefined &&
268
- input.OrganizationalUnitIds !== null && {
261
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds != null && {
269
262
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
270
- })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
263
+ })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
271
264
  return [2, new __HttpRequest({
272
265
  protocol: protocol,
273
266
  hostname: hostname,
@@ -291,12 +284,9 @@ export var serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCom
291
284
  "content-type": "application/json",
292
285
  };
293
286
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health/resource-collection";
294
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
295
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType !== undefined &&
296
- input.OrganizationResourceCollectionType !== null && {
287
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType != null && {
297
288
  OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
298
- })), (input.OrganizationalUnitIds !== undefined &&
299
- input.OrganizationalUnitIds !== null && {
289
+ })), (input.OrganizationalUnitIds != null && {
300
290
  OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
301
291
  })));
302
292
  return [2, new __HttpRequest({
@@ -447,8 +437,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
447
437
  else {
448
438
  throw new Error("No value provided for input HTTP label: InsightId.");
449
439
  }
450
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
451
- input.StartTimeRange !== null && {
440
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
452
441
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
453
442
  })));
454
443
  return [2, new __HttpRequest({
@@ -474,8 +463,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
474
463
  "content-type": "application/json",
475
464
  };
476
465
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
477
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Filters !== undefined &&
478
- input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
466
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Filters != null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
479
467
  return [2, new __HttpRequest({
480
468
  protocol: protocol,
481
469
  hostname: hostname,
@@ -499,8 +487,7 @@ export var serializeAws_restJson1ListInsightsCommand = function (input, context)
499
487
  "content-type": "application/json",
500
488
  };
501
489
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights";
502
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StatusFilter !== undefined &&
503
- input.StatusFilter !== null && {
490
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StatusFilter != null && {
504
491
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
505
492
  })));
506
493
  return [2, new __HttpRequest({
@@ -526,7 +513,7 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
526
513
  "content-type": "application/json",
527
514
  };
528
515
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
529
- body = JSON.stringify(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
516
+ body = JSON.stringify(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })));
530
517
  return [2, new __HttpRequest({
531
518
  protocol: protocol,
532
519
  hostname: hostname,
@@ -550,14 +537,11 @@ export var serializeAws_restJson1ListOrganizationInsightsCommand = function (inp
550
537
  "content-type": "application/json",
551
538
  };
552
539
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights";
553
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
554
- input.AccountIds !== null && {
540
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
555
541
  AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
556
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds !== undefined &&
557
- input.OrganizationalUnitIds !== null && {
542
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds != null && {
558
543
  OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
559
- })), (input.StatusFilter !== undefined &&
560
- input.StatusFilter !== null && {
544
+ })), (input.StatusFilter != null && {
561
545
  StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
562
546
  })));
563
547
  return [2, new __HttpRequest({
@@ -583,7 +567,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
583
567
  "content-type": "application/json",
584
568
  };
585
569
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recommendations";
586
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
570
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.InsightId != null && { InsightId: input.InsightId })), (input.Locale != null && { Locale: input.Locale })), (input.NextToken != null && { NextToken: input.NextToken })));
587
571
  return [2, new __HttpRequest({
588
572
  protocol: protocol,
589
573
  hostname: hostname,
@@ -607,8 +591,7 @@ export var serializeAws_restJson1PutFeedbackCommand = function (input, context)
607
591
  "content-type": "application/json",
608
592
  };
609
593
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
610
- body = JSON.stringify(__assign({}, (input.InsightFeedback !== undefined &&
611
- input.InsightFeedback !== null && {
594
+ body = JSON.stringify(__assign({}, (input.InsightFeedback != null && {
612
595
  InsightFeedback: serializeAws_restJson1InsightFeedback(input.InsightFeedback, context),
613
596
  })));
614
597
  return [2, new __HttpRequest({
@@ -665,11 +648,9 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
665
648
  "content-type": "application/json",
666
649
  };
667
650
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/search";
668
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
669
- input.Filters !== null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
670
- input.StartTimeRange !== null && {
651
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1SearchInsightsFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
671
652
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
672
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
653
+ })), (input.Type != null && { Type: input.Type })));
673
654
  return [2, new __HttpRequest({
674
655
  protocol: protocol,
675
656
  hostname: hostname,
@@ -693,16 +674,13 @@ export var serializeAws_restJson1SearchOrganizationInsightsCommand = function (i
693
674
  "content-type": "application/json",
694
675
  };
695
676
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights/search";
696
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
697
- input.AccountIds !== null && {
677
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
698
678
  AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
699
- })), (input.Filters !== undefined &&
700
- input.Filters !== null && {
679
+ })), (input.Filters != null && {
701
680
  Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
702
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
703
- input.StartTimeRange !== null && {
681
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
704
682
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
705
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
683
+ })), (input.Type != null && { Type: input.Type })));
706
684
  return [2, new __HttpRequest({
707
685
  protocol: protocol,
708
686
  hostname: hostname,
@@ -727,8 +705,7 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
727
705
  "content-type": "application/json",
728
706
  };
729
707
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cost-estimation";
730
- body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ResourceCollection !== undefined &&
731
- input.ResourceCollection !== null && {
708
+ body = JSON.stringify(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ResourceCollection != null && {
732
709
  ResourceCollection: serializeAws_restJson1CostEstimationResourceCollectionFilter(input.ResourceCollection, context),
733
710
  })));
734
711
  return [2, new __HttpRequest({
@@ -754,8 +731,7 @@ export var serializeAws_restJson1UpdateEventSourcesConfigCommand = function (inp
754
731
  "content-type": "application/json",
755
732
  };
756
733
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
757
- body = JSON.stringify(__assign({}, (input.EventSources !== undefined &&
758
- input.EventSources !== null && {
734
+ body = JSON.stringify(__assign({}, (input.EventSources != null && {
759
735
  EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
760
736
  })));
761
737
  return [2, new __HttpRequest({
@@ -781,8 +757,7 @@ export var serializeAws_restJson1UpdateResourceCollectionCommand = function (inp
781
757
  "content-type": "application/json",
782
758
  };
783
759
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resource-collections";
784
- body = JSON.stringify(__assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.ResourceCollection !== undefined &&
785
- input.ResourceCollection !== null && {
760
+ body = JSON.stringify(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.ResourceCollection != null && {
786
761
  ResourceCollection: serializeAws_restJson1UpdateResourceCollectionFilter(input.ResourceCollection, context),
787
762
  })));
788
763
  return [2, new __HttpRequest({
@@ -808,8 +783,7 @@ export var serializeAws_restJson1UpdateServiceIntegrationCommand = function (inp
808
783
  "content-type": "application/json",
809
784
  };
810
785
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/service-integrations";
811
- body = JSON.stringify(__assign({}, (input.ServiceIntegration !== undefined &&
812
- input.ServiceIntegration !== null && {
786
+ body = JSON.stringify(__assign({}, (input.ServiceIntegration != null && {
813
787
  ServiceIntegration: serializeAws_restJson1UpdateServiceIntegrationConfig(input.ServiceIntegration, context),
814
788
  })));
815
789
  return [2, new __HttpRequest({
@@ -3140,24 +3114,20 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
3140
3114
  });
3141
3115
  };
3142
3116
  var serializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (input, context) {
3143
- return __assign({}, (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
3117
+ return __assign({}, (input.Status != null && { Status: input.Status }));
3144
3118
  };
3145
3119
  var serializeAws_restJson1CloudFormationCollection = function (input, context) {
3146
- return __assign({}, (input.StackNames !== undefined &&
3147
- input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
3120
+ return __assign({}, (input.StackNames != null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
3148
3121
  };
3149
3122
  var serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = function (input, context) {
3150
- return __assign({}, (input.StackNames !== undefined &&
3151
- input.StackNames !== null && {
3123
+ return __assign({}, (input.StackNames != null && {
3152
3124
  StackNames: serializeAws_restJson1CostEstimationStackNames(input.StackNames, context),
3153
3125
  }));
3154
3126
  };
3155
3127
  var serializeAws_restJson1CostEstimationResourceCollectionFilter = function (input, context) {
3156
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3157
- input.CloudFormation !== null && {
3128
+ return __assign(__assign({}, (input.CloudFormation != null && {
3158
3129
  CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
3159
- })), (input.Tags !== undefined &&
3160
- input.Tags !== null && {
3130
+ })), (input.Tags != null && {
3161
3131
  Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
3162
3132
  }));
3163
3133
  };
@@ -3182,21 +3152,18 @@ var serializeAws_restJson1CostEstimationTagValues = function (input, context) {
3182
3152
  });
3183
3153
  };
3184
3154
  var serializeAws_restJson1EndTimeRange = function (input, context) {
3185
- return __assign(__assign({}, (input.FromTime !== undefined &&
3186
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3155
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3187
3156
  };
3188
3157
  var serializeAws_restJson1EventSourcesConfig = function (input, context) {
3189
- return __assign({}, (input.AmazonCodeGuruProfiler !== undefined &&
3190
- input.AmazonCodeGuruProfiler !== null && {
3158
+ return __assign({}, (input.AmazonCodeGuruProfiler != null && {
3191
3159
  AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
3192
3160
  }));
3193
3161
  };
3194
3162
  var serializeAws_restJson1EventTimeRange = function (input, context) {
3195
- return __assign(__assign({}, (input.FromTime !== undefined &&
3196
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3163
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3197
3164
  };
3198
3165
  var serializeAws_restJson1InsightFeedback = function (input, context) {
3199
- return __assign(__assign({}, (input.Feedback !== undefined && input.Feedback !== null && { Feedback: input.Feedback })), (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
3166
+ return __assign(__assign({}, (input.Feedback != null && { Feedback: input.Feedback })), (input.Id != null && { Id: input.Id }));
3200
3167
  };
3201
3168
  var serializeAws_restJson1InsightSeverities = function (input, context) {
3202
3169
  return input
@@ -3219,11 +3186,9 @@ var serializeAws_restJson1InsightStatuses = function (input, context) {
3219
3186
  });
3220
3187
  };
3221
3188
  var serializeAws_restJson1ListEventsFilters = function (input, context) {
3222
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource !== undefined && input.DataSource !== null && { DataSource: input.DataSource })), (input.EventClass !== undefined && input.EventClass !== null && { EventClass: input.EventClass })), (input.EventSource !== undefined && input.EventSource !== null && { EventSource: input.EventSource })), (input.EventTimeRange !== undefined &&
3223
- input.EventTimeRange !== null && {
3189
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource != null && { DataSource: input.DataSource })), (input.EventClass != null && { EventClass: input.EventClass })), (input.EventSource != null && { EventSource: input.EventSource })), (input.EventTimeRange != null && {
3224
3190
  EventTimeRange: serializeAws_restJson1EventTimeRange(input.EventTimeRange, context),
3225
- })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.ResourceCollection !== undefined &&
3226
- input.ResourceCollection !== null && {
3191
+ })), (input.InsightId != null && { InsightId: input.InsightId })), (input.ResourceCollection != null && {
3227
3192
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3228
3193
  }));
3229
3194
  };
@@ -3238,17 +3203,17 @@ var serializeAws_restJson1ListInsightsAccountIdList = function (input, context)
3238
3203
  });
3239
3204
  };
3240
3205
  var serializeAws_restJson1ListInsightsAnyStatusFilter = function (input, context) {
3241
- return __assign(__assign({}, (input.StartTimeRange !== undefined &&
3242
- input.StartTimeRange !== null && {
3206
+ return __assign(__assign({}, (input.StartTimeRange != null && {
3243
3207
  StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
3244
- })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3208
+ })), (input.Type != null && { Type: input.Type }));
3245
3209
  };
3246
3210
  var serializeAws_restJson1ListInsightsClosedStatusFilter = function (input, context) {
3247
- return __assign(__assign({}, (input.EndTimeRange !== undefined &&
3248
- input.EndTimeRange !== null && { EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3211
+ return __assign(__assign({}, (input.EndTimeRange != null && {
3212
+ EndTimeRange: serializeAws_restJson1EndTimeRange(input.EndTimeRange, context),
3213
+ })), (input.Type != null && { Type: input.Type }));
3249
3214
  };
3250
3215
  var serializeAws_restJson1ListInsightsOngoingStatusFilter = function (input, context) {
3251
- return __assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3216
+ return __assign({}, (input.Type != null && { Type: input.Type }));
3252
3217
  };
3253
3218
  var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input, context) {
3254
3219
  return input
@@ -3261,19 +3226,17 @@ var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input
3261
3226
  });
3262
3227
  };
3263
3228
  var serializeAws_restJson1ListInsightsStatusFilter = function (input, context) {
3264
- return __assign(__assign(__assign({}, (input.Any !== undefined &&
3265
- input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed !== undefined &&
3266
- input.Closed !== null && { Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context) })), (input.Ongoing !== undefined &&
3267
- input.Ongoing !== null && {
3229
+ return __assign(__assign(__assign({}, (input.Any != null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed != null && {
3230
+ Closed: serializeAws_restJson1ListInsightsClosedStatusFilter(input.Closed, context),
3231
+ })), (input.Ongoing != null && {
3268
3232
  Ongoing: serializeAws_restJson1ListInsightsOngoingStatusFilter(input.Ongoing, context),
3269
3233
  }));
3270
3234
  };
3271
3235
  var serializeAws_restJson1NotificationChannelConfig = function (input, context) {
3272
- return __assign({}, (input.Sns !== undefined &&
3273
- input.Sns !== null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }));
3236
+ return __assign({}, (input.Sns != null && { Sns: serializeAws_restJson1SnsChannelConfig(input.Sns, context) }));
3274
3237
  };
3275
3238
  var serializeAws_restJson1OpsCenterIntegrationConfig = function (input, context) {
3276
- return __assign({}, (input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }));
3239
+ return __assign({}, (input.OptInStatus != null && { OptInStatus: input.OptInStatus }));
3277
3240
  };
3278
3241
  var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
3279
3242
  return input
@@ -3286,11 +3249,9 @@ var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
3286
3249
  });
3287
3250
  };
3288
3251
  var serializeAws_restJson1ResourceCollection = function (input, context) {
3289
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3290
- input.CloudFormation !== null && {
3252
+ return __assign(__assign({}, (input.CloudFormation != null && {
3291
3253
  CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
3292
- })), (input.Tags !== undefined &&
3293
- input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
3254
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
3294
3255
  };
3295
3256
  var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context) {
3296
3257
  return input
@@ -3303,30 +3264,23 @@ var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context
3303
3264
  });
3304
3265
  };
3305
3266
  var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
3306
- return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
3307
- input.ResourceCollection !== null && {
3267
+ return __assign(__assign(__assign(__assign({}, (input.ResourceCollection != null && {
3308
3268
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3309
- })), (input.ServiceCollection !== undefined &&
3310
- input.ServiceCollection !== null && {
3269
+ })), (input.ServiceCollection != null && {
3311
3270
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3312
- })), (input.Severities !== undefined &&
3313
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
3314
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3271
+ })), (input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3315
3272
  };
3316
3273
  var serializeAws_restJson1SearchOrganizationInsightsFilters = function (input, context) {
3317
- return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
3318
- input.ResourceCollection !== null && {
3274
+ return __assign(__assign(__assign(__assign({}, (input.ResourceCollection != null && {
3319
3275
  ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
3320
- })), (input.ServiceCollection !== undefined &&
3321
- input.ServiceCollection !== null && {
3276
+ })), (input.ServiceCollection != null && {
3322
3277
  ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
3323
- })), (input.Severities !== undefined &&
3324
- input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
3325
- input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3278
+ })), (input.Severities != null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses != null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
3326
3279
  };
3327
3280
  var serializeAws_restJson1ServiceCollection = function (input, context) {
3328
- return __assign({}, (input.ServiceNames !== undefined &&
3329
- input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }));
3281
+ return __assign({}, (input.ServiceNames != null && {
3282
+ ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context),
3283
+ }));
3330
3284
  };
3331
3285
  var serializeAws_restJson1ServiceNames = function (input, context) {
3332
3286
  return input
@@ -3339,7 +3293,7 @@ var serializeAws_restJson1ServiceNames = function (input, context) {
3339
3293
  });
3340
3294
  };
3341
3295
  var serializeAws_restJson1SnsChannelConfig = function (input, context) {
3342
- return __assign({}, (input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }));
3296
+ return __assign({}, (input.TopicArn != null && { TopicArn: input.TopicArn }));
3343
3297
  };
3344
3298
  var serializeAws_restJson1StackNames = function (input, context) {
3345
3299
  return input
@@ -3352,13 +3306,10 @@ var serializeAws_restJson1StackNames = function (input, context) {
3352
3306
  });
3353
3307
  };
3354
3308
  var serializeAws_restJson1StartTimeRange = function (input, context) {
3355
- return __assign(__assign({}, (input.FromTime !== undefined &&
3356
- input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3309
+ return __assign(__assign({}, (input.FromTime != null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime != null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
3357
3310
  };
3358
3311
  var serializeAws_restJson1TagCollection = function (input, context) {
3359
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3360
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3361
- input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
3312
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
3362
3313
  };
3363
3314
  var serializeAws_restJson1TagCollections = function (input, context) {
3364
3315
  return input
@@ -3371,9 +3322,7 @@ var serializeAws_restJson1TagCollections = function (input, context) {
3371
3322
  });
3372
3323
  };
3373
3324
  var serializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (input, context) {
3374
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3375
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3376
- input.TagValues !== null && {
3325
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && {
3377
3326
  TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
3378
3327
  }));
3379
3328
  };
@@ -3398,19 +3347,15 @@ var serializeAws_restJson1TagValues = function (input, context) {
3398
3347
  });
3399
3348
  };
3400
3349
  var serializeAws_restJson1UpdateCloudFormationCollectionFilter = function (input, context) {
3401
- return __assign({}, (input.StackNames !== undefined &&
3402
- input.StackNames !== null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
3350
+ return __assign({}, (input.StackNames != null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
3403
3351
  };
3404
3352
  var serializeAws_restJson1UpdateResourceCollectionFilter = function (input, context) {
3405
- return __assign(__assign({}, (input.CloudFormation !== undefined &&
3406
- input.CloudFormation !== null && {
3353
+ return __assign(__assign({}, (input.CloudFormation != null && {
3407
3354
  CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
3408
- })), (input.Tags !== undefined &&
3409
- input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
3355
+ })), (input.Tags != null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
3410
3356
  };
3411
3357
  var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, context) {
3412
- return __assign({}, (input.OpsCenter !== undefined &&
3413
- input.OpsCenter !== null && {
3358
+ return __assign({}, (input.OpsCenter != null && {
3414
3359
  OpsCenter: serializeAws_restJson1OpsCenterIntegrationConfig(input.OpsCenter, context),
3415
3360
  }));
3416
3361
  };
@@ -3425,9 +3370,7 @@ var serializeAws_restJson1UpdateStackNames = function (input, context) {
3425
3370
  });
3426
3371
  };
3427
3372
  var serializeAws_restJson1UpdateTagCollectionFilter = function (input, context) {
3428
- return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
3429
- input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
3430
- input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
3373
+ return __assign(__assign({}, (input.AppBoundaryKey != null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues != null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
3431
3374
  };
3432
3375
  var serializeAws_restJson1UpdateTagCollectionFilters = function (input, context) {
3433
3376
  return input
@@ -3452,9 +3395,7 @@ var serializeAws_restJson1UpdateTagValues = function (input, context) {
3452
3395
  var deserializeAws_restJson1AccountHealth = function (output, context) {
3453
3396
  return {
3454
3397
  AccountId: __expectString(output.AccountId),
3455
- Insight: output.Insight !== undefined && output.Insight !== null
3456
- ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
3457
- : undefined,
3398
+ Insight: output.Insight != null ? deserializeAws_restJson1AccountInsightHealth(output.Insight, context) : undefined,
3458
3399
  };
3459
3400
  };
3460
3401
  var deserializeAws_restJson1AccountHealths = function (output, context) {
@@ -3481,12 +3422,8 @@ var deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (output
3481
3422
  };
3482
3423
  var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
3483
3424
  return {
3484
- CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
3485
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CloseTime)))
3486
- : undefined,
3487
- OpenTime: output.OpenTime !== undefined && output.OpenTime !== null
3488
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OpenTime)))
3489
- : undefined,
3425
+ CloseTime: output.CloseTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CloseTime))) : undefined,
3426
+ OpenTime: output.OpenTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OpenTime))) : undefined,
3490
3427
  };
3491
3428
  };
3492
3429
  var deserializeAws_restJson1AnomalyResource = function (output, context) {
@@ -3508,10 +3445,10 @@ var deserializeAws_restJson1AnomalyResources = function (output, context) {
3508
3445
  };
3509
3446
  var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
3510
3447
  return {
3511
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
3448
+ CloudWatchMetrics: output.CloudWatchMetrics != null
3512
3449
  ? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
3513
3450
  : undefined,
3514
- PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
3451
+ PerformanceInsightsMetrics: output.PerformanceInsightsMetrics != null
3515
3452
  ? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
3516
3453
  : undefined,
3517
3454
  };
@@ -3525,12 +3462,8 @@ var deserializeAws_restJson1AnomalySourceMetadata = function (output, context) {
3525
3462
  };
3526
3463
  var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
3527
3464
  return {
3528
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3529
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3530
- : undefined,
3531
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3532
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3533
- : undefined,
3465
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3466
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3534
3467
  };
3535
3468
  };
3536
3469
  var deserializeAws_restJson1AssociatedResourceArns = function (output, context) {
@@ -3557,30 +3490,24 @@ var deserializeAws_restJson1Channels = function (output, context) {
3557
3490
  };
3558
3491
  var deserializeAws_restJson1CloudFormationCollection = function (output, context) {
3559
3492
  return {
3560
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3561
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
3562
- : undefined,
3493
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
3563
3494
  };
3564
3495
  };
3565
3496
  var deserializeAws_restJson1CloudFormationCollectionFilter = function (output, context) {
3566
3497
  return {
3567
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3568
- ? deserializeAws_restJson1StackNames(output.StackNames, context)
3569
- : undefined,
3498
+ StackNames: output.StackNames != null ? deserializeAws_restJson1StackNames(output.StackNames, context) : undefined,
3570
3499
  };
3571
3500
  };
3572
3501
  var deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter = function (output, context) {
3573
3502
  return {
3574
- StackNames: output.StackNames !== undefined && output.StackNames !== null
3503
+ StackNames: output.StackNames != null
3575
3504
  ? deserializeAws_restJson1CostEstimationStackNames(output.StackNames, context)
3576
3505
  : undefined,
3577
3506
  };
3578
3507
  };
3579
3508
  var deserializeAws_restJson1CloudFormationHealth = function (output, context) {
3580
3509
  return {
3581
- Insight: output.Insight !== undefined && output.Insight !== null
3582
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
3583
- : undefined,
3510
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
3584
3511
  StackName: __expectString(output.StackName),
3585
3512
  };
3586
3513
  };
@@ -3598,17 +3525,17 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
3598
3525
  var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
3599
3526
  return {
3600
3527
  StatusCode: __expectString(output.StatusCode),
3601
- TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
3528
+ TimestampMetricValuePairList: output.TimestampMetricValuePairList != null
3602
3529
  ? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
3603
3530
  : undefined,
3604
3531
  };
3605
3532
  };
3606
3533
  var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context) {
3607
3534
  return {
3608
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3535
+ Dimensions: output.Dimensions != null
3609
3536
  ? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
3610
3537
  : undefined,
3611
- MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
3538
+ MetricDataSummary: output.MetricDataSummary != null
3612
3539
  ? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
3613
3540
  : undefined,
3614
3541
  MetricName: __expectString(output.MetricName),
@@ -3648,10 +3575,10 @@ var deserializeAws_restJson1CloudWatchMetricsDimensions = function (output, cont
3648
3575
  };
3649
3576
  var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (output, context) {
3650
3577
  return {
3651
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
3578
+ CloudFormation: output.CloudFormation != null
3652
3579
  ? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
3653
3580
  : undefined,
3654
- Tags: output.Tags !== undefined && output.Tags !== null
3581
+ Tags: output.Tags != null
3655
3582
  ? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
3656
3583
  : undefined,
3657
3584
  };
@@ -3680,12 +3607,8 @@ var deserializeAws_restJson1CostEstimationTagValues = function (output, context)
3680
3607
  };
3681
3608
  var deserializeAws_restJson1CostEstimationTimeRange = function (output, context) {
3682
3609
  return {
3683
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3684
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3685
- : undefined,
3686
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3687
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3688
- : undefined,
3610
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3611
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3689
3612
  };
3690
3613
  };
3691
3614
  var deserializeAws_restJson1Event = function (output, context) {
@@ -3695,15 +3618,11 @@ var deserializeAws_restJson1Event = function (output, context) {
3695
3618
  EventSource: __expectString(output.EventSource),
3696
3619
  Id: __expectString(output.Id),
3697
3620
  Name: __expectString(output.Name),
3698
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3621
+ ResourceCollection: output.ResourceCollection != null
3699
3622
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3700
3623
  : undefined,
3701
- Resources: output.Resources !== undefined && output.Resources !== null
3702
- ? deserializeAws_restJson1EventResources(output.Resources, context)
3703
- : undefined,
3704
- Time: output.Time !== undefined && output.Time !== null
3705
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Time)))
3706
- : undefined,
3624
+ Resources: output.Resources != null ? deserializeAws_restJson1EventResources(output.Resources, context) : undefined,
3625
+ Time: output.Time != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Time))) : undefined,
3707
3626
  };
3708
3627
  };
3709
3628
  var deserializeAws_restJson1EventResource = function (output, context) {
@@ -3737,7 +3656,7 @@ var deserializeAws_restJson1Events = function (output, context) {
3737
3656
  };
3738
3657
  var deserializeAws_restJson1EventSourcesConfig = function (output, context) {
3739
3658
  return {
3740
- AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
3659
+ AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler != null
3741
3660
  ? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
3742
3661
  : undefined,
3743
3662
  };
@@ -3757,27 +3676,19 @@ var deserializeAws_restJson1InsightHealth = function (output, context) {
3757
3676
  };
3758
3677
  var deserializeAws_restJson1InsightTimeRange = function (output, context) {
3759
3678
  return {
3760
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3761
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3762
- : undefined,
3763
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3764
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3765
- : undefined,
3679
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3680
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3766
3681
  };
3767
3682
  };
3768
3683
  var deserializeAws_restJson1NotificationChannel = function (output, context) {
3769
3684
  return {
3770
- Config: output.Config !== undefined && output.Config !== null
3771
- ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context)
3772
- : undefined,
3685
+ Config: output.Config != null ? deserializeAws_restJson1NotificationChannelConfig(output.Config, context) : undefined,
3773
3686
  Id: __expectString(output.Id),
3774
3687
  };
3775
3688
  };
3776
3689
  var deserializeAws_restJson1NotificationChannelConfig = function (output, context) {
3777
3690
  return {
3778
- Sns: output.Sns !== undefined && output.Sns !== null
3779
- ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context)
3780
- : undefined,
3691
+ Sns: output.Sns != null ? deserializeAws_restJson1SnsChannelConfig(output.Sns, context) : undefined,
3781
3692
  };
3782
3693
  };
3783
3694
  var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
@@ -3787,7 +3698,7 @@ var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
3787
3698
  };
3788
3699
  var deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = function (output, context) {
3789
3700
  return {
3790
- Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
3701
+ Dimensions: output.Dimensions != null
3791
3702
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
3792
3703
  : undefined,
3793
3704
  Group: __expectString(output.Group),
@@ -3817,10 +3728,10 @@ var deserializeAws_restJson1PerformanceInsightsMetricFilterMap = function (outpu
3817
3728
  };
3818
3729
  var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, context) {
3819
3730
  return {
3820
- Filter: output.Filter !== undefined && output.Filter !== null
3731
+ Filter: output.Filter != null
3821
3732
  ? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
3822
3733
  : undefined,
3823
- GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
3734
+ GroupBy: output.GroupBy != null
3824
3735
  ? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
3825
3736
  : undefined,
3826
3737
  Metric: __expectString(output.Metric),
@@ -3829,16 +3740,16 @@ var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, c
3829
3740
  var deserializeAws_restJson1PerformanceInsightsMetricsDetail = function (output, context) {
3830
3741
  return {
3831
3742
  MetricDisplayName: __expectString(output.MetricDisplayName),
3832
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3743
+ MetricQuery: output.MetricQuery != null
3833
3744
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3834
3745
  : undefined,
3835
- ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
3746
+ ReferenceData: output.ReferenceData != null
3836
3747
  ? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
3837
3748
  : undefined,
3838
- StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
3749
+ StatsAtAnomaly: output.StatsAtAnomaly != null
3839
3750
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
3840
3751
  : undefined,
3841
- StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
3752
+ StatsAtBaseline: output.StatsAtBaseline != null
3842
3753
  ? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
3843
3754
  : undefined,
3844
3755
  Unit: __expectString(output.Unit),
@@ -3857,17 +3768,17 @@ var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output
3857
3768
  };
3858
3769
  var deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = function (output, context) {
3859
3770
  return {
3860
- ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
3771
+ ReferenceMetric: output.ReferenceMetric != null
3861
3772
  ? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
3862
3773
  : undefined,
3863
- ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
3774
+ ReferenceScalar: output.ReferenceScalar != null
3864
3775
  ? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
3865
3776
  : undefined,
3866
3777
  };
3867
3778
  };
3868
3779
  var deserializeAws_restJson1PerformanceInsightsReferenceData = function (output, context) {
3869
3780
  return {
3870
- ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
3781
+ ComparisonValues: output.ComparisonValues != null
3871
3782
  ? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
3872
3783
  : undefined,
3873
3784
  Name: __expectString(output.Name),
@@ -3886,7 +3797,7 @@ var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (out
3886
3797
  };
3887
3798
  var deserializeAws_restJson1PerformanceInsightsReferenceMetric = function (output, context) {
3888
3799
  return {
3889
- MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
3800
+ MetricQuery: output.MetricQuery != null
3890
3801
  ? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
3891
3802
  : undefined,
3892
3803
  };
@@ -3915,12 +3826,8 @@ var deserializeAws_restJson1PerformanceInsightsStats = function (output, context
3915
3826
  };
3916
3827
  var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
3917
3828
  return {
3918
- EndTime: output.EndTime !== undefined && output.EndTime !== null
3919
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
3920
- : undefined,
3921
- StartTime: output.StartTime !== undefined && output.StartTime !== null
3922
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
3923
- : undefined,
3829
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
3830
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3924
3831
  };
3925
3832
  };
3926
3833
  var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
@@ -3936,82 +3843,78 @@ var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
3936
3843
  };
3937
3844
  var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
3938
3845
  return {
3939
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3846
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3940
3847
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3941
3848
  : undefined,
3942
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3849
+ AnomalyResources: output.AnomalyResources != null
3943
3850
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3944
3851
  : undefined,
3945
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3852
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3946
3853
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3947
3854
  : undefined,
3948
3855
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
3949
3856
  Id: __expectString(output.Id),
3950
3857
  Limit: __limitedParseDouble(output.Limit),
3951
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3858
+ PredictionTimeRange: output.PredictionTimeRange != null
3952
3859
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3953
3860
  : undefined,
3954
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3861
+ ResourceCollection: output.ResourceCollection != null
3955
3862
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3956
3863
  : undefined,
3957
3864
  Severity: __expectString(output.Severity),
3958
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3865
+ SourceDetails: output.SourceDetails != null
3959
3866
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3960
3867
  : undefined,
3961
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3868
+ SourceMetadata: output.SourceMetadata != null
3962
3869
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3963
3870
  : undefined,
3964
3871
  Status: __expectString(output.Status),
3965
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3966
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
3967
- : undefined,
3872
+ UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime))) : undefined,
3968
3873
  };
3969
3874
  };
3970
3875
  var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context) {
3971
3876
  return {
3972
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
3877
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
3973
3878
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
3974
3879
  : undefined,
3975
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
3880
+ AnomalyResources: output.AnomalyResources != null
3976
3881
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
3977
3882
  : undefined,
3978
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
3883
+ AnomalyTimeRange: output.AnomalyTimeRange != null
3979
3884
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
3980
3885
  : undefined,
3981
3886
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
3982
3887
  Id: __expectString(output.Id),
3983
3888
  Limit: __limitedParseDouble(output.Limit),
3984
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3889
+ PredictionTimeRange: output.PredictionTimeRange != null
3985
3890
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
3986
3891
  : undefined,
3987
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3892
+ ResourceCollection: output.ResourceCollection != null
3988
3893
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
3989
3894
  : undefined,
3990
3895
  Severity: __expectString(output.Severity),
3991
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
3896
+ SourceDetails: output.SourceDetails != null
3992
3897
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
3993
3898
  : undefined,
3994
- SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3899
+ SourceMetadata: output.SourceMetadata != null
3995
3900
  ? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
3996
3901
  : undefined,
3997
3902
  Status: __expectString(output.Status),
3998
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
3999
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
4000
- : undefined,
3903
+ UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime))) : undefined,
4001
3904
  };
4002
3905
  };
4003
3906
  var deserializeAws_restJson1ProactiveInsight = function (output, context) {
4004
3907
  return {
4005
3908
  Description: __expectString(output.Description),
4006
3909
  Id: __expectString(output.Id),
4007
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3910
+ InsightTimeRange: output.InsightTimeRange != null
4008
3911
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4009
3912
  : undefined,
4010
3913
  Name: __expectString(output.Name),
4011
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3914
+ PredictionTimeRange: output.PredictionTimeRange != null
4012
3915
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4013
3916
  : undefined,
4014
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3917
+ ResourceCollection: output.ResourceCollection != null
4015
3918
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4016
3919
  : undefined,
4017
3920
  Severity: __expectString(output.Severity),
@@ -4032,21 +3935,21 @@ var deserializeAws_restJson1ProactiveInsights = function (output, context) {
4032
3935
  };
4033
3936
  var deserializeAws_restJson1ProactiveInsightSummary = function (output, context) {
4034
3937
  return {
4035
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
3938
+ AssociatedResourceArns: output.AssociatedResourceArns != null
4036
3939
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4037
3940
  : undefined,
4038
3941
  Id: __expectString(output.Id),
4039
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3942
+ InsightTimeRange: output.InsightTimeRange != null
4040
3943
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4041
3944
  : undefined,
4042
3945
  Name: __expectString(output.Name),
4043
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3946
+ PredictionTimeRange: output.PredictionTimeRange != null
4044
3947
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4045
3948
  : undefined,
4046
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3949
+ ResourceCollection: output.ResourceCollection != null
4047
3950
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4048
3951
  : undefined,
4049
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3952
+ ServiceCollection: output.ServiceCollection != null
4050
3953
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4051
3954
  : undefined,
4052
3955
  Severity: __expectString(output.Severity),
@@ -4068,18 +3971,18 @@ var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (outp
4068
3971
  return {
4069
3972
  AccountId: __expectString(output.AccountId),
4070
3973
  Id: __expectString(output.Id),
4071
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
3974
+ InsightTimeRange: output.InsightTimeRange != null
4072
3975
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4073
3976
  : undefined,
4074
3977
  Name: __expectString(output.Name),
4075
3978
  OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
4076
- PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
3979
+ PredictionTimeRange: output.PredictionTimeRange != null
4077
3980
  ? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
4078
3981
  : undefined,
4079
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
3982
+ ResourceCollection: output.ResourceCollection != null
4080
3983
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4081
3984
  : undefined,
4082
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
3985
+ ServiceCollection: output.ServiceCollection != null
4083
3986
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4084
3987
  : undefined,
4085
3988
  Severity: __expectString(output.Severity),
@@ -4099,13 +4002,13 @@ var deserializeAws_restJson1ReactiveAnomalies = function (output, context) {
4099
4002
  };
4100
4003
  var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4101
4004
  return {
4102
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
4005
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
4103
4006
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
4104
4007
  : undefined,
4105
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4008
+ AnomalyResources: output.AnomalyResources != null
4106
4009
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4107
4010
  : undefined,
4108
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
4011
+ AnomalyTimeRange: output.AnomalyTimeRange != null
4109
4012
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
4110
4013
  : undefined,
4111
4014
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
@@ -4113,11 +4016,11 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4113
4016
  Description: __expectString(output.Description),
4114
4017
  Id: __expectString(output.Id),
4115
4018
  Name: __expectString(output.Name),
4116
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4019
+ ResourceCollection: output.ResourceCollection != null
4117
4020
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4118
4021
  : undefined,
4119
4022
  Severity: __expectString(output.Severity),
4120
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4023
+ SourceDetails: output.SourceDetails != null
4121
4024
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
4122
4025
  : undefined,
4123
4026
  Status: __expectString(output.Status),
@@ -4126,13 +4029,13 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
4126
4029
  };
4127
4030
  var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context) {
4128
4031
  return {
4129
- AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
4032
+ AnomalyReportedTimeRange: output.AnomalyReportedTimeRange != null
4130
4033
  ? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
4131
4034
  : undefined,
4132
- AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
4035
+ AnomalyResources: output.AnomalyResources != null
4133
4036
  ? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
4134
4037
  : undefined,
4135
- AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
4038
+ AnomalyTimeRange: output.AnomalyTimeRange != null
4136
4039
  ? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
4137
4040
  : undefined,
4138
4041
  AssociatedInsightId: __expectString(output.AssociatedInsightId),
@@ -4140,11 +4043,11 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
4140
4043
  Description: __expectString(output.Description),
4141
4044
  Id: __expectString(output.Id),
4142
4045
  Name: __expectString(output.Name),
4143
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4046
+ ResourceCollection: output.ResourceCollection != null
4144
4047
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4145
4048
  : undefined,
4146
4049
  Severity: __expectString(output.Severity),
4147
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4050
+ SourceDetails: output.SourceDetails != null
4148
4051
  ? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
4149
4052
  : undefined,
4150
4053
  Status: __expectString(output.Status),
@@ -4155,11 +4058,11 @@ var deserializeAws_restJson1ReactiveInsight = function (output, context) {
4155
4058
  return {
4156
4059
  Description: __expectString(output.Description),
4157
4060
  Id: __expectString(output.Id),
4158
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4061
+ InsightTimeRange: output.InsightTimeRange != null
4159
4062
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4160
4063
  : undefined,
4161
4064
  Name: __expectString(output.Name),
4162
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4065
+ ResourceCollection: output.ResourceCollection != null
4163
4066
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4164
4067
  : undefined,
4165
4068
  Severity: __expectString(output.Severity),
@@ -4180,18 +4083,18 @@ var deserializeAws_restJson1ReactiveInsights = function (output, context) {
4180
4083
  };
4181
4084
  var deserializeAws_restJson1ReactiveInsightSummary = function (output, context) {
4182
4085
  return {
4183
- AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
4086
+ AssociatedResourceArns: output.AssociatedResourceArns != null
4184
4087
  ? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
4185
4088
  : undefined,
4186
4089
  Id: __expectString(output.Id),
4187
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4090
+ InsightTimeRange: output.InsightTimeRange != null
4188
4091
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4189
4092
  : undefined,
4190
4093
  Name: __expectString(output.Name),
4191
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4094
+ ResourceCollection: output.ResourceCollection != null
4192
4095
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4193
4096
  : undefined,
4194
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4097
+ ServiceCollection: output.ServiceCollection != null
4195
4098
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4196
4099
  : undefined,
4197
4100
  Severity: __expectString(output.Severity),
@@ -4213,15 +4116,15 @@ var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (outpu
4213
4116
  return {
4214
4117
  AccountId: __expectString(output.AccountId),
4215
4118
  Id: __expectString(output.Id),
4216
- InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
4119
+ InsightTimeRange: output.InsightTimeRange != null
4217
4120
  ? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
4218
4121
  : undefined,
4219
4122
  Name: __expectString(output.Name),
4220
4123
  OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
4221
- ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
4124
+ ResourceCollection: output.ResourceCollection != null
4222
4125
  ? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
4223
4126
  : undefined,
4224
- ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
4127
+ ServiceCollection: output.ServiceCollection != null
4225
4128
  ? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
4226
4129
  : undefined,
4227
4130
  Severity: __expectString(output.Severity),
@@ -4235,10 +4138,10 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
4235
4138
  Link: __expectString(output.Link),
4236
4139
  Name: __expectString(output.Name),
4237
4140
  Reason: __expectString(output.Reason),
4238
- RelatedAnomalies: output.RelatedAnomalies !== undefined && output.RelatedAnomalies !== null
4141
+ RelatedAnomalies: output.RelatedAnomalies != null
4239
4142
  ? deserializeAws_restJson1RecommendationRelatedAnomalies(output.RelatedAnomalies, context)
4240
4143
  : undefined,
4241
- RelatedEvents: output.RelatedEvents !== undefined && output.RelatedEvents !== null
4144
+ RelatedEvents: output.RelatedEvents != null
4242
4145
  ? deserializeAws_restJson1RecommendationRelatedEvents(output.RelatedEvents, context)
4243
4146
  : undefined,
4244
4147
  };
@@ -4257,10 +4160,10 @@ var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, c
4257
4160
  var deserializeAws_restJson1RecommendationRelatedAnomaly = function (output, context) {
4258
4161
  return {
4259
4162
  AnomalyId: __expectString(output.AnomalyId),
4260
- Resources: output.Resources !== undefined && output.Resources !== null
4163
+ Resources: output.Resources != null
4261
4164
  ? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
4262
4165
  : undefined,
4263
- SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
4166
+ SourceDetails: output.SourceDetails != null
4264
4167
  ? deserializeAws_restJson1RelatedAnomalySourceDetails(output.SourceDetails, context)
4265
4168
  : undefined,
4266
4169
  };
@@ -4284,7 +4187,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalyResources = function (ou
4284
4187
  };
4285
4188
  var deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = function (output, context) {
4286
4189
  return {
4287
- CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
4190
+ CloudWatchMetrics: output.CloudWatchMetrics != null
4288
4191
  ? deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails(output.CloudWatchMetrics, context)
4289
4192
  : undefined,
4290
4193
  };
@@ -4309,7 +4212,7 @@ var deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails
4309
4212
  var deserializeAws_restJson1RecommendationRelatedEvent = function (output, context) {
4310
4213
  return {
4311
4214
  Name: __expectString(output.Name),
4312
- Resources: output.Resources !== undefined && output.Resources !== null
4215
+ Resources: output.Resources != null
4313
4216
  ? deserializeAws_restJson1RecommendationRelatedEventResources(output.Resources, context)
4314
4217
  : undefined,
4315
4218
  };
@@ -4366,36 +4269,28 @@ var deserializeAws_restJson1RelatedAnomalySourceDetails = function (output, cont
4366
4269
  };
4367
4270
  var deserializeAws_restJson1ResourceCollection = function (output, context) {
4368
4271
  return {
4369
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
4272
+ CloudFormation: output.CloudFormation != null
4370
4273
  ? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
4371
4274
  : undefined,
4372
- Tags: output.Tags !== undefined && output.Tags !== null
4373
- ? deserializeAws_restJson1TagCollections(output.Tags, context)
4374
- : undefined,
4275
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollections(output.Tags, context) : undefined,
4375
4276
  };
4376
4277
  };
4377
4278
  var deserializeAws_restJson1ResourceCollectionFilter = function (output, context) {
4378
4279
  return {
4379
- CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
4280
+ CloudFormation: output.CloudFormation != null
4380
4281
  ? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
4381
4282
  : undefined,
4382
- Tags: output.Tags !== undefined && output.Tags !== null
4383
- ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
4384
- : undefined,
4283
+ Tags: output.Tags != null ? deserializeAws_restJson1TagCollectionFilters(output.Tags, context) : undefined,
4385
4284
  };
4386
4285
  };
4387
4286
  var deserializeAws_restJson1ServiceCollection = function (output, context) {
4388
4287
  return {
4389
- ServiceNames: output.ServiceNames !== undefined && output.ServiceNames !== null
4390
- ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context)
4391
- : undefined,
4288
+ ServiceNames: output.ServiceNames != null ? deserializeAws_restJson1ServiceNames(output.ServiceNames, context) : undefined,
4392
4289
  };
4393
4290
  };
4394
4291
  var deserializeAws_restJson1ServiceHealth = function (output, context) {
4395
4292
  return {
4396
- Insight: output.Insight !== undefined && output.Insight !== null
4397
- ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context)
4398
- : undefined,
4293
+ Insight: output.Insight != null ? deserializeAws_restJson1ServiceInsightHealth(output.Insight, context) : undefined,
4399
4294
  ServiceName: __expectString(output.ServiceName),
4400
4295
  };
4401
4296
  };
@@ -4418,9 +4313,7 @@ var deserializeAws_restJson1ServiceInsightHealth = function (output, context) {
4418
4313
  };
4419
4314
  var deserializeAws_restJson1ServiceIntegrationConfig = function (output, context) {
4420
4315
  return {
4421
- OpsCenter: output.OpsCenter !== undefined && output.OpsCenter !== null
4422
- ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context)
4423
- : undefined,
4316
+ OpsCenter: output.OpsCenter != null ? deserializeAws_restJson1OpsCenterIntegration(output.OpsCenter, context) : undefined,
4424
4317
  };
4425
4318
  };
4426
4319
  var deserializeAws_restJson1ServiceNames = function (output, context) {
@@ -4473,17 +4366,13 @@ var deserializeAws_restJson1StackNames = function (output, context) {
4473
4366
  var deserializeAws_restJson1TagCollection = function (output, context) {
4474
4367
  return {
4475
4368
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4476
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4477
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
4478
- : undefined,
4369
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
4479
4370
  };
4480
4371
  };
4481
4372
  var deserializeAws_restJson1TagCollectionFilter = function (output, context) {
4482
4373
  return {
4483
4374
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4484
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4485
- ? deserializeAws_restJson1TagValues(output.TagValues, context)
4486
- : undefined,
4375
+ TagValues: output.TagValues != null ? deserializeAws_restJson1TagValues(output.TagValues, context) : undefined,
4487
4376
  };
4488
4377
  };
4489
4378
  var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
@@ -4511,9 +4400,7 @@ var deserializeAws_restJson1TagCollections = function (output, context) {
4511
4400
  var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (output, context) {
4512
4401
  return {
4513
4402
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4514
- TagValues: output.TagValues !== undefined && output.TagValues !== null
4515
- ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
4516
- : undefined,
4403
+ TagValues: output.TagValues != null ? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context) : undefined,
4517
4404
  };
4518
4405
  };
4519
4406
  var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (output, context) {
@@ -4530,9 +4417,7 @@ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = functio
4530
4417
  var deserializeAws_restJson1TagHealth = function (output, context) {
4531
4418
  return {
4532
4419
  AppBoundaryKey: __expectString(output.AppBoundaryKey),
4533
- Insight: output.Insight !== undefined && output.Insight !== null
4534
- ? deserializeAws_restJson1InsightHealth(output.Insight, context)
4535
- : undefined,
4420
+ Insight: output.Insight != null ? deserializeAws_restJson1InsightHealth(output.Insight, context) : undefined,
4536
4421
  TagValue: __expectString(output.TagValue),
4537
4422
  };
4538
4423
  };
@@ -4561,9 +4446,7 @@ var deserializeAws_restJson1TagValues = function (output, context) {
4561
4446
  var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
4562
4447
  return {
4563
4448
  MetricValue: __limitedParseDouble(output.MetricValue),
4564
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
4565
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
4566
- : undefined,
4449
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
4567
4450
  };
4568
4451
  };
4569
4452
  var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
@@ -4632,6 +4515,9 @@ var loadRestJsonErrorCode = function (output, data) {
4632
4515
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4633
4516
  var sanitizeErrorCode = function (rawValue) {
4634
4517
  var cleanValue = rawValue;
4518
+ if (typeof cleanValue === "number") {
4519
+ cleanValue = cleanValue.toString();
4520
+ }
4635
4521
  if (cleanValue.indexOf(":") >= 0) {
4636
4522
  cleanValue = cleanValue.split(":")[0];
4637
4523
  }