1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SetIdentityMailFromDomain`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity(impl Into<String>)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::set_identity):<br>required: **true**<br><p>The verified identity.</p><br>
    ///   - [`mail_from_domain(impl Into<String>)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::mail_from_domain) / [`set_mail_from_domain(Option<String>)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::set_mail_from_domain):<br>required: **false**<br><p>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 <a href="https://docs.aws.amazon.com/ses/latest/dg/mail-from.html">Amazon SES Developer Guide</a>), and 3) not be used to receive emails. A value of <code>null</code> disables the custom MAIL FROM setting for the identity.</p><br>
    ///   - [`behavior_on_mx_failure(BehaviorOnMxFailure)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::behavior_on_mx_failure) / [`set_behavior_on_mx_failure(Option<BehaviorOnMxFailure>)`](crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::set_behavior_on_mx_failure):<br>required: **false**<br><p>The action for Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose <code>UseDefaultValue</code>, Amazon SES uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES returns a <code>MailFromDomainNotVerified</code> error and not send the email.</p> <p>The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states.</p><br>
    /// - On success, responds with [`SetIdentityMailFromDomainOutput`](crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainOutput)
    /// - On failure, responds with [`SdkError<SetIdentityMailFromDomainError>`](crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError)
    pub fn set_identity_mail_from_domain(&self) -> crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder {
        crate::operation::set_identity_mail_from_domain::builders::SetIdentityMailFromDomainFluentBuilder::new(self.handle.clone())
    }
}