aws_sdk_sesv2/client/
get_message_insights.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetMessageInsights`](crate::operation::get_message_insights::builders::GetMessageInsightsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`message_id(impl Into<String>)`](crate::operation::get_message_insights::builders::GetMessageInsightsFluentBuilder::message_id) / [`set_message_id(Option<String>)`](crate::operation::get_message_insights::builders::GetMessageInsightsFluentBuilder::set_message_id):<br>required: **true**<br><p>A <code>MessageId</code> is a unique identifier for a message, and is returned when sending emails through Amazon SES.</p><br>
7    /// - On success, responds with [`GetMessageInsightsOutput`](crate::operation::get_message_insights::GetMessageInsightsOutput) with field(s):
8    ///   - [`message_id(Option<String>)`](crate::operation::get_message_insights::GetMessageInsightsOutput::message_id): <p>A unique identifier for the message.</p>
9    ///   - [`from_email_address(Option<String>)`](crate::operation::get_message_insights::GetMessageInsightsOutput::from_email_address): <p>The from address used to send the message.</p>
10    ///   - [`subject(Option<String>)`](crate::operation::get_message_insights::GetMessageInsightsOutput::subject): <p>The subject line of the message.</p>
11    ///   - [`email_tags(Option<Vec::<MessageTag>>)`](crate::operation::get_message_insights::GetMessageInsightsOutput::email_tags): <p>A list of tags, in the form of name/value pairs, that were applied to the email you sent, along with Amazon SES <a href="https://docs.aws.amazon.com/ses/latest/dg/monitor-using-event-publishing.html">Auto-Tags</a>.</p>
12    ///   - [`insights(Option<Vec::<EmailInsights>>)`](crate::operation::get_message_insights::GetMessageInsightsOutput::insights): <p>A set of insights associated with the message.</p>
13    /// - On failure, responds with [`SdkError<GetMessageInsightsError>`](crate::operation::get_message_insights::GetMessageInsightsError)
14    pub fn get_message_insights(&self) -> crate::operation::get_message_insights::builders::GetMessageInsightsFluentBuilder {
15        crate::operation::get_message_insights::builders::GetMessageInsightsFluentBuilder::new(self.handle.clone())
16    }
17}