@aws-sdk/client-sesv2 3.28.0 → 3.32.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.
@@ -2868,7 +2868,7 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommand = async (out
2868
2868
  DeliverabilityTestStatus: undefined,
2869
2869
  ReportId: undefined,
2870
2870
  };
2871
- const data = await parseBody(output.body, context);
2871
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2872
2872
  if (data.DeliverabilityTestStatus !== undefined && data.DeliverabilityTestStatus !== null) {
2873
2873
  contents.DeliverabilityTestStatus = smithy_client_1.expectString(data.DeliverabilityTestStatus);
2874
2874
  }
@@ -2985,7 +2985,7 @@ const deserializeAws_restJson1CreateEmailIdentityCommand = async (output, contex
2985
2985
  IdentityType: undefined,
2986
2986
  VerifiedForSendingStatus: undefined,
2987
2987
  };
2988
- const data = await parseBody(output.body, context);
2988
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2989
2989
  if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
2990
2990
  contents.DkimAttributes = deserializeAws_restJson1DkimAttributes(data.DkimAttributes, context);
2991
2991
  }
@@ -3223,7 +3223,7 @@ const deserializeAws_restJson1CreateImportJobCommand = async (output, context) =
3223
3223
  $metadata: deserializeMetadata(output),
3224
3224
  JobId: undefined,
3225
3225
  };
3226
- const data = await parseBody(output.body, context);
3226
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3227
3227
  if (data.JobId !== undefined && data.JobId !== null) {
3228
3228
  contents.JobId = smithy_client_1.expectString(data.JobId);
3229
3229
  }
@@ -3925,7 +3925,7 @@ const deserializeAws_restJson1GetAccountCommand = async (output, context) => {
3925
3925
  SendingEnabled: undefined,
3926
3926
  SuppressionAttributes: undefined,
3927
3927
  };
3928
- const data = await parseBody(output.body, context);
3928
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3929
3929
  if (data.DedicatedIpAutoWarmupEnabled !== undefined && data.DedicatedIpAutoWarmupEnabled !== null) {
3930
3930
  contents.DedicatedIpAutoWarmupEnabled = smithy_client_1.expectBoolean(data.DedicatedIpAutoWarmupEnabled);
3931
3931
  }
@@ -3999,7 +3999,7 @@ const deserializeAws_restJson1GetBlacklistReportsCommand = async (output, contex
3999
3999
  $metadata: deserializeMetadata(output),
4000
4000
  BlacklistReport: undefined,
4001
4001
  };
4002
- const data = await parseBody(output.body, context);
4002
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4003
4003
  if (data.BlacklistReport !== undefined && data.BlacklistReport !== null) {
4004
4004
  contents.BlacklistReport = deserializeAws_restJson1BlacklistReport(data.BlacklistReport, context);
4005
4005
  }
@@ -4069,7 +4069,7 @@ const deserializeAws_restJson1GetConfigurationSetCommand = async (output, contex
4069
4069
  Tags: undefined,
4070
4070
  TrackingOptions: undefined,
4071
4071
  };
4072
- const data = await parseBody(output.body, context);
4072
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4073
4073
  if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
4074
4074
  contents.ConfigurationSetName = smithy_client_1.expectString(data.ConfigurationSetName);
4075
4075
  }
@@ -4151,7 +4151,7 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = asyn
4151
4151
  $metadata: deserializeMetadata(output),
4152
4152
  EventDestinations: undefined,
4153
4153
  };
4154
- const data = await parseBody(output.body, context);
4154
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4155
4155
  if (data.EventDestinations !== undefined && data.EventDestinations !== null) {
4156
4156
  contents.EventDestinations = deserializeAws_restJson1EventDestinations(data.EventDestinations, context);
4157
4157
  }
@@ -4222,7 +4222,7 @@ const deserializeAws_restJson1GetContactCommand = async (output, context) => {
4222
4222
  TopicPreferences: undefined,
4223
4223
  UnsubscribeAll: undefined,
4224
4224
  };
4225
- const data = await parseBody(output.body, context);
4225
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4226
4226
  if (data.AttributesData !== undefined && data.AttributesData !== null) {
4227
4227
  contents.AttributesData = smithy_client_1.expectString(data.AttributesData);
4228
4228
  }
@@ -4230,13 +4230,13 @@ const deserializeAws_restJson1GetContactCommand = async (output, context) => {
4230
4230
  contents.ContactListName = smithy_client_1.expectString(data.ContactListName);
4231
4231
  }
4232
4232
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
4233
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
4233
+ contents.CreatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreatedTimestamp)));
4234
4234
  }
