Skip to content

Commit

Permalink
feat(client-sesv2): This release adds support for email maximum deliv…
Browse files Browse the repository at this point in the history
…ery seconds that allows senders to control the time within which their emails are attempted for delivery.
  • Loading branch information
awstools committed Oct 15, 2024
1 parent 0141b42 commit 60af417
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface CreateConfigurationSetCommandOutput extends CreateConfiguration
* DeliveryOptions: { // DeliveryOptions
* TlsPolicy: "REQUIRE" || "OPTIONAL",
* SendingPoolName: "STRING_VALUE",
* MaxDeliverySeconds: Number("long"),
* },
* ReputationOptions: { // ReputationOptions
* ReputationMetricsEnabled: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface GetConfigurationSetCommandOutput extends GetConfigurationSetRes
* // DeliveryOptions: { // DeliveryOptions
* // TlsPolicy: "REQUIRE" || "OPTIONAL",
* // SendingPoolName: "STRING_VALUE",
* // MaxDeliverySeconds: Number("long"),
* // },
* // ReputationOptions: { // ReputationOptions
* // ReputationMetricsEnabled: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface PutConfigurationSetDeliveryOptionsCommandOutput
* ConfigurationSetName: "STRING_VALUE", // required
* TlsPolicy: "REQUIRE" || "OPTIONAL",
* SendingPoolName: "STRING_VALUE",
* MaxDeliverySeconds: Number("long"),
* };
* const command = new PutConfigurationSetDeliveryOptionsCommand(input);
* const response = await client.send(command);
Expand Down
18 changes: 18 additions & 0 deletions clients/client-sesv2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,15 @@ export interface DeliveryOptions {
* @public
*/
SendingPoolName?: string;

/**
* <p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.
* If specified, the value must greater than or equal to 300 seconds (5 minutes)
* and less than or equal to 50400 seconds (840 minutes).
* </p>
* @public
*/
MaxDeliverySeconds?: number;
}

/**
Expand Down Expand Up @@ -7024,6 +7033,15 @@ export interface PutConfigurationSetDeliveryOptionsRequest {
* @public
*/
SendingPoolName?: string;

/**
* <p>The maximum amount of time, in seconds, that Amazon SES API v2 will attempt delivery of email.
* If specified, the value must greater than or equal to 300 seconds (5 minutes)
* and less than or equal to 50400 seconds (840 minutes).
* </p>
* @public
*/
MaxDeliverySeconds?: number;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-sesv2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,7 @@ export const se_PutConfigurationSetDeliveryOptionsCommand = async (
let body: any;
body = JSON.stringify(
take(input, {
MaxDeliverySeconds: [],
SendingPoolName: [],
TlsPolicy: [],
})
Expand Down
21 changes: 21 additions & 0 deletions codegen/sdk-codegen/aws-models/sesv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,12 @@
"traits": {
"smithy.api#documentation": "<p>The name of the dedicated IP pool to associate with the configuration set.</p>"
}
},
"MaxDeliverySeconds": {
"target": "com.amazonaws.sesv2#MaxDeliverySeconds",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down Expand Up @@ -7498,6 +7504,15 @@
"smithy.api#default": 0
}
},
"com.amazonaws.sesv2#MaxDeliverySeconds": {
"type": "long",
"traits": {
"smithy.api#range": {
"min": 300,
"max": 50400
}
}
},
"com.amazonaws.sesv2#MaxItems": {
"type": "integer"
},
Expand Down Expand Up @@ -8481,6 +8496,12 @@
"traits": {
"smithy.api#documentation": "<p>The name of the dedicated IP pool to associate with the configuration set.</p>"
}
},
"MaxDeliverySeconds": {
"target": "com.amazonaws.sesv2#MaxDeliverySeconds",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down

0 comments on commit 60af417

Please sign in to comment.