1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendEmail`](crate::operation::send_email::builders::SendEmailFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`from_email_address(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::from_email_address) / [`set_from_email_address(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_from_email_address):<br>required: **false**<br><p>The email address to use as the "From" address for the email. The address that you specify has to be verified.</p><br>
    ///   - [`from_email_address_identity_arn(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::from_email_address_identity_arn) / [`set_from_email_address_identity_arn(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_from_email_address_identity_arn):<br>required: **false**<br><p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>FromEmailAddress</code> parameter.</p> <p>For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the <code>FromEmailAddressIdentityArn</code> to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the <code>FromEmailAddress</code> to be sender@example.com.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <p>For Raw emails, the <code>FromEmailAddressIdentityArn</code> value overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.</p><br>
    ///   - [`destination(Destination)`](crate::operation::send_email::builders::SendEmailFluentBuilder::destination) / [`set_destination(Option<Destination>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_destination):<br>required: **false**<br><p>An object that contains the recipients of the email message.</p><br>
    ///   - [`reply_to_addresses(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::reply_to_addresses) / [`set_reply_to_addresses(Option<Vec::<String>>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_reply_to_addresses):<br>required: **false**<br><p>The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.</p><br>
    ///   - [`feedback_forwarding_email_address(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::feedback_forwarding_email_address) / [`set_feedback_forwarding_email_address(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_feedback_forwarding_email_address):<br>required: **false**<br><p>The address that you want bounce and complaint notifications to be sent to.</p><br>
    ///   - [`feedback_forwarding_email_address_identity_arn(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::feedback_forwarding_email_address_identity_arn) / [`set_feedback_forwarding_email_address_identity_arn(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_feedback_forwarding_email_address_identity_arn):<br>required: **false**<br><p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>FeedbackForwardingEmailAddress</code> parameter.</p> <p>For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the <code>FeedbackForwardingEmailAddressIdentityArn</code> to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the <code>FeedbackForwardingEmailAddress</code> to be feedback@example.com.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p><br>
    ///   - [`content(EmailContent)`](crate::operation::send_email::builders::SendEmailFluentBuilder::content) / [`set_content(Option<EmailContent>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_content):<br>required: **true**<br><p>An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.</p><br>
    ///   - [`email_tags(MessageTag)`](crate::operation::send_email::builders::SendEmailFluentBuilder::email_tags) / [`set_email_tags(Option<Vec::<MessageTag>>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_email_tags):<br>required: **false**<br><p>A list of tags, in the form of name/value pairs, to apply to an email that you send using the <code>SendEmail</code> operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p><br>
    ///   - [`configuration_set_name(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_configuration_set_name):<br>required: **false**<br><p>The name of the configuration set to use when sending the email.</p><br>
    ///   - [`list_management_options(ListManagementOptions)`](crate::operation::send_email::builders::SendEmailFluentBuilder::list_management_options) / [`set_list_management_options(Option<ListManagementOptions>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_list_management_options):<br>required: **false**<br><p>An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.</p><br>
    /// - On success, responds with [`SendEmailOutput`](crate::operation::send_email::SendEmailOutput) with field(s):
    ///   - [`message_id(Option<String>)`](crate::operation::send_email::SendEmailOutput::message_id): <p>A unique identifier for the message that is generated when the message is accepted.</p><note>  <p>It's possible for Amazon SES to accept a message without sending it. For example, this can happen when the message that you're trying to send has an attachment that contains a virus, or when you send a templated email that contains invalid personalization content.</p> </note>
    /// - On failure, responds with [`SdkError<SendEmailError>`](crate::operation::send_email::SendEmailError)
    pub fn send_email(&self) -> crate::operation::send_email::builders::SendEmailFluentBuilder {
        crate::operation::send_email::builders::SendEmailFluentBuilder::new(self.handle.clone())
    }
}