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