Skip to content

Attachment

Source code in docs_src/capo_sesv2/types/attachment.py
class Attachment(TypedDict, closed=True):
    raw_content: "capo_sesv2.types.raw_attachment_data.RawAttachmentData"
    """<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>"""
    content_disposition: NotRequired[
        "capo_sesv2.types.attachment_content_disposition.AttachmentContentDisposition"
    ]
    """<p> A standard descriptor indicating how the attachment should be rendered in the email. Supported values: <code>ATTACHMENT</code> or <code>INLINE</code>.</p>"""
    file_name: "capo_sesv2.types.attachment_file_name.AttachmentFileName"
    """<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>"""
    content_description: NotRequired[
        "capo_sesv2.types.attachment_content_description.AttachmentContentDescription"
    ]
    """<p> A brief description of the attachment content.</p>"""
    content_id: NotRequired[
        "capo_sesv2.types.attachment_content_id.AttachmentContentId"
    ]
    """<p> Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.</p>"""
    content_transfer_encoding: NotRequired[
        "capo_sesv2.types.attachment_content_transfer_encoding.AttachmentContentTransferEncoding"
    ]
    """<p> Specifies how the attachment is encoded. Supported values: <code>BASE64</code>, <code>QUOTED_PRINTABLE</code>, <code>SEVEN_BIT</code>.</p>"""
    content_type: NotRequired[
        "capo_sesv2.types.attachment_content_type.AttachmentContentType"
    ]
    """<p> The MIME type of the attachment.</p> <note> <p>Example: <code>application/pdf</code>, <code>image/jpeg</code> </p> </note>"""

content_description instance-attribute

content_description: NotRequired[AttachmentContentDescription]

A brief description of the attachment content.

content_disposition instance-attribute

content_disposition: NotRequired[AttachmentContentDisposition]

A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.

content_id instance-attribute

content_id: NotRequired[AttachmentContentId]

Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.

content_transfer_encoding instance-attribute

content_transfer_encoding: NotRequired[AttachmentContentTransferEncoding]

Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.

content_type instance-attribute

content_type: NotRequired[AttachmentContentType]

The MIME type of the attachment.

Example: application/pdf, image/jpeg

file_name instance-attribute

file_name: AttachmentFileName

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 Unsupported attachment types in the Amazon SES Developer Guide.

raw_content instance-attribute

raw_content: RawAttachmentData

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.