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