Struct aws_sdk_ses::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder
source · pub struct SetIdentityMailFromDomainFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SetIdentityMailFromDomain
.
Enables or disables the custom MAIL FROM domain setup for a verified identity (an email address or a domain).
To send emails using the specified MAIL FROM domain, you must add an MX record to your MAIL FROM domain's DNS settings. To ensure that your emails pass Sender Policy Framework (SPF) checks, you must also add or update an SPF record. For more information, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Implementations§
source§impl SetIdentityMailFromDomainFluentBuilder
impl SetIdentityMailFromDomainFluentBuilder
sourcepub fn as_input(&self) -> &SetIdentityMailFromDomainInputBuilder
pub fn as_input(&self) -> &SetIdentityMailFromDomainInputBuilder
Access the SetIdentityMailFromDomain as a reference.
sourcepub async fn send(
self
) -> Result<SetIdentityMailFromDomainOutput, SdkError<SetIdentityMailFromDomainError, HttpResponse>>
pub async fn send( self ) -> Result<SetIdentityMailFromDomainOutput, SdkError<SetIdentityMailFromDomainError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<SetIdentityMailFromDomainOutput, SetIdentityMailFromDomainError, Self>
pub fn customize( self ) -> CustomizableOperation<SetIdentityMailFromDomainOutput, SetIdentityMailFromDomainError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_identity(self, input: Option<String>) -> Self
pub fn set_identity(self, input: Option<String>) -> Self
The verified identity.
sourcepub fn get_identity(&self) -> &Option<String>
pub fn get_identity(&self) -> &Option<String>
The verified identity.
sourcepub fn mail_from_domain(self, input: impl Into<String>) -> Self
pub fn mail_from_domain(self, input: impl Into<String>) -> Self
The custom MAIL FROM domain for the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null
disables the custom MAIL FROM setting for the identity.
sourcepub fn set_mail_from_domain(self, input: Option<String>) -> Self
pub fn set_mail_from_domain(self, input: Option<String>) -> Self
The custom MAIL FROM domain for the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null
disables the custom MAIL FROM setting for the identity.
sourcepub fn get_mail_from_domain(&self) -> &Option<String>
pub fn get_mail_from_domain(&self) -> &Option<String>
The custom MAIL FROM domain for the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null
disables the custom MAIL FROM setting for the identity.
sourcepub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
pub fn behavior_on_mx_failure(self, input: BehaviorOnMxFailure) -> Self
The action for Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue
, Amazon SES uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage
, Amazon SES returns a MailFromDomainNotVerified
error and not send the email.
The action specified in BehaviorOnMXFailure
is taken when the custom MAIL FROM domain setup is in the Pending
, Failed
, and TemporaryFailure
states.
sourcepub fn set_behavior_on_mx_failure(
self,
input: Option<BehaviorOnMxFailure>
) -> Self
pub fn set_behavior_on_mx_failure( self, input: Option<BehaviorOnMxFailure> ) -> Self
The action for Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue
, Amazon SES uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage
, Amazon SES returns a MailFromDomainNotVerified
error and not send the email.
The action specified in BehaviorOnMXFailure
is taken when the custom MAIL FROM domain setup is in the Pending
, Failed
, and TemporaryFailure
states.
sourcepub fn get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
pub fn get_behavior_on_mx_failure(&self) -> &Option<BehaviorOnMxFailure>
The action for Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue
, Amazon SES uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage
, Amazon SES returns a MailFromDomainNotVerified
error and not send the email.
The action specified in BehaviorOnMXFailure
is taken when the custom MAIL FROM domain setup is in the Pending
, Failed
, and TemporaryFailure
states.
Trait Implementations§
source§impl Clone for SetIdentityMailFromDomainFluentBuilder
impl Clone for SetIdentityMailFromDomainFluentBuilder
source§fn clone(&self) -> SetIdentityMailFromDomainFluentBuilder
fn clone(&self) -> SetIdentityMailFromDomainFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SetIdentityMailFromDomainFluentBuilder
impl !RefUnwindSafe for SetIdentityMailFromDomainFluentBuilder
impl Send for SetIdentityMailFromDomainFluentBuilder
impl Sync for SetIdentityMailFromDomainFluentBuilder
impl Unpin for SetIdentityMailFromDomainFluentBuilder
impl !UnwindSafe for SetIdentityMailFromDomainFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more