@aws-sdk/client-sesv2 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/SESv2Client.js +13 -13
  3. package/dist-cjs/commands/CreateConfigurationSetCommand.js +3 -3
  4. package/dist-cjs/commands/CreateConfigurationSetEventDestinationCommand.js +3 -3
  5. package/dist-cjs/commands/CreateContactCommand.js +3 -3
  6. package/dist-cjs/commands/CreateContactListCommand.js +3 -3
  7. package/dist-cjs/commands/CreateCustomVerificationEmailTemplateCommand.js +3 -3
  8. package/dist-cjs/commands/CreateDedicatedIpPoolCommand.js +3 -3
  9. package/dist-cjs/commands/CreateDeliverabilityTestReportCommand.js +3 -3
  10. package/dist-cjs/commands/CreateEmailIdentityCommand.js +3 -3
  11. package/dist-cjs/commands/CreateEmailIdentityPolicyCommand.js +3 -3
  12. package/dist-cjs/commands/CreateEmailTemplateCommand.js +3 -3
  13. package/dist-cjs/commands/CreateImportJobCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteConfigurationSetCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteConfigurationSetEventDestinationCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteContactCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteContactListCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteCustomVerificationEmailTemplateCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteDedicatedIpPoolCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteEmailIdentityCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteEmailIdentityPolicyCommand.js +3 -3
  22. package/dist-cjs/commands/DeleteEmailTemplateCommand.js +3 -3
  23. package/dist-cjs/commands/DeleteSuppressedDestinationCommand.js +3 -3
  24. package/dist-cjs/commands/GetAccountCommand.js +3 -3
  25. package/dist-cjs/commands/GetBlacklistReportsCommand.js +3 -3
  26. package/dist-cjs/commands/GetConfigurationSetCommand.js +3 -3
  27. package/dist-cjs/commands/GetConfigurationSetEventDestinationsCommand.js +3 -3
  28. package/dist-cjs/commands/GetContactCommand.js +3 -3
  29. package/dist-cjs/commands/GetContactListCommand.js +3 -3
  30. package/dist-cjs/commands/GetCustomVerificationEmailTemplateCommand.js +3 -3
  31. package/dist-cjs/commands/GetDedicatedIpCommand.js +3 -3
  32. package/dist-cjs/commands/GetDedicatedIpsCommand.js +3 -3
  33. package/dist-cjs/commands/GetDeliverabilityDashboardOptionsCommand.js +3 -3
  34. package/dist-cjs/commands/GetDeliverabilityTestReportCommand.js +3 -3
  35. package/dist-cjs/commands/GetDomainDeliverabilityCampaignCommand.js +3 -3
  36. package/dist-cjs/commands/GetDomainStatisticsReportCommand.js +3 -3
  37. package/dist-cjs/commands/GetEmailIdentityCommand.js +3 -3
  38. package/dist-cjs/commands/GetEmailIdentityPoliciesCommand.js +3 -3
  39. package/dist-cjs/commands/GetEmailTemplateCommand.js +3 -3
  40. package/dist-cjs/commands/GetImportJobCommand.js +3 -3
  41. package/dist-cjs/commands/GetSuppressedDestinationCommand.js +3 -3
  42. package/dist-cjs/commands/ListConfigurationSetsCommand.js +3 -3
  43. package/dist-cjs/commands/ListContactListsCommand.js +3 -3
  44. package/dist-cjs/commands/ListContactsCommand.js +3 -3
  45. package/dist-cjs/commands/ListCustomVerificationEmailTemplatesCommand.js +3 -3
  46. package/dist-cjs/commands/ListDedicatedIpPoolsCommand.js +3 -3
  47. package/dist-cjs/commands/ListDeliverabilityTestReportsCommand.js +3 -3
  48. package/dist-cjs/commands/ListDomainDeliverabilityCampaignsCommand.js +3 -3
  49. package/dist-cjs/commands/ListEmailIdentitiesCommand.js +3 -3
  50. package/dist-cjs/commands/ListEmailTemplatesCommand.js +3 -3
  51. package/dist-cjs/commands/ListImportJobsCommand.js +3 -3
  52. package/dist-cjs/commands/ListSuppressedDestinationsCommand.js +3 -3
  53. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  54. package/dist-cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +3 -3
  55. package/dist-cjs/commands/PutAccountDetailsCommand.js +3 -3
  56. package/dist-cjs/commands/PutAccountSendingAttributesCommand.js +3 -3
  57. package/dist-cjs/commands/PutAccountSuppressionAttributesCommand.js +3 -3
  58. package/dist-cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js +3 -3
  59. package/dist-cjs/commands/PutConfigurationSetReputationOptionsCommand.js +3 -3
  60. package/dist-cjs/commands/PutConfigurationSetSendingOptionsCommand.js +3 -3
  61. package/dist-cjs/commands/PutConfigurationSetSuppressionOptionsCommand.js +3 -3
  62. package/dist-cjs/commands/PutConfigurationSetTrackingOptionsCommand.js +3 -3
  63. package/dist-cjs/commands/PutDedicatedIpInPoolCommand.js +3 -3
  64. package/dist-cjs/commands/PutDedicatedIpWarmupAttributesCommand.js +3 -3
  65. package/dist-cjs/commands/PutDeliverabilityDashboardOptionCommand.js +3 -3
  66. package/dist-cjs/commands/PutEmailIdentityConfigurationSetAttributesCommand.js +3 -3
  67. package/dist-cjs/commands/PutEmailIdentityDkimAttributesCommand.js +3 -3
  68. package/dist-cjs/commands/PutEmailIdentityDkimSigningAttributesCommand.js +3 -3
  69. package/dist-cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js +3 -3
  70. package/dist-cjs/commands/PutEmailIdentityMailFromAttributesCommand.js +3 -3
  71. package/dist-cjs/commands/PutSuppressedDestinationCommand.js +3 -3
  72. package/dist-cjs/commands/SendBulkEmailCommand.js +3 -3
  73. package/dist-cjs/commands/SendCustomVerificationEmailCommand.js +3 -3
  74. package/dist-cjs/commands/SendEmailCommand.js +3 -3
  75. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  76. package/dist-cjs/commands/TestRenderEmailTemplateCommand.js +3 -3
  77. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  78. package/dist-cjs/commands/UpdateConfigurationSetEventDestinationCommand.js +3 -3
  79. package/dist-cjs/commands/UpdateContactCommand.js +3 -3
  80. package/dist-cjs/commands/UpdateContactListCommand.js +3 -3
  81. package/dist-cjs/commands/UpdateCustomVerificationEmailTemplateCommand.js +3 -3
  82. package/dist-cjs/commands/UpdateEmailIdentityPolicyCommand.js +3 -3
  83. package/dist-cjs/commands/UpdateEmailTemplateCommand.js +3 -3
  84. package/dist-cjs/endpoints.js +1 -1
  85. package/dist-cjs/protocols/Aws_restJson1.js +391 -391
  86. package/dist-cjs/runtimeConfig.browser.js +4 -4
  87. package/dist-cjs/runtimeConfig.js +9 -9
  88. package/dist-cjs/runtimeConfig.native.js +1 -1
  89. package/dist-es/SESv2.js +81 -81
  90. package/dist-es/pagination/GetDedicatedIpsPaginator.js +4 -4
  91. package/dist-es/pagination/ListConfigurationSetsPaginator.js +4 -4
  92. package/dist-es/pagination/ListContactListsPaginator.js +4 -4
  93. package/dist-es/pagination/ListContactsPaginator.js +4 -4
  94. package/dist-es/pagination/ListCustomVerificationEmailTemplatesPaginator.js +4 -4
  95. package/dist-es/pagination/ListDedicatedIpPoolsPaginator.js +4 -4
  96. package/dist-es/pagination/ListDeliverabilityTestReportsPaginator.js +4 -4
  97. package/dist-es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +4 -4
  98. package/dist-es/pagination/ListEmailIdentitiesPaginator.js +4 -4
  99. package/dist-es/pagination/ListEmailTemplatesPaginator.js +4 -4
  100. package/dist-es/pagination/ListImportJobsPaginator.js +4 -4
  101. package/dist-es/pagination/ListSuppressedDestinationsPaginator.js +4 -4
  102. package/dist-es/protocols/Aws_restJson1.js +81 -81
  103. package/dist-types/SESv2Client.d.ts +2 -2
  104. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  105. package/dist-types/runtimeConfig.d.ts +1 -1
  106. package/dist-types/runtimeConfig.native.d.ts +3 -3
  107. package/dist-types/ts3.4/SESv2Client.d.ts +2 -2
  108. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  109. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  110. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  111. package/package.json +34 -34
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateConfigurationSetCommand = function (input
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/configuration-sets";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/configuration-sets";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
18
18
  input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DeliveryOptions !== undefined &&
19
19
  input.DeliveryOptions !== null && {
@@ -54,7 +54,7 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
54
54
  headers = {
55
55
  "content-type": "application/json",
56
56
  };
57
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
57
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
58
58
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
59
59
  if (input.ConfigurationSetName !== undefined) {
60
60
  labelValue = input.ConfigurationSetName;
@@ -93,7 +93,7 @@ export var serializeAws_restJson1CreateContactCommand = function (input, context
93
93
  headers = {
94
94
  "content-type": "application/json",
95
95
  };
96
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
96
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
97
97
  "/v2/email/contact-lists/{ContactListName}/contacts";
98
98
  if (input.ContactListName !== undefined) {
99
99
  labelValue = input.ContactListName;
@@ -133,7 +133,7 @@ export var serializeAws_restJson1CreateContactListCommand = function (input, con
133
133
  headers = {
134
134
  "content-type": "application/json",
135
135
  };
136
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists";
136
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists";
137
137
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactListName !== undefined &&
138
138
  input.ContactListName !== null && { ContactListName: input.ContactListName })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined &&
139
139
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })), (input.Topics !== undefined &&
@@ -160,7 +160,7 @@ export var serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand =
160
160
  headers = {
161
161
  "content-type": "application/json",
162
162
  };
163
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
163
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
164
164
  "/v2/email/custom-verification-email-templates";
165
165
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FailureRedirectionURL !== undefined &&
166
166
  input.FailureRedirectionURL !== null && { FailureRedirectionURL: input.FailureRedirectionURL })), (input.FromEmailAddress !== undefined &&
@@ -190,7 +190,7 @@ export var serializeAws_restJson1CreateDedicatedIpPoolCommand = function (input,
190
190
  headers = {
191
191
  "content-type": "application/json",
192
192
  };
193
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools";
193
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools";
194
194
  body = JSON.stringify(__assign(__assign({}, (input.PoolName !== undefined && input.PoolName !== null && { PoolName: input.PoolName })), (input.Tags !== undefined &&
195
195
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
196
196
  return [2, new __HttpRequest({
@@ -215,7 +215,7 @@ export var serializeAws_restJson1CreateDeliverabilityTestReportCommand = functio
215
215
  headers = {
216
216
  "content-type": "application/json",
217
217
  };
218
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard/test";
218
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard/test";
219
219
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content !== undefined &&
220
220
  input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.FromEmailAddress !== undefined &&
221
221
  input.FromEmailAddress !== null && { FromEmailAddress: input.FromEmailAddress })), (input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName })), (input.Tags !== undefined &&
@@ -242,7 +242,7 @@ export var serializeAws_restJson1CreateEmailIdentityCommand = function (input, c
242
242
  headers = {
243
243
  "content-type": "application/json",
244
244
  };
245
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities";
245
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities";
246
246
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
247
247
  input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.DkimSigningAttributes !== undefined &&
248
248
  input.DkimSigningAttributes !== null && {
@@ -271,7 +271,7 @@ export var serializeAws_restJson1CreateEmailIdentityPolicyCommand = function (in
271
271
  headers = {
272
272
  "content-type": "application/json",
273
273
  };
274
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
274
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
275
275
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
276
276
  if (input.EmailIdentity !== undefined) {
277
277
  labelValue = input.EmailIdentity;
@@ -316,7 +316,7 @@ export var serializeAws_restJson1CreateEmailTemplateCommand = function (input, c
316
316
  headers = {
317
317
  "content-type": "application/json",
318
318
  };
319
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates";
319
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates";
320
320
  body = JSON.stringify(__assign(__assign({}, (input.TemplateContent !== undefined &&
321
321
  input.TemplateContent !== null && {
322
322
  TemplateContent: serializeAws_restJson1EmailTemplateContent(input.TemplateContent, context),
@@ -343,7 +343,7 @@ export var serializeAws_restJson1CreateImportJobCommand = function (input, conte
343
343
  headers = {
344
344
  "content-type": "application/json",
345
345
  };
346
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
346
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
347
347
  body = JSON.stringify(__assign(__assign({}, (input.ImportDataSource !== undefined &&
348
348
  input.ImportDataSource !== null && {
349
349
  ImportDataSource: serializeAws_restJson1ImportDataSource(input.ImportDataSource, context),
@@ -371,7 +371,7 @@ export var serializeAws_restJson1DeleteConfigurationSetCommand = function (input
371
371
  case 1:
372
372
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
373
373
  headers = {};
374
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
374
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
375
375
  "/v2/email/configuration-sets/{ConfigurationSetName}";
376
376
  if (input.ConfigurationSetName !== undefined) {
377
377
  labelValue = input.ConfigurationSetName;
@@ -403,7 +403,7 @@ export var serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand =
403
403
  case 1:
404
404
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
405
405
  headers = {};
406
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
406
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
407
407
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
408
408
  if (input.ConfigurationSetName !== undefined) {
409
409
  labelValue = input.ConfigurationSetName;
@@ -445,7 +445,7 @@ export var serializeAws_restJson1DeleteContactCommand = function (input, context
445
445
  case 1:
446
446
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
447
447
  headers = {};
448
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
448
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
449
449
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
450
450
  if (input.ContactListName !== undefined) {
451
451
  labelValue = input.ContactListName;
@@ -487,7 +487,7 @@ export var serializeAws_restJson1DeleteContactListCommand = function (input, con
487
487
  case 1:
488
488
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
489
489
  headers = {};
490
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
490
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
491
491
  if (input.ContactListName !== undefined) {
492
492
  labelValue = input.ContactListName;
493
493
  if (labelValue.length <= 0) {
@@ -518,7 +518,7 @@ export var serializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand =
518
518
  case 1:
519
519
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
520
520
  headers = {};
521
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
521
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
522
522
  "/v2/email/custom-verification-email-templates/{TemplateName}";
523
523
  if (input.TemplateName !== undefined) {
524
524
  labelValue = input.TemplateName;
@@ -550,7 +550,7 @@ export var serializeAws_restJson1DeleteDedicatedIpPoolCommand = function (input,
550
550
  case 1:
551
551
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
552
552
  headers = {};
553
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools/{PoolName}";
553
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools/{PoolName}";
554
554
  if (input.PoolName !== undefined) {
555
555
  labelValue = input.PoolName;
556
556
  if (labelValue.length <= 0) {
@@ -581,7 +581,7 @@ export var serializeAws_restJson1DeleteEmailIdentityCommand = function (input, c
581
581
  case 1:
582
582
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
583
583
  headers = {};
584
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}";
584
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}";
585
585
  if (input.EmailIdentity !== undefined) {
586
586
  labelValue = input.EmailIdentity;
587
587
  if (labelValue.length <= 0) {
@@ -612,7 +612,7 @@ export var serializeAws_restJson1DeleteEmailIdentityPolicyCommand = function (in
612
612
  case 1:
613
613
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
614
614
  headers = {};
615
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
615
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
616
616
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
617
617
  if (input.EmailIdentity !== undefined) {
618
618
  labelValue = input.EmailIdentity;
@@ -654,7 +654,7 @@ export var serializeAws_restJson1DeleteEmailTemplateCommand = function (input, c
654
654
  case 1:
655
655
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
656
656
  headers = {};
657
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
657
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
658
658
  if (input.TemplateName !== undefined) {
659
659
  labelValue = input.TemplateName;
660
660
  if (labelValue.length <= 0) {
@@ -685,7 +685,7 @@ export var serializeAws_restJson1DeleteSuppressedDestinationCommand = function (
685
685
  case 1:
686
686
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
687
687
  headers = {};
688
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
688
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
689
689
  "/v2/email/suppression/addresses/{EmailAddress}";
690
690
  if (input.EmailAddress !== undefined) {
691
691
  labelValue = input.EmailAddress;
@@ -719,7 +719,7 @@ export var serializeAws_restJson1GetAccountCommand = function (input, context) {
719
719
  headers = {
720
720
  "content-type": "application/json",
721
721
  };
722
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account";
722
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account";
723
723
  body = "";
724
724
  return [2, new __HttpRequest({
725
725
  protocol: protocol,
@@ -741,7 +741,7 @@ export var serializeAws_restJson1GetBlacklistReportsCommand = function (input, c
741
741
  case 1:
742
742
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
743
743
  headers = {};
744
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
744
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
745
745
  "/v2/email/deliverability-dashboard/blacklist-report";
746
746
  query = __assign({}, (input.BlacklistItemNames !== undefined && {
747
747
  BlacklistItemNames: (input.BlacklistItemNames || []).map(function (_entry) { return _entry; }),
@@ -767,7 +767,7 @@ export var serializeAws_restJson1GetConfigurationSetCommand = function (input, c
767
767
  case 1:
768
768
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
769
769
  headers = {};
770
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
770
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
771
771
  "/v2/email/configuration-sets/{ConfigurationSetName}";
772
772
  if (input.ConfigurationSetName !== undefined) {
773
773
  labelValue = input.ConfigurationSetName;
@@ -799,7 +799,7 @@ export var serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = f
799
799
  case 1:
800
800
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
801
801
  headers = {};
802
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
802
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
803
803
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
804
804
  if (input.ConfigurationSetName !== undefined) {
805
805
  labelValue = input.ConfigurationSetName;
@@ -831,7 +831,7 @@ export var serializeAws_restJson1GetContactCommand = function (input, context) {
831
831
  case 1:
832
832
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
833
833
  headers = {};
834
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
834
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
835
835
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
836
836
  if (input.ContactListName !== undefined) {
837
837
  labelValue = input.ContactListName;
@@ -873,7 +873,7 @@ export var serializeAws_restJson1GetContactListCommand = function (input, contex
873
873
  case 1:
874
874
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
875
875
  headers = {};
876
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
876
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
877
877
  if (input.ContactListName !== undefined) {
878
878
  labelValue = input.ContactListName;
879
879
  if (labelValue.length <= 0) {
@@ -904,7 +904,7 @@ export var serializeAws_restJson1GetCustomVerificationEmailTemplateCommand = fun
904
904
  case 1:
905
905
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
906
906
  headers = {};
907
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
907
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
908
908
  "/v2/email/custom-verification-email-templates/{TemplateName}";
909
909
  if (input.TemplateName !== undefined) {
910
910
  labelValue = input.TemplateName;
@@ -936,7 +936,7 @@ export var serializeAws_restJson1GetDedicatedIpCommand = function (input, contex
936
936
  case 1:
937
937
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
938
938
  headers = {};
939
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}";
939
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}";
940
940
  if (input.Ip !== undefined) {
941
941
  labelValue = input.Ip;
942
942
  if (labelValue.length <= 0) {
@@ -967,7 +967,7 @@ export var serializeAws_restJson1GetDedicatedIpsCommand = function (input, conte
967
967
  case 1:
968
968
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
969
969
  headers = {};
970
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips";
970
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips";
971
971
  query = __assign(__assign(__assign({}, (input.PoolName !== undefined && { PoolName: input.PoolName })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
972
972
  return [2, new __HttpRequest({
973
973
  protocol: protocol,
@@ -992,7 +992,7 @@ export var serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = func
992
992
  headers = {
993
993
  "content-type": "application/json",
994
994
  };
995
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard";
995
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard";
996
996
  body = "";
997
997
  return [2, new __HttpRequest({
998
998
  protocol: protocol,
@@ -1014,7 +1014,7 @@ export var serializeAws_restJson1GetDeliverabilityTestReportCommand = function (
1014
1014
  case 1:
1015
1015
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1016
1016
  headers = {};
1017
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1017
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1018
1018
  "/v2/email/deliverability-dashboard/test-reports/{ReportId}";
1019
1019
  if (input.ReportId !== undefined) {
1020
1020
  labelValue = input.ReportId;
@@ -1046,7 +1046,7 @@ export var serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = functi
1046
1046
  case 1:
1047
1047
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1048
1048
  headers = {};
1049
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1049
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1050
1050
  "/v2/email/deliverability-dashboard/campaigns/{CampaignId}";
1051
1051
  if (input.CampaignId !== undefined) {
1052
1052
  labelValue = input.CampaignId;
@@ -1078,7 +1078,7 @@ export var serializeAws_restJson1GetDomainStatisticsReportCommand = function (in
1078
1078
  case 1:
1079
1079
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1080
1080
  headers = {};
1081
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1081
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1082
1082
  "/v2/email/deliverability-dashboard/statistics-report/{Domain}";
1083
1083
  if (input.Domain !== undefined) {
1084
1084
  labelValue = input.Domain;
@@ -1112,7 +1112,7 @@ export var serializeAws_restJson1GetEmailIdentityCommand = function (input, cont
1112
1112
  case 1:
1113
1113
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1114
1114
  headers = {};
1115
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}";
1115
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}";
1116
1116
  if (input.EmailIdentity !== undefined) {
1117
1117
  labelValue = input.EmailIdentity;
1118
1118
  if (labelValue.length <= 0) {
@@ -1143,7 +1143,7 @@ export var serializeAws_restJson1GetEmailIdentityPoliciesCommand = function (inp
1143
1143
  case 1:
1144
1144
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1145
1145
  headers = {};
1146
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1146
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1147
1147
  "/v2/email/identities/{EmailIdentity}/policies";
1148
1148
  if (input.EmailIdentity !== undefined) {
1149
1149
  labelValue = input.EmailIdentity;
@@ -1175,7 +1175,7 @@ export var serializeAws_restJson1GetEmailTemplateCommand = function (input, cont
1175
1175
  case 1:
1176
1176
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1177
1177
  headers = {};
1178
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
1178
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
1179
1179
  if (input.TemplateName !== undefined) {
1180
1180
  labelValue = input.TemplateName;
1181
1181
  if (labelValue.length <= 0) {
@@ -1206,7 +1206,7 @@ export var serializeAws_restJson1GetImportJobCommand = function (input, context)
1206
1206
  case 1:
1207
1207
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1208
1208
  headers = {};
1209
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs/{JobId}";
1209
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs/{JobId}";
1210
1210
  if (input.JobId !== undefined) {
1211
1211
  labelValue = input.JobId;
1212
1212
  if (labelValue.length <= 0) {
@@ -1237,7 +1237,7 @@ export var serializeAws_restJson1GetSuppressedDestinationCommand = function (inp
1237
1237
  case 1:
1238
1238
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1239
1239
  headers = {};
1240
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1240
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1241
1241
  "/v2/email/suppression/addresses/{EmailAddress}";
1242
1242
  if (input.EmailAddress !== undefined) {
1243
1243
  labelValue = input.EmailAddress;
@@ -1269,7 +1269,7 @@ export var serializeAws_restJson1ListConfigurationSetsCommand = function (input,
1269
1269
  case 1:
1270
1270
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1271
1271
  headers = {};
1272
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/configuration-sets";
1272
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/configuration-sets";
1273
1273
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1274
1274
  return [2, new __HttpRequest({
1275
1275
  protocol: protocol,
@@ -1292,7 +1292,7 @@ export var serializeAws_restJson1ListContactListsCommand = function (input, cont
1292
1292
  case 1:
1293
1293
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1294
1294
  headers = {};
1295
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists";
1295
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists";
1296
1296
  query = __assign(__assign({}, (input.PageSize !== undefined && { PageSize: input.PageSize.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
1297
1297
  return [2, new __HttpRequest({
1298
1298
  protocol: protocol,
@@ -1317,7 +1317,7 @@ export var serializeAws_restJson1ListContactsCommand = function (input, context)
1317
1317
  headers = {
1318
1318
  "content-type": "application/json",
1319
1319
  };
1320
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1320
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1321
1321
  "/v2/email/contact-lists/{ContactListName}/contacts";
1322
1322
  if (input.ContactListName !== undefined) {
1323
1323
  labelValue = input.ContactListName;
@@ -1353,7 +1353,7 @@ export var serializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = f
1353
1353
  case 1:
1354
1354
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1355
1355
  headers = {};
1356
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1356
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1357
1357
  "/v2/email/custom-verification-email-templates";
1358
1358
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1359
1359
  return [2, new __HttpRequest({
@@ -1377,7 +1377,7 @@ export var serializeAws_restJson1ListDedicatedIpPoolsCommand = function (input,
1377
1377
  case 1:
1378
1378
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1379
1379
  headers = {};
1380
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools";
1380
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ip-pools";
1381
1381
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1382
1382
  return [2, new __HttpRequest({
1383
1383
  protocol: protocol,
@@ -1400,7 +1400,7 @@ export var serializeAws_restJson1ListDeliverabilityTestReportsCommand = function
1400
1400
  case 1:
1401
1401
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1402
1402
  headers = {};
1403
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1403
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1404
1404
  "/v2/email/deliverability-dashboard/test-reports";
1405
1405
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1406
1406
  return [2, new __HttpRequest({
@@ -1424,7 +1424,7 @@ export var serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = func
1424
1424
  case 1:
1425
1425
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1426
1426
  headers = {};
1427
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1427
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1428
1428
  "/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns";
1429
1429
  if (input.SubscribedDomain !== undefined) {
1430
1430
  labelValue = input.SubscribedDomain;
@@ -1458,7 +1458,7 @@ export var serializeAws_restJson1ListEmailIdentitiesCommand = function (input, c
1458
1458
  case 1:
1459
1459
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1460
1460
  headers = {};
1461
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities";
1461
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities";
1462
1462
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1463
1463
  return [2, new __HttpRequest({
1464
1464
  protocol: protocol,
@@ -1481,7 +1481,7 @@ export var serializeAws_restJson1ListEmailTemplatesCommand = function (input, co
1481
1481
  case 1:
1482
1482
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1483
1483
  headers = {};
1484
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates";
1484
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates";
1485
1485
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1486
1486
  return [2, new __HttpRequest({
1487
1487
  protocol: protocol,
@@ -1506,7 +1506,7 @@ export var serializeAws_restJson1ListImportJobsCommand = function (input, contex
1506
1506
  headers = {
1507
1507
  "content-type": "application/json",
1508
1508
  };
1509
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
1509
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/import-jobs";
1510
1510
  query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1511
1511
  body = JSON.stringify(__assign({}, (input.ImportDestinationType !== undefined &&
1512
1512
  input.ImportDestinationType !== null && { ImportDestinationType: input.ImportDestinationType })));
@@ -1531,7 +1531,7 @@ export var serializeAws_restJson1ListSuppressedDestinationsCommand = function (i
1531
1531
  case 1:
1532
1532
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1533
1533
  headers = {};
1534
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/suppression/addresses";
1534
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/suppression/addresses";
1535
1535
  query = __assign(__assign(__assign(__assign(__assign({}, (input.Reasons !== undefined && { Reason: (input.Reasons || []).map(function (_entry) { return _entry; }) })), (input.StartDate !== undefined && { StartDate: (input.StartDate.toISOString().split(".")[0] + "Z").toString() })), (input.EndDate !== undefined && { EndDate: (input.EndDate.toISOString().split(".")[0] + "Z").toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.PageSize !== undefined && { PageSize: input.PageSize.toString() }));
1536
1536
  return [2, new __HttpRequest({
1537
1537
  protocol: protocol,
@@ -1554,7 +1554,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1554
1554
  case 1:
1555
1555
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1556
1556
  headers = {};
1557
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
1557
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
1558
1558
  query = __assign({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn }));
1559
1559
  return [2, new __HttpRequest({
1560
1560
  protocol: protocol,
@@ -1579,7 +1579,7 @@ export var serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand =
1579
1579
  headers = {
1580
1580
  "content-type": "application/json",
1581
1581
  };
1582
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/dedicated-ips/warmup";
1582
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/dedicated-ips/warmup";
1583
1583
  body = JSON.stringify(__assign({}, (input.AutoWarmupEnabled !== undefined &&
1584
1584
  input.AutoWarmupEnabled !== null && { AutoWarmupEnabled: input.AutoWarmupEnabled })));
1585
1585
  return [2, new __HttpRequest({
@@ -1604,7 +1604,7 @@ export var serializeAws_restJson1PutAccountDetailsCommand = function (input, con
1604
1604
  headers = {
1605
1605
  "content-type": "application/json",
1606
1606
  };
1607
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/details";
1607
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/details";
1608
1608
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalContactEmailAddresses !== undefined &&
1609
1609
  input.AdditionalContactEmailAddresses !== null && {
1610
1610
  AdditionalContactEmailAddresses: serializeAws_restJson1AdditionalContactEmailAddresses(input.AdditionalContactEmailAddresses, context),
@@ -1634,7 +1634,7 @@ export var serializeAws_restJson1PutAccountSendingAttributesCommand = function (
1634
1634
  headers = {
1635
1635
  "content-type": "application/json",
1636
1636
  };
1637
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/sending";
1637
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/sending";
1638
1638
  body = JSON.stringify(__assign({}, (input.SendingEnabled !== undefined &&
1639
1639
  input.SendingEnabled !== null && { SendingEnabled: input.SendingEnabled })));
1640
1640
  return [2, new __HttpRequest({
@@ -1659,7 +1659,7 @@ export var serializeAws_restJson1PutAccountSuppressionAttributesCommand = functi
1659
1659
  headers = {
1660
1660
  "content-type": "application/json",
1661
1661
  };
1662
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/suppression";
1662
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/account/suppression";
1663
1663
  body = JSON.stringify(__assign({}, (input.SuppressedReasons !== undefined &&
1664
1664
  input.SuppressedReasons !== null && {
1665
1665
  SuppressedReasons: serializeAws_restJson1SuppressionListReasons(input.SuppressedReasons, context),
@@ -1686,7 +1686,7 @@ export var serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = fun
1686
1686
  headers = {
1687
1687
  "content-type": "application/json",
1688
1688
  };
1689
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1689
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1690
1690
  "/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options";
1691
1691
  if (input.ConfigurationSetName !== undefined) {
1692
1692
  labelValue = input.ConfigurationSetName;
@@ -1722,7 +1722,7 @@ export var serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = f
1722
1722
  headers = {
1723
1723
  "content-type": "application/json",
1724
1724
  };
1725
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1725
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1726
1726
  "/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options";
1727
1727
  if (input.ConfigurationSetName !== undefined) {
1728
1728
  labelValue = input.ConfigurationSetName;
@@ -1758,7 +1758,7 @@ export var serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = func
1758
1758
  headers = {
1759
1759
  "content-type": "application/json",
1760
1760
  };
1761
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1761
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1762
1762
  "/v2/email/configuration-sets/{ConfigurationSetName}/sending";
1763
1763
  if (input.ConfigurationSetName !== undefined) {
1764
1764
  labelValue = input.ConfigurationSetName;
@@ -1794,7 +1794,7 @@ export var serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand =
1794
1794
  headers = {
1795
1795
  "content-type": "application/json",
1796
1796
  };
1797
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1797
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1798
1798
  "/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options";
1799
1799
  if (input.ConfigurationSetName !== undefined) {
1800
1800
  labelValue = input.ConfigurationSetName;
@@ -1832,7 +1832,7 @@ export var serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = fun
1832
1832
  headers = {
1833
1833
  "content-type": "application/json",
1834
1834
  };
1835
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1835
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1836
1836
  "/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options";
1837
1837
  if (input.ConfigurationSetName !== undefined) {
1838
1838
  labelValue = input.ConfigurationSetName;
@@ -1868,7 +1868,7 @@ export var serializeAws_restJson1PutDedicatedIpInPoolCommand = function (input,
1868
1868
  headers = {
1869
1869
  "content-type": "application/json",
1870
1870
  };
1871
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}/pool";
1871
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}/pool";
1872
1872
  if (input.Ip !== undefined) {
1873
1873
  labelValue = input.Ip;
1874
1874
  if (labelValue.length <= 0) {
@@ -1903,7 +1903,7 @@ export var serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = functio
1903
1903
  headers = {
1904
1904
  "content-type": "application/json",
1905
1905
  };
1906
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}/warmup";
1906
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/dedicated-ips/{Ip}/warmup";
1907
1907
  if (input.Ip !== undefined) {
1908
1908
  labelValue = input.Ip;
1909
1909
  if (labelValue.length <= 0) {
@@ -1938,7 +1938,7 @@ export var serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = funct
1938
1938
  headers = {
1939
1939
  "content-type": "application/json",
1940
1940
  };
1941
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard";
1941
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/deliverability-dashboard";
1942
1942
  body = JSON.stringify(__assign(__assign({}, (input.DashboardEnabled !== undefined &&
1943
1943
  input.DashboardEnabled !== null && { DashboardEnabled: input.DashboardEnabled })), (input.SubscribedDomains !== undefined &&
1944
1944
  input.SubscribedDomains !== null && {
@@ -1966,7 +1966,7 @@ export var serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesComma
1966
1966
  headers = {
1967
1967
  "content-type": "application/json",
1968
1968
  };
1969
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1969
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1970
1970
  "/v2/email/identities/{EmailIdentity}/configuration-set";
1971
1971
  if (input.EmailIdentity !== undefined) {
1972
1972
  labelValue = input.EmailIdentity;
@@ -2002,7 +2002,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = functio
2002
2002
  headers = {
2003
2003
  "content-type": "application/json",
2004
2004
  };
2005
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}/dkim";
2005
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/identities/{EmailIdentity}/dkim";
2006
2006
  if (input.EmailIdentity !== undefined) {
2007
2007
  labelValue = input.EmailIdentity;
2008
2008
  if (labelValue.length <= 0) {
@@ -2037,7 +2037,7 @@ export var serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand =
2037
2037
  headers = {
2038
2038
  "content-type": "application/json",
2039
2039
  };
2040
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2040
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2041
2041
  "/v1/email/identities/{EmailIdentity}/dkim/signing";
2042
2042
  if (input.EmailIdentity !== undefined) {
2043
2043
  labelValue = input.EmailIdentity;
@@ -2076,7 +2076,7 @@ export var serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = fun
2076
2076
  headers = {
2077
2077
  "content-type": "application/json",
2078
2078
  };
2079
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2079
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2080
2080
  "/v2/email/identities/{EmailIdentity}/feedback";
2081
2081
  if (input.EmailIdentity !== undefined) {
2082
2082
  labelValue = input.EmailIdentity;
@@ -2112,7 +2112,7 @@ export var serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = fun
2112
2112
  headers = {
2113
2113
  "content-type": "application/json",
2114
2114
  };
2115
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2115
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2116
2116
  "/v2/email/identities/{EmailIdentity}/mail-from";
2117
2117
  if (input.EmailIdentity !== undefined) {
2118
2118
  labelValue = input.EmailIdentity;
@@ -2149,7 +2149,7 @@ export var serializeAws_restJson1PutSuppressedDestinationCommand = function (inp
2149
2149
  headers = {
2150
2150
  "content-type": "application/json",
2151
2151
  };
2152
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/suppression/addresses";
2152
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/suppression/addresses";
2153
2153
  body = JSON.stringify(__assign(__assign({}, (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason })));
2154
2154
  return [2, new __HttpRequest({
2155
2155
  protocol: protocol,
@@ -2173,7 +2173,7 @@ export var serializeAws_restJson1SendBulkEmailCommand = function (input, context
2173
2173
  headers = {
2174
2174
  "content-type": "application/json",
2175
2175
  };
2176
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-bulk-emails";
2176
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-bulk-emails";
2177
2177
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BulkEmailEntries !== undefined &&
2178
2178
  input.BulkEmailEntries !== null && {
2179
2179
  BulkEmailEntries: serializeAws_restJson1BulkEmailEntryList(input.BulkEmailEntries, context),
@@ -2218,7 +2218,7 @@ export var serializeAws_restJson1SendCustomVerificationEmailCommand = function (
2218
2218
  headers = {
2219
2219
  "content-type": "application/json",
2220
2220
  };
2221
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2221
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2222
2222
  "/v2/email/outbound-custom-verification-emails";
2223
2223
  body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
2224
2224
  input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })));
@@ -2244,7 +2244,7 @@ export var serializeAws_restJson1SendEmailCommand = function (input, context) {
2244
2244
  headers = {
2245
2245
  "content-type": "application/json",
2246
2246
  };
2247
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-emails";
2247
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/outbound-emails";
2248
2248
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSetName !== undefined &&
2249
2249
  input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content !== undefined &&
2250
2250
  input.Content !== null && { Content: serializeAws_restJson1EmailContent(input.Content, context) })), (input.Destination !== undefined &&
@@ -2286,7 +2286,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
2286
2286
  headers = {
2287
2287
  "content-type": "application/json",
2288
2288
  };
2289
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
2289
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
2290
2290
  body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
2291
2291
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
2292
2292
  return [2, new __HttpRequest({
@@ -2311,7 +2311,7 @@ export var serializeAws_restJson1TestRenderEmailTemplateCommand = function (inpu
2311
2311
  headers = {
2312
2312
  "content-type": "application/json",
2313
2313
  };
2314
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}/render";
2314
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}/render";
2315
2315
  if (input.TemplateName !== undefined) {
2316
2316
  labelValue = input.TemplateName;
2317
2317
  if (labelValue.length <= 0) {
@@ -2343,7 +2343,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
2343
2343
  case 1:
2344
2344
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2345
2345
  headers = {};
2346
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
2346
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/tags";
2347
2347
  query = __assign(__assign({}, (input.ResourceArn !== undefined && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined && { TagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
2348
2348
  return [2, new __HttpRequest({
2349
2349
  protocol: protocol,
@@ -2368,7 +2368,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
2368
2368
  headers = {
2369
2369
  "content-type": "application/json",
2370
2370
  };
2371
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2371
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2372
2372
  "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
2373
2373
  if (input.ConfigurationSetName !== undefined) {
2374
2374
  labelValue = input.ConfigurationSetName;
@@ -2416,7 +2416,7 @@ export var serializeAws_restJson1UpdateContactCommand = function (input, context
2416
2416
  headers = {
2417
2417
  "content-type": "application/json",
2418
2418
  };
2419
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2419
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2420
2420
  "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
2421
2421
  if (input.ContactListName !== undefined) {
2422
2422
  labelValue = input.ContactListName;
@@ -2466,7 +2466,7 @@ export var serializeAws_restJson1UpdateContactListCommand = function (input, con
2466
2466
  headers = {
2467
2467
  "content-type": "application/json",
2468
2468
  };
2469
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
2469
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/contact-lists/{ContactListName}";
2470
2470
  if (input.ContactListName !== undefined) {
2471
2471
  labelValue = input.ContactListName;
2472
2472
  if (labelValue.length <= 0) {
@@ -2501,7 +2501,7 @@ export var serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand =
2501
2501
  headers = {
2502
2502
  "content-type": "application/json",
2503
2503
  };
2504
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2504
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2505
2505
  "/v2/email/custom-verification-email-templates/{TemplateName}";
2506
2506
  if (input.TemplateName !== undefined) {
2507
2507
  labelValue = input.TemplateName;
@@ -2541,7 +2541,7 @@ export var serializeAws_restJson1UpdateEmailIdentityPolicyCommand = function (in
2541
2541
  headers = {
2542
2542
  "content-type": "application/json",
2543
2543
  };
2544
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2544
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
2545
2545
  "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
2546
2546
  if (input.EmailIdentity !== undefined) {
2547
2547
  labelValue = input.EmailIdentity;
@@ -2586,7 +2586,7 @@ export var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, c
2586
2586
  headers = {
2587
2587
  "content-type": "application/json",
2588
2588
  };
2589
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
2589
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2/email/templates/{TemplateName}";
2590
2590
  if (input.TemplateName !== undefined) {
2591
2591
  labelValue = input.TemplateName;
2592
2592
  if (labelValue.length <= 0) {