Skip to content

Commit 3a57303

Browse files
author
awstools
committed
feat(client-sesv2): Adds support for longer email message header values, increasing the maximum length from 870 to 995 characters for RFC 5322 compliance.
1 parent cc6da58 commit 3a57303

File tree

3 files changed

+81
-3
lines changed

3 files changed

+81
-3
lines changed

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,45 @@ export interface GetEmailAddressInsightsCommandOutput extends GetEmailAddressIns
8383
* <p>Base exception class for all service exceptions from SESv2 service.</p>
8484
*
8585
*
86+
* @example Get Email Address Insights
87+
* ```javascript
88+
* // Performs email validation against an email address.
89+
* const input = {
90+
* EmailAddress: "hello@example.com"
91+
* };
92+
* const command = new GetEmailAddressInsightsCommand(input);
93+
* const response = await client.send(command);
94+
* /* response is
95+
* {
96+
* MailboxValidation: {
97+
* Evaluations: {
98+
* HasValidDnsRecords: {
99+
* ConfidenceVerdict: "MEDIUM"
100+
* },
101+
* HasValidSyntax: {
102+
* ConfidenceVerdict: "HIGH"
103+
* },
104+
* IsDisposable: {
105+
* ConfidenceVerdict: "LOW"
106+
* },
107+
* IsRandomInput: {
108+
* ConfidenceVerdict: "LOW"
109+
* },
110+
* IsRoleAddress: {
111+
* ConfidenceVerdict: "LOW"
112+
* },
113+
* MailboxExists: {
114+
* ConfidenceVerdict: "MEDIUM"
115+
* }
116+
* },
117+
* IsValid: {
118+
* ConfidenceVerdict: "HIGH"
119+
* }
120+
* }
121+
* }
122+
* *\/
123+
* ```
124+
*
86125
* @public
87126
*/
88127
export class GetEmailAddressInsightsCommand extends $Command

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,10 @@ export interface MessageHeader {
549549
* <p>Can contain any printable ASCII character.</p>
550550
* </li>
551551
* <li>
552-
* <p>Can contain no more than 870 characters.</p>
552+
* <p>Can contain no more than 995 characters.</p>
553+
* </li>
554+
* <li>
555+
* <p>The combined length of the header name and value must not exceed 996 characters.</p>
553556
* </li>
554557
* </ul>
555558
* @public

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

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5985,6 +5985,42 @@
59855985
],
59865986
"traits": {
59875987
"smithy.api#documentation": "<p>Provides validation insights about a specific email address, including syntax validation, DNS record checks, mailbox existence, and other deliverability factors.</p>",
5988+
"smithy.api#examples": [
5989+
{
5990+
"title": "Get Email Address Insights",
5991+
"documentation": "Performs email validation against an email address.",
5992+
"input": {
5993+
"EmailAddress": "hello@example.com"
5994+
},
5995+
"output": {
5996+
"MailboxValidation": {
5997+
"IsValid": {
5998+
"ConfidenceVerdict": "HIGH"
5999+
},
6000+
"Evaluations": {
6001+
"HasValidSyntax": {
6002+
"ConfidenceVerdict": "HIGH"
6003+
},
6004+
"HasValidDnsRecords": {
6005+
"ConfidenceVerdict": "MEDIUM"
6006+
},
6007+
"MailboxExists": {
6008+
"ConfidenceVerdict": "MEDIUM"
6009+
},
6010+
"IsRoleAddress": {
6011+
"ConfidenceVerdict": "LOW"
6012+
},
6013+
"IsDisposable": {
6014+
"ConfidenceVerdict": "LOW"
6015+
},
6016+
"IsRandomInput": {
6017+
"ConfidenceVerdict": "LOW"
6018+
}
6019+
}
6020+
}
6021+
}
6022+
}
6023+
],
59886024
"smithy.api#http": {
59896025
"method": "POST",
59906026
"uri": "/v2/email/email-address-insights",
@@ -9213,7 +9249,7 @@
92139249
"Value": {
92149250
"target": "com.amazonaws.sesv2#MessageHeaderValue",
92159251
"traits": {
9216-
"smithy.api#documentation": "<p>The value of the message header. The message header value has to meet the following\n criteria:</p>\n <ul>\n <li>\n <p>Can contain any printable ASCII character.</p>\n </li>\n <li>\n <p>Can contain no more than 870 characters.</p>\n </li>\n </ul>",
9252+
"smithy.api#documentation": "<p>The value of the message header. The message header value has to meet the following\n criteria:</p>\n <ul>\n <li>\n <p>Can contain any printable ASCII character.</p>\n </li>\n <li>\n <p>Can contain no more than 995 characters.</p>\n </li>\n <li>\n <p>The combined length of the header name and value must not exceed 996 characters.</p>\n </li>\n </ul>",
92179253
"smithy.api#required": {}
92189254
}
92199255
}
@@ -9252,7 +9288,7 @@
92529288
"smithy.api#documentation": "<p>The value of the message header. The message header value has to meet the following\n criteria:</p>\n <ul>\n <li>\n <p>Can contain any printable ASCII character.</p>\n </li>\n </ul>",
92539289
"smithy.api#length": {
92549290
"min": 1,
9255-
"max": 870
9291+
"max": 995
92569292
},
92579293
"smithy.api#pattern": "^[ -~]*$"
92589294
}

0 commit comments

Comments
 (0)