#[non_exhaustive]pub struct PutEmailIdentityMailFromAttributesInput {
pub email_identity: Option<String>,
pub mail_from_domain: Option<String>,
pub behavior_on_mx_failure: Option<BehaviorOnMxFailure>,
}
Expand description
A request to configure the custom MAIL FROM domain for a verified identity.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.email_identity: Option<String>
The verified email identity that you want to set up the custom MAIL FROM domain for.
mail_from_domain: Option<String>
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: Option<BehaviorOnMxFailure>
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email. When you set this value to UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint returns a MailFromDomainNotVerified
error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending
, Failed
, and TemporaryFailure
states.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutEmailIdentityMailFromAttributes, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutEmailIdentityMailFromAttributes, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutEmailIdentityMailFromAttributes
>
Creates a new builder-style object to manufacture PutEmailIdentityMailFromAttributesInput
The verified email identity that you want to set up the custom MAIL FROM domain for.
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.
The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email. When you set this value to UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage
, Amazon Pinpoint returns a MailFromDomainNotVerified
error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending
, Failed
, and TemporaryFailure
states.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more