@aws-sdk/client-sesv2 3.183.0 → 3.186.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 (106) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/SESv2.js +333 -326
  4. package/dist-es/SESv2Client.js +28 -22
  5. package/dist-es/commands/CreateConfigurationSetCommand.js +28 -21
  6. package/dist-es/commands/CreateConfigurationSetEventDestinationCommand.js +28 -21
  7. package/dist-es/commands/CreateContactCommand.js +28 -21
  8. package/dist-es/commands/CreateContactListCommand.js +28 -21
  9. package/dist-es/commands/CreateCustomVerificationEmailTemplateCommand.js +28 -21
  10. package/dist-es/commands/CreateDedicatedIpPoolCommand.js +28 -21
  11. package/dist-es/commands/CreateDeliverabilityTestReportCommand.js +28 -21
  12. package/dist-es/commands/CreateEmailIdentityCommand.js +28 -21
  13. package/dist-es/commands/CreateEmailIdentityPolicyCommand.js +28 -21
  14. package/dist-es/commands/CreateEmailTemplateCommand.js +28 -21
  15. package/dist-es/commands/CreateImportJobCommand.js +28 -21
  16. package/dist-es/commands/DeleteConfigurationSetCommand.js +28 -21
  17. package/dist-es/commands/DeleteConfigurationSetEventDestinationCommand.js +28 -21
  18. package/dist-es/commands/DeleteContactCommand.js +28 -21
  19. package/dist-es/commands/DeleteContactListCommand.js +28 -21
  20. package/dist-es/commands/DeleteCustomVerificationEmailTemplateCommand.js +28 -21
  21. package/dist-es/commands/DeleteDedicatedIpPoolCommand.js +28 -21
  22. package/dist-es/commands/DeleteEmailIdentityCommand.js +28 -21
  23. package/dist-es/commands/DeleteEmailIdentityPolicyCommand.js +28 -21
  24. package/dist-es/commands/DeleteEmailTemplateCommand.js +28 -21
  25. package/dist-es/commands/DeleteSuppressedDestinationCommand.js +28 -21
  26. package/dist-es/commands/GetAccountCommand.js +28 -21
  27. package/dist-es/commands/GetBlacklistReportsCommand.js +28 -21
  28. package/dist-es/commands/GetConfigurationSetCommand.js +28 -21
  29. package/dist-es/commands/GetConfigurationSetEventDestinationsCommand.js +28 -21
  30. package/dist-es/commands/GetContactCommand.js +28 -21
  31. package/dist-es/commands/GetContactListCommand.js +28 -21
  32. package/dist-es/commands/GetCustomVerificationEmailTemplateCommand.js +28 -21
  33. package/dist-es/commands/GetDedicatedIpCommand.js +28 -21
  34. package/dist-es/commands/GetDedicatedIpsCommand.js +28 -21
  35. package/dist-es/commands/GetDeliverabilityDashboardOptionsCommand.js +28 -21
  36. package/dist-es/commands/GetDeliverabilityTestReportCommand.js +28 -21
  37. package/dist-es/commands/GetDomainDeliverabilityCampaignCommand.js +28 -21
  38. package/dist-es/commands/GetDomainStatisticsReportCommand.js +28 -21
  39. package/dist-es/commands/GetEmailIdentityCommand.js +28 -21
  40. package/dist-es/commands/GetEmailIdentityPoliciesCommand.js +28 -21
  41. package/dist-es/commands/GetEmailTemplateCommand.js +28 -21
  42. package/dist-es/commands/GetImportJobCommand.js +28 -21
  43. package/dist-es/commands/GetSuppressedDestinationCommand.js +28 -21
  44. package/dist-es/commands/ListConfigurationSetsCommand.js +28 -21
  45. package/dist-es/commands/ListContactListsCommand.js +28 -21
  46. package/dist-es/commands/ListContactsCommand.js +28 -21
  47. package/dist-es/commands/ListCustomVerificationEmailTemplatesCommand.js +28 -21
  48. package/dist-es/commands/ListDedicatedIpPoolsCommand.js +28 -21
  49. package/dist-es/commands/ListDeliverabilityTestReportsCommand.js +28 -21
  50. package/dist-es/commands/ListDomainDeliverabilityCampaignsCommand.js +28 -21
  51. package/dist-es/commands/ListEmailIdentitiesCommand.js +28 -21
  52. package/dist-es/commands/ListEmailTemplatesCommand.js +28 -21
  53. package/dist-es/commands/ListImportJobsCommand.js +28 -21
  54. package/dist-es/commands/ListSuppressedDestinationsCommand.js +28 -21
  55. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  56. package/dist-es/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +28 -21
  57. package/dist-es/commands/PutAccountDetailsCommand.js +28 -21
  58. package/dist-es/commands/PutAccountSendingAttributesCommand.js +28 -21
  59. package/dist-es/commands/PutAccountSuppressionAttributesCommand.js +28 -21
  60. package/dist-es/commands/PutConfigurationSetDeliveryOptionsCommand.js +28 -21
  61. package/dist-es/commands/PutConfigurationSetReputationOptionsCommand.js +28 -21
  62. package/dist-es/commands/PutConfigurationSetSendingOptionsCommand.js +28 -21
  63. package/dist-es/commands/PutConfigurationSetSuppressionOptionsCommand.js +28 -21
  64. package/dist-es/commands/PutConfigurationSetTrackingOptionsCommand.js +28 -21
  65. package/dist-es/commands/PutDedicatedIpInPoolCommand.js +28 -21
  66. package/dist-es/commands/PutDedicatedIpWarmupAttributesCommand.js +28 -21
  67. package/dist-es/commands/PutDeliverabilityDashboardOptionCommand.js +28 -21
  68. package/dist-es/commands/PutEmailIdentityConfigurationSetAttributesCommand.js +28 -21
  69. package/dist-es/commands/PutEmailIdentityDkimAttributesCommand.js +28 -21
  70. package/dist-es/commands/PutEmailIdentityDkimSigningAttributesCommand.js +28 -21
  71. package/dist-es/commands/PutEmailIdentityFeedbackAttributesCommand.js +28 -21
  72. package/dist-es/commands/PutEmailIdentityMailFromAttributesCommand.js +28 -21
  73. package/dist-es/commands/PutSuppressedDestinationCommand.js +28 -21
  74. package/dist-es/commands/SendBulkEmailCommand.js +28 -21
  75. package/dist-es/commands/SendCustomVerificationEmailCommand.js +28 -21
  76. package/dist-es/commands/SendEmailCommand.js +28 -21
  77. package/dist-es/commands/TagResourceCommand.js +28 -21
  78. package/dist-es/commands/TestRenderEmailTemplateCommand.js +28 -21
  79. package/dist-es/commands/UntagResourceCommand.js +28 -21
  80. package/dist-es/commands/UpdateConfigurationSetEventDestinationCommand.js +28 -21
  81. package/dist-es/commands/UpdateContactCommand.js +28 -21
  82. package/dist-es/commands/UpdateContactListCommand.js +28 -21
  83. package/dist-es/commands/UpdateCustomVerificationEmailTemplateCommand.js +28 -21
  84. package/dist-es/commands/UpdateEmailIdentityPolicyCommand.js +28 -21
  85. package/dist-es/commands/UpdateEmailTemplateCommand.js +28 -21
  86. package/dist-es/endpoints.js +8 -8
  87. package/dist-es/models/SESv2ServiceException.js +10 -5
  88. package/dist-es/models/models_0.js +362 -825
  89. package/dist-es/pagination/GetDedicatedIpsPaginator.js +68 -25
  90. package/dist-es/pagination/ListConfigurationSetsPaginator.js +68 -25
  91. package/dist-es/pagination/ListContactListsPaginator.js +68 -25
  92. package/dist-es/pagination/ListContactsPaginator.js +68 -25
  93. package/dist-es/pagination/ListCustomVerificationEmailTemplatesPaginator.js +68 -25
  94. package/dist-es/pagination/ListDedicatedIpPoolsPaginator.js +68 -25
  95. package/dist-es/pagination/ListDeliverabilityTestReportsPaginator.js +68 -25
  96. package/dist-es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +68 -25
  97. package/dist-es/pagination/ListEmailIdentitiesPaginator.js +68 -25
  98. package/dist-es/pagination/ListEmailTemplatesPaginator.js +68 -25
  99. package/dist-es/pagination/ListImportJobsPaginator.js +68 -25
  100. package/dist-es/pagination/ListSuppressedDestinationsPaginator.js +68 -25
  101. package/dist-es/protocols/Aws_restJson1.js +7830 -5615
  102. package/dist-es/runtimeConfig.browser.js +12 -26
  103. package/dist-es/runtimeConfig.js +12 -30
  104. package/dist-es/runtimeConfig.native.js +5 -8
  105. package/dist-es/runtimeConfig.shared.js +11 -8
  106. package/package.json +33 -33
package/dist-es/SESv2.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateConfigurationSetCommand, } from "./commands/CreateConfigurationSetCommand";
2
3
  import { CreateConfigurationSetEventDestinationCommand, } from "./commands/CreateConfigurationSetEventDestinationCommand";
3
4
  import { CreateContactCommand, } from "./commands/CreateContactCommand";
@@ -80,1139 +81,1145 @@ import { UpdateCustomVerificationEmailTemplateCommand, } from "./commands/Update
80
81
  import { UpdateEmailIdentityPolicyCommand, } from "./commands/UpdateEmailIdentityPolicyCommand";
81
82
  import { UpdateEmailTemplateCommand, } from "./commands/UpdateEmailTemplateCommand";
82
83
  import { SESv2Client } from "./SESv2Client";
83
- export class SESv2 extends SESv2Client {
84
- createConfigurationSet(args, optionsOrCb, cb) {
85
- const command = new CreateConfigurationSetCommand(args);
84
+ var SESv2 = (function (_super) {
85
+ __extends(SESv2, _super);
86
+ function SESv2() {
87
+ return _super !== null && _super.apply(this, arguments) || this;
88
+ }
89
+ SESv2.prototype.createConfigurationSet = function (args, optionsOrCb, cb) {
90
+ var command = new CreateConfigurationSetCommand(args);
86
91
  if (typeof optionsOrCb === "function") {
87
92
  this.send(command, optionsOrCb);
88
93
  }
89
94
  else if (typeof cb === "function") {
90
95
  if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
97
  this.send(command, optionsOrCb || {}, cb);
93
98
  }
94
99
  else {
95
100
  return this.send(command, optionsOrCb);
96
101
  }
97
- }
98
- createConfigurationSetEventDestination(args, optionsOrCb, cb) {
99
- const command = new CreateConfigurationSetEventDestinationCommand(args);
102
+ };
103
+ SESv2.prototype.createConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
104
+ var command = new CreateConfigurationSetEventDestinationCommand(args);
100
105
  if (typeof optionsOrCb === "function") {
101
106
  this.send(command, optionsOrCb);
102
107
  }
103
108
  else if (typeof cb === "function") {
104
109
  if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
111
  this.send(command, optionsOrCb || {}, cb);
107
112
  }
108
113
  else {
109
114
  return this.send(command, optionsOrCb);
110
115
  }
111
- }
112
- createContact(args, optionsOrCb, cb) {
113
- const command = new CreateContactCommand(args);
116
+ };
117
+ SESv2.prototype.createContact = function (args, optionsOrCb, cb) {
118
+ var command = new CreateContactCommand(args);
114
119
  if (typeof optionsOrCb === "function") {
115
120
  this.send(command, optionsOrCb);
116
121
  }
117
122
  else if (typeof cb === "function") {
118
123
  if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
125
  this.send(command, optionsOrCb || {}, cb);
121
126
  }
122
127
  else {
123
128
  return this.send(command, optionsOrCb);
124
129
  }
125
- }
126
- createContactList(args, optionsOrCb, cb) {
127
- const command = new CreateContactListCommand(args);
130
+ };
131
+ SESv2.prototype.createContactList = function (args, optionsOrCb, cb) {
132
+ var command = new CreateContactListCommand(args);
128
133
  if (typeof optionsOrCb === "function") {
129
134
  this.send(command, optionsOrCb);
130
135
  }
131
136
  else if (typeof cb === "function") {
132
137
  if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
139
  this.send(command, optionsOrCb || {}, cb);
135
140
  }
136
141
  else {
137
142
  return this.send(command, optionsOrCb);
138
143
  }
139
- }
140
- createCustomVerificationEmailTemplate(args, optionsOrCb, cb) {
141
- const command = new CreateCustomVerificationEmailTemplateCommand(args);
144
+ };
145
+ SESv2.prototype.createCustomVerificationEmailTemplate = function (args, optionsOrCb, cb) {
146
+ var command = new CreateCustomVerificationEmailTemplateCommand(args);
142
147
  if (typeof optionsOrCb === "function") {
143
148
  this.send(command, optionsOrCb);
144
149
  }
145
150
  else if (typeof cb === "function") {
146
151
  if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
153
  this.send(command, optionsOrCb || {}, cb);
149
154
  }
150
155
  else {
151
156
  return this.send(command, optionsOrCb);
152
157
  }
153
- }
154
- createDedicatedIpPool(args, optionsOrCb, cb) {
155
- const command = new CreateDedicatedIpPoolCommand(args);
158
+ };
159
+ SESv2.prototype.createDedicatedIpPool = function (args, optionsOrCb, cb) {
160
+ var command = new CreateDedicatedIpPoolCommand(args);
156
161
  if (typeof optionsOrCb === "function") {
157
162
  this.send(command, optionsOrCb);
158
163
  }
159
164
  else if (typeof cb === "function") {
160
165
  if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
167
  this.send(command, optionsOrCb || {}, cb);
163
168
  }
164
169
  else {
165
170
  return this.send(command, optionsOrCb);
166
171
  }
167
- }
168
- createDeliverabilityTestReport(args, optionsOrCb, cb) {
169
- const command = new CreateDeliverabilityTestReportCommand(args);
172
+ };
173
+ SESv2.prototype.createDeliverabilityTestReport = function (args, optionsOrCb, cb) {
174
+ var command = new CreateDeliverabilityTestReportCommand(args);
170
175
  if (typeof optionsOrCb === "function") {
171
176
  this.send(command, optionsOrCb);
172
177
  }
173
178
  else if (typeof cb === "function") {
174
179
  if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
181
  this.send(command, optionsOrCb || {}, cb);
177
182
  }
178
183
  else {
179
184
  return this.send(command, optionsOrCb);
180
185
  }
181
- }
182
- createEmailIdentity(args, optionsOrCb, cb) {
183
- const command = new CreateEmailIdentityCommand(args);
186
+ };
187
+ SESv2.prototype.createEmailIdentity = function (args, optionsOrCb, cb) {
188
+ var command = new CreateEmailIdentityCommand(args);
184
189
  if (typeof optionsOrCb === "function") {
185
190
  this.send(command, optionsOrCb);
186
191
  }
187
192
  else if (typeof cb === "function") {
188
193
  if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
190
195
  this.send(command, optionsOrCb || {}, cb);
191
196
  }
192
197
  else {
193
198
  return this.send(command, optionsOrCb);
194
199
  }
195
- }
196
- createEmailIdentityPolicy(args, optionsOrCb, cb) {
197
- const command = new CreateEmailIdentityPolicyCommand(args);
200
+ };
201
+ SESv2.prototype.createEmailIdentityPolicy = function (args, optionsOrCb, cb) {
202
+ var command = new CreateEmailIdentityPolicyCommand(args);
198
203
  if (typeof optionsOrCb === "function") {
199
204
  this.send(command, optionsOrCb);
200
205
  }
201
206
  else if (typeof cb === "function") {
202
207
  if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
204
209
  this.send(command, optionsOrCb || {}, cb);
205
210
  }
206
211
  else {
207
212
  return this.send(command, optionsOrCb);
208
213
  }
209
- }
210
- createEmailTemplate(args, optionsOrCb, cb) {
211
- const command = new CreateEmailTemplateCommand(args);
214
+ };
215
+ SESv2.prototype.createEmailTemplate = function (args, optionsOrCb, cb) {
216
+ var command = new CreateEmailTemplateCommand(args);
212
217
  if (typeof optionsOrCb === "function") {
213
218
  this.send(command, optionsOrCb);
214
219
  }
215
220
  else if (typeof cb === "function") {
216
221
  if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
218
223
  this.send(command, optionsOrCb || {}, cb);
219
224
  }
220
225
  else {
221
226
  return this.send(command, optionsOrCb);
222
227
  }
223
- }
224
- createImportJob(args, optionsOrCb, cb) {
225
- const command = new CreateImportJobCommand(args);
228
+ };
229
+ SESv2.prototype.createImportJob = function (args, optionsOrCb, cb) {
230
+ var command = new CreateImportJobCommand(args);
226
231
  if (typeof optionsOrCb === "function") {
227
232
  this.send(command, optionsOrCb);
228
233
  }
229
234
  else if (typeof cb === "function") {
230
235
  if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
232
237
  this.send(command, optionsOrCb || {}, cb);
233
238
  }
234
239
  else {
235
240
  return this.send(command, optionsOrCb);
236
241
  }
237
- }
238
- deleteConfigurationSet(args, optionsOrCb, cb) {
239
- const command = new DeleteConfigurationSetCommand(args);
242
+ };
243
+ SESv2.prototype.deleteConfigurationSet = function (args, optionsOrCb, cb) {
244
+ var command = new DeleteConfigurationSetCommand(args);
240
245
  if (typeof optionsOrCb === "function") {
241
246
  this.send(command, optionsOrCb);
242
247
  }
243
248
  else if (typeof cb === "function") {
244
249
  if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
246
251
  this.send(command, optionsOrCb || {}, cb);
247
252
  }
248
253
  else {
249
254
  return this.send(command, optionsOrCb);
250
255
  }
251
- }
252
- deleteConfigurationSetEventDestination(args, optionsOrCb, cb) {
253
- const command = new DeleteConfigurationSetEventDestinationCommand(args);
256
+ };
257
+ SESv2.prototype.deleteConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
258
+ var command = new DeleteConfigurationSetEventDestinationCommand(args);
254
259
  if (typeof optionsOrCb === "function") {
255
260
  this.send(command, optionsOrCb);
256
261
  }
257
262
  else if (typeof cb === "function") {
258
263
  if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
260
265
  this.send(command, optionsOrCb || {}, cb);
261
266
  }
262
267
  else {
263
268
  return this.send(command, optionsOrCb);
264
269
  }
265
- }
266
- deleteContact(args, optionsOrCb, cb) {
267
- const command = new DeleteContactCommand(args);
270
+ };
271
+ SESv2.prototype.deleteContact = function (args, optionsOrCb, cb) {
272
+ var command = new DeleteContactCommand(args);
268
273
  if (typeof optionsOrCb === "function") {
269
274
  this.send(command, optionsOrCb);
270
275
  }
271
276
  else if (typeof cb === "function") {
272
277
  if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
274
279
  this.send(command, optionsOrCb || {}, cb);
275
280
  }
276
281
  else {
277
282
  return this.send(command, optionsOrCb);
278
283
  }
279
- }
280
- deleteContactList(args, optionsOrCb, cb) {
281
- const command = new DeleteContactListCommand(args);
284
+ };
285
+ SESv2.prototype.deleteContactList = function (args, optionsOrCb, cb) {
286
+ var command = new DeleteContactListCommand(args);
282
287
  if (typeof optionsOrCb === "function") {
283
288
  this.send(command, optionsOrCb);
284
289
  }
285
290
  else if (typeof cb === "function") {
286
291
  if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
288
293
  this.send(command, optionsOrCb || {}, cb);
289
294
  }
290
295
  else {
291
296
  return this.send(command, optionsOrCb);
292
297
  }
293
- }
294
- deleteCustomVerificationEmailTemplate(args, optionsOrCb, cb) {
295
- const command = new DeleteCustomVerificationEmailTemplateCommand(args);
298
+ };
299
+ SESv2.prototype.deleteCustomVerificationEmailTemplate = function (args, optionsOrCb, cb) {
300
+ var command = new DeleteCustomVerificationEmailTemplateCommand(args);
296
301
  if (typeof optionsOrCb === "function") {
297
302
  this.send(command, optionsOrCb);
298
303
  }
299
304
  else if (typeof cb === "function") {
300
305
  if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
302
307
  this.send(command, optionsOrCb || {}, cb);
303
308
  }
304
309
  else {
305
310
  return this.send(command, optionsOrCb);
306
311
  }
307
- }
308
- deleteDedicatedIpPool(args, optionsOrCb, cb) {
309
- const command = new DeleteDedicatedIpPoolCommand(args);
312
+ };
313
+ SESv2.prototype.deleteDedicatedIpPool = function (args, optionsOrCb, cb) {
314
+ var command = new DeleteDedicatedIpPoolCommand(args);
310
315
  if (typeof optionsOrCb === "function") {
311
316
  this.send(command, optionsOrCb);
312
317
  }
313
318
  else if (typeof cb === "function") {
314
319
  if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
316
321
  this.send(command, optionsOrCb || {}, cb);
317
322
  }
318
323
  else {
319
324
  return this.send(command, optionsOrCb);
320
325
  }
321
- }
322
- deleteEmailIdentity(args, optionsOrCb, cb) {
323
- const command = new DeleteEmailIdentityCommand(args);
326
+ };
327
+ SESv2.prototype.deleteEmailIdentity = function (args, optionsOrCb, cb) {
328
+ var command = new DeleteEmailIdentityCommand(args);
324
329
  if (typeof optionsOrCb === "function") {
325
330
  this.send(command, optionsOrCb);
326
331
  }
327
332
  else if (typeof cb === "function") {
328
333
  if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
330
335
  this.send(command, optionsOrCb || {}, cb);
331
336
  }
332
337
  else {
333
338
  return this.send(command, optionsOrCb);
334
339
  }
335
- }
336
- deleteEmailIdentityPolicy(args, optionsOrCb, cb) {
337
- const command = new DeleteEmailIdentityPolicyCommand(args);
340
+ };
341
+ SESv2.prototype.deleteEmailIdentityPolicy = function (args, optionsOrCb, cb) {
342
+ var command = new DeleteEmailIdentityPolicyCommand(args);
338
343
  if (typeof optionsOrCb === "function") {
339
344
  this.send(command, optionsOrCb);
340
345
  }
341
346
  else if (typeof cb === "function") {
342
347
  if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
344
349
  this.send(command, optionsOrCb || {}, cb);
345
350
  }
346
351
  else {
347
352
  return this.send(command, optionsOrCb);
348
353
  }
349
- }
350
- deleteEmailTemplate(args, optionsOrCb, cb) {
351
- const command = new DeleteEmailTemplateCommand(args);
354
+ };
355
+ SESv2.prototype.deleteEmailTemplate = function (args, optionsOrCb, cb) {
356
+ var command = new DeleteEmailTemplateCommand(args);
352
357
  if (typeof optionsOrCb === "function") {
353
358
  this.send(command, optionsOrCb);
354
359
  }
355
360
  else if (typeof cb === "function") {
356
361
  if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
358
363
  this.send(command, optionsOrCb || {}, cb);
359
364
  }
360
365
  else {
361
366
  return this.send(command, optionsOrCb);
362
367
  }
363
- }
364
- deleteSuppressedDestination(args, optionsOrCb, cb) {
365
- const command = new DeleteSuppressedDestinationCommand(args);
368
+ };
369
+ SESv2.prototype.deleteSuppressedDestination = function (args, optionsOrCb, cb) {
370
+ var command = new DeleteSuppressedDestinationCommand(args);
366
371
  if (typeof optionsOrCb === "function") {
367
372
  this.send(command, optionsOrCb);
368
373
  }
369
374
  else if (typeof cb === "function") {
370
375
  if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
372
377
  this.send(command, optionsOrCb || {}, cb);
373
378
  }
374
379
  else {
375
380
  return this.send(command, optionsOrCb);
376
381
  }
377
- }
378
- getAccount(args, optionsOrCb, cb) {
379
- const command = new GetAccountCommand(args);
382
+ };
383
+ SESv2.prototype.getAccount = function (args, optionsOrCb, cb) {
384
+ var command = new GetAccountCommand(args);
380
385
  if (typeof optionsOrCb === "function") {
381
386
  this.send(command, optionsOrCb);
382
387
  }
383
388
  else if (typeof cb === "function") {
384
389
  if (typeof optionsOrCb !== "object")
385
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
386
391
  this.send(command, optionsOrCb || {}, cb);
387
392
  }
388
393
  else {
389
394
  return this.send(command, optionsOrCb);
390
395
  }
391
- }
392
- getBlacklistReports(args, optionsOrCb, cb) {
393
- const command = new GetBlacklistReportsCommand(args);
396
+ };
397
+ SESv2.prototype.getBlacklistReports = function (args, optionsOrCb, cb) {
398
+ var command = new GetBlacklistReportsCommand(args);
394
399
  if (typeof optionsOrCb === "function") {
395
400
  this.send(command, optionsOrCb);
396
401
  }
397
402
  else if (typeof cb === "function") {
398
403
  if (typeof optionsOrCb !== "object")
399
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
400
405
  this.send(command, optionsOrCb || {}, cb);
401
406
  }
402
407
  else {
403
408
  return this.send(command, optionsOrCb);
404
409
  }
405
- }
406
- getConfigurationSet(args, optionsOrCb, cb) {
407
- const command = new GetConfigurationSetCommand(args);
410
+ };
411
+ SESv2.prototype.getConfigurationSet = function (args, optionsOrCb, cb) {
412
+ var command = new GetConfigurationSetCommand(args);
408
413
  if (typeof optionsOrCb === "function") {
409
414
  this.send(command, optionsOrCb);
410
415
  }
411
416
  else if (typeof cb === "function") {
412
417
  if (typeof optionsOrCb !== "object")
413
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
418
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
414
419
  this.send(command, optionsOrCb || {}, cb);
415
420
  }
416
421
  else {
417
422
  return this.send(command, optionsOrCb);
418
423
  }
419
- }
420
- getConfigurationSetEventDestinations(args, optionsOrCb, cb) {
421
- const command = new GetConfigurationSetEventDestinationsCommand(args);
424
+ };
425
+ SESv2.prototype.getConfigurationSetEventDestinations = function (args, optionsOrCb, cb) {
426
+ var command = new GetConfigurationSetEventDestinationsCommand(args);
422
427
  if (typeof optionsOrCb === "function") {
423
428
  this.send(command, optionsOrCb);
424
429
  }
425
430
  else if (typeof cb === "function") {
426
431
  if (typeof optionsOrCb !== "object")
427
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
428
433
  this.send(command, optionsOrCb || {}, cb);
429
434
  }
430
435
  else {
431
436
  return this.send(command, optionsOrCb);
432
437
  }
433
- }
434
- getContact(args, optionsOrCb, cb) {
435
- const command = new GetContactCommand(args);
438
+ };
439
+ SESv2.prototype.getContact = function (args, optionsOrCb, cb) {
440
+ var command = new GetContactCommand(args);
436
441
  if (typeof optionsOrCb === "function") {
437
442
  this.send(command, optionsOrCb);
438
443
  }
439
444
  else if (typeof cb === "function") {
440
445
  if (typeof optionsOrCb !== "object")
441
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
446
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
442
447
  this.send(command, optionsOrCb || {}, cb);
443
448
  }
444
449
  else {
445
450
  return this.send(command, optionsOrCb);
446
451
  }
447
- }
448
- getContactList(args, optionsOrCb, cb) {
449
- const command = new GetContactListCommand(args);
452
+ };
453
+ SESv2.prototype.getContactList = function (args, optionsOrCb, cb) {
454
+ var command = new GetContactListCommand(args);
450
455
  if (typeof optionsOrCb === "function") {
451
456
  this.send(command, optionsOrCb);
452
457
  }
453
458
  else if (typeof cb === "function") {
454
459
  if (typeof optionsOrCb !== "object")
455
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
460
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
456
461
  this.send(command, optionsOrCb || {}, cb);
457
462
  }
458
463
  else {
459
464
  return this.send(command, optionsOrCb);
460
465
  }
461
- }
462
- getCustomVerificationEmailTemplate(args, optionsOrCb, cb) {
463
- const command = new GetCustomVerificationEmailTemplateCommand(args);
466
+ };
467
+ SESv2.prototype.getCustomVerificationEmailTemplate = function (args, optionsOrCb, cb) {
468
+ var command = new GetCustomVerificationEmailTemplateCommand(args);
464
469
  if (typeof optionsOrCb === "function") {
465
470
  this.send(command, optionsOrCb);
466
471
  }
467
472
  else if (typeof cb === "function") {
468
473
  if (typeof optionsOrCb !== "object")
469
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
474
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
470
475
  this.send(command, optionsOrCb || {}, cb);
471
476
  }
472
477
  else {
473
478
  return this.send(command, optionsOrCb);
474
479
  }
475
- }
476
- getDedicatedIp(args, optionsOrCb, cb) {
477
- const command = new GetDedicatedIpCommand(args);
480
+ };
481
+ SESv2.prototype.getDedicatedIp = function (args, optionsOrCb, cb) {
482
+ var command = new GetDedicatedIpCommand(args);
478
483
  if (typeof optionsOrCb === "function") {
479
484
  this.send(command, optionsOrCb);
480
485
  }
481
486
  else if (typeof cb === "function") {
482
487
  if (typeof optionsOrCb !== "object")
483
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
488
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
484
489
  this.send(command, optionsOrCb || {}, cb);
485
490
  }
486
491
  else {
487
492
  return this.send(command, optionsOrCb);
488
493
  }
489
- }
490
- getDedicatedIps(args, optionsOrCb, cb) {
491
- const command = new GetDedicatedIpsCommand(args);
494
+ };
495
+ SESv2.prototype.getDedicatedIps = function (args, optionsOrCb, cb) {
496
+ var command = new GetDedicatedIpsCommand(args);
492
497
  if (typeof optionsOrCb === "function") {
493
498
  this.send(command, optionsOrCb);
494
499
  }
495
500
  else if (typeof cb === "function") {
496
501
  if (typeof optionsOrCb !== "object")
497
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
502
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
498
503
  this.send(command, optionsOrCb || {}, cb);
499
504
  }
500
505
  else {
501
506
  return this.send(command, optionsOrCb);
502
507
  }
503
- }
504
- getDeliverabilityDashboardOptions(args, optionsOrCb, cb) {
505
- const command = new GetDeliverabilityDashboardOptionsCommand(args);
508
+ };
509
+ SESv2.prototype.getDeliverabilityDashboardOptions = function (args, optionsOrCb, cb) {
510
+ var command = new GetDeliverabilityDashboardOptionsCommand(args);
506
511
  if (typeof optionsOrCb === "function") {
507
512
  this.send(command, optionsOrCb);
508
513
  }
509
514
  else if (typeof cb === "function") {
510
515
  if (typeof optionsOrCb !== "object")
511
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
512
517
  this.send(command, optionsOrCb || {}, cb);
513
518
  }
514
519
  else {
515
520
  return this.send(command, optionsOrCb);
516
521
  }
517
- }
518
- getDeliverabilityTestReport(args, optionsOrCb, cb) {
519
- const command = new GetDeliverabilityTestReportCommand(args);
522
+ };
523
+ SESv2.prototype.getDeliverabilityTestReport = function (args, optionsOrCb, cb) {
524
+ var command = new GetDeliverabilityTestReportCommand(args);
520
525
  if (typeof optionsOrCb === "function") {
521
526
  this.send(command, optionsOrCb);
522
527
  }
523
528
  else if (typeof cb === "function") {
524
529
  if (typeof optionsOrCb !== "object")
525
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
530
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
526
531
  this.send(command, optionsOrCb || {}, cb);
527
532
  }
528
533
  else {
529
534
  return this.send(command, optionsOrCb);
530
535
  }
531
- }
532
- getDomainDeliverabilityCampaign(args, optionsOrCb, cb) {
533
- const command = new GetDomainDeliverabilityCampaignCommand(args);
536
+ };
537
+ SESv2.prototype.getDomainDeliverabilityCampaign = function (args, optionsOrCb, cb) {
538
+ var command = new GetDomainDeliverabilityCampaignCommand(args);
534
539
  if (typeof optionsOrCb === "function") {
535
540
  this.send(command, optionsOrCb);
536
541
  }
537
542
  else if (typeof cb === "function") {
538
543
  if (typeof optionsOrCb !== "object")
539
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
544
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
540
545
  this.send(command, optionsOrCb || {}, cb);
541
546
  }
542
547
  else {
543
548
  return this.send(command, optionsOrCb);
544
549
  }
545
- }
546
- getDomainStatisticsReport(args, optionsOrCb, cb) {
547
- const command = new GetDomainStatisticsReportCommand(args);
550
+ };
551
+ SESv2.prototype.getDomainStatisticsReport = function (args, optionsOrCb, cb) {
552
+ var command = new GetDomainStatisticsReportCommand(args);
548
553
  if (typeof optionsOrCb === "function") {
549
554
  this.send(command, optionsOrCb);
550
555
  }
551
556
  else if (typeof cb === "function") {
552
557
  if (typeof optionsOrCb !== "object")
553
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
558
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
554
559
  this.send(command, optionsOrCb || {}, cb);
555
560
  }
556
561
  else {
557
562
  return this.send(command, optionsOrCb);
558
563
  }
559
- }
560
- getEmailIdentity(args, optionsOrCb, cb) {
561
- const command = new GetEmailIdentityCommand(args);
564
+ };
565
+ SESv2.prototype.getEmailIdentity = function (args, optionsOrCb, cb) {
566
+ var command = new GetEmailIdentityCommand(args);
562
567
  if (typeof optionsOrCb === "function") {
563
568
  this.send(command, optionsOrCb);
564
569
  }
565
570
  else if (typeof cb === "function") {
566
571
  if (typeof optionsOrCb !== "object")
567
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
572
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
568
573
  this.send(command, optionsOrCb || {}, cb);
569
574
  }
570
575
  else {
571
576
  return this.send(command, optionsOrCb);
572
577
  }
573
- }
574
- getEmailIdentityPolicies(args, optionsOrCb, cb) {
575
- const command = new GetEmailIdentityPoliciesCommand(args);
578
+ };
579
+ SESv2.prototype.getEmailIdentityPolicies = function (args, optionsOrCb, cb) {
580
+ var command = new GetEmailIdentityPoliciesCommand(args);
576
581
  if (typeof optionsOrCb === "function") {
577
582
  this.send(command, optionsOrCb);
578
583
  }
579
584
  else if (typeof cb === "function") {
580
585
  if (typeof optionsOrCb !== "object")
581
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
582
587
  this.send(command, optionsOrCb || {}, cb);
583
588
  }
584
589
  else {
585
590
  return this.send(command, optionsOrCb);
586
591
  }
587
- }
588
- getEmailTemplate(args, optionsOrCb, cb) {
589
- const command = new GetEmailTemplateCommand(args);
592
+ };
593
+ SESv2.prototype.getEmailTemplate = function (args, optionsOrCb, cb) {
594
+ var command = new GetEmailTemplateCommand(args);
590
595
  if (typeof optionsOrCb === "function") {
591
596
  this.send(command, optionsOrCb);
592
597
  }
593
598
  else if (typeof cb === "function") {
594
599
  if (typeof optionsOrCb !== "object")
595
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
600
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
596
601
  this.send(command, optionsOrCb || {}, cb);
597
602
  }
598
603
  else {
599
604
  return this.send(command, optionsOrCb);
600
605
  }
601
- }
602
- getImportJob(args, optionsOrCb, cb) {
603
- const command = new GetImportJobCommand(args);
606
+ };
607
+ SESv2.prototype.getImportJob = function (args, optionsOrCb, cb) {
608
+ var command = new GetImportJobCommand(args);
604
609
  if (typeof optionsOrCb === "function") {
605
610
  this.send(command, optionsOrCb);
606
611
  }
607
612
  else if (typeof cb === "function") {
608
613
  if (typeof optionsOrCb !== "object")
609
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
614
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
610
615
  this.send(command, optionsOrCb || {}, cb);
611
616
  }
612
617
  else {
613
618
  return this.send(command, optionsOrCb);
614
619
  }
615
- }
616
- getSuppressedDestination(args, optionsOrCb, cb) {
617
- const command = new GetSuppressedDestinationCommand(args);
620
+ };
621
+ SESv2.prototype.getSuppressedDestination = function (args, optionsOrCb, cb) {
622
+ var command = new GetSuppressedDestinationCommand(args);
618
623
  if (typeof optionsOrCb === "function") {
619
624
  this.send(command, optionsOrCb);
620
625
  }
621
626
  else if (typeof cb === "function") {
622
627
  if (typeof optionsOrCb !== "object")
623
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
628
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
624
629
  this.send(command, optionsOrCb || {}, cb);
625
630
  }
626
631
  else {
627
632
  return this.send(command, optionsOrCb);
628
633
  }
629
- }
630
- listConfigurationSets(args, optionsOrCb, cb) {
631
- const command = new ListConfigurationSetsCommand(args);
634
+ };
635
+ SESv2.prototype.listConfigurationSets = function (args, optionsOrCb, cb) {
636
+ var command = new ListConfigurationSetsCommand(args);
632
637
  if (typeof optionsOrCb === "function") {
633
638
  this.send(command, optionsOrCb);
634
639
  }
635
640
  else if (typeof cb === "function") {
636
641
  if (typeof optionsOrCb !== "object")
637
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
642
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
638
643
  this.send(command, optionsOrCb || {}, cb);
639
644
  }
640
645
  else {
641
646
  return this.send(command, optionsOrCb);
642
647
  }
643
- }
644
- listContactLists(args, optionsOrCb, cb) {
645
- const command = new ListContactListsCommand(args);
648
+ };
649
+ SESv2.prototype.listContactLists = function (args, optionsOrCb, cb) {
650
+ var command = new ListContactListsCommand(args);
646
651
  if (typeof optionsOrCb === "function") {
647
652
  this.send(command, optionsOrCb);
648
653
  }
649
654
  else if (typeof cb === "function") {
650
655
  if (typeof optionsOrCb !== "object")
651
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
656
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
652
657
  this.send(command, optionsOrCb || {}, cb);
653
658
  }
654
659
  else {
655
660
  return this.send(command, optionsOrCb);
656
661
  }
657
- }
658
- listContacts(args, optionsOrCb, cb) {
659
- const command = new ListContactsCommand(args);
662
+ };
663
+ SESv2.prototype.listContacts = function (args, optionsOrCb, cb) {
664
+ var command = new ListContactsCommand(args);
660
665
  if (typeof optionsOrCb === "function") {
661
666
  this.send(command, optionsOrCb);
662
667
  }
663
668
  else if (typeof cb === "function") {
664
669
  if (typeof optionsOrCb !== "object")
665
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
670
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
666
671
  this.send(command, optionsOrCb || {}, cb);
667
672
  }
668
673
  else {
669
674
  return this.send(command, optionsOrCb);
670
675
  }
671
- }
672
- listCustomVerificationEmailTemplates(args, optionsOrCb, cb) {
673
- const command = new ListCustomVerificationEmailTemplatesCommand(args);
676
+ };
677
+ SESv2.prototype.listCustomVerificationEmailTemplates = function (args, optionsOrCb, cb) {
678
+ var command = new ListCustomVerificationEmailTemplatesCommand(args);
674
679
  if (typeof optionsOrCb === "function") {
675
680
  this.send(command, optionsOrCb);
676
681
  }
677
682
  else if (typeof cb === "function") {
678
683
  if (typeof optionsOrCb !== "object")
679
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
684
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
680
685
  this.send(command, optionsOrCb || {}, cb);
681
686
  }
682
687
  else {
683
688
  return this.send(command, optionsOrCb);
684
689
  }
685
- }
686
- listDedicatedIpPools(args, optionsOrCb, cb) {
687
- const command = new ListDedicatedIpPoolsCommand(args);
690
+ };
691
+ SESv2.prototype.listDedicatedIpPools = function (args, optionsOrCb, cb) {
692
+ var command = new ListDedicatedIpPoolsCommand(args);
688
693
  if (typeof optionsOrCb === "function") {
689
694
  this.send(command, optionsOrCb);
690
695
  }
691
696
  else if (typeof cb === "function") {
692
697
  if (typeof optionsOrCb !== "object")
693
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
698
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
694
699
  this.send(command, optionsOrCb || {}, cb);
695
700
  }
696
701
  else {
697
702
  return this.send(command, optionsOrCb);
698
703
  }
699
- }
700
- listDeliverabilityTestReports(args, optionsOrCb, cb) {
701
- const command = new ListDeliverabilityTestReportsCommand(args);
704
+ };
705
+ SESv2.prototype.listDeliverabilityTestReports = function (args, optionsOrCb, cb) {
706
+ var command = new ListDeliverabilityTestReportsCommand(args);
702
707
  if (typeof optionsOrCb === "function") {
703
708
  this.send(command, optionsOrCb);
704
709
  }
705
710
  else if (typeof cb === "function") {
706
711
  if (typeof optionsOrCb !== "object")
707
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
712
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
708
713
  this.send(command, optionsOrCb || {}, cb);
709
714
  }
710
715
  else {
711
716
  return this.send(command, optionsOrCb);
712
717
  }
713
- }
714
- listDomainDeliverabilityCampaigns(args, optionsOrCb, cb) {
715
- const command = new ListDomainDeliverabilityCampaignsCommand(args);
718
+ };
719
+ SESv2.prototype.listDomainDeliverabilityCampaigns = function (args, optionsOrCb, cb) {
720
+ var command = new ListDomainDeliverabilityCampaignsCommand(args);
716
721
  if (typeof optionsOrCb === "function") {
717
722
  this.send(command, optionsOrCb);
718
723
  }
719
724
  else if (typeof cb === "function") {
720
725
  if (typeof optionsOrCb !== "object")
721
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
726
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
722
727
  this.send(command, optionsOrCb || {}, cb);
723
728
  }
724
729
  else {
725
730
  return this.send(command, optionsOrCb);
726
731
  }
727
- }
728
- listEmailIdentities(args, optionsOrCb, cb) {
729
- const command = new ListEmailIdentitiesCommand(args);
732
+ };
733
+ SESv2.prototype.listEmailIdentities = function (args, optionsOrCb, cb) {
734
+ var command = new ListEmailIdentitiesCommand(args);
730
735
  if (typeof optionsOrCb === "function") {
731
736
  this.send(command, optionsOrCb);
732
737
  }
733
738
  else if (typeof cb === "function") {
734
739
  if (typeof optionsOrCb !== "object")
735
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
740
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
736
741
  this.send(command, optionsOrCb || {}, cb);
737
742
  }
738
743
  else {
739
744
  return this.send(command, optionsOrCb);
740
745
  }
741
- }
742
- listEmailTemplates(args, optionsOrCb, cb) {
743
- const command = new ListEmailTemplatesCommand(args);
746
+ };
747
+ SESv2.prototype.listEmailTemplates = function (args, optionsOrCb, cb) {
748
+ var command = new ListEmailTemplatesCommand(args);
744
749
  if (typeof optionsOrCb === "function") {
745
750
  this.send(command, optionsOrCb);
746
751
  }
747
752
  else if (typeof cb === "function") {
748
753
  if (typeof optionsOrCb !== "object")
749
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
754
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
750
755
  this.send(command, optionsOrCb || {}, cb);
751
756
  }
752
757
  else {
753
758
  return this.send(command, optionsOrCb);
754
759
  }
755
- }
756
- listImportJobs(args, optionsOrCb, cb) {
757
- const command = new ListImportJobsCommand(args);
760
+ };
761
+ SESv2.prototype.listImportJobs = function (args, optionsOrCb, cb) {
762
+ var command = new ListImportJobsCommand(args);
758
763
  if (typeof optionsOrCb === "function") {
759
764
  this.send(command, optionsOrCb);
760
765
  }
761
766
  else if (typeof cb === "function") {
762
767
  if (typeof optionsOrCb !== "object")
763
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
768
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
764
769
  this.send(command, optionsOrCb || {}, cb);
765
770
  }
766
771
  else {
767
772
  return this.send(command, optionsOrCb);
768
773
  }
769
- }
770
- listSuppressedDestinations(args, optionsOrCb, cb) {
771
- const command = new ListSuppressedDestinationsCommand(args);
774
+ };
775
+ SESv2.prototype.listSuppressedDestinations = function (args, optionsOrCb, cb) {
776
+ var command = new ListSuppressedDestinationsCommand(args);
772
777
  if (typeof optionsOrCb === "function") {
773
778
  this.send(command, optionsOrCb);
774
779
  }
775
780
  else if (typeof cb === "function") {
776
781
  if (typeof optionsOrCb !== "object")
777
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
782
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
778
783
  this.send(command, optionsOrCb || {}, cb);
779
784
  }
780
785
  else {
781
786
  return this.send(command, optionsOrCb);
782
787
  }
783
- }
784
- listTagsForResource(args, optionsOrCb, cb) {
785
- const command = new ListTagsForResourceCommand(args);
788
+ };
789
+ SESv2.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
790
+ var command = new ListTagsForResourceCommand(args);
786
791
  if (typeof optionsOrCb === "function") {
787
792
  this.send(command, optionsOrCb);
788
793
  }
789
794
  else if (typeof cb === "function") {
790
795
  if (typeof optionsOrCb !== "object")
791
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
796
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
792
797
  this.send(command, optionsOrCb || {}, cb);
793
798
  }
794
799
  else {
795
800
  return this.send(command, optionsOrCb);
796
801
  }
797
- }
798
- putAccountDedicatedIpWarmupAttributes(args, optionsOrCb, cb) {
799
- const command = new PutAccountDedicatedIpWarmupAttributesCommand(args);
802
+ };
803
+ SESv2.prototype.putAccountDedicatedIpWarmupAttributes = function (args, optionsOrCb, cb) {
804
+ var command = new PutAccountDedicatedIpWarmupAttributesCommand(args);
800
805
  if (typeof optionsOrCb === "function") {
801
806
  this.send(command, optionsOrCb);
802
807
  }
803
808
  else if (typeof cb === "function") {
804
809
  if (typeof optionsOrCb !== "object")
805
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
810
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
806
811
  this.send(command, optionsOrCb || {}, cb);
807
812
  }
808
813
  else {
809
814
  return this.send(command, optionsOrCb);
810
815
  }
811
- }
812
- putAccountDetails(args, optionsOrCb, cb) {
813
- const command = new PutAccountDetailsCommand(args);
816
+ };
817
+ SESv2.prototype.putAccountDetails = function (args, optionsOrCb, cb) {
818
+ var command = new PutAccountDetailsCommand(args);
814
819
  if (typeof optionsOrCb === "function") {
815
820
  this.send(command, optionsOrCb);
816
821
  }
817
822
  else if (typeof cb === "function") {
818
823
  if (typeof optionsOrCb !== "object")
819
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
824
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
820
825
  this.send(command, optionsOrCb || {}, cb);
821
826
  }
822
827
  else {
823
828
  return this.send(command, optionsOrCb);
824
829
  }
825
- }
826
- putAccountSendingAttributes(args, optionsOrCb, cb) {
827
- const command = new PutAccountSendingAttributesCommand(args);
830
+ };
831
+ SESv2.prototype.putAccountSendingAttributes = function (args, optionsOrCb, cb) {
832
+ var command = new PutAccountSendingAttributesCommand(args);
828
833
  if (typeof optionsOrCb === "function") {
829
834
  this.send(command, optionsOrCb);
830
835
  }
831
836
  else if (typeof cb === "function") {
832
837
  if (typeof optionsOrCb !== "object")
833
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
834
839
  this.send(command, optionsOrCb || {}, cb);
835
840
  }
836
841
  else {
837
842
  return this.send(command, optionsOrCb);
838
843
  }
839
- }
840
- putAccountSuppressionAttributes(args, optionsOrCb, cb) {
841
- const command = new PutAccountSuppressionAttributesCommand(args);
844
+ };
845
+ SESv2.prototype.putAccountSuppressionAttributes = function (args, optionsOrCb, cb) {
846
+ var command = new PutAccountSuppressionAttributesCommand(args);
842
847
  if (typeof optionsOrCb === "function") {
843
848
  this.send(command, optionsOrCb);
844
849
  }
845
850
  else if (typeof cb === "function") {
846
851
  if (typeof optionsOrCb !== "object")
847
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
852
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
848
853
  this.send(command, optionsOrCb || {}, cb);
849
854
  }
850
855
  else {
851
856
  return this.send(command, optionsOrCb);
852
857
  }
853
- }
854
- putConfigurationSetDeliveryOptions(args, optionsOrCb, cb) {
855
- const command = new PutConfigurationSetDeliveryOptionsCommand(args);
858
+ };
859
+ SESv2.prototype.putConfigurationSetDeliveryOptions = function (args, optionsOrCb, cb) {
860
+ var command = new PutConfigurationSetDeliveryOptionsCommand(args);
856
861
  if (typeof optionsOrCb === "function") {
857
862
  this.send(command, optionsOrCb);
858
863
  }
859
864
  else if (typeof cb === "function") {
860
865
  if (typeof optionsOrCb !== "object")
861
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
866
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
862
867
  this.send(command, optionsOrCb || {}, cb);
863
868
  }
864
869
  else {
865
870
  return this.send(command, optionsOrCb);
866
871
  }
867
- }
868
- putConfigurationSetReputationOptions(args, optionsOrCb, cb) {
869
- const command = new PutConfigurationSetReputationOptionsCommand(args);
872
+ };
873
+ SESv2.prototype.putConfigurationSetReputationOptions = function (args, optionsOrCb, cb) {
874
+ var command = new PutConfigurationSetReputationOptionsCommand(args);
870
875
  if (typeof optionsOrCb === "function") {
871
876
  this.send(command, optionsOrCb);
872
877
  }
873
878
  else if (typeof cb === "function") {
874
879
  if (typeof optionsOrCb !== "object")
875
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
876
881
  this.send(command, optionsOrCb || {}, cb);
877
882
  }
878
883
  else {
879
884
  return this.send(command, optionsOrCb);
880
885
  }
881
- }
882
- putConfigurationSetSendingOptions(args, optionsOrCb, cb) {
883
- const command = new PutConfigurationSetSendingOptionsCommand(args);
886
+ };
887
+ SESv2.prototype.putConfigurationSetSendingOptions = function (args, optionsOrCb, cb) {
888
+ var command = new PutConfigurationSetSendingOptionsCommand(args);
884
889
  if (typeof optionsOrCb === "function") {
885
890
  this.send(command, optionsOrCb);
886
891
  }
887
892
  else if (typeof cb === "function") {
888
893
  if (typeof optionsOrCb !== "object")
889
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
894
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
890
895
  this.send(command, optionsOrCb || {}, cb);
891
896
  }
892
897
  else {
893
898
  return this.send(command, optionsOrCb);
894
899
  }
895
- }
896
- putConfigurationSetSuppressionOptions(args, optionsOrCb, cb) {
897
- const command = new PutConfigurationSetSuppressionOptionsCommand(args);
900
+ };
901
+ SESv2.prototype.putConfigurationSetSuppressionOptions = function (args, optionsOrCb, cb) {
902
+ var command = new PutConfigurationSetSuppressionOptionsCommand(args);
898
903
  if (typeof optionsOrCb === "function") {
899
904
  this.send(command, optionsOrCb);
900
905
  }
901
906
  else if (typeof cb === "function") {
902
907
  if (typeof optionsOrCb !== "object")
903
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
908
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
904
909
  this.send(command, optionsOrCb || {}, cb);
905
910
  }
906
911
  else {
907
912
  return this.send(command, optionsOrCb);
908
913
  }
909
- }
910
- putConfigurationSetTrackingOptions(args, optionsOrCb, cb) {
911
- const command = new PutConfigurationSetTrackingOptionsCommand(args);
914
+ };
915
+ SESv2.prototype.putConfigurationSetTrackingOptions = function (args, optionsOrCb, cb) {
916
+ var command = new PutConfigurationSetTrackingOptionsCommand(args);
912
917
  if (typeof optionsOrCb === "function") {
913
918
  this.send(command, optionsOrCb);
914
919
  }
915
920
  else if (typeof cb === "function") {
916
921
  if (typeof optionsOrCb !== "object")
917
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
922
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
918
923
  this.send(command, optionsOrCb || {}, cb);
919
924
  }
920
925
  else {
921
926
  return this.send(command, optionsOrCb);
922
927
  }
923
- }
924
- putDedicatedIpInPool(args, optionsOrCb, cb) {
925
- const command = new PutDedicatedIpInPoolCommand(args);
928
+ };
929
+ SESv2.prototype.putDedicatedIpInPool = function (args, optionsOrCb, cb) {
930
+ var command = new PutDedicatedIpInPoolCommand(args);
926
931
  if (typeof optionsOrCb === "function") {
927
932
  this.send(command, optionsOrCb);
928
933
  }
929
934
  else if (typeof cb === "function") {
930
935
  if (typeof optionsOrCb !== "object")
931
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
936
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
932
937
  this.send(command, optionsOrCb || {}, cb);
933
938
  }
934
939
  else {
935
940
  return this.send(command, optionsOrCb);
936
941
  }
937
- }
938
- putDedicatedIpWarmupAttributes(args, optionsOrCb, cb) {
939
- const command = new PutDedicatedIpWarmupAttributesCommand(args);
942
+ };
943
+ SESv2.prototype.putDedicatedIpWarmupAttributes = function (args, optionsOrCb, cb) {
944
+ var command = new PutDedicatedIpWarmupAttributesCommand(args);
940
945
  if (typeof optionsOrCb === "function") {
941
946
  this.send(command, optionsOrCb);
942
947
  }
943
948
  else if (typeof cb === "function") {
944
949
  if (typeof optionsOrCb !== "object")
945
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
950
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
946
951
  this.send(command, optionsOrCb || {}, cb);
947
952
  }
948
953
  else {
949
954
  return this.send(command, optionsOrCb);
950
955
  }
951
- }
952
- putDeliverabilityDashboardOption(args, optionsOrCb, cb) {
953
- const command = new PutDeliverabilityDashboardOptionCommand(args);
956
+ };
957
+ SESv2.prototype.putDeliverabilityDashboardOption = function (args, optionsOrCb, cb) {
958
+ var command = new PutDeliverabilityDashboardOptionCommand(args);
954
959
  if (typeof optionsOrCb === "function") {
955
960
  this.send(command, optionsOrCb);
956
961
  }
957
962
  else if (typeof cb === "function") {
958
963
  if (typeof optionsOrCb !== "object")
959
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
964
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
960
965
  this.send(command, optionsOrCb || {}, cb);
961
966
  }
962
967
  else {
963
968
  return this.send(command, optionsOrCb);
964
969
  }
965
- }
966
- putEmailIdentityConfigurationSetAttributes(args, optionsOrCb, cb) {
967
- const command = new PutEmailIdentityConfigurationSetAttributesCommand(args);
970
+ };
971
+ SESv2.prototype.putEmailIdentityConfigurationSetAttributes = function (args, optionsOrCb, cb) {
972
+ var command = new PutEmailIdentityConfigurationSetAttributesCommand(args);
968
973
  if (typeof optionsOrCb === "function") {
969
974
  this.send(command, optionsOrCb);
970
975
  }
971
976
  else if (typeof cb === "function") {
972
977
  if (typeof optionsOrCb !== "object")
973
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
978
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
974
979
  this.send(command, optionsOrCb || {}, cb);
975
980
  }
976
981
  else {
977
982
  return this.send(command, optionsOrCb);
978
983
  }
979
- }
980
- putEmailIdentityDkimAttributes(args, optionsOrCb, cb) {
981
- const command = new PutEmailIdentityDkimAttributesCommand(args);
984
+ };
985
+ SESv2.prototype.putEmailIdentityDkimAttributes = function (args, optionsOrCb, cb) {
986
+ var command = new PutEmailIdentityDkimAttributesCommand(args);
982
987
  if (typeof optionsOrCb === "function") {
983
988
  this.send(command, optionsOrCb);
984
989
  }
985
990
  else if (typeof cb === "function") {
986
991
  if (typeof optionsOrCb !== "object")
987
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
988
993
  this.send(command, optionsOrCb || {}, cb);
989
994
  }
990
995
  else {
991
996
  return this.send(command, optionsOrCb);
992
997
  }
993
- }
994
- putEmailIdentityDkimSigningAttributes(args, optionsOrCb, cb) {
995
- const command = new PutEmailIdentityDkimSigningAttributesCommand(args);
998
+ };
999
+ SESv2.prototype.putEmailIdentityDkimSigningAttributes = function (args, optionsOrCb, cb) {
1000
+ var command = new PutEmailIdentityDkimSigningAttributesCommand(args);
996
1001
  if (typeof optionsOrCb === "function") {
997
1002
  this.send(command, optionsOrCb);
998
1003
  }
999
1004
  else if (typeof cb === "function") {
1000
1005
  if (typeof optionsOrCb !== "object")
1001
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1006
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1002
1007
  this.send(command, optionsOrCb || {}, cb);
1003
1008
  }
1004
1009
  else {
1005
1010
  return this.send(command, optionsOrCb);
1006
1011
  }
1007
- }
1008
- putEmailIdentityFeedbackAttributes(args, optionsOrCb, cb) {
1009
- const command = new PutEmailIdentityFeedbackAttributesCommand(args);
1012
+ };
1013
+ SESv2.prototype.putEmailIdentityFeedbackAttributes = function (args, optionsOrCb, cb) {
1014
+ var command = new PutEmailIdentityFeedbackAttributesCommand(args);
1010
1015
  if (typeof optionsOrCb === "function") {
1011
1016
  this.send(command, optionsOrCb);
1012
1017
  }
1013
1018
  else if (typeof cb === "function") {
1014
1019
  if (typeof optionsOrCb !== "object")
1015
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1020
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1016
1021
  this.send(command, optionsOrCb || {}, cb);
1017
1022
  }
1018
1023
  else {
1019
1024
  return this.send(command, optionsOrCb);
1020
1025
  }
1021
- }
1022
- putEmailIdentityMailFromAttributes(args, optionsOrCb, cb) {
1023
- const command = new PutEmailIdentityMailFromAttributesCommand(args);
1026
+ };
1027
+ SESv2.prototype.putEmailIdentityMailFromAttributes = function (args, optionsOrCb, cb) {
1028
+ var command = new PutEmailIdentityMailFromAttributesCommand(args);
1024
1029
  if (typeof optionsOrCb === "function") {
1025
1030
  this.send(command, optionsOrCb);
1026
1031
  }
1027
1032
  else if (typeof cb === "function") {
1028
1033
  if (typeof optionsOrCb !== "object")
1029
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1034
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1030
1035
  this.send(command, optionsOrCb || {}, cb);
1031
1036
  }
1032
1037
  else {
1033
1038
  return this.send(command, optionsOrCb);
1034
1039
  }
1035
- }
1036
- putSuppressedDestination(args, optionsOrCb, cb) {
1037
- const command = new PutSuppressedDestinationCommand(args);
1040
+ };
1041
+ SESv2.prototype.putSuppressedDestination = function (args, optionsOrCb, cb) {
1042
+ var command = new PutSuppressedDestinationCommand(args);
1038
1043
  if (typeof optionsOrCb === "function") {
1039
1044
  this.send(command, optionsOrCb);
1040
1045
  }
1041
1046
  else if (typeof cb === "function") {
1042
1047
  if (typeof optionsOrCb !== "object")
1043
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1044
1049
  this.send(command, optionsOrCb || {}, cb);
1045
1050
  }
1046
1051
  else {
1047
1052
  return this.send(command, optionsOrCb);
1048
1053
  }
1049
- }
1050
- sendBulkEmail(args, optionsOrCb, cb) {
1051
- const command = new SendBulkEmailCommand(args);
1054
+ };
1055
+ SESv2.prototype.sendBulkEmail = function (args, optionsOrCb, cb) {
1056
+ var command = new SendBulkEmailCommand(args);
1052
1057
  if (typeof optionsOrCb === "function") {
1053
1058
  this.send(command, optionsOrCb);
1054
1059
  }
1055
1060
  else if (typeof cb === "function") {
1056
1061
  if (typeof optionsOrCb !== "object")
1057
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1062
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1058
1063
  this.send(command, optionsOrCb || {}, cb);
1059
1064
  }
1060
1065
  else {
1061
1066
  return this.send(command, optionsOrCb);
1062
1067
  }
1063
- }
1064
- sendCustomVerificationEmail(args, optionsOrCb, cb) {
1065
- const command = new SendCustomVerificationEmailCommand(args);
1068
+ };
1069
+ SESv2.prototype.sendCustomVerificationEmail = function (args, optionsOrCb, cb) {
1070
+ var command = new SendCustomVerificationEmailCommand(args);
1066
1071
  if (typeof optionsOrCb === "function") {
1067
1072
  this.send(command, optionsOrCb);
1068
1073
  }
1069
1074
  else if (typeof cb === "function") {
1070
1075
  if (typeof optionsOrCb !== "object")
1071
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1076
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1072
1077
  this.send(command, optionsOrCb || {}, cb);
1073
1078
  }
1074
1079
  else {
1075
1080
  return this.send(command, optionsOrCb);
1076
1081
  }
1077
- }
1078
- sendEmail(args, optionsOrCb, cb) {
1079
- const command = new SendEmailCommand(args);
1082
+ };
1083
+ SESv2.prototype.sendEmail = function (args, optionsOrCb, cb) {
1084
+ var command = new SendEmailCommand(args);
1080
1085
  if (typeof optionsOrCb === "function") {
1081
1086
  this.send(command, optionsOrCb);
1082
1087
  }
1083
1088
  else if (typeof cb === "function") {
1084
1089
  if (typeof optionsOrCb !== "object")
1085
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1090
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1086
1091
  this.send(command, optionsOrCb || {}, cb);
1087
1092
  }
1088
1093
  else {
1089
1094
  return this.send(command, optionsOrCb);
1090
1095
  }
1091
- }
1092
- tagResource(args, optionsOrCb, cb) {
1093
- const command = new TagResourceCommand(args);
1096
+ };
1097
+ SESv2.prototype.tagResource = function (args, optionsOrCb, cb) {
1098
+ var command = new TagResourceCommand(args);
1094
1099
  if (typeof optionsOrCb === "function") {
1095
1100
  this.send(command, optionsOrCb);
1096
1101
  }
1097
1102
  else if (typeof cb === "function") {
1098
1103
  if (typeof optionsOrCb !== "object")
1099
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1104
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1100
1105
  this.send(command, optionsOrCb || {}, cb);
1101
1106
  }
1102
1107
  else {
1103
1108
  return this.send(command, optionsOrCb);
1104
1109
  }
1105
- }
1106
- testRenderEmailTemplate(args, optionsOrCb, cb) {
1107
- const command = new TestRenderEmailTemplateCommand(args);
1110
+ };
1111
+ SESv2.prototype.testRenderEmailTemplate = function (args, optionsOrCb, cb) {
1112
+ var command = new TestRenderEmailTemplateCommand(args);
1108
1113
  if (typeof optionsOrCb === "function") {
1109
1114
  this.send(command, optionsOrCb);
1110
1115
  }
1111
1116
  else if (typeof cb === "function") {
1112
1117
  if (typeof optionsOrCb !== "object")
1113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1118
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1114
1119
  this.send(command, optionsOrCb || {}, cb);
1115
1120
  }
1116
1121
  else {
1117
1122
  return this.send(command, optionsOrCb);
1118
1123
  }
1119
- }
1120
- untagResource(args, optionsOrCb, cb) {
1121
- const command = new UntagResourceCommand(args);
1124
+ };
1125
+ SESv2.prototype.untagResource = function (args, optionsOrCb, cb) {
1126
+ var command = new UntagResourceCommand(args);
1122
1127
  if (typeof optionsOrCb === "function") {
1123
1128
  this.send(command, optionsOrCb);
1124
1129
  }
1125
1130
  else if (typeof cb === "function") {
1126
1131
  if (typeof optionsOrCb !== "object")
1127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1132
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1128
1133
  this.send(command, optionsOrCb || {}, cb);
1129
1134
  }
1130
1135
  else {
1131
1136
  return this.send(command, optionsOrCb);
1132
1137
  }
1133
- }
1134
- updateConfigurationSetEventDestination(args, optionsOrCb, cb) {
1135
- const command = new UpdateConfigurationSetEventDestinationCommand(args);
1138
+ };
1139
+ SESv2.prototype.updateConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
1140
+ var command = new UpdateConfigurationSetEventDestinationCommand(args);
1136
1141
  if (typeof optionsOrCb === "function") {
1137
1142
  this.send(command, optionsOrCb);
1138
1143
  }
1139
1144
  else if (typeof cb === "function") {
1140
1145
  if (typeof optionsOrCb !== "object")
1141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1146
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1142
1147
  this.send(command, optionsOrCb || {}, cb);
1143
1148
  }
1144
1149
  else {
1145
1150
  return this.send(command, optionsOrCb);
1146
1151
  }
1147
- }
1148
- updateContact(args, optionsOrCb, cb) {
1149
- const command = new UpdateContactCommand(args);
1152
+ };
1153
+ SESv2.prototype.updateContact = function (args, optionsOrCb, cb) {
1154
+ var command = new UpdateContactCommand(args);
1150
1155
  if (typeof optionsOrCb === "function") {
1151
1156
  this.send(command, optionsOrCb);
1152
1157
  }
1153
1158
  else if (typeof cb === "function") {
1154
1159
  if (typeof optionsOrCb !== "object")
1155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1160
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1156
1161
  this.send(command, optionsOrCb || {}, cb);
1157
1162
  }
1158
1163
  else {
1159
1164
  return this.send(command, optionsOrCb);
1160
1165
  }
1161
- }
1162
- updateContactList(args, optionsOrCb, cb) {
1163
- const command = new UpdateContactListCommand(args);
1166
+ };
1167
+ SESv2.prototype.updateContactList = function (args, optionsOrCb, cb) {
1168
+ var command = new UpdateContactListCommand(args);
1164
1169
  if (typeof optionsOrCb === "function") {
1165
1170
  this.send(command, optionsOrCb);
1166
1171
  }
1167
1172
  else if (typeof cb === "function") {
1168
1173
  if (typeof optionsOrCb !== "object")
1169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1174
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1170
1175
  this.send(command, optionsOrCb || {}, cb);
1171
1176
  }
1172
1177
  else {
1173
1178
  return this.send(command, optionsOrCb);
1174
1179
  }
1175
- }
1176
- updateCustomVerificationEmailTemplate(args, optionsOrCb, cb) {
1177
- const command = new UpdateCustomVerificationEmailTemplateCommand(args);
1180
+ };
1181
+ SESv2.prototype.updateCustomVerificationEmailTemplate = function (args, optionsOrCb, cb) {
1182
+ var command = new UpdateCustomVerificationEmailTemplateCommand(args);
1178
1183
  if (typeof optionsOrCb === "function") {
1179
1184
  this.send(command, optionsOrCb);
1180
1185
  }
1181
1186
  else if (typeof cb === "function") {
1182
1187
  if (typeof optionsOrCb !== "object")
1183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1188
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1184
1189
  this.send(command, optionsOrCb || {}, cb);
1185
1190
  }
1186
1191
  else {
1187
1192
  return this.send(command, optionsOrCb);
1188
1193
  }
1189
- }
1190
- updateEmailIdentityPolicy(args, optionsOrCb, cb) {
1191
- const command = new UpdateEmailIdentityPolicyCommand(args);
1194
+ };
1195
+ SESv2.prototype.updateEmailIdentityPolicy = function (args, optionsOrCb, cb) {
1196
+ var command = new UpdateEmailIdentityPolicyCommand(args);
1192
1197
  if (typeof optionsOrCb === "function") {
1193
1198
  this.send(command, optionsOrCb);
1194
1199
  }
1195
1200
  else if (typeof cb === "function") {
1196
1201
  if (typeof optionsOrCb !== "object")
1197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1202
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1198
1203
  this.send(command, optionsOrCb || {}, cb);
1199
1204
  }
1200
1205
  else {
1201
1206
  return this.send(command, optionsOrCb);
1202
1207
  }
1203
- }
1204
- updateEmailTemplate(args, optionsOrCb, cb) {
1205
- const command = new UpdateEmailTemplateCommand(args);
1208
+ };
1209
+ SESv2.prototype.updateEmailTemplate = function (args, optionsOrCb, cb) {
1210
+ var command = new UpdateEmailTemplateCommand(args);
1206
1211
  if (typeof optionsOrCb === "function") {
1207
1212
  this.send(command, optionsOrCb);
1208
1213
  }
1209
1214
  else if (typeof cb === "function") {
1210
1215
  if (typeof optionsOrCb !== "object")
1211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1216
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1212
1217
  this.send(command, optionsOrCb || {}, cb);
1213
1218
  }
1214
1219
  else {
1215
1220
  return this.send(command, optionsOrCb);
1216
1221
  }
1217
- }
1218
- }
1222
+ };
1223
+ return SESv2;
1224
+ }(SESv2Client));
1225
+ export { SESv2 };