Struct aws_sdk_sesv2::client::fluent_builders::PutEmailIdentityMailFromAttributes [−][src]
pub struct PutEmailIdentityMailFromAttributes<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutEmailIdentityMailFromAttributes
.
Used to enable or disable the custom Mail-From domain configuration for an email identity.
Implementations
impl<C, M, R> PutEmailIdentityMailFromAttributes<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutEmailIdentityMailFromAttributes<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError>> where
R::Policy: SmithyRetryPolicy<PutEmailIdentityMailFromAttributesInputOperationOutputAlias, PutEmailIdentityMailFromAttributesOutput, PutEmailIdentityMailFromAttributesError, PutEmailIdentityMailFromAttributesInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutEmailIdentityMailFromAttributesOutput, SdkError<PutEmailIdentityMailFromAttributesError>> where
R::Policy: SmithyRetryPolicy<PutEmailIdentityMailFromAttributesInputOperationOutputAlias, PutEmailIdentityMailFromAttributesOutput, PutEmailIdentityMailFromAttributesError, PutEmailIdentityMailFromAttributesInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The verified email identity.
The verified email identity.
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 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 to take if the required MX record isn't found when you send an email. When
you set this value to UseDefaultValue
, the mail is sent using
amazonses.com as the MAIL FROM domain. When you set this value
to RejectMessage
, the Amazon SES API v2 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.
The action to take if the required MX record isn't found when you send an email. When
you set this value to UseDefaultValue
, the mail is sent using
amazonses.com as the MAIL FROM domain. When you set this value
to RejectMessage
, the Amazon SES API v2 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
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutEmailIdentityMailFromAttributes<C, M, R>
impl<C, M, R> Send for PutEmailIdentityMailFromAttributes<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutEmailIdentityMailFromAttributes<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutEmailIdentityMailFromAttributes<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutEmailIdentityMailFromAttributes<C, M, R>
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