Skip to content

SESV2Client.put_email_identity_mail_from_attributes

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): Used to enable or disable the custom Mail-From domain configuration for an email identity.

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from rboto_sesv2.types import (
    BehaviorOnMxFailure,
    PutEmailIdentityMailFromAttributesOutput,
)

Signature

async def put_email_identity_mail_from_attributes(
    *,
    email_identity: str,
    mail_from_domain: str | None = None,
    behavior_on_mx_failure: BehaviorOnMxFailure | None = None,
) -> PutEmailIdentityMailFromAttributesOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
email_identity Yes The verified email identity.
mail_from_domain No The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria: It has to be a subdomain of the verified identity. It can't be used to receive email. It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
behavior_on_mx_failure No The action to take if the required MX record isn't found when you send an email. When you set this value to USE_DEFAULT_VALUE , the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE , the Amazon SES API v2 returns a MailFromDomainNotVerifiedException error, and doesn't attempt to deliver the email. These behaviors are taken when the custom MAIL...

Output

PutEmailIdentityMailFromAttributesOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

BehaviorOnMxFailure, PutEmailIdentityMailFromAttributesOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sesv2.exceptions:

BadRequestError, NotFoundError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model