@aws-sdk/client-pinpoint-email 3.30.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/PinpointEmailClient.js +13 -13
  3. package/dist/cjs/PinpointEmailClient.js.map +1 -1
  4. package/dist/cjs/commands/CreateConfigurationSetCommand.js +3 -3
  5. package/dist/cjs/commands/CreateConfigurationSetCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateConfigurationSetEventDestinationCommand.js +3 -3
  7. package/dist/cjs/commands/CreateConfigurationSetEventDestinationCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateDedicatedIpPoolCommand.js +3 -3
  9. package/dist/cjs/commands/CreateDedicatedIpPoolCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateDeliverabilityTestReportCommand.js +3 -3
  11. package/dist/cjs/commands/CreateDeliverabilityTestReportCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateEmailIdentityCommand.js +3 -3
  13. package/dist/cjs/commands/CreateEmailIdentityCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteConfigurationSetCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteConfigurationSetCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteConfigurationSetEventDestinationCommand.js +3 -3
  17. package/dist/cjs/commands/DeleteConfigurationSetEventDestinationCommand.js.map +1 -1
  18. package/dist/cjs/commands/DeleteDedicatedIpPoolCommand.js +3 -3
  19. package/dist/cjs/commands/DeleteDedicatedIpPoolCommand.js.map +1 -1
  20. package/dist/cjs/commands/DeleteEmailIdentityCommand.js +3 -3
  21. package/dist/cjs/commands/DeleteEmailIdentityCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetAccountCommand.js +3 -3
  23. package/dist/cjs/commands/GetAccountCommand.js.map +1 -1
  24. package/dist/cjs/commands/GetBlacklistReportsCommand.js +3 -3
  25. package/dist/cjs/commands/GetBlacklistReportsCommand.js.map +1 -1
  26. package/dist/cjs/commands/GetConfigurationSetCommand.js +3 -3
  27. package/dist/cjs/commands/GetConfigurationSetCommand.js.map +1 -1
  28. package/dist/cjs/commands/GetConfigurationSetEventDestinationsCommand.js +3 -3
  29. package/dist/cjs/commands/GetConfigurationSetEventDestinationsCommand.js.map +1 -1
  30. package/dist/cjs/commands/GetDedicatedIpCommand.js +3 -3
  31. package/dist/cjs/commands/GetDedicatedIpCommand.js.map +1 -1
  32. package/dist/cjs/commands/GetDedicatedIpsCommand.js +3 -3
  33. package/dist/cjs/commands/GetDedicatedIpsCommand.js.map +1 -1
  34. package/dist/cjs/commands/GetDeliverabilityDashboardOptionsCommand.js +3 -3
  35. package/dist/cjs/commands/GetDeliverabilityDashboardOptionsCommand.js.map +1 -1
  36. package/dist/cjs/commands/GetDeliverabilityTestReportCommand.js +3 -3
  37. package/dist/cjs/commands/GetDeliverabilityTestReportCommand.js.map +1 -1
  38. package/dist/cjs/commands/GetDomainDeliverabilityCampaignCommand.js +3 -3
  39. package/dist/cjs/commands/GetDomainDeliverabilityCampaignCommand.js.map +1 -1
  40. package/dist/cjs/commands/GetDomainStatisticsReportCommand.js +3 -3
  41. package/dist/cjs/commands/GetDomainStatisticsReportCommand.js.map +1 -1
  42. package/dist/cjs/commands/GetEmailIdentityCommand.js +3 -3
  43. package/dist/cjs/commands/GetEmailIdentityCommand.js.map +1 -1
  44. package/dist/cjs/commands/ListConfigurationSetsCommand.js +3 -3
  45. package/dist/cjs/commands/ListConfigurationSetsCommand.js.map +1 -1
  46. package/dist/cjs/commands/ListDedicatedIpPoolsCommand.js +3 -3
  47. package/dist/cjs/commands/ListDedicatedIpPoolsCommand.js.map +1 -1
  48. package/dist/cjs/commands/ListDeliverabilityTestReportsCommand.js +3 -3
  49. package/dist/cjs/commands/ListDeliverabilityTestReportsCommand.js.map +1 -1
  50. package/dist/cjs/commands/ListDomainDeliverabilityCampaignsCommand.js +3 -3
  51. package/dist/cjs/commands/ListDomainDeliverabilityCampaignsCommand.js.map +1 -1
  52. package/dist/cjs/commands/ListEmailIdentitiesCommand.js +3 -3
  53. package/dist/cjs/commands/ListEmailIdentitiesCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  55. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  56. package/dist/cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +3 -3
  57. package/dist/cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js.map +1 -1
  58. package/dist/cjs/commands/PutAccountSendingAttributesCommand.js +3 -3
  59. package/dist/cjs/commands/PutAccountSendingAttributesCommand.js.map +1 -1
  60. package/dist/cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js +3 -3
  61. package/dist/cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js.map +1 -1
  62. package/dist/cjs/commands/PutConfigurationSetReputationOptionsCommand.js +3 -3
  63. package/dist/cjs/commands/PutConfigurationSetReputationOptionsCommand.js.map +1 -1
  64. package/dist/cjs/commands/PutConfigurationSetSendingOptionsCommand.js +3 -3
  65. package/dist/cjs/commands/PutConfigurationSetSendingOptionsCommand.js.map +1 -1
  66. package/dist/cjs/commands/PutConfigurationSetTrackingOptionsCommand.js +3 -3
  67. package/dist/cjs/commands/PutConfigurationSetTrackingOptionsCommand.js.map +1 -1
  68. package/dist/cjs/commands/PutDedicatedIpInPoolCommand.js +3 -3
  69. package/dist/cjs/commands/PutDedicatedIpInPoolCommand.js.map +1 -1
  70. package/dist/cjs/commands/PutDedicatedIpWarmupAttributesCommand.js +3 -3
  71. package/dist/cjs/commands/PutDedicatedIpWarmupAttributesCommand.js.map +1 -1
  72. package/dist/cjs/commands/PutDeliverabilityDashboardOptionCommand.js +3 -3
  73. package/dist/cjs/commands/PutDeliverabilityDashboardOptionCommand.js.map +1 -1
  74. package/dist/cjs/commands/PutEmailIdentityDkimAttributesCommand.js +3 -3
  75. package/dist/cjs/commands/PutEmailIdentityDkimAttributesCommand.js.map +1 -1
  76. package/dist/cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js +3 -3
  77. package/dist/cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js.map +1 -1
  78. package/dist/cjs/commands/PutEmailIdentityMailFromAttributesCommand.js +3 -3
  79. package/dist/cjs/commands/PutEmailIdentityMailFromAttributesCommand.js.map +1 -1
  80. package/dist/cjs/commands/SendEmailCommand.js +3 -3
  81. package/dist/cjs/commands/SendEmailCommand.js.map +1 -1
  82. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  83. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  84. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  85. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  86. package/dist/cjs/commands/UpdateConfigurationSetEventDestinationCommand.js +3 -3
  87. package/dist/cjs/commands/UpdateConfigurationSetEventDestinationCommand.js.map +1 -1
  88. package/dist/cjs/endpoints.js +1 -1
  89. package/dist/cjs/endpoints.js.map +1 -1
  90. package/dist/cjs/index.js +52 -52
  91. package/dist/cjs/index.js.map +1 -1
  92. package/dist/cjs/models/index.js +1 -1
  93. package/dist/cjs/models/index.js.map +1 -1
  94. package/dist/cjs/package.json +39 -39
  95. package/dist/cjs/protocols/Aws_restJson1.js +158 -158
  96. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  97. package/dist/cjs/runtimeConfig.browser.js +4 -4
  98. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  99. package/dist/cjs/runtimeConfig.js +8 -8
  100. package/dist/cjs/runtimeConfig.js.map +1 -1
  101. package/dist/cjs/runtimeConfig.native.js +1 -1
  102. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  103. package/dist/es/PinpointEmail.js +1 -32
  104. package/dist/es/PinpointEmail.js.map +1 -1
  105. package/dist/es/PinpointEmailClient.js +1 -37
  106. package/dist/es/PinpointEmailClient.js.map +1 -1
  107. package/dist/es/commands/CreateConfigurationSetCommand.js +2 -31
  108. package/dist/es/commands/CreateConfigurationSetCommand.js.map +1 -1
  109. package/dist/es/commands/CreateConfigurationSetEventDestinationCommand.js +2 -33
  110. package/dist/es/commands/CreateConfigurationSetEventDestinationCommand.js.map +1 -1
  111. package/dist/es/commands/CreateDedicatedIpPoolCommand.js +2 -30
  112. package/dist/es/commands/CreateDedicatedIpPoolCommand.js.map +1 -1
  113. package/dist/es/commands/CreateDeliverabilityTestReportCommand.js +2 -33
  114. package/dist/es/commands/CreateDeliverabilityTestReportCommand.js.map +1 -1
  115. package/dist/es/commands/CreateEmailIdentityCommand.js +2 -40
  116. package/dist/es/commands/CreateEmailIdentityCommand.js.map +1 -1
  117. package/dist/es/commands/DeleteConfigurationSetCommand.js +2 -32
  118. package/dist/es/commands/DeleteConfigurationSetCommand.js.map +1 -1
  119. package/dist/es/commands/DeleteConfigurationSetEventDestinationCommand.js +2 -32
  120. package/dist/es/commands/DeleteConfigurationSetEventDestinationCommand.js.map +1 -1
  121. package/dist/es/commands/DeleteDedicatedIpPoolCommand.js +2 -27
  122. package/dist/es/commands/DeleteDedicatedIpPoolCommand.js.map +1 -1
  123. package/dist/es/commands/DeleteEmailIdentityCommand.js +2 -28
  124. package/dist/es/commands/DeleteEmailIdentityCommand.js.map +1 -1
  125. package/dist/es/commands/GetAccountCommand.js +2 -28
  126. package/dist/es/commands/GetAccountCommand.js.map +1 -1
  127. package/dist/es/commands/GetBlacklistReportsCommand.js +2 -27
  128. package/dist/es/commands/GetBlacklistReportsCommand.js.map +1 -1
  129. package/dist/es/commands/GetConfigurationSetCommand.js +2 -34
  130. package/dist/es/commands/GetConfigurationSetCommand.js.map +1 -1
  131. package/dist/es/commands/GetConfigurationSetEventDestinationsCommand.js +2 -33
  132. package/dist/es/commands/GetConfigurationSetEventDestinationsCommand.js.map +1 -1
  133. package/dist/es/commands/GetDedicatedIpCommand.js +2 -29
  134. package/dist/es/commands/GetDedicatedIpCommand.js.map +1 -1
  135. package/dist/es/commands/GetDedicatedIpsCommand.js +2 -28
  136. package/dist/es/commands/GetDedicatedIpsCommand.js.map +1 -1
  137. package/dist/es/commands/GetDeliverabilityDashboardOptionsCommand.js +2 -33
  138. package/dist/es/commands/GetDeliverabilityDashboardOptionsCommand.js.map +1 -1
  139. package/dist/es/commands/GetDeliverabilityTestReportCommand.js +2 -27
  140. package/dist/es/commands/GetDeliverabilityTestReportCommand.js.map +1 -1
  141. package/dist/es/commands/GetDomainDeliverabilityCampaignCommand.js +2 -30
  142. package/dist/es/commands/GetDomainDeliverabilityCampaignCommand.js.map +1 -1
  143. package/dist/es/commands/GetDomainStatisticsReportCommand.js +2 -28
  144. package/dist/es/commands/GetDomainStatisticsReportCommand.js.map +1 -1
  145. package/dist/es/commands/GetEmailIdentityCommand.js +2 -29
  146. package/dist/es/commands/GetEmailIdentityCommand.js.map +1 -1
  147. package/dist/es/commands/ListConfigurationSetsCommand.js +2 -33
  148. package/dist/es/commands/ListConfigurationSetsCommand.js.map +1 -1
  149. package/dist/es/commands/ListDedicatedIpPoolsCommand.js +2 -28
  150. package/dist/es/commands/ListDedicatedIpPoolsCommand.js.map +1 -1
  151. package/dist/es/commands/ListDeliverabilityTestReportsCommand.js +2 -29
  152. package/dist/es/commands/ListDeliverabilityTestReportsCommand.js.map +1 -1
  153. package/dist/es/commands/ListDomainDeliverabilityCampaignsCommand.js +2 -30
  154. package/dist/es/commands/ListDomainDeliverabilityCampaignsCommand.js.map +1 -1
  155. package/dist/es/commands/ListEmailIdentitiesCommand.js +2 -29
  156. package/dist/es/commands/ListEmailIdentitiesCommand.js.map +1 -1
  157. package/dist/es/commands/ListTagsForResourceCommand.js +2 -32
  158. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  159. package/dist/es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +2 -27
  160. package/dist/es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js.map +1 -1
  161. package/dist/es/commands/PutAccountSendingAttributesCommand.js +2 -27
  162. package/dist/es/commands/PutAccountSendingAttributesCommand.js.map +1 -1
  163. package/dist/es/commands/PutConfigurationSetDeliveryOptionsCommand.js +2 -28
  164. package/dist/es/commands/PutConfigurationSetDeliveryOptionsCommand.js.map +1 -1
  165. package/dist/es/commands/PutConfigurationSetReputationOptionsCommand.js +2 -28
  166. package/dist/es/commands/PutConfigurationSetReputationOptionsCommand.js.map +1 -1
  167. package/dist/es/commands/PutConfigurationSetSendingOptionsCommand.js +2 -28
  168. package/dist/es/commands/PutConfigurationSetSendingOptionsCommand.js.map +1 -1
  169. package/dist/es/commands/PutConfigurationSetTrackingOptionsCommand.js +2 -28
  170. package/dist/es/commands/PutConfigurationSetTrackingOptionsCommand.js.map +1 -1
  171. package/dist/es/commands/PutDedicatedIpInPoolCommand.js +2 -36
  172. package/dist/es/commands/PutDedicatedIpInPoolCommand.js.map +1 -1
  173. package/dist/es/commands/PutDedicatedIpWarmupAttributesCommand.js +2 -27
  174. package/dist/es/commands/PutDedicatedIpWarmupAttributesCommand.js.map +1 -1
  175. package/dist/es/commands/PutDeliverabilityDashboardOptionCommand.js +2 -33
  176. package/dist/es/commands/PutDeliverabilityDashboardOptionCommand.js.map +1 -1
  177. package/dist/es/commands/PutEmailIdentityDkimAttributesCommand.js +2 -27
  178. package/dist/es/commands/PutEmailIdentityDkimAttributesCommand.js.map +1 -1
  179. package/dist/es/commands/PutEmailIdentityFeedbackAttributesCommand.js +2 -37
  180. package/dist/es/commands/PutEmailIdentityFeedbackAttributesCommand.js.map +1 -1
  181. package/dist/es/commands/PutEmailIdentityMailFromAttributesCommand.js +2 -28
  182. package/dist/es/commands/PutEmailIdentityMailFromAttributesCommand.js.map +1 -1
  183. package/dist/es/commands/SendEmailCommand.js +2 -44
  184. package/dist/es/commands/SendEmailCommand.js.map +1 -1
  185. package/dist/es/commands/TagResourceCommand.js +2 -35
  186. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  187. package/dist/es/commands/UntagResourceCommand.js +2 -27
  188. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  189. package/dist/es/commands/UpdateConfigurationSetEventDestinationCommand.js +2 -32
  190. package/dist/es/commands/UpdateConfigurationSetEventDestinationCommand.js.map +1 -1
  191. package/dist/es/endpoints.js +1 -1
  192. package/dist/es/endpoints.js.map +1 -1
  193. package/dist/es/models/models_0.js +0 -390
  194. package/dist/es/models/models_0.js.map +1 -1
  195. package/dist/es/package.json +39 -39
  196. package/dist/es/pagination/GetDedicatedIpsPaginator.js +16 -28
  197. package/dist/es/pagination/GetDedicatedIpsPaginator.js.map +1 -1
  198. package/dist/es/pagination/ListConfigurationSetsPaginator.js +16 -28
  199. package/dist/es/pagination/ListConfigurationSetsPaginator.js.map +1 -1
  200. package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js +16 -28
  201. package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js.map +1 -1
  202. package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js +16 -28
  203. package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js.map +1 -1
  204. package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +16 -28
  205. package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js.map +1 -1
  206. package/dist/es/pagination/ListEmailIdentitiesPaginator.js +16 -28
  207. package/dist/es/pagination/ListEmailIdentitiesPaginator.js.map +1 -1
  208. package/dist/es/protocols/Aws_restJson1.js +975 -980
  209. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  210. package/dist/es/runtimeConfig.browser.js +0 -3
  211. package/dist/es/runtimeConfig.browser.js.map +1 -1
  212. package/dist/es/runtimeConfig.js +0 -3
  213. package/dist/es/runtimeConfig.js.map +1 -1
  214. package/dist/es/runtimeConfig.native.js +0 -3
  215. package/dist/es/runtimeConfig.native.js.map +1 -1
  216. package/dist/es/runtimeConfig.shared.js +0 -3
  217. package/dist/es/runtimeConfig.shared.js.map +1 -1
  218. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  219. package/dist/types/runtimeConfig.d.ts +1 -0
  220. package/dist/types/runtimeConfig.native.d.ts +1 -0
  221. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  222. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  223. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  224. package/package.json +39 -39
  225. package/protocols/Aws_restJson1.ts +12 -8
  226. package/tsconfig.es.json +0 -2
  227. package/tsconfig.json +3 -5
  228. package/tsconfig.types.json +8 -0