4235
4235
  if (data.EmailAddress !== undefined && data.EmailAddress !== null) {
4236
4236
  contents.EmailAddress = smithy_client_1.expectString(data.EmailAddress);
4237
4237
  }
4238
4238
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4239
- contents.LastUpdatedTimestamp = new Date(Math.round(data.LastUpdatedTimestamp * 1000));
4239
+ contents.LastUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastUpdatedTimestamp)));
4240
4240
  }
4241
4241
  if (data.TopicDefaultPreferences !== undefined && data.TopicDefaultPreferences !== null) {
4242
4242
  contents.TopicDefaultPreferences = deserializeAws_restJson1TopicPreferenceList(data.TopicDefaultPreferences, context);
@@ -4312,18 +4312,18 @@ const deserializeAws_restJson1GetContactListCommand = async (output, context) =>
4312
4312
  Tags: undefined,
4313
4313
  Topics: undefined,
4314
4314
  };
4315
- const data = await parseBody(output.body, context);
4315
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4316
4316
  if (data.ContactListName !== undefined && data.ContactListName !== null) {
4317
4317
  contents.ContactListName = smithy_client_1.expectString(data.ContactListName);
4318
4318
  }
4319
4319
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
4320
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
4320
+ contents.CreatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreatedTimestamp)));
4321
4321
  }
4322
4322
  if (data.Description !== undefined && data.Description !== null) {
4323
4323
  contents.Description = smithy_client_1.expectString(data.Description);
4324
4324
  }
4325
4325
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
4326
- contents.LastUpdatedTimestamp = new Date(Math.round(data.LastUpdatedTimestamp * 1000));
4326
+ contents.LastUpdatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastUpdatedTimestamp)));
4327
4327
  }
4328
4328
  if (data.Tags !== undefined && data.Tags !== null) {
4329
4329
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
@@ -4396,7 +4396,7 @@ const deserializeAws_restJson1GetCustomVerificationEmailTemplateCommand = async
4396
4396
  TemplateName: undefined,
4397
4397
  TemplateSubject: undefined,
4398
4398
  };
4399
- const data = await parseBody(output.body, context);
4399
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4400
4400
  if (data.FailureRedirectionURL !== undefined && data.FailureRedirectionURL !== null) {
4401
4401
  contents.FailureRedirectionURL = smithy_client_1.expectString(data.FailureRedirectionURL);
4402
4402
  }
@@ -4475,7 +4475,7 @@ const deserializeAws_restJson1GetDedicatedIpCommand = async (output, context) =>
4475
4475
  $metadata: deserializeMetadata(output),
4476
4476
  DedicatedIp: undefined,
4477
4477
  };
4478
- const data = await parseBody(output.body, context);
4478
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4479
4479
  if (data.DedicatedIp !== undefined && data.DedicatedIp !== null) {
4480
4480
  contents.DedicatedIp = deserializeAws_restJson1DedicatedIp(data.DedicatedIp, context);
4481
4481
  }
@@ -4540,7 +4540,7 @@ const deserializeAws_restJson1GetDedicatedIpsCommand = async (output, context) =
4540
4540
  DedicatedIps: undefined,
4541
4541
  NextToken: undefined,
4542
4542
  };
4543
- const data = await parseBody(output.body, context);
4543
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4544
4544
  if (data.DedicatedIps !== undefined && data.DedicatedIps !== null) {
4545
4545
  contents.DedicatedIps = deserializeAws_restJson1DedicatedIpList(data.DedicatedIps, context);
4546
4546
  }
@@ -4611,7 +4611,7 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (
4611
4611
  PendingExpirationSubscribedDomains: undefined,
4612
4612
  SubscriptionExpiryDate: undefined,
4613
4613
  };
4614
- const data = await parseBody(output.body, context);
4614
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4615
4615
  if (data.AccountStatus !== undefined && data.AccountStatus !== null) {
4616
4616
  contents.AccountStatus = smithy_client_1.expectString(data.AccountStatus);
4617
4617
  }
@@ -4625,7 +4625,7 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (
4625
4625
  contents.PendingExpirationSubscribedDomains = deserializeAws_restJson1DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
4626
4626
  }
4627
4627
  if (data.SubscriptionExpiryDate !== undefined && data.SubscriptionExpiryDate !== null) {
4628
- contents.SubscriptionExpiryDate = new Date(Math.round(data.SubscriptionExpiryDate * 1000));
4628
+ contents.SubscriptionExpiryDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.SubscriptionExpiryDate)));
4629
4629
  }
4630
4630
  return Promise.resolve(contents);
4631
4631
  };
@@ -4691,7 +4691,7 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommand = async (output
4691
4691
  OverallPlacement: undefined,
4692
4692
  Tags: undefined,
4693
4693
  };
4694
- const data = await parseBody(output.body, context);
4694
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4695
4695
  if (data.DeliverabilityTestReport !== undefined && data.DeliverabilityTestReport !== null) {
4696
4696
  contents.DeliverabilityTestReport = deserializeAws_restJson1DeliverabilityTestReport(data.DeliverabilityTestReport, context);
4697
4697
  }
@@ -4767,7 +4767,7 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = async (ou
4767
4767
  $metadata: deserializeMetadata(output),
4768
4768
  DomainDeliverabilityCampaign: undefined,
4769
4769
  };
4770
- const data = await parseBody(output.body, context);
4770
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4771
4771
  if (data.DomainDeliverabilityCampaign !== undefined && data.DomainDeliverabilityCampaign !== null) {
4772
4772
  contents.DomainDeliverabilityCampaign = deserializeAws_restJson1DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
4773
4773
  }
@@ -4832,7 +4832,7 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommand = async (output,
4832
4832
  DailyVolumes: undefined,
4833
4833
  OverallVolume: undefined,
4834
4834
  };
4835
- const data = await parseBody(output.body, context);
4835
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4836
4836
  if (data.DailyVolumes !== undefined && data.DailyVolumes !== null) {
4837
4837
  contents.DailyVolumes = deserializeAws_restJson1DailyVolumes(data.DailyVolumes, context);
4838
4838
  }
@@ -4906,7 +4906,7 @@ const deserializeAws_restJson1GetEmailIdentityCommand = async (output, context)
4906
4906
  Tags: undefined,
4907
4907
  VerifiedForSendingStatus: undefined,
4908
4908
  };
4909
- const data = await parseBody(output.body, context);
4909
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4910
4910
  if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
4911
4911
  contents.ConfigurationSetName = smithy_client_1.expectString(data.ConfigurationSetName);
4912
4912
  }
@@ -4991,7 +4991,7 @@ const deserializeAws_restJson1GetEmailIdentityPoliciesCommand = async (output, c
4991
4991
  $metadata: deserializeMetadata(output),
4992
4992
  Policies: undefined,
4993
4993
  };
4994
- const data = await parseBody(output.body, context);
4994
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4995
4995
  if (data.Policies !== undefined && data.Policies !== null) {
4996
4996
  contents.Policies = deserializeAws_restJson1PolicyMap(data.Policies, context);
4997
4997
  }
@@ -5056,7 +5056,7 @@ const deserializeAws_restJson1GetEmailTemplateCommand = async (output, context)
5056
5056
  TemplateContent: undefined,
5057
5057
  TemplateName: undefined,
5058
5058
  };
5059
- const data = await parseBody(output.body, context);
5059
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5060
5060
  if (data.TemplateContent !== undefined && data.TemplateContent !== null) {
5061
5061
  contents.TemplateContent = deserializeAws_restJson1EmailTemplateContent(data.TemplateContent, context);
5062
5062
  }
@@ -5131,15 +5131,15 @@ const deserializeAws_restJson1GetImportJobCommand = async (output, context) => {
5131
5131
  JobStatus: undefined,
5132
5132
  ProcessedRecordsCount: undefined,
5133
5133
  };
5134
- const data = await parseBody(output.body, context);
5134
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5135
5135
  if (data.CompletedTimestamp !== undefined && data.CompletedTimestamp !== null) {
5136
- contents.CompletedTimestamp = new Date(Math.round(data.CompletedTimestamp * 1000));
5136
+ contents.CompletedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CompletedTimestamp)));
5137
5137
  }
5138
5138
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
5139
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
5139
+ contents.CreatedTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreatedTimestamp)));
5140
5140
  }
5141
5141
  if (data.FailedRecordsCount !== undefined && data.FailedRecordsCount !== null) {
5142
- contents.FailedRecordsCount = smithy_client_1.expectInt(data.FailedRecordsCount);
5142
+ contents.FailedRecordsCount = smithy_client_1.expectInt32(data.FailedRecordsCount);
5143
5143
  }
5144
5144
  if (data.FailureInfo !== undefined && data.FailureInfo !== null) {
5145
5145
  contents.FailureInfo = deserializeAws_restJson1FailureInfo(data.FailureInfo, context);
@@ -5157,7 +5157,7 @@ const deserializeAws_restJson1GetImportJobCommand = async (output, context) => {
5157
5157
  contents.JobStatus = smithy_client_1.expectString(data.JobStatus);
5158
5158
  }
5159
5159
  if (data.ProcessedRecordsCount !== undefined && data.ProcessedRecordsCount !== null) {
5160
- contents.ProcessedRecordsCount = smithy_client_1.expectInt(data.ProcessedRecordsCount);
5160
+ contents.ProcessedRecordsCount = smithy_client_1.expectInt32(data.ProcessedRecordsCount);
5161
5161
  }
5162
5162
  return Promise.resolve(contents);
5163
5163
  };
@@ -5219,7 +5219,7 @@ const deserializeAws_restJson1GetSuppressedDestinationCommand = async (output, c
5219
5219
  $metadata: deserializeMetadata(output),
5220
5220
  SuppressedDestination: undefined,
5221
5221
  };
5222
- const data = await parseBody(output.body, context);
5222
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5223
5223
  if (data.SuppressedDestination !== undefined && data.SuppressedDestination !== null) {
5224
5224
  contents.SuppressedDestination = deserializeAws_restJson1SuppressedDestination(data.SuppressedDestination, context);
5225
5225
  }
@@ -5284,7 +5284,7 @@ const deserializeAws_restJson1ListConfigurationSetsCommand = async (output, cont
5284
5284
  ConfigurationSets: undefined,
5285
5285
  NextToken: undefined,
5286
5286
  };
5287
- const data = await parseBody(output.body, context);
5287
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5288
5288
  if (data.ConfigurationSets !== undefined && data.ConfigurationSets !== null) {
5289
5289
  contents.ConfigurationSets = deserializeAws_restJson1ConfigurationSetNameList(data.ConfigurationSets, context);
5290
5290
  }
@@ -5344,7 +5344,7 @@ const deserializeAws_restJson1ListContactListsCommand = async (output, context)
5344
5344
  ContactLists: undefined,
5345
5345
  NextToken: undefined,
5346
5346
  };
5347
- const data = await parseBody(output.body, context);
5347
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5348
5348
  if (data.ContactLists !== undefined && data.ContactLists !== null) {
5349
5349
  contents.ContactLists = deserializeAws_restJson1ListOfContactLists(data.ContactLists, context);
5350
5350
  }
@@ -5404,7 +5404,7 @@ const deserializeAws_restJson1ListContactsCommand = async (output, context) => {
5404
5404
  Contacts: undefined,
5405
5405
  NextToken: undefined,
5406
5406
  };
5407
- const data = await parseBody(output.body, context);
5407
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5408
5408
  if (data.Contacts !== undefined && data.Contacts !== null) {
5409
5409
  contents.Contacts = deserializeAws_restJson1ListOfContacts(data.Contacts, context);
5410
5410
  }
@@ -5472,7 +5472,7 @@ const deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = asyn
5472
5472
  CustomVerificationEmailTemplates: undefined,
5473
5473
  NextToken: undefined,
5474
5474
  };
5475
- const data = await parseBody(output.body, context);
5475
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5476
5476
  if (data.CustomVerificationEmailTemplates !== undefined && data.CustomVerificationEmailTemplates !== null) {
5477
5477
  contents.CustomVerificationEmailTemplates = deserializeAws_restJson1CustomVerificationEmailTemplatesList(data.CustomVerificationEmailTemplates, context);
5478
5478
  }
@@ -5532,7 +5532,7 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommand = async (output, conte
5532
5532
  DedicatedIpPools: undefined,
5533
5533
  NextToken: undefined,
5534
5534
  };
5535
- const data = await parseBody(output.body, context);
5535
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5536
5536
  if (data.DedicatedIpPools !== undefined && data.DedicatedIpPools !== null) {
5537
5537
  contents.DedicatedIpPools = deserializeAws_restJson1ListOfDedicatedIpPools(data.DedicatedIpPools, context);
5538
5538
  }
@@ -5592,7 +5592,7 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommand = async (outp
5592
5592
  DeliverabilityTestReports: undefined,
5593
5593
  NextToken: undefined,
5594
5594
  };
5595
- const data = await parseBody(output.body, context);
5595
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5596
5596
  if (data.DeliverabilityTestReports !== undefined && data.DeliverabilityTestReports !== null) {
5597
5597
  contents.DeliverabilityTestReports = deserializeAws_restJson1DeliverabilityTestReports(data.DeliverabilityTestReports, context);
5598
5598
  }
@@ -5660,7 +5660,7 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (
5660
5660
  DomainDeliverabilityCampaigns: undefined,
5661
5661
  NextToken: undefined,
5662
5662
  };
5663
- const data = await parseBody(output.body, context);
5663
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5664
5664
  if (data.DomainDeliverabilityCampaigns !== undefined && data.DomainDeliverabilityCampaigns !== null) {
5665
5665
  contents.DomainDeliverabilityCampaigns = deserializeAws_restJson1DomainDeliverabilityCampaignList(data.DomainDeliverabilityCampaigns, context);
5666
5666
  }
@@ -5728,7 +5728,7 @@ const deserializeAws_restJson1ListEmailIdentitiesCommand = async (output, contex
5728
5728
  EmailIdentities: undefined,
5729
5729
  NextToken: undefined,
5730
5730
  };
5731
- const data = await parseBody(output.body, context);
5731
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5732
5732
  if (data.EmailIdentities !== undefined && data.EmailIdentities !== null) {
5733
5733
  contents.EmailIdentities = deserializeAws_restJson1IdentityInfoList(data.EmailIdentities, context);
5734
5734
  }
@@ -5788,7 +5788,7 @@ const deserializeAws_restJson1ListEmailTemplatesCommand = async (output, context
5788
5788
  NextToken: undefined,
5789
5789
  TemplatesMetadata: undefined,
5790
5790
  };
5791
- const data = await parseBody(output.body, context);
5791
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5792
5792
  if (data.NextToken !== undefined && data.NextToken !== null) {
5793
5793
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
5794
5794
  }
@@ -5848,7 +5848,7 @@ const deserializeAws_restJson1ListImportJobsCommand = async (output, context) =>
5848
5848
  ImportJobs: undefined,
5849
5849
  NextToken: undefined,
5850
5850
  };
5851
- const data = await parseBody(output.body, context);
5851
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5852
5852
  if (data.ImportJobs !== undefined && data.ImportJobs !== null) {
5853
5853
  contents.ImportJobs = deserializeAws_restJson1ImportJobSummaryList(data.ImportJobs, context);
5854
5854
  }
@@ -5908,7 +5908,7 @@ const deserializeAws_restJson1ListSuppressedDestinationsCommand = async (output,
5908
5908
  NextToken: undefined,
5909
5909
  SuppressedDestinationSummaries: undefined,
5910
5910
  };
5911
- const data = await parseBody(output.body, context);
5911
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5912
5912
  if (data.NextToken !== undefined && data.NextToken !== null) {
5913
5913
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
5914
5914
  }
@@ -5975,7 +5975,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
5975
5975
  $metadata: deserializeMetadata(output),
5976
5976
  Tags: undefined,
5977
5977
  };
5978
- const data = await parseBody(output.body, context);
5978
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5979
5979
  if (data.Tags !== undefined && data.Tags !== null) {
5980
5980
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
5981
5981
  }
@@ -6872,7 +6872,7 @@ const deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = asy
6872
6872
  DkimStatus: undefined,
6873
6873
  DkimTokens: undefined,
6874
6874
  };
6875
- const data = await parseBody(output.body, context);
6875
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6876
6876
  if (data.DkimStatus !== undefined && data.DkimStatus !== null) {
6877
6877
  contents.DkimStatus = smithy_client_1.expectString(data.DkimStatus);
6878
6878
  }
@@ -7111,7 +7111,7 @@ const deserializeAws_restJson1SendBulkEmailCommand = async (output, context) =>
7111
7111
  $metadata: deserializeMetadata(output),
7112
7112
  BulkEmailEntryResults: undefined,
7113
7113
  };
7114
- const data = await parseBody(output.body, context);
7114
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7115
7115
  if (data.BulkEmailEntryResults !== undefined && data.BulkEmailEntryResults !== null) {
7116
7116
  contents.BulkEmailEntryResults = deserializeAws_restJson1BulkEmailEntryResultList(data.BulkEmailEntryResults, context);
7117
7117
  }
@@ -7215,7 +7215,7 @@ const deserializeAws_restJson1SendCustomVerificationEmailCommand = async (output
7215
7215
  $metadata: deserializeMetadata(output),
7216
7216
  MessageId: undefined,
7217
7217
  };
7218
- const data = await parseBody(output.body, context);
7218
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7219
7219
  if (data.MessageId !== undefined && data.MessageId !== null) {
7220
7220
  contents.MessageId = smithy_client_1.expectString(data.MessageId);
7221
7221
  }
@@ -7311,7 +7311,7 @@ const deserializeAws_restJson1SendEmailCommand = async (output, context) => {
7311
7311
  $metadata: deserializeMetadata(output),
7312
7312
  MessageId: undefined,
7313
7313
  };
7314
- const data = await parseBody(output.body, context);
7314
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7315
7315
  if (data.MessageId !== undefined && data.MessageId !== null) {
7316
7316
  contents.MessageId = smithy_client_1.expectString(data.MessageId);
7317
7317
  }
@@ -7483,7 +7483,7 @@ const deserializeAws_restJson1TestRenderEmailTemplateCommand = async (output, co
7483
7483
  $metadata: deserializeMetadata(output),
7484
7484
  RenderedTemplate: undefined,
7485
7485
  };
7486
- const data = await parseBody(output.body, context);
7486
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7487
7487
  if (data.RenderedTemplate !== undefined && data.RenderedTemplate !== null) {
7488
7488
  contents.RenderedTemplate = smithy_client_1.expectString(data.RenderedTemplate);
7489
7489
  }
@@ -8603,7 +8603,7 @@ const deserializeAws_restJson1BlacklistEntry = (output, context) => {
8603
8603
  return {
8604
8604
  Description: smithy_client_1.expectString(output.Description),
8605
8605
  ListingTime: output.ListingTime !== undefined && output.ListingTime !== null
8606
- ? new Date(Math.round(output.ListingTime * 1000))
8606
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ListingTime)))
8607
8607
  : undefined,
8608
8608
  RblName: smithy_client_1.expectString(output.RblName),
8609
8609
  };
@@ -8674,7 +8674,7 @@ const deserializeAws_restJson1Contact = (output, context) => {
8674
8674
  return {
8675
8675
  EmailAddress: smithy_client_1.expectString(output.EmailAddress),
8676
8676
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
8677
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
8677
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
8678
8678
  : undefined,
8679
8679
  TopicDefaultPreferences: output.TopicDefaultPreferences !== undefined && output.TopicDefaultPreferences !== null
8680
8680
  ? deserializeAws_restJson1TopicPreferenceList(output.TopicDefaultPreferences, context)
@@ -8689,7 +8689,7 @@ const deserializeAws_restJson1ContactList = (output, context) => {
8689
8689
  return {
8690
8690
  ContactListName: smithy_client_1.expectString(output.ContactListName),
8691
8691
  LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
8692
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
8692
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTimestamp)))
8693
8693
  : undefined,
8694
8694
  };
8695
8695
  };
@@ -8724,7 +8724,7 @@ const deserializeAws_restJson1DailyVolume = (output, context) => {
8724
8724
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
8725
8725
  : undefined,
8726
8726
  StartDate: output.StartDate !== undefined && output.StartDate !== null
8727
- ? new Date(Math.round(output.StartDate * 1000))
8727
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartDate)))
8728
8728
  : undefined,
8729
8729
  VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
8730
8730
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
@@ -8745,7 +8745,7 @@ const deserializeAws_restJson1DedicatedIp = (output, context) => {
8745
8745
  return {
8746
8746
  Ip: smithy_client_1.expectString(output.Ip),
8747
8747
  PoolName: smithy_client_1.expectString(output.PoolName),
8748
- WarmupPercentage: smithy_client_1.expectInt(output.WarmupPercentage),
8748
+ WarmupPercentage: smithy_client_1.expectInt32(output.WarmupPercentage),
8749
8749
  WarmupStatus: smithy_client_1.expectString(output.WarmupStatus),
8750
8750
  };
8751
8751
  };
@@ -8762,7 +8762,7 @@ const deserializeAws_restJson1DedicatedIpList = (output, context) => {
8762
8762
  const deserializeAws_restJson1DeliverabilityTestReport = (output, context) => {
8763
8763
  return {
8764
8764
  CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
8765
- ? new Date(Math.round(output.CreateDate * 1000))
8765
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateDate)))
8766
8766
  : undefined,
8767
8767
  DeliverabilityTestStatus: smithy_client_1.expectString(output.DeliverabilityTestStatus),
8768
8768
  FromEmailAddress: smithy_client_1.expectString(output.FromEmailAddress),
@@ -8810,26 +8810,26 @@ const deserializeAws_restJson1DnsTokenList = (output, context) => {
8810
8810
  const deserializeAws_restJson1DomainDeliverabilityCampaign = (output, context) => {
8811
8811
  return {
8812
8812
  CampaignId: smithy_client_1.expectString(output.CampaignId),
8813
- DeleteRate: smithy_client_1.limitedParseFloat(output.DeleteRate),
8813
+ DeleteRate: smithy_client_1.limitedParseDouble(output.DeleteRate),
8814
8814
  Esps: output.Esps !== undefined && output.Esps !== null
8815
8815
  ? deserializeAws_restJson1Esps(output.Esps, context)
8816
8816
  : undefined,
8817
8817
  FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
8818
- ? new Date(Math.round(output.FirstSeenDateTime * 1000))
8818
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.FirstSeenDateTime)))
8819
8819
  : undefined,
8820
8820
  FromAddress: smithy_client_1.expectString(output.FromAddress),
8821
8821
  ImageUrl: smithy_client_1.expectString(output.ImageUrl),
8822
- InboxCount: smithy_client_1.expectInt(output.InboxCount),
8822
+ InboxCount: smithy_client_1.expectLong(output.InboxCount),
8823
8823
  LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
8824
- ? new Date(Math.round(output.LastSeenDateTime * 1000))
8824
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastSeenDateTime)))
8825
8825
  : undefined,
8826
- ProjectedVolume: smithy_client_1.expectInt(output.ProjectedVolume),
8827
- ReadDeleteRate: smithy_client_1.limitedParseFloat(output.ReadDeleteRate),
8828
- ReadRate: smithy_client_1.limitedParseFloat(output.ReadRate),
8826
+ ProjectedVolume: smithy_client_1.expectLong(output.ProjectedVolume),
8827
+ ReadDeleteRate: smithy_client_1.limitedParseDouble(output.ReadDeleteRate),
8828
+ ReadRate: smithy_client_1.limitedParseDouble(output.ReadRate),
8829
8829
  SendingIps: output.SendingIps !== undefined && output.SendingIps !== null
8830
8830
  ? deserializeAws_restJson1IpList(output.SendingIps, context)
8831
8831
  : undefined,
8832
- SpamCount: smithy_client_1.expectInt(output.SpamCount),
8832
+ SpamCount: smithy_client_1.expectLong(output.SpamCount),
8833
8833
  Subject: smithy_client_1.expectString(output.Subject),
8834
8834
  };
8835
8835
  };
@@ -8850,7 +8850,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOption = (output, cont
8850
8850
  ? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
8851
8851
  : undefined,
8852
8852
  SubscriptionStartDate: output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
8853
- ? new Date(Math.round(output.SubscriptionStartDate * 1000))
8853
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubscriptionStartDate)))
8854
8854
  : undefined,
8855
8855
  };
8856
8856
  };
@@ -8866,11 +8866,11 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = (output, con
8866
8866
  };
8867
8867
  const deserializeAws_restJson1DomainIspPlacement = (output, context) => {
8868
8868
  return {
8869
- InboxPercentage: smithy_client_1.limitedParseFloat(output.InboxPercentage),
8870
- InboxRawCount: smithy_client_1.expectInt(output.InboxRawCount),
8869
+ InboxPercentage: smithy_client_1.limitedParseDouble(output.InboxPercentage),
8870
+ InboxRawCount: smithy_client_1.expectLong(output.InboxRawCount),
8871
8871
  IspName: smithy_client_1.expectString(output.IspName),
8872
- SpamPercentage: smithy_client_1.limitedParseFloat(output.SpamPercentage),
8873
- SpamRawCount: smithy_client_1.expectInt(output.SpamRawCount),
8872
+ SpamPercentage: smithy_client_1.limitedParseDouble(output.SpamPercentage),
8873
+ SpamRawCount: smithy_client_1.expectLong(output.SpamRawCount),
8874
8874
  };
8875
8875
  };
8876
8876
  const deserializeAws_restJson1DomainIspPlacements = (output, context) => {
@@ -8893,7 +8893,7 @@ const deserializeAws_restJson1EmailTemplateContent = (output, context) => {
8893
8893
  const deserializeAws_restJson1EmailTemplateMetadata = (output, context) => {
8894
8894
  return {
8895
8895
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
8896
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
8896
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
8897
8897
  : undefined,
8898
8898
  TemplateName: smithy_client_1.expectString(output.TemplateName),
8899
8899
  };
@@ -9001,7 +9001,7 @@ const deserializeAws_restJson1ImportDestination = (output, context) => {
9001
9001
  const deserializeAws_restJson1ImportJobSummary = (output, context) => {
9002
9002
  return {
9003
9003
  CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
9004
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
9004
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
9005
9005
  : undefined,
9006
9006
  ImportDestination: output.ImportDestination !== undefined && output.ImportDestination !== null
9007
9007
  ? deserializeAws_restJson1ImportDestination(output.ImportDestination, context)
@@ -9114,7 +9114,7 @@ const deserializeAws_restJson1OverallVolume = (output, context) => {
9114
9114
  DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
9115
9115
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
9116
9116
  : undefined,
9117
- ReadRatePercent: smithy_client_1.limitedParseFloat(output.ReadRatePercent),
9117
+ ReadRatePercent: smithy_client_1.limitedParseDouble(output.ReadRatePercent),
9118
9118
  VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
9119
9119
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
9120
9120
  : undefined,
@@ -9127,11 +9127,11 @@ const deserializeAws_restJson1PinpointDestination = (output, context) => {
9127
9127
  };
9128
9128
  const deserializeAws_restJson1PlacementStatistics = (output, context) => {
9129
9129
  return {
9130
- DkimPercentage: smithy_client_1.limitedParseFloat(output.DkimPercentage),
9131
- InboxPercentage: smithy_client_1.limitedParseFloat(output.InboxPercentage),
9132
- MissingPercentage: smithy_client_1.limitedParseFloat(output.MissingPercentage),
9133
- SpamPercentage: smithy_client_1.limitedParseFloat(output.SpamPercentage),
9134
- SpfPercentage: smithy_client_1.limitedParseFloat(output.SpfPercentage),
9130
+ DkimPercentage: smithy_client_1.limitedParseDouble(output.DkimPercentage),
9131
+ InboxPercentage: smithy_client_1.limitedParseDouble(output.InboxPercentage),
9132
+ MissingPercentage: smithy_client_1.limitedParseDouble(output.MissingPercentage),
9133
+ SpamPercentage: smithy_client_1.limitedParseDouble(output.SpamPercentage),
9134
+ SpfPercentage: smithy_client_1.limitedParseDouble(output.SpfPercentage),
9135
9135
  };
9136
9136
  };
9137
9137
  const deserializeAws_restJson1PolicyMap = (output, context) => {
@@ -9148,7 +9148,7 @@ const deserializeAws_restJson1PolicyMap = (output, context) => {
9148
9148
  const deserializeAws_restJson1ReputationOptions = (output, context) => {
9149
9149
  return {
9150
9150
  LastFreshStart: output.LastFreshStart !== undefined && output.LastFreshStart !== null
9151
- ? new Date(Math.round(output.LastFreshStart * 1000))
9151
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastFreshStart)))
9152
9152
  : undefined,
9153
9153
  ReputationMetricsEnabled: smithy_client_1.expectBoolean(output.ReputationMetricsEnabled),
9154
9154
  };
@@ -9166,9 +9166,9 @@ const deserializeAws_restJson1SendingOptions = (output, context) => {
9166
9166
  };
9167
9167
  const deserializeAws_restJson1SendQuota = (output, context) => {
9168
9168
  return {
9169
- Max24HourSend: smithy_client_1.limitedParseFloat(output.Max24HourSend),
9170
- MaxSendRate: smithy_client_1.limitedParseFloat(output.MaxSendRate),
9171
- SentLast24Hours: smithy_client_1.limitedParseFloat(output.SentLast24Hours),
9169
+ Max24HourSend: smithy_client_1.limitedParseDouble(output.Max24HourSend),
9170
+ MaxSendRate: smithy_client_1.limitedParseDouble(output.MaxSendRate),
9171
+ SentLast24Hours: smithy_client_1.limitedParseDouble(output.SentLast24Hours),
9172
9172
  };
9173
9173
  };
9174
9174
  const deserializeAws_restJson1SnsDestination = (output, context) => {
@@ -9183,7 +9183,7 @@ const deserializeAws_restJson1SuppressedDestination = (output, context) => {
9183
9183
  : undefined,
9184
9184
  EmailAddress: smithy_client_1.expectString(output.EmailAddress),
9185
9185
  LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
9186
- ? new Date(Math.round(output.LastUpdateTime * 1000))
9186
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdateTime)))
9187
9187
  : undefined,
9188
9188
  Reason: smithy_client_1.expectString(output.Reason),
9189
9189
  };
@@ -9208,7 +9208,7 @@ const deserializeAws_restJson1SuppressedDestinationSummary = (output, context) =
9208
9208
  return {
9209
9209
  EmailAddress: smithy_client_1.expectString(output.EmailAddress),
9210
9210
  LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
9211
- ? new Date(Math.round(output.LastUpdateTime * 1000))
9211
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdateTime)))
9212
9212
  : undefined,
9213
9213
  Reason: smithy_client_1.expectString(output.Reason),
9214
9214
  };
@@ -9299,10 +9299,10 @@ const deserializeAws_restJson1TrackingOptions = (output, context) => {
9299
9299
  };
9300
9300
  const deserializeAws_restJson1VolumeStatistics = (output, context) => {
9301
9301
  return {
9302
- InboxRawCount: smithy_client_1.expectInt(output.InboxRawCount),
9303
- ProjectedInbox: smithy_client_1.expectInt(output.ProjectedInbox),
9304
- ProjectedSpam: smithy_client_1.expectInt(output.ProjectedSpam),
9305
- SpamRawCount: smithy_client_1.expectInt(output.SpamRawCount),
9302
+ InboxRawCount: smithy_client_1.expectLong(output.InboxRawCount),
9303
+ ProjectedInbox: smithy_client_1.expectLong(output.ProjectedInbox),
9304
+ ProjectedSpam: smithy_client_1.expectLong(output.ProjectedSpam),
9305
+ SpamRawCount: smithy_client_1.expectLong(output.SpamRawCount),
9306
9306
  };
9307
9307
  };
9308
9308
  const deserializeMetadata = (output) => {