Skip to content

Commit eb95299

Browse files
author
AWS
committed
Amazon Simple Email Service Update: This release enables customers to provide attachments in the SESv2 SendEmail and SendBulkEmail APIs.
1 parent 4d77b47 commit eb95299

File tree

2 files changed

+92
-2
lines changed

2 files changed

+92
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Simple Email Service",
4+
"contributor": "",
5+
"description": "This release enables customers to provide attachments in the SESv2 SendEmail and SendBulkEmail APIs."
6+
}

services/sesv2/src/main/resources/codegen-resources/service-2.json

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,81 @@
15891589
},
15901590
"documentation":"<p>Used to associate a configuration set with a MailManager archive.</p>"
15911591
},
1592+
"Attachment":{
1593+
"type":"structure",
1594+
"required":[
1595+
"RawContent",
1596+
"FileName"
1597+
],
1598+
"members":{
1599+
"RawContent":{
1600+
"shape":"RawAttachmentData",
1601+
"documentation":"<p> The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.</p>"
1602+
},
1603+
"ContentDisposition":{
1604+
"shape":"AttachmentContentDisposition",
1605+
"documentation":"<p> A standard descriptor indicating how the attachment should be rendered in the email. Supported values: <code>ATTACHMENT</code> or <code>INLINE</code>.</p>"
1606+
},
1607+
"FileName":{
1608+
"shape":"AttachmentFileName",
1609+
"documentation":"<p>The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the <a href=\"https://docs.aws.amazon.com/ses/latest/dg/mime-types.html\">Unsupported attachment types</a> in the Amazon SES Developer Guide.</p>"
1610+
},
1611+
"ContentDescription":{
1612+
"shape":"AttachmentContentDescription",
1613+
"documentation":"<p> A brief description of the attachment content.</p>"
1614+
},
1615+
"ContentId":{
1616+
"shape":"AttachmentContentId",
1617+
"documentation":"<p> Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.</p>"
1618+
},
1619+
"ContentTransferEncoding":{
1620+
"shape":"AttachmentContentTransferEncoding",
1621+
"documentation":"<p> Specifies how the attachment is encoded. Supported values: <code>BASE64</code>, <code>QUOTED_PRINTABLE</code>, <code>SEVEN_BIT</code>.</p>"
1622+
},
1623+
"ContentType":{
1624+
"shape":"AttachmentContentType",
1625+
"documentation":"<p> The MIME type of the attachment.</p> <note> <p>Example: <code>application/pdf</code>, <code>image/jpeg</code> </p> </note>"
1626+
}
1627+
},
1628+
"documentation":"<p> Contains metadata and attachment raw content.</p>"
1629+
},
1630+
"AttachmentContentDescription":{
1631+
"type":"string",
1632+
"max":1000
1633+
},
1634+
"AttachmentContentDisposition":{
1635+
"type":"string",
1636+
"enum":[
1637+
"ATTACHMENT",
1638+
"INLINE"
1639+
]
1640+
},
1641+
"AttachmentContentId":{
1642+
"type":"string",
1643+
"max":78,
1644+
"min":1
1645+
},
1646+
"AttachmentContentTransferEncoding":{
1647+
"type":"string",
1648+
"enum":[
1649+
"BASE64",
1650+
"QUOTED_PRINTABLE",
1651+
"SEVEN_BIT"
1652+
]
1653+
},
1654+
"AttachmentContentType":{
1655+
"type":"string",
1656+
"max":78,
1657+
"min":1
1658+
},
1659+
"AttachmentFileName":{
1660+
"type":"string",
1661+
"max":255
1662+
},
1663+
"AttachmentList":{
1664+
"type":"list",
1665+
"member":{"shape":"Attachment"}
1666+
},
15921667
"AttributesData":{"type":"string"},
15931668
"BadRequestException":{
15941669
"type":"structure",
@@ -3222,7 +3297,7 @@
32223297
"members":{
32233298
"Simple":{
32243299
"shape":"Message",
3225-
"documentation":"<p>The simple email message. The message consists of a subject and a message body.</p>"
3300+
"documentation":"<p>The simple email message. The message consists of a subject, message body and attachments list.</p>"
32263301
},
32273302
"Raw":{
32283303
"shape":"RawMessage",
@@ -3233,7 +3308,7 @@
32333308
"documentation":"<p>The template to use for the email message.</p>"
32343309
}
32353310
},
3236-
"documentation":"<p>An object that defines the entire content of the email, including the message headers and the body content. You can create a simple email message, in which you specify the subject and the text and HTML versions of the message body. You can also create raw messages, in which you specify a complete MIME-formatted message. Raw messages can include attachments and custom headers.</p>"
3311+
"documentation":"<p>An object that defines the entire content of the email, including the message headers, body content, and attachments. For a simple email message, you specify the subject and provide both text and HTML versions of the message body. You can also add attachments to simple and templated messages. For a raw message, you provide a complete MIME-formatted message, which can include custom headers and attachments.</p>"
32373312
},
32383313
"EmailInsights":{
32393314
"type":"structure",
@@ -5417,6 +5492,10 @@
54175492
"Headers":{
54185493
"shape":"MessageHeaderList",
54195494
"documentation":"<p>The list of message headers that will be added to the email message.</p>"
5495+
},
5496+
"Attachments":{
5497+
"shape":"AttachmentList",
5498+
"documentation":"<p> The List of attachments to include in your email. All recipients will receive the same attachments.</p>"
54205499
}
54215500
},
54225501
"documentation":"<p>Represents the email message that you're sending. The <code>Message</code> object consists of a subject line and a message body.</p>"
@@ -6379,6 +6458,7 @@
63796458
"max":255,
63806459
"min":1
63816460
},
6461+
"RawAttachmentData":{"type":"blob"},
63826462
"RawMessage":{
63836463
"type":"structure",
63846464
"required":["Data"],
@@ -7028,6 +7108,10 @@
70287108
"Headers":{
70297109
"shape":"MessageHeaderList",
70307110
"documentation":"<p>The list of message headers that will be added to the email message.</p>"
7111+
},
7112+
"Attachments":{
7113+
"shape":"AttachmentList",
7114+
"documentation":"<p> The List of attachments to include in your email. All recipients will receive the same attachments.</p>"
70317115
}
70327116
},
70337117
"documentation":"<p>An object that defines the email template to use for an email message, and the values to use for any message variables in that template. An <i>email template</i> is a type of message template that contains content that you want to reuse in email messages that you send. You can specifiy the email template by providing the name or ARN of an <i>email template</i> previously saved in your Amazon SES account or by providing the full template content.</p>"

0 commit comments

Comments
 (0)