@@ -56,7 +56,7 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
56
56
  if (labelValue.length <= 0) {
57
57
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
58
58
  }
59
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
59
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
60
60
  }
61
61
  else {
62
62
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -164,7 +164,7 @@ const serializeAws_restJson1DeleteConfigurationSetCommand = async (input, contex
164
164
  if (labelValue.length <= 0) {
165
165
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
166
166
  }
167
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
167
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
168
168
  }
169
169
  else {
170
170
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -191,7 +191,7 @@ const serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = asyn
191
191
  if (labelValue.length <= 0) {
192
192
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
193
193
  }
194
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
194
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
195
195
  }
196
196
  else {
197
197
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -201,7 +201,7 @@ const serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = asyn
201
201
  if (labelValue.length <= 0) {
202
202
  throw new Error("Empty value provided for input HTTP label: EventDestinationName.");
203
203
  }
204
- resolvedPath = resolvedPath.replace("{EventDestinationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
204
+ resolvedPath = resolvedPath.replace("{EventDestinationName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
205
205
  }
206
206
  else {
207
207
  throw new Error("No value provided for input HTTP label: EventDestinationName.");
@@ -227,7 +227,7 @@ const serializeAws_restJson1DeleteDedicatedIpPoolCommand = async (input, context
227
227
  if (labelValue.length <= 0) {
228
228
  throw new Error("Empty value provided for input HTTP label: PoolName.");
229
229
  }
230
- resolvedPath = resolvedPath.replace("{PoolName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
230
+ resolvedPath = resolvedPath.replace("{PoolName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
231
231
  }
232
232
  else {
233
233
  throw new Error("No value provided for input HTTP label: PoolName.");
@@ -253,7 +253,7 @@ const serializeAws_restJson1DeleteEmailIdentityCommand = async (input, context)
253
253
  if (labelValue.length <= 0) {
254
254
  throw new Error("Empty value provided for input HTTP label: EmailIdentity.");
255
255
  }
256
- resolvedPath = resolvedPath.replace("{EmailIdentity}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
256
+ resolvedPath = resolvedPath.replace("{EmailIdentity}", smithy_client_1.extendedEncodeURIComponent(labelValue));
257
257
  }
258
258
  else {
259
259
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
@@ -322,7 +322,7 @@ const serializeAws_restJson1GetConfigurationSetCommand = async (input, context)
322
322
  if (labelValue.length <= 0) {
323
323
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
324
324
  }
325
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
325
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
326
326
  }
327
327
  else {
328
328
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -349,7 +349,7 @@ const serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = async
349
349
  if (labelValue.length <= 0) {
350
350
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
351
351
  }
352
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
352
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
353
353
  }
354
354
  else {
355
355
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -375,7 +375,7 @@ const serializeAws_restJson1GetDedicatedIpCommand = async (input, context) => {
375
375
  if (labelValue.length <= 0) {
376
376
  throw new Error("Empty value provided for input HTTP label: Ip.");
377
377
  }
378
- resolvedPath = resolvedPath.replace("{Ip}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
378
+ resolvedPath = resolvedPath.replace("{Ip}", smithy_client_1.extendedEncodeURIComponent(labelValue));
379
379
  }
380
380
  else {
381
381
  throw new Error("No value provided for input HTTP label: Ip.");
@@ -443,7 +443,7 @@ const serializeAws_restJson1GetDeliverabilityTestReportCommand = async (input, c
443
443
  if (labelValue.length <= 0) {
444
444
  throw new Error("Empty value provided for input HTTP label: ReportId.");
445
445
  }
446
- resolvedPath = resolvedPath.replace("{ReportId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
446
+ resolvedPath = resolvedPath.replace("{ReportId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
447
447
  }
448
448
  else {
449
449
  throw new Error("No value provided for input HTTP label: ReportId.");
@@ -470,7 +470,7 @@ const serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = async (inpu
470
470
  if (labelValue.length <= 0) {
471
471
  throw new Error("Empty value provided for input HTTP label: CampaignId.");
472
472
  }
473
- resolvedPath = resolvedPath.replace("{CampaignId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
473
+ resolvedPath = resolvedPath.replace("{CampaignId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
474
474
  }
475
475
  else {
476
476
  throw new Error("No value provided for input HTTP label: CampaignId.");
@@ -497,7 +497,7 @@ const serializeAws_restJson1GetDomainStatisticsReportCommand = async (input, con
497
497
  if (labelValue.length <= 0) {
498
498
  throw new Error("Empty value provided for input HTTP label: Domain.");
499
499
  }
500
- resolvedPath = resolvedPath.replace("{Domain}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
500
+ resolvedPath = resolvedPath.replace("{Domain}", smithy_client_1.extendedEncodeURIComponent(labelValue));
501
501
  }
502
502
  else {
503
503
  throw new Error("No value provided for input HTTP label: Domain.");
@@ -528,7 +528,7 @@ const serializeAws_restJson1GetEmailIdentityCommand = async (input, context) =>
528
528
  if (labelValue.length <= 0) {
529
529
  throw new Error("Empty value provided for input HTTP label: EmailIdentity.");
530
530
  }
531
- resolvedPath = resolvedPath.replace("{EmailIdentity}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
531
+ resolvedPath = resolvedPath.replace("{EmailIdentity}", smithy_client_1.extendedEncodeURIComponent(labelValue));
532
532
  }
533
533
  else {
534
534
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
@@ -619,7 +619,7 @@ const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (in
619
619
  if (labelValue.length <= 0) {
620
620
  throw new Error("Empty value provided for input HTTP label: SubscribedDomain.");
621
621
  }
622
- resolvedPath = resolvedPath.replace("{SubscribedDomain}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
622
+ resolvedPath = resolvedPath.replace("{SubscribedDomain}", smithy_client_1.extendedEncodeURIComponent(labelValue));
623
623
  }
624
624
  else {
625
625
  throw new Error("No value provided for input HTTP label: SubscribedDomain.");
@@ -740,7 +740,7 @@ const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (i
740
740
  if (labelValue.length <= 0) {
741
741
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
742
742
  }
743
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
743
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
744
744
  }
745
745
  else {
746
746
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -774,7 +774,7 @@ const serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = async
774
774
  if (labelValue.length <= 0) {
775
775
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
776
776
  }
777
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
777
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
778
778
  }
779
779
  else {
780
780
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -807,7 +807,7 @@ const serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = async (in
807
807
  if (labelValue.length <= 0) {
808
808
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
809
809
  }
810
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
810
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
811
811
  }
812
812
  else {
813
813
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -840,7 +840,7 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
840
840
  if (labelValue.length <= 0) {
841
841
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
842
842
  }
843
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
843
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
844
844
  }
845
845
  else {
846
846
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -872,7 +872,7 @@ const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context)
872
872
  if (labelValue.length <= 0) {
873
873
  throw new Error("Empty value provided for input HTTP label: Ip.");
874
874
  }
875
- resolvedPath = resolvedPath.replace("{Ip}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
875
+ resolvedPath = resolvedPath.replace("{Ip}", smithy_client_1.extendedEncodeURIComponent(labelValue));
876
876
  }
877
877
  else {
878
878
  throw new Error("No value provided for input HTTP label: Ip.");
@@ -904,7 +904,7 @@ const serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = async (input
904
904
  if (labelValue.length <= 0) {
905
905
  throw new Error("Empty value provided for input HTTP label: Ip.");
906
906
  }
907
- resolvedPath = resolvedPath.replace("{Ip}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
907
+ resolvedPath = resolvedPath.replace("{Ip}", smithy_client_1.extendedEncodeURIComponent(labelValue));
908
908
  }
909
909
  else {
910
910
  throw new Error("No value provided for input HTTP label: Ip.");
@@ -962,7 +962,7 @@ const serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = async (input
962
962
  if (labelValue.length <= 0) {
963
963
  throw new Error("Empty value provided for input HTTP label: EmailIdentity.");
964
964
  }
965
- resolvedPath = resolvedPath.replace("{EmailIdentity}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
965
+ resolvedPath = resolvedPath.replace("{EmailIdentity}", smithy_client_1.extendedEncodeURIComponent(labelValue));
966
966
  }
967
967
  else {
968
968
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
@@ -995,7 +995,7 @@ const serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = async (i
995
995
  if (labelValue.length <= 0) {
996
996
  throw new Error("Empty value provided for input HTTP label: EmailIdentity.");
997
997
  }
998
- resolvedPath = resolvedPath.replace("{EmailIdentity}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
998
+ resolvedPath = resolvedPath.replace("{EmailIdentity}", smithy_client_1.extendedEncodeURIComponent(labelValue));
999
999
  }
1000
1000
  else {
1001
1001
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
@@ -1028,7 +1028,7 @@ const serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = async (i
1028
1028
  if (labelValue.length <= 0) {
1029
1029
  throw new Error("Empty value provided for input HTTP label: EmailIdentity.");
1030
1030
  }
1031
- resolvedPath = resolvedPath.replace("{EmailIdentity}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1031
+ resolvedPath = resolvedPath.replace("{EmailIdentity}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1032
1032
  }
1033
1033
  else {
1034
1034
  throw new Error("No value provided for input HTTP label: EmailIdentity.");
@@ -1145,7 +1145,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
1145
1145
  if (labelValue.length <= 0) {
1146
1146
  throw new Error("Empty value provided for input HTTP label: ConfigurationSetName.");
1147
1147
  }
1148
- resolvedPath = resolvedPath.replace("{ConfigurationSetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1148
+ resolvedPath = resolvedPath.replace("{ConfigurationSetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1149
1149
  }
1150
1150
  else {
1151
1151
  throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
@@ -1155,7 +1155,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
1155
1155
  if (labelValue.length <= 0) {
1156
1156
  throw new Error("Empty value provided for input HTTP label: EventDestinationName.");
1157
1157
  }
1158
- resolvedPath = resolvedPath.replace("{EventDestinationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1158
+ resolvedPath = resolvedPath.replace("{EventDestinationName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1159
1159
  }
1160
1160
  else {
1161
1161
  throw new Error("No value provided for input HTTP label: EventDestinationName.");
@@ -1423,12 +1423,12 @@ const deserializeAws_restJson1CreateDeliverabilityTestReportCommand = async (out
1423
1423
  DeliverabilityTestStatus: undefined,
1424
1424
  ReportId: undefined,
1425
1425
  };
1426
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1426
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1427
1427
  if (data.DeliverabilityTestStatus !== undefined && data.DeliverabilityTestStatus !== null) {
1428
- contents.DeliverabilityTestStatus = (0, smithy_client_1.expectString)(data.DeliverabilityTestStatus);
1428
+ contents.DeliverabilityTestStatus = smithy_client_1.expectString(data.DeliverabilityTestStatus);
1429
1429
  }
1430
1430
  if (data.ReportId !== undefined && data.ReportId !== null) {
1431
- contents.ReportId = (0, smithy_client_1.expectString)(data.ReportId);
1431
+ contents.ReportId = smithy_client_1.expectString(data.ReportId);
1432
1432
  }
1433
1433
  return Promise.resolve(contents);
1434
1434
  };
@@ -1540,15 +1540,15 @@ const deserializeAws_restJson1CreateEmailIdentityCommand = async (output, contex
1540
1540
  IdentityType: undefined,
1541
1541
  VerifiedForSendingStatus: undefined,
1542
1542
  };
1543
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1543
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1544
1544
  if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
1545
1545
  contents.DkimAttributes = deserializeAws_restJson1DkimAttributes(data.DkimAttributes, context);
1546
1546
  }
1547
1547
  if (data.IdentityType !== undefined && data.IdentityType !== null) {
1548
- contents.IdentityType = (0, smithy_client_1.expectString)(data.IdentityType);
1548
+ contents.IdentityType = smithy_client_1.expectString(data.IdentityType);
1549
1549
  }
1550
1550
  if (data.VerifiedForSendingStatus !== undefined && data.VerifiedForSendingStatus !== null) {
1551
- contents.VerifiedForSendingStatus = (0, smithy_client_1.expectBoolean)(data.VerifiedForSendingStatus);
1551
+ contents.VerifiedForSendingStatus = smithy_client_1.expectBoolean(data.VerifiedForSendingStatus);
1552
1552
  }
1553
1553
  return Promise.resolve(contents);
1554
1554
  };
@@ -1886,21 +1886,21 @@ const deserializeAws_restJson1GetAccountCommand = async (output, context) => {
1886
1886
  SendQuota: undefined,
1887
1887
  SendingEnabled: undefined,
1888
1888
  };
1889
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1889
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1890
1890
  if (data.DedicatedIpAutoWarmupEnabled !== undefined && data.DedicatedIpAutoWarmupEnabled !== null) {
1891
- contents.DedicatedIpAutoWarmupEnabled = (0, smithy_client_1.expectBoolean)(data.DedicatedIpAutoWarmupEnabled);
1891
+ contents.DedicatedIpAutoWarmupEnabled = smithy_client_1.expectBoolean(data.DedicatedIpAutoWarmupEnabled);
1892
1892
  }
1893
1893
  if (data.EnforcementStatus !== undefined && data.EnforcementStatus !== null) {
1894
- contents.EnforcementStatus = (0, smithy_client_1.expectString)(data.EnforcementStatus);
1894
+ contents.EnforcementStatus = smithy_client_1.expectString(data.EnforcementStatus);
1895
1895
  }
1896
1896
  if (data.ProductionAccessEnabled !== undefined && data.ProductionAccessEnabled !== null) {
1897
- contents.ProductionAccessEnabled = (0, smithy_client_1.expectBoolean)(data.ProductionAccessEnabled);
1897
+ contents.ProductionAccessEnabled = smithy_client_1.expectBoolean(data.ProductionAccessEnabled);
1898
1898
  }
1899
1899
  if (data.SendQuota !== undefined && data.SendQuota !== null) {
1900
1900
  contents.SendQuota = deserializeAws_restJson1SendQuota(data.SendQuota, context);
1901
1901
  }
1902
1902
  if (data.SendingEnabled !== undefined && data.SendingEnabled !== null) {
1903
- contents.SendingEnabled = (0, smithy_client_1.expectBoolean)(data.SendingEnabled);
1903
+ contents.SendingEnabled = smithy_client_1.expectBoolean(data.SendingEnabled);
1904
1904
  }
1905
1905
  return Promise.resolve(contents);
1906
1906
  };
@@ -1954,7 +1954,7 @@ const deserializeAws_restJson1GetBlacklistReportsCommand = async (output, contex
1954
1954
  $metadata: deserializeMetadata(output),
1955
1955
  BlacklistReport: undefined,
1956
1956
  };
1957
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1957
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1958
1958
  if (data.BlacklistReport !== undefined && data.BlacklistReport !== null) {
1959
1959
  contents.BlacklistReport = deserializeAws_restJson1BlacklistReport(data.BlacklistReport, context);
1960
1960
  }
@@ -2023,9 +2023,9 @@ const deserializeAws_restJson1GetConfigurationSetCommand = async (output, contex
2023
2023
  Tags: undefined,
2024
2024
  TrackingOptions: undefined,
2025
2025
  };
2026
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2026
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2027
2027
  if (data.ConfigurationSetName !== undefined && data.ConfigurationSetName !== null) {
2028
- contents.ConfigurationSetName = (0, smithy_client_1.expectString)(data.ConfigurationSetName);
2028
+ contents.ConfigurationSetName = smithy_client_1.expectString(data.ConfigurationSetName);
2029
2029
  }
2030
2030
  if (data.DeliveryOptions !== undefined && data.DeliveryOptions !== null) {
2031
2031
  contents.DeliveryOptions = deserializeAws_restJson1DeliveryOptions(data.DeliveryOptions, context);
@@ -2102,7 +2102,7 @@ const deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = asyn
2102
2102
  $metadata: deserializeMetadata(output),
2103
2103
  EventDestinations: undefined,
2104
2104
  };
2105
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2105
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2106
2106
  if (data.EventDestinations !== undefined && data.EventDestinations !== null) {
2107
2107
  contents.EventDestinations = deserializeAws_restJson1EventDestinations(data.EventDestinations, context);
2108
2108
  }
@@ -2166,7 +2166,7 @@ const deserializeAws_restJson1GetDedicatedIpCommand = async (output, context) =>
2166
2166
  $metadata: deserializeMetadata(output),
2167
2167
  DedicatedIp: undefined,
2168
2168
  };
2169
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2169
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2170
2170
  if (data.DedicatedIp !== undefined && data.DedicatedIp !== null) {
2171
2171
  contents.DedicatedIp = deserializeAws_restJson1DedicatedIp(data.DedicatedIp, context);
2172
2172
  }
@@ -2231,12 +2231,12 @@ const deserializeAws_restJson1GetDedicatedIpsCommand = async (output, context) =
2231
2231
  DedicatedIps: undefined,
2232
2232
  NextToken: undefined,
2233
2233
  };
2234
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2234
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2235
2235
  if (data.DedicatedIps !== undefined && data.DedicatedIps !== null) {
2236
2236
  contents.DedicatedIps = deserializeAws_restJson1DedicatedIpList(data.DedicatedIps, context);
2237
2237
  }
2238
2238
  if (data.NextToken !== undefined && data.NextToken !== null) {
2239
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2239
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2240
2240
  }
2241
2241
  return Promise.resolve(contents);
2242
2242
  };
@@ -2302,21 +2302,21 @@ const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = async (
2302
2302
  PendingExpirationSubscribedDomains: undefined,
2303
2303
  SubscriptionExpiryDate: undefined,
2304
2304
  };
2305
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2305
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2306
2306
  if (data.AccountStatus !== undefined && data.AccountStatus !== null) {
2307
- contents.AccountStatus = (0, smithy_client_1.expectString)(data.AccountStatus);
2307
+ contents.AccountStatus = smithy_client_1.expectString(data.AccountStatus);
2308
2308
  }
2309
2309
  if (data.ActiveSubscribedDomains !== undefined && data.ActiveSubscribedDomains !== null) {
2310
2310
  contents.ActiveSubscribedDomains = deserializeAws_restJson1DomainDeliverabilityTrackingOptions(data.ActiveSubscribedDomains, context);
2311
2311
  }
2312
2312
  if (data.DashboardEnabled !== undefined && data.DashboardEnabled !== null) {
2313
- contents.DashboardEnabled = (0, smithy_client_1.expectBoolean)(data.DashboardEnabled);
2313
+ contents.DashboardEnabled = smithy_client_1.expectBoolean(data.DashboardEnabled);
2314
2314
  }
2315
2315
  if (data.PendingExpirationSubscribedDomains !== undefined && data.PendingExpirationSubscribedDomains !== null) {
2316
2316
  contents.PendingExpirationSubscribedDomains = deserializeAws_restJson1DomainDeliverabilityTrackingOptions(data.PendingExpirationSubscribedDomains, context);
2317
2317
  }
2318
2318
  if (data.SubscriptionExpiryDate !== undefined && data.SubscriptionExpiryDate !== null) {
2319
- contents.SubscriptionExpiryDate = new Date(Math.round(data.SubscriptionExpiryDate * 1000));
2319
+ contents.SubscriptionExpiryDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.SubscriptionExpiryDate)));
2320
2320
  }
2321
2321
  return Promise.resolve(contents);
2322
2322
  };
@@ -2382,7 +2382,7 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommand = async (output
2382
2382
  OverallPlacement: undefined,
2383
2383
  Tags: undefined,
2384
2384
  };
2385
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2385
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2386
2386
  if (data.DeliverabilityTestReport !== undefined && data.DeliverabilityTestReport !== null) {
2387
2387
  contents.DeliverabilityTestReport = deserializeAws_restJson1DeliverabilityTestReport(data.DeliverabilityTestReport, context);
2388
2388
  }
@@ -2390,7 +2390,7 @@ const deserializeAws_restJson1GetDeliverabilityTestReportCommand = async (output
2390
2390
  contents.IspPlacements = deserializeAws_restJson1IspPlacements(data.IspPlacements, context);
2391
2391
  }
2392
2392
  if (data.Message !== undefined && data.Message !== null) {
2393
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
2393
+ contents.Message = smithy_client_1.expectString(data.Message);
2394
2394
  }
2395
2395
  if (data.OverallPlacement !== undefined && data.OverallPlacement !== null) {
2396
2396
  contents.OverallPlacement = deserializeAws_restJson1PlacementStatistics(data.OverallPlacement, context);
@@ -2458,7 +2458,7 @@ const deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = async (ou
2458
2458
  $metadata: deserializeMetadata(output),
2459
2459
  DomainDeliverabilityCampaign: undefined,
2460
2460
  };
2461
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2461
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2462
2462
  if (data.DomainDeliverabilityCampaign !== undefined && data.DomainDeliverabilityCampaign !== null) {
2463
2463
  contents.DomainDeliverabilityCampaign = deserializeAws_restJson1DomainDeliverabilityCampaign(data.DomainDeliverabilityCampaign, context);
2464
2464
  }
@@ -2523,7 +2523,7 @@ const deserializeAws_restJson1GetDomainStatisticsReportCommand = async (output,
2523
2523
  DailyVolumes: undefined,
2524
2524
  OverallVolume: undefined,
2525
2525
  };
2526
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2526
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2527
2527
  if (data.DailyVolumes !== undefined && data.DailyVolumes !== null) {
2528
2528
  contents.DailyVolumes = deserializeAws_restJson1DailyVolumes(data.DailyVolumes, context);
2529
2529
  }
@@ -2595,15 +2595,15 @@ const deserializeAws_restJson1GetEmailIdentityCommand = async (output, context)
2595
2595
  Tags: undefined,
2596
2596
  VerifiedForSendingStatus: undefined,
2597
2597
  };
2598
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2598
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2599
2599
  if (data.DkimAttributes !== undefined && data.DkimAttributes !== null) {
2600
2600
  contents.DkimAttributes = deserializeAws_restJson1DkimAttributes(data.DkimAttributes, context);
2601
2601
  }
2602
2602
  if (data.FeedbackForwardingStatus !== undefined && data.FeedbackForwardingStatus !== null) {
2603
- contents.FeedbackForwardingStatus = (0, smithy_client_1.expectBoolean)(data.FeedbackForwardingStatus);
2603
+ contents.FeedbackForwardingStatus = smithy_client_1.expectBoolean(data.FeedbackForwardingStatus);
2604
2604
  }
2605
2605
  if (data.IdentityType !== undefined && data.IdentityType !== null) {
2606
- contents.IdentityType = (0, smithy_client_1.expectString)(data.IdentityType);
2606
+ contents.IdentityType = smithy_client_1.expectString(data.IdentityType);
2607
2607
  }
2608
2608
  if (data.MailFromAttributes !== undefined && data.MailFromAttributes !== null) {
2609
2609
  contents.MailFromAttributes = deserializeAws_restJson1MailFromAttributes(data.MailFromAttributes, context);
@@ -2612,7 +2612,7 @@ const deserializeAws_restJson1GetEmailIdentityCommand = async (output, context)
2612
2612
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
2613
2613
  }
2614
2614
  if (data.VerifiedForSendingStatus !== undefined && data.VerifiedForSendingStatus !== null) {
2615
- contents.VerifiedForSendingStatus = (0, smithy_client_1.expectBoolean)(data.VerifiedForSendingStatus);
2615
+ contents.VerifiedForSendingStatus = smithy_client_1.expectBoolean(data.VerifiedForSendingStatus);
2616
2616
  }
2617
2617
  return Promise.resolve(contents);
2618
2618
  };
@@ -2675,12 +2675,12 @@ const deserializeAws_restJson1ListConfigurationSetsCommand = async (output, cont
2675
2675
  ConfigurationSets: undefined,
2676
2676
  NextToken: undefined,
2677
2677
  };
2678
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2678
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2679
2679
  if (data.ConfigurationSets !== undefined && data.ConfigurationSets !== null) {
2680
2680
  contents.ConfigurationSets = deserializeAws_restJson1ConfigurationSetNameList(data.ConfigurationSets, context);
2681
2681
  }
2682
2682
  if (data.NextToken !== undefined && data.NextToken !== null) {
2683
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2683
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2684
2684
  }
2685
2685
  return Promise.resolve(contents);
2686
2686
  };
@@ -2735,12 +2735,12 @@ const deserializeAws_restJson1ListDedicatedIpPoolsCommand = async (output, conte
2735
2735
  DedicatedIpPools: undefined,
2736
2736
  NextToken: undefined,
2737
2737
  };
2738
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2738
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2739
2739
  if (data.DedicatedIpPools !== undefined && data.DedicatedIpPools !== null) {
2740
2740
  contents.DedicatedIpPools = deserializeAws_restJson1ListOfDedicatedIpPools(data.DedicatedIpPools, context);
2741
2741
  }
2742
2742
  if (data.NextToken !== undefined && data.NextToken !== null) {
2743
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2743
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2744
2744
  }
2745
2745
  return Promise.resolve(contents);
2746
2746
  };
@@ -2795,12 +2795,12 @@ const deserializeAws_restJson1ListDeliverabilityTestReportsCommand = async (outp
2795
2795
  DeliverabilityTestReports: undefined,
2796
2796
  NextToken: undefined,
2797
2797
  };
2798
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2798
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2799
2799
  if (data.DeliverabilityTestReports !== undefined && data.DeliverabilityTestReports !== null) {
2800
2800
  contents.DeliverabilityTestReports = deserializeAws_restJson1DeliverabilityTestReports(data.DeliverabilityTestReports, context);
2801
2801
  }
2802
2802
  if (data.NextToken !== undefined && data.NextToken !== null) {
2803
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2803
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2804
2804
  }
2805
2805
  return Promise.resolve(contents);
2806
2806
  };
@@ -2863,12 +2863,12 @@ const deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (
2863
2863
  DomainDeliverabilityCampaigns: undefined,
2864
2864
  NextToken: undefined,
2865
2865
  };
2866
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2866
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2867
2867
  if (data.DomainDeliverabilityCampaigns !== undefined && data.DomainDeliverabilityCampaigns !== null) {
2868
2868
  contents.DomainDeliverabilityCampaigns = deserializeAws_restJson1DomainDeliverabilityCampaignList(data.DomainDeliverabilityCampaigns, context);
2869
2869
  }
2870
2870
  if (data.NextToken !== undefined && data.NextToken !== null) {
2871
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2871
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2872
2872
  }
2873
2873
  return Promise.resolve(contents);
2874
2874
  };
@@ -2931,12 +2931,12 @@ const deserializeAws_restJson1ListEmailIdentitiesCommand = async (output, contex
2931
2931
  EmailIdentities: undefined,
2932
2932
  NextToken: undefined,
2933
2933
  };
2934
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2934
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2935
2935
  if (data.EmailIdentities !== undefined && data.EmailIdentities !== null) {
2936
2936
  contents.EmailIdentities = deserializeAws_restJson1IdentityInfoList(data.EmailIdentities, context);
2937
2937
  }
2938
2938
  if (data.NextToken !== undefined && data.NextToken !== null) {
2939
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2939
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2940
2940
  }
2941
2941
  return Promise.resolve(contents);
2942
2942
  };
@@ -2990,7 +2990,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
2990
2990
  $metadata: deserializeMetadata(output),
2991
2991
  Tags: undefined,
2992
2992
  };
2993
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2993
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2994
2994
  if (data.Tags !== undefined && data.Tags !== null) {
2995
2995
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
2996
2996
  }
@@ -3774,9 +3774,9 @@ const deserializeAws_restJson1SendEmailCommand = async (output, context) => {
3774
3774
  $metadata: deserializeMetadata(output),
3775
3775
  MessageId: undefined,
3776
3776
  };
3777
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3777
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3778
3778
  if (data.MessageId !== undefined && data.MessageId !== null) {
3779
- contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
3779
+ contents.MessageId = smithy_client_1.expectString(data.MessageId);
3780
3780
  }
3781
3781
  return Promise.resolve(contents);
3782
3782
  };
@@ -4075,7 +4075,7 @@ const deserializeAws_restJson1AccountSuspendedExceptionResponse = async (parsedO
4075
4075
  };
4076
4076
  const data = parsedOutput.body;
4077
4077
  if (data.message !== undefined && data.message !== null) {
4078
- contents.message = (0, smithy_client_1.expectString)(data.message);
4078
+ contents.message = smithy_client_1.expectString(data.message);
4079
4079
  }
4080
4080
  return contents;
4081
4081
  };
@@ -4088,7 +4088,7 @@ const deserializeAws_restJson1AlreadyExistsExceptionResponse = async (parsedOutp
4088
4088
  };
4089
4089
  const data = parsedOutput.body;
4090
4090
  if (data.message !== undefined && data.message !== null) {
4091
- contents.message = (0, smithy_client_1.expectString)(data.message);
4091
+ contents.message = smithy_client_1.expectString(data.message);
4092
4092
  }
4093
4093
  return contents;
4094
4094
  };
@@ -4101,7 +4101,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
4101
4101
  };
4102
4102
  const data = parsedOutput.body;
4103
4103
  if (data.message !== undefined && data.message !== null) {
4104
- contents.message = (0, smithy_client_1.expectString)(data.message);
4104
+ contents.message = smithy_client_1.expectString(data.message);
4105
4105
  }
4106
4106
  return contents;
4107
4107
  };
@@ -4114,7 +4114,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
4114
4114
  };
4115
4115
  const data = parsedOutput.body;
4116
4116
  if (data.message !== undefined && data.message !== null) {
4117
- contents.message = (0, smithy_client_1.expectString)(data.message);
4117
+ contents.message = smithy_client_1.expectString(data.message);
4118
4118
  }
4119
4119
  return contents;
4120
4120
  };
@@ -4127,7 +4127,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
4127
4127
  };
4128
4128
  const data = parsedOutput.body;
4129
4129
  if (data.message !== undefined && data.message !== null) {
4130
- contents.message = (0, smithy_client_1.expectString)(data.message);
4130
+ contents.message = smithy_client_1.expectString(data.message);
4131
4131
  }
4132
4132
  return contents;
4133
4133
  };
@@ -4140,7 +4140,7 @@ const deserializeAws_restJson1MailFromDomainNotVerifiedExceptionResponse = async
4140
4140
  };
4141
4141
  const data = parsedOutput.body;
4142
4142
  if (data.message !== undefined && data.message !== null) {
4143
- contents.message = (0, smithy_client_1.expectString)(data.message);
4143
+ contents.message = smithy_client_1.expectString(data.message);
4144
4144
  }
4145
4145
  return contents;
4146
4146
  };
@@ -4153,7 +4153,7 @@ const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, con
4153
4153
  };
4154
4154
  const data = parsedOutput.body;
4155
4155
  if (data.message !== undefined && data.message !== null) {
4156
- contents.message = (0, smithy_client_1.expectString)(data.message);
4156
+ contents.message = smithy_client_1.expectString(data.message);
4157
4157
  }
4158
4158
  return contents;
4159
4159
  };
@@ -4166,7 +4166,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
4166
4166
  };
4167
4167
  const data = parsedOutput.body;
4168
4168
  if (data.message !== undefined && data.message !== null) {
4169
- contents.message = (0, smithy_client_1.expectString)(data.message);
4169
+ contents.message = smithy_client_1.expectString(data.message);
4170
4170
  }
4171
4171
  return contents;
4172
4172
  };
@@ -4179,7 +4179,7 @@ const deserializeAws_restJson1SendingPausedExceptionResponse = async (parsedOutp
4179
4179
  };
4180
4180
  const data = parsedOutput.body;
4181
4181
  if (data.message !== undefined && data.message !== null) {
4182
- contents.message = (0, smithy_client_1.expectString)(data.message);
4182
+ contents.message = smithy_client_1.expectString(data.message);
4183
4183
  }
4184
4184
  return contents;
4185
4185
  };
@@ -4192,7 +4192,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
4192
4192
  };
4193
4193
  const data = parsedOutput.body;
4194
4194
  if (data.message !== undefined && data.message !== null) {
4195
- contents.message = (0, smithy_client_1.expectString)(data.message);
4195
+ contents.message = smithy_client_1.expectString(data.message);
4196
4196
  }
4197
4197
  return contents;
4198
4198
  };
