1
1
// smithy-typescript generated code
2
2
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ;
3
3
4
+ import {
5
+ BatchGetMetricDataCommand ,
6
+ BatchGetMetricDataCommandInput ,
7
+ BatchGetMetricDataCommandOutput ,
8
+ } from "./commands/BatchGetMetricDataCommand" ;
4
9
import {
5
10
CreateConfigurationSetCommand ,
6
11
CreateConfigurationSetCommandInput ,
@@ -243,6 +248,11 @@ import {
243
248
ListImportJobsCommandInput ,
244
249
ListImportJobsCommandOutput ,
245
250
} from "./commands/ListImportJobsCommand" ;
251
+ import {
252
+ ListRecommendationsCommand ,
253
+ ListRecommendationsCommandInput ,
254
+ ListRecommendationsCommandOutput ,
255
+ } from "./commands/ListRecommendationsCommand" ;
246
256
import {
247
257
ListSuppressedDestinationsCommand ,
248
258
ListSuppressedDestinationsCommandInput ,
@@ -273,6 +283,11 @@ import {
273
283
PutAccountSuppressionAttributesCommandInput ,
274
284
PutAccountSuppressionAttributesCommandOutput ,
275
285
} from "./commands/PutAccountSuppressionAttributesCommand" ;
286
+ import {
287
+ PutAccountVdmAttributesCommand ,
288
+ PutAccountVdmAttributesCommandInput ,
289
+ PutAccountVdmAttributesCommandOutput ,
290
+ } from "./commands/PutAccountVdmAttributesCommand" ;
276
291
import {
277
292
PutConfigurationSetDeliveryOptionsCommand ,
278
293
PutConfigurationSetDeliveryOptionsCommandInput ,
@@ -298,6 +313,11 @@ import {
298
313
PutConfigurationSetTrackingOptionsCommandInput ,
299
314
PutConfigurationSetTrackingOptionsCommandOutput ,
300
315
} from "./commands/PutConfigurationSetTrackingOptionsCommand" ;
316
+ import {
317
+ PutConfigurationSetVdmOptionsCommand ,
318
+ PutConfigurationSetVdmOptionsCommandInput ,
319
+ PutConfigurationSetVdmOptionsCommandOutput ,
320
+ } from "./commands/PutConfigurationSetVdmOptionsCommand" ;
301
321
import {
302
322
PutDedicatedIpInPoolCommand ,
303
323
PutDedicatedIpInPoolCommandInput ,
@@ -408,6 +428,40 @@ import { SESv2Client } from "./SESv2Client";
408
428
* and code samples that demonstrate how to use Amazon SES API v2 features programmatically.</p>
409
429
*/
410
430
export class SESv2 extends SESv2Client {
431
+ /**
432
+ * <p>Retrieves batches of metric data collected based on your sending activity.</p>
433
+ * <p>You can execute this operation no more than 16 times per second,
434
+ * and with at most 160 queries from the batches per second (cumulative).</p>
435
+ */
436
+ public batchGetMetricData (
437
+ args : BatchGetMetricDataCommandInput ,
438
+ options ?: __HttpHandlerOptions
439
+ ) : Promise < BatchGetMetricDataCommandOutput > ;
440
+ public batchGetMetricData (
441
+ args : BatchGetMetricDataCommandInput ,
442
+ cb : ( err : any , data ?: BatchGetMetricDataCommandOutput ) => void
443
+ ) : void ;
444
+ public batchGetMetricData (
445
+ args : BatchGetMetricDataCommandInput ,
446
+ options : __HttpHandlerOptions ,
447
+ cb : ( err : any , data ?: BatchGetMetricDataCommandOutput ) => void
448
+ ) : void ;
449
+ public batchGetMetricData (
450
+ args : BatchGetMetricDataCommandInput ,
451
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: BatchGetMetricDataCommandOutput ) => void ) ,
452
+ cb ?: ( err : any , data ?: BatchGetMetricDataCommandOutput ) => void
453
+ ) : Promise < BatchGetMetricDataCommandOutput > | void {
454
+ const command = new BatchGetMetricDataCommand ( args ) ;
455
+ if ( typeof optionsOrCb === "function" ) {
456
+ this . send ( command , optionsOrCb ) ;
457
+ } else if ( typeof cb === "function" ) {
458
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
459
+ this . send ( command , optionsOrCb || { } , cb ) ;
460
+ } else {
461
+ return this . send ( command , optionsOrCb ) ;
462
+ }
463
+ }
464
+
411
465
/**
412
466
* <p>Create a configuration set. <i>Configuration sets</i> are groups of
413
467
* rules that you can apply to the emails that you send. You apply a configuration set to
@@ -2164,6 +2218,39 @@ export class SESv2 extends SESv2Client {
2164
2218
}
2165
2219
}
2166
2220
2221
+ /**
2222
+ * <p>Lists the recommendations present in your Amazon SES account in the current Amazon Web Services Region.</p>
2223
+ * <p>You can execute this operation no more than once per second.</p>
2224
+ */
2225
+ public listRecommendations (
2226
+ args : ListRecommendationsCommandInput ,
2227
+ options ?: __HttpHandlerOptions
2228
+ ) : Promise < ListRecommendationsCommandOutput > ;
2229
+ public listRecommendations (
2230
+ args : ListRecommendationsCommandInput ,
2231
+ cb : ( err : any , data ?: ListRecommendationsCommandOutput ) => void
2232
+ ) : void ;
2233
+ public listRecommendations (
2234
+ args : ListRecommendationsCommandInput ,
2235
+ options : __HttpHandlerOptions ,
2236
+ cb : ( err : any , data ?: ListRecommendationsCommandOutput ) => void
2237
+ ) : void ;
2238
+ public listRecommendations (
2239
+ args : ListRecommendationsCommandInput ,
2240
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListRecommendationsCommandOutput ) => void ) ,
2241
+ cb ?: ( err : any , data ?: ListRecommendationsCommandOutput ) => void
2242
+ ) : Promise < ListRecommendationsCommandOutput > | void {
2243
+ const command = new ListRecommendationsCommand ( args ) ;
2244
+ if ( typeof optionsOrCb === "function" ) {
2245
+ this . send ( command , optionsOrCb ) ;
2246
+ } else if ( typeof cb === "function" ) {
2247
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2248
+ this . send ( command , optionsOrCb || { } , cb ) ;
2249
+ } else {
2250
+ return this . send ( command , optionsOrCb ) ;
2251
+ }
2252
+ }
2253
+
2167
2254
/**
2168
2255
* <p>Retrieves a list of email addresses that are on the suppression list for your
2169
2256
* account.</p>
@@ -2364,6 +2451,39 @@ export class SESv2 extends SESv2Client {
2364
2451
}
2365
2452
}
2366
2453
2454
+ /**
2455
+ * <p>Update your Amazon SES account VDM attributes.</p>
2456
+ * <p>You can execute this operation no more than once per second.</p>
2457
+ */
2458
+ public putAccountVdmAttributes (
2459
+ args : PutAccountVdmAttributesCommandInput ,
2460
+ options ?: __HttpHandlerOptions
2461
+ ) : Promise < PutAccountVdmAttributesCommandOutput > ;
2462
+ public putAccountVdmAttributes (
2463
+ args : PutAccountVdmAttributesCommandInput ,
2464
+ cb : ( err : any , data ?: PutAccountVdmAttributesCommandOutput ) => void
2465
+ ) : void ;
2466
+ public putAccountVdmAttributes (
2467
+ args : PutAccountVdmAttributesCommandInput ,
2468
+ options : __HttpHandlerOptions ,
2469
+ cb : ( err : any , data ?: PutAccountVdmAttributesCommandOutput ) => void
2470
+ ) : void ;
2471
+ public putAccountVdmAttributes (
2472
+ args : PutAccountVdmAttributesCommandInput ,
2473
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: PutAccountVdmAttributesCommandOutput ) => void ) ,
2474
+ cb ?: ( err : any , data ?: PutAccountVdmAttributesCommandOutput ) => void
2475
+ ) : Promise < PutAccountVdmAttributesCommandOutput > | void {
2476
+ const command = new PutAccountVdmAttributesCommand ( args ) ;
2477
+ if ( typeof optionsOrCb === "function" ) {
2478
+ this . send ( command , optionsOrCb ) ;
2479
+ } else if ( typeof cb === "function" ) {
2480
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2481
+ this . send ( command , optionsOrCb || { } , cb ) ;
2482
+ } else {
2483
+ return this . send ( command , optionsOrCb ) ;
2484
+ }
2485
+ }
2486
+
2367
2487
/**
2368
2488
* <p>Associate a configuration set with a dedicated IP pool. You can use dedicated IP pools
2369
2489
* to create groups of dedicated IP addresses for sending specific types of email.</p>
@@ -2530,6 +2650,39 @@ export class SESv2 extends SESv2Client {
2530
2650
}
2531
2651
}
2532
2652
2653
+ /**
2654
+ * <p>Specify VDM preferences for email that you send using the configuration set.</p>
2655
+ * <p>You can execute this operation no more than once per second.</p>
2656
+ */
2657
+ public putConfigurationSetVdmOptions (
2658
+ args : PutConfigurationSetVdmOptionsCommandInput ,
2659
+ options ?: __HttpHandlerOptions
2660
+ ) : Promise < PutConfigurationSetVdmOptionsCommandOutput > ;
2661
+ public putConfigurationSetVdmOptions (
2662
+ args : PutConfigurationSetVdmOptionsCommandInput ,
2663
+ cb : ( err : any , data ?: PutConfigurationSetVdmOptionsCommandOutput ) => void
2664
+ ) : void ;
2665
+ public putConfigurationSetVdmOptions (
2666
+ args : PutConfigurationSetVdmOptionsCommandInput ,
2667
+ options : __HttpHandlerOptions ,
2668
+ cb : ( err : any , data ?: PutConfigurationSetVdmOptionsCommandOutput ) => void
2669
+ ) : void ;
2670
+ public putConfigurationSetVdmOptions (
2671
+ args : PutConfigurationSetVdmOptionsCommandInput ,
2672
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: PutConfigurationSetVdmOptionsCommandOutput ) => void ) ,
2673
+ cb ?: ( err : any , data ?: PutConfigurationSetVdmOptionsCommandOutput ) => void
2674
+ ) : Promise < PutConfigurationSetVdmOptionsCommandOutput > | void {
2675
+ const command = new PutConfigurationSetVdmOptionsCommand ( args ) ;
2676
+ if ( typeof optionsOrCb === "function" ) {
2677
+ this . send ( command , optionsOrCb ) ;
2678
+ } else if ( typeof cb === "function" ) {
2679
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2680
+ this . send ( command , optionsOrCb || { } , cb ) ;
2681
+ } else {
2682
+ return this . send ( command , optionsOrCb ) ;
2683
+ }
2684
+ }
2685
+
2533
2686
/**
2534
2687
* <p>Move a dedicated IP address to an existing dedicated IP pool.</p>
2535
2688
* <note>
0 commit comments