Skip to content

Commit 60af417

Browse files
author
awstools
committed
feat(client-sesv2): This release adds support for email maximum delivery seconds that allows senders to control the time within which their emails are attempted for delivery.
1 parent 0141b42 commit 60af417

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

clients/client-sesv2/src/commands/CreateConfigurationSetCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface CreateConfigurationSetCommandOutput extends CreateConfiguration
4848
* DeliveryOptions: { // DeliveryOptions
4949
* TlsPolicy: "REQUIRE" || "OPTIONAL",
5050
* SendingPoolName: "STRING_VALUE",
51+
* MaxDeliverySeconds: Number("long"),
5152
* },
5253
* ReputationOptions: { // ReputationOptions
5354
* ReputationMetricsEnabled: true || false,

clients/client-sesv2/src/commands/GetConfigurationSetCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface GetConfigurationSetCommandOutput extends GetConfigurationSetRes
5656
* // DeliveryOptions: { // DeliveryOptions
5757
* // TlsPolicy: "REQUIRE" || "OPTIONAL",
5858
* // SendingPoolName: "STRING_VALUE",
59+
* // MaxDeliverySeconds: Number("long"),
5960
* // },
6061
* // ReputationOptions: { // ReputationOptions
6162
* // ReputationMetricsEnabled: true || false,

clients/client-sesv2/src/commands/PutConfigurationSetDeliveryOptionsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface PutConfigurationSetDeliveryOptionsCommandOutput
4848
* ConfigurationSetName: "STRING_VALUE", // required
4949
* TlsPolicy: "REQUIRE" || "OPTIONAL",
5050
* SendingPoolName: "STRING_VALUE",
51+
* MaxDeliverySeconds: Number("long"),
5152
* };
5253
* const command = new PutConfigurationSetDeliveryOptionsCommand(input);
5354
* const response = await client.send(command);

clients/client-sesv2/src/models/models_0.ts

+18
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,15 @@ export interface DeliveryOptions {
13571357
* @public
13581358
*/
13591359
SendingPoolName?: string;
1360+
1361+
/**
1362+
* <p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.
1363+
* If specified, the value must greater than or equal to 300 seconds (5 minutes)
1364+
* and less than or equal to 50400 seconds (840 minutes).
1365+
* </p>
1366+
* @public
1367+
*/
1368+
MaxDeliverySeconds?: number;
13601369
}
13611370

13621371
/**
@@ -7024,6 +7033,15 @@ export interface PutConfigurationSetDeliveryOptionsRequest {
70247033
* @public
70257034
*/
70267035
SendingPoolName?: string;
7036+
7037+
/**
7038+
* <p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.
7039+
* If specified, the value must greater than or equal to 300 seconds (5 minutes)
7040+
* and less than or equal to 50400 seconds (840 minutes).
7041+
* </p>
7042+
* @public
7043+
*/
7044+
MaxDeliverySeconds?: number;
70277045
}
70287046

70297047
/**

clients/client-sesv2/src/protocols/Aws_restJson1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,7 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async (
16681668
let body: any;
16691669
body = JSON.stringify(
16701670
take(input, {
1671+
MaxDeliverySeconds: [],
16711672
SendingPoolName: [],
16721673
TlsPolicy: [],
16731674
})

codegen/sdk-codegen/aws-models/sesv2.json

+21
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,12 @@
28202820
"traits": {
28212821
"smithy.api#documentation": "<p>The name of the dedicated IP pool to associate with the configuration set.</p>"
28222822
}
2823+
},
2824+
"MaxDeliverySeconds": {
2825+
"target": "com.amazonaws.sesv2#MaxDeliverySeconds",
2826+
"traits": {
2827+
"smithy.api#documentation": "<p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.\n If specified, the value must greater than or equal to 300 seconds (5 minutes)\n and less than or equal to 50400 seconds (840 minutes).\n </p>"
2828+
}
28232829
}
28242830
},
28252831
"traits": {
@@ -7498,6 +7504,15 @@
74987504
"smithy.api#default": 0
74997505
}
75007506
},
7507+
"com.amazonaws.sesv2#MaxDeliverySeconds": {
7508+
"type": "long",
7509+
"traits": {
7510+
"smithy.api#range": {
7511+
"min": 300,
7512+
"max": 50400
7513+
}
7514+
}
7515+
},
75017516
"com.amazonaws.sesv2#MaxItems": {
75027517
"type": "integer"
75037518
},
@@ -8481,6 +8496,12 @@
84818496
"traits": {
84828497
"smithy.api#documentation": "<p>The name of the dedicated IP pool to associate with the configuration set.</p>"
84838498
}
8499+
},
8500+
"MaxDeliverySeconds": {
8501+
"target": "com.amazonaws.sesv2#MaxDeliverySeconds",
8502+
"traits": {
8503+
"smithy.api#documentation": "<p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.\n If specified, the value must greater than or equal to 300 seconds (5 minutes)\n and less than or equal to 50400 seconds (840 minutes).\n </p>"
8504+
}
84848505
}
84858506
},
84868507
"traits": {

0 commit comments

Comments
 (0)