@@ -4454,11 +4454,11 @@ const deserializeAws_restJson1BlacklistEntries = (output, context) => {
4454
4454
  };
4455
4455
  const deserializeAws_restJson1BlacklistEntry = (output, context) => {
4456
4456
  return {
4457
- Description: (0, smithy_client_1.expectString)(output.Description),
4457
+ Description: smithy_client_1.expectString(output.Description),
4458
4458
  ListingTime: output.ListingTime !== undefined && output.ListingTime !== null
4459
- ? new Date(Math.round(output.ListingTime * 1000))
4459
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ListingTime)))
4460
4460
  : undefined,
4461
- RblName: (0, smithy_client_1.expectString)(output.RblName),
4461
+ RblName: smithy_client_1.expectString(output.RblName),
4462
4462
  };
4463
4463
  };
4464
4464
  const deserializeAws_restJson1BlacklistReport = (output, context) => {
@@ -4481,9 +4481,9 @@ const deserializeAws_restJson1CloudWatchDestination = (output, context) => {
4481
4481
  };
4482
4482
  const deserializeAws_restJson1CloudWatchDimensionConfiguration = (output, context) => {
4483
4483
  return {
4484
- DefaultDimensionValue: (0, smithy_client_1.expectString)(output.DefaultDimensionValue),
4485
- DimensionName: (0, smithy_client_1.expectString)(output.DimensionName),
4486
- DimensionValueSource: (0, smithy_client_1.expectString)(output.DimensionValueSource),
4484
+ DefaultDimensionValue: smithy_client_1.expectString(output.DefaultDimensionValue),
4485
+ DimensionName: smithy_client_1.expectString(output.DimensionName),
4486
+ DimensionValueSource: smithy_client_1.expectString(output.DimensionValueSource),
4487
4487
  };
4488
4488
  };
4489
4489
  const deserializeAws_restJson1CloudWatchDimensionConfigurations = (output, context) => {
@@ -4503,7 +4503,7 @@ const deserializeAws_restJson1ConfigurationSetNameList = (output, context) => {
4503
4503
  if (entry === null) {
4504
4504
  return null;
4505
4505
  }
4506
- return (0, smithy_client_1.expectString)(entry);
4506
+ return smithy_client_1.expectString(entry);
4507
4507
  });
4508
4508
  };
4509
4509
  const deserializeAws_restJson1DailyVolume = (output, context) => {
@@ -4512,7 +4512,7 @@ const deserializeAws_restJson1DailyVolume = (output, context) => {
4512
4512
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
4513
4513
  : undefined,
4514
4514
  StartDate: output.StartDate !== undefined && output.StartDate !== null
4515
- ? new Date(Math.round(output.StartDate * 1000))
4515
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartDate)))
4516
4516
  : undefined,
4517
4517
  VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
4518
4518
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
@@ -4531,10 +4531,10 @@ const deserializeAws_restJson1DailyVolumes = (output, context) => {
4531
4531
  };
4532
4532
  const deserializeAws_restJson1DedicatedIp = (output, context) => {
4533
4533
  return {
4534
- Ip: (0, smithy_client_1.expectString)(output.Ip),
4535
- PoolName: (0, smithy_client_1.expectString)(output.PoolName),
4536
- WarmupPercentage: (0, smithy_client_1.expectInt32)(output.WarmupPercentage),
4537
- WarmupStatus: (0, smithy_client_1.expectString)(output.WarmupStatus),
4534
+ Ip: smithy_client_1.expectString(output.Ip),
4535
+ PoolName: smithy_client_1.expectString(output.PoolName),
4536
+ WarmupPercentage: smithy_client_1.expectInt32(output.WarmupPercentage),
4537
+ WarmupStatus: smithy_client_1.expectString(output.WarmupStatus),
4538
4538
  };
4539
4539
  };
4540
4540
  const deserializeAws_restJson1DedicatedIpList = (output, context) => {
@@ -4550,13 +4550,13 @@ const deserializeAws_restJson1DedicatedIpList = (output, context) => {
4550
4550
  const deserializeAws_restJson1DeliverabilityTestReport = (output, context) => {
4551
4551
  return {
4552
4552
  CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4553
- ? new Date(Math.round(output.CreateDate * 1000))
4553
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateDate)))
4554
4554
  : undefined,
4555
- DeliverabilityTestStatus: (0, smithy_client_1.expectString)(output.DeliverabilityTestStatus),
4556
- FromEmailAddress: (0, smithy_client_1.expectString)(output.FromEmailAddress),
4557
- ReportId: (0, smithy_client_1.expectString)(output.ReportId),
4558
- ReportName: (0, smithy_client_1.expectString)(output.ReportName),
4559
- Subject: (0, smithy_client_1.expectString)(output.Subject),
4555
+ DeliverabilityTestStatus: smithy_client_1.expectString(output.DeliverabilityTestStatus),
4556
+ FromEmailAddress: smithy_client_1.expectString(output.FromEmailAddress),
4557
+ ReportId: smithy_client_1.expectString(output.ReportId),
4558
+ ReportName: smithy_client_1.expectString(output.ReportName),
4559
+ Subject: smithy_client_1.expectString(output.Subject),
4560
4560
  };
4561
4561
  };
4562
4562
  const deserializeAws_restJson1DeliverabilityTestReports = (output, context) => {
@@ -4571,14 +4571,14 @@ const deserializeAws_restJson1DeliverabilityTestReports = (output, context) => {
4571
4571
  };
4572
4572
  const deserializeAws_restJson1DeliveryOptions = (output, context) => {
4573
4573
  return {
4574
- SendingPoolName: (0, smithy_client_1.expectString)(output.SendingPoolName),
4575
- TlsPolicy: (0, smithy_client_1.expectString)(output.TlsPolicy),
4574
+ SendingPoolName: smithy_client_1.expectString(output.SendingPoolName),
4575
+ TlsPolicy: smithy_client_1.expectString(output.TlsPolicy),
4576
4576
  };
4577
4577
  };
4578
4578
  const deserializeAws_restJson1DkimAttributes = (output, context) => {
4579
4579
  return {
4580
- SigningEnabled: (0, smithy_client_1.expectBoolean)(output.SigningEnabled),
4581
- Status: (0, smithy_client_1.expectString)(output.Status),
4580
+ SigningEnabled: smithy_client_1.expectBoolean(output.SigningEnabled),
4581
+ Status: smithy_client_1.expectString(output.Status),
4582
4582
  Tokens: output.Tokens !== undefined && output.Tokens !== null
4583
4583
  ? deserializeAws_restJson1DnsTokenList(output.Tokens, context)
4584
4584
  : undefined,
@@ -4591,33 +4591,33 @@ const deserializeAws_restJson1DnsTokenList = (output, context) => {
4591
4591
  if (entry === null) {
4592
4592
  return null;
4593
4593
  }
4594
- return (0, smithy_client_1.expectString)(entry);
4594
+ return smithy_client_1.expectString(entry);
4595
4595
  });
4596
4596
  };
4597
4597
  const deserializeAws_restJson1DomainDeliverabilityCampaign = (output, context) => {
4598
4598
  return {
4599
- CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
4600
- DeleteRate: (0, smithy_client_1.limitedParseDouble)(output.DeleteRate),
4599
+ CampaignId: smithy_client_1.expectString(output.CampaignId),
4600
+ DeleteRate: smithy_client_1.limitedParseDouble(output.DeleteRate),
4601
4601
  Esps: output.Esps !== undefined && output.Esps !== null
4602
4602
  ? deserializeAws_restJson1Esps(output.Esps, context)
4603
4603
  : undefined,
4604
4604
  FirstSeenDateTime: output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
4605
- ? new Date(Math.round(output.FirstSeenDateTime * 1000))
4605
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.FirstSeenDateTime)))
4606
4606
  : undefined,
4607
- FromAddress: (0, smithy_client_1.expectString)(output.FromAddress),
4608
- ImageUrl: (0, smithy_client_1.expectString)(output.ImageUrl),
4609
- InboxCount: (0, smithy_client_1.expectLong)(output.InboxCount),
4607
+ FromAddress: smithy_client_1.expectString(output.FromAddress),
4608
+ ImageUrl: smithy_client_1.expectString(output.ImageUrl),
4609
+ InboxCount: smithy_client_1.expectLong(output.InboxCount),
4610
4610
  LastSeenDateTime: output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
4611
- ? new Date(Math.round(output.LastSeenDateTime * 1000))
4611
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastSeenDateTime)))
4612
4612
  : undefined,
4613
- ProjectedVolume: (0, smithy_client_1.expectLong)(output.ProjectedVolume),
4614
- ReadDeleteRate: (0, smithy_client_1.limitedParseDouble)(output.ReadDeleteRate),
4615
- ReadRate: (0, smithy_client_1.limitedParseDouble)(output.ReadRate),
4613
+ ProjectedVolume: smithy_client_1.expectLong(output.ProjectedVolume),
4614
+ ReadDeleteRate: smithy_client_1.limitedParseDouble(output.ReadDeleteRate),
4615
+ ReadRate: smithy_client_1.limitedParseDouble(output.ReadRate),
4616
4616
  SendingIps: output.SendingIps !== undefined && output.SendingIps !== null
4617
4617
  ? deserializeAws_restJson1IpList(output.SendingIps, context)
4618
4618
  : undefined,
4619
- SpamCount: (0, smithy_client_1.expectLong)(output.SpamCount),
4620
- Subject: (0, smithy_client_1.expectString)(output.Subject),
4619
+ SpamCount: smithy_client_1.expectLong(output.SpamCount),
4620
+ Subject: smithy_client_1.expectString(output.Subject),
4621
4621
  };
4622
4622
  };
4623
4623
  const deserializeAws_restJson1DomainDeliverabilityCampaignList = (output, context) => {
@@ -4632,12 +4632,12 @@ const deserializeAws_restJson1DomainDeliverabilityCampaignList = (output, contex
4632
4632
  };
4633
4633
  const deserializeAws_restJson1DomainDeliverabilityTrackingOption = (output, context) => {
4634
4634
  return {
4635
- Domain: (0, smithy_client_1.expectString)(output.Domain),
4635
+ Domain: smithy_client_1.expectString(output.Domain),
4636
4636
  InboxPlacementTrackingOption: output.InboxPlacementTrackingOption !== undefined && output.InboxPlacementTrackingOption !== null
4637
4637
  ? deserializeAws_restJson1InboxPlacementTrackingOption(output.InboxPlacementTrackingOption, context)
4638
4638
  : undefined,
4639
4639
  SubscriptionStartDate: output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
4640
- ? new Date(Math.round(output.SubscriptionStartDate * 1000))
4640
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubscriptionStartDate)))
4641
4641
  : undefined,
4642
4642
  };
4643
4643
  };
@@ -4653,11 +4653,11 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOptions = (output, con
4653
4653
  };
4654
4654
  const deserializeAws_restJson1DomainIspPlacement = (output, context) => {
4655
4655
  return {
4656
- InboxPercentage: (0, smithy_client_1.limitedParseDouble)(output.InboxPercentage),
4657
- InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),
4658
- IspName: (0, smithy_client_1.expectString)(output.IspName),
4659
- SpamPercentage: (0, smithy_client_1.limitedParseDouble)(output.SpamPercentage),
4660
- SpamRawCount: (0, smithy_client_1.expectLong)(output.SpamRawCount),
4656
+ InboxPercentage: smithy_client_1.limitedParseDouble(output.InboxPercentage),
4657
+ InboxRawCount: smithy_client_1.expectLong(output.InboxRawCount),
4658
+ IspName: smithy_client_1.expectString(output.IspName),
4659
+ SpamPercentage: smithy_client_1.limitedParseDouble(output.SpamPercentage),
4660
+ SpamRawCount: smithy_client_1.expectLong(output.SpamRawCount),
4661
4661
  };
4662
4662
  };
4663
4663
  const deserializeAws_restJson1DomainIspPlacements = (output, context) => {
@@ -4677,7 +4677,7 @@ const deserializeAws_restJson1Esps = (output, context) => {
4677
4677
  if (entry === null) {
4678
4678
  return null;
4679
4679
  }
4680
- return (0, smithy_client_1.expectString)(entry);
4680
+ return smithy_client_1.expectString(entry);
4681
4681
  });
4682
4682
  };
4683
4683
  const deserializeAws_restJson1EventDestination = (output, context) => {
@@ -4685,14 +4685,14 @@ const deserializeAws_restJson1EventDestination = (output, context) => {
4685
4685
  CloudWatchDestination: output.CloudWatchDestination !== undefined && output.CloudWatchDestination !== null
4686
4686
  ? deserializeAws_restJson1CloudWatchDestination(output.CloudWatchDestination, context)
4687
4687
  : undefined,
4688
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4688
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
4689
4689
  KinesisFirehoseDestination: output.KinesisFirehoseDestination !== undefined && output.KinesisFirehoseDestination !== null
4690
4690
  ? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
4691
4691
  : undefined,
4692
4692
  MatchingEventTypes: output.MatchingEventTypes !== undefined && output.MatchingEventTypes !== null
4693
4693
  ? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
4694
4694
  : undefined,
4695
- Name: (0, smithy_client_1.expectString)(output.Name),
4695
+ Name: smithy_client_1.expectString(output.Name),
4696
4696
  PinpointDestination: output.PinpointDestination !== undefined && output.PinpointDestination !== null
4697
4697
  ? deserializeAws_restJson1PinpointDestination(output.PinpointDestination, context)
4698
4698
  : undefined,
@@ -4718,14 +4718,14 @@ const deserializeAws_restJson1EventTypes = (output, context) => {
4718
4718
  if (entry === null) {
4719
4719
  return null;
4720
4720
  }
4721
- return (0, smithy_client_1.expectString)(entry);
4721
+ return smithy_client_1.expectString(entry);
4722
4722
  });
4723
4723
  };
4724
4724
  const deserializeAws_restJson1IdentityInfo = (output, context) => {
4725
4725
  return {
4726
- IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
4727
- IdentityType: (0, smithy_client_1.expectString)(output.IdentityType),
4728
- SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
4726
+ IdentityName: smithy_client_1.expectString(output.IdentityName),
4727
+ IdentityType: smithy_client_1.expectString(output.IdentityType),
4728
+ SendingEnabled: smithy_client_1.expectBoolean(output.SendingEnabled),
4729
4729
  };
4730
4730
  };
4731
4731
  const deserializeAws_restJson1IdentityInfoList = (output, context) => {
@@ -4740,7 +4740,7 @@ const deserializeAws_restJson1IdentityInfoList = (output, context) => {
4740
4740
  };
4741
4741
  const deserializeAws_restJson1InboxPlacementTrackingOption = (output, context) => {
4742
4742
  return {
4743
- Global: (0, smithy_client_1.expectBoolean)(output.Global),
4743
+ Global: smithy_client_1.expectBoolean(output.Global),
4744
4744
  TrackedIsps: output.TrackedIsps !== undefined && output.TrackedIsps !== null
4745
4745
  ? deserializeAws_restJson1IspNameList(output.TrackedIsps, context)
4746
4746
  : undefined,
@@ -4753,7 +4753,7 @@ const deserializeAws_restJson1IpList = (output, context) => {
4753
4753
  if (entry === null) {
4754
4754
  return null;
4755
4755
  }
4756
- return (0, smithy_client_1.expectString)(entry);
4756
+ return smithy_client_1.expectString(entry);
4757
4757
  });
4758
4758
  };
4759
4759
  const deserializeAws_restJson1IspNameList = (output, context) => {
@@ -4763,12 +4763,12 @@ const deserializeAws_restJson1IspNameList = (output, context) => {
4763
4763
  if (entry === null) {
4764
4764
  return null;
4765
4765
  }
4766
- return (0, smithy_client_1.expectString)(entry);
4766
+ return smithy_client_1.expectString(entry);
4767
4767
  });
4768
4768
  };
4769
4769
  const deserializeAws_restJson1IspPlacement = (output, context) => {
4770
4770
  return {
4771
- IspName: (0, smithy_client_1.expectString)(output.IspName),
4771
+ IspName: smithy_client_1.expectString(output.IspName),
4772
4772
  PlacementStatistics: output.PlacementStatistics !== undefined && output.PlacementStatistics !== null
4773
4773
  ? deserializeAws_restJson1PlacementStatistics(output.PlacementStatistics, context)
4774
4774
  : undefined,
@@ -4786,8 +4786,8 @@ const deserializeAws_restJson1IspPlacements = (output, context) => {
4786
4786
  };
4787
4787
  const deserializeAws_restJson1KinesisFirehoseDestination = (output, context) => {
4788
4788
  return {
4789
- DeliveryStreamArn: (0, smithy_client_1.expectString)(output.DeliveryStreamArn),
4790
- IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
4789
+ DeliveryStreamArn: smithy_client_1.expectString(output.DeliveryStreamArn),
4790
+ IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
4791
4791
  };
4792
4792
  };
4793
4793
  const deserializeAws_restJson1ListOfDedicatedIpPools = (output, context) => {
@@ -4797,14 +4797,14 @@ const deserializeAws_restJson1ListOfDedicatedIpPools = (output, context) => {
4797
4797
  if (entry === null) {
4798
4798
  return null;
4799
4799
  }
4800
- return (0, smithy_client_1.expectString)(entry);
4800
+ return smithy_client_1.expectString(entry);
4801
4801
  });
4802
4802
  };
4803
4803
  const deserializeAws_restJson1MailFromAttributes = (output, context) => {
4804
4804
  return {
4805
- BehaviorOnMxFailure: (0, smithy_client_1.expectString)(output.BehaviorOnMxFailure),
4806
- MailFromDomain: (0, smithy_client_1.expectString)(output.MailFromDomain),
4807
- MailFromDomainStatus: (0, smithy_client_1.expectString)(output.MailFromDomainStatus),
4805
+ BehaviorOnMxFailure: smithy_client_1.expectString(output.BehaviorOnMxFailure),
4806
+ MailFromDomain: smithy_client_1.expectString(output.MailFromDomain),
4807
+ MailFromDomainStatus: smithy_client_1.expectString(output.MailFromDomainStatus),
4808
4808
  };
4809
4809
  };
4810
4810
  const deserializeAws_restJson1OverallVolume = (output, context) => {
@@ -4812,7 +4812,7 @@ const deserializeAws_restJson1OverallVolume = (output, context) => {
4812
4812
  DomainIspPlacements: output.DomainIspPlacements !== undefined && output.DomainIspPlacements !== null
4813
4813
  ? deserializeAws_restJson1DomainIspPlacements(output.DomainIspPlacements, context)
4814
4814
  : undefined,
4815
- ReadRatePercent: (0, smithy_client_1.limitedParseDouble)(output.ReadRatePercent),
4815
+ ReadRatePercent: smithy_client_1.limitedParseDouble(output.ReadRatePercent),
4816
4816
  VolumeStatistics: output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
4817
4817
  ? deserializeAws_restJson1VolumeStatistics(output.VolumeStatistics, context)
4818
4818
  : undefined,
@@ -4820,47 +4820,47 @@ const deserializeAws_restJson1OverallVolume = (output, context) => {
4820
4820
  };
4821
4821
  const deserializeAws_restJson1PinpointDestination = (output, context) => {
4822
4822
  return {
4823
- ApplicationArn: (0, smithy_client_1.expectString)(output.ApplicationArn),
4823
+ ApplicationArn: smithy_client_1.expectString(output.ApplicationArn),
4824
4824
  };
4825
4825
  };
4826
4826
  const deserializeAws_restJson1PlacementStatistics = (output, context) => {
4827
4827
  return {
4828
- DkimPercentage: (0, smithy_client_1.limitedParseDouble)(output.DkimPercentage),
4829
- InboxPercentage: (0, smithy_client_1.limitedParseDouble)(output.InboxPercentage),
4830
- MissingPercentage: (0, smithy_client_1.limitedParseDouble)(output.MissingPercentage),
4831
- SpamPercentage: (0, smithy_client_1.limitedParseDouble)(output.SpamPercentage),
4832
- SpfPercentage: (0, smithy_client_1.limitedParseDouble)(output.SpfPercentage),
4828
+ DkimPercentage: smithy_client_1.limitedParseDouble(output.DkimPercentage),
4829
+ InboxPercentage: smithy_client_1.limitedParseDouble(output.InboxPercentage),
4830
+ MissingPercentage: smithy_client_1.limitedParseDouble(output.MissingPercentage),
4831
+ SpamPercentage: smithy_client_1.limitedParseDouble(output.SpamPercentage),
4832
+ SpfPercentage: smithy_client_1.limitedParseDouble(output.SpfPercentage),
4833
4833
  };
4834
4834
  };
4835
4835
  const deserializeAws_restJson1ReputationOptions = (output, context) => {
4836
4836
  return {
4837
4837
  LastFreshStart: output.LastFreshStart !== undefined && output.LastFreshStart !== null
4838
- ? new Date(Math.round(output.LastFreshStart * 1000))
4838
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastFreshStart)))
4839
4839
  : undefined,
4840
- ReputationMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.ReputationMetricsEnabled),
4840
+ ReputationMetricsEnabled: smithy_client_1.expectBoolean(output.ReputationMetricsEnabled),
4841
4841
  };
4842
4842
  };
4843
4843
  const deserializeAws_restJson1SendingOptions = (output, context) => {
4844
4844
  return {
4845
- SendingEnabled: (0, smithy_client_1.expectBoolean)(output.SendingEnabled),
4845
+ SendingEnabled: smithy_client_1.expectBoolean(output.SendingEnabled),
4846
4846
  };
4847
4847
  };
4848
4848
  const deserializeAws_restJson1SendQuota = (output, context) => {
4849
4849
  return {
4850
- Max24HourSend: (0, smithy_client_1.limitedParseDouble)(output.Max24HourSend),
4851
- MaxSendRate: (0, smithy_client_1.limitedParseDouble)(output.MaxSendRate),
4852
- SentLast24Hours: (0, smithy_client_1.limitedParseDouble)(output.SentLast24Hours),
4850
+ Max24HourSend: smithy_client_1.limitedParseDouble(output.Max24HourSend),
4851
+ MaxSendRate: smithy_client_1.limitedParseDouble(output.MaxSendRate),
4852
+ SentLast24Hours: smithy_client_1.limitedParseDouble(output.SentLast24Hours),
4853
4853
  };
4854
4854
  };
4855
4855
  const deserializeAws_restJson1SnsDestination = (output, context) => {
4856
4856
  return {
4857
- TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
4857
+ TopicArn: smithy_client_1.expectString(output.TopicArn),
4858
4858
  };
4859
4859
  };
4860
4860
  const deserializeAws_restJson1Tag = (output, context) => {
4861
4861
  return {
4862
- Key: (0, smithy_client_1.expectString)(output.Key),
4863
- Value: (0, smithy_client_1.expectString)(output.Value),
4862
+ Key: smithy_client_1.expectString(output.Key),
4863
+ Value: smithy_client_1.expectString(output.Value),
4864
4864
  };
4865
4865
  };
4866
4866
  const deserializeAws_restJson1TagList = (output, context) => {
@@ -4875,15 +4875,15 @@ const deserializeAws_restJson1TagList = (output, context) => {
4875
4875
  };
4876
4876
  const deserializeAws_restJson1TrackingOptions = (output, context) => {
4877
4877
  return {
4878
- CustomRedirectDomain: (0, smithy_client_1.expectString)(output.CustomRedirectDomain),
4878
+ CustomRedirectDomain: smithy_client_1.expectString(output.CustomRedirectDomain),
4879
4879
  };
4880
4880
  };
4881
4881
  const deserializeAws_restJson1VolumeStatistics = (output, context) => {
4882
4882
  return {
4883
- InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),
4884
- ProjectedInbox: (0, smithy_client_1.expectLong)(output.ProjectedInbox),
4885
- ProjectedSpam: (0, smithy_client_1.expectLong)(output.ProjectedSpam),
4886
- SpamRawCount: (0, smithy_client_1.expectLong)(output.SpamRawCount),
4883
+ InboxRawCount: smithy_client_1.expectLong(output.InboxRawCount),
4884
+ ProjectedInbox: smithy_client_1.expectLong(output.ProjectedInbox),
4885
+ ProjectedSpam: smithy_client_1.expectLong(output.ProjectedSpam),
4886
+ SpamRawCount: smithy_client_1.expectLong(output.SpamRawCount),
4887
4887
  };
4888
4888
  };
4889
4889
  const deserializeMetadata = (output) => {