pub struct SesClient<'a> { /* private fields */ }Implementations§
Source§impl SesClient<'_>
impl SesClient<'_>
Sourcepub async fn get_emails(&self) -> Result<SesEmailsResponse, Error>
pub async fn get_emails(&self) -> Result<SesEmailsResponse, Error>
List all sent emails.
Sourcepub async fn simulate_inbound(
&self,
req: &InboundEmailRequest,
) -> Result<InboundEmailResponse, Error>
pub async fn simulate_inbound( &self, req: &InboundEmailRequest, ) -> Result<InboundEmailResponse, Error>
Simulate an inbound email (SES receipt rules).
Sourcepub async fn get_metrics(&self) -> Result<SesMetricsResponse, Error>
pub async fn get_metrics(&self) -> Result<SesMetricsResponse, Error>
Snapshot the running SES counters (currently only
suppressed_drops_total).
Sourcepub async fn get_bounces(&self) -> Result<SesBouncesResponse, Error>
pub async fn get_bounces(&self) -> Result<SesBouncesResponse, Error>
List recorded SES bounces with per-recipient bounce metadata.
Sourcepub async fn set_sandbox(
&self,
sandbox: bool,
) -> Result<SesSandboxResponse, Error>
pub async fn set_sandbox( &self, sandbox: bool, ) -> Result<SesSandboxResponse, Error>
Flip the SES account-level production_access_enabled flag.
sandbox=true puts the account back into sandbox mode (production
access disabled); sandbox=false re-enables production access.
Sourcepub async fn get_event_destination_deliveries(
&self,
) -> Result<SesEventDestinationDeliveriesResponse, Error>
pub async fn get_event_destination_deliveries( &self, ) -> Result<SesEventDestinationDeliveriesResponse, Error>
List event-destination delivery dispatches recorded by the SES sender (one row per dispatched event-destination target).
Sourcepub async fn get_dkim_public_key(
&self,
identity: &str,
) -> Result<SesDkimPublicKeyResponse, Error>
pub async fn get_dkim_public_key( &self, identity: &str, ) -> Result<SesDkimPublicKeyResponse, Error>
Get the deterministic DKIM public key + selector + signing-enabled flag for an identity. 404 if the identity is unknown.
Sourcepub async fn set_mail_from_status(
&self,
identity: &str,
status: &str,
) -> Result<SesMailFromStatusResponse, Error>
pub async fn set_mail_from_status( &self, identity: &str, status: &str, ) -> Result<SesMailFromStatusResponse, Error>
Flip an identity’s MailFromDomainStatus. Must be one of
NotStarted / Pending / Success / Failed.
Sourcepub async fn get_message_insights(
&self,
message_id: &str,
) -> Result<SesMessageInsightsResponse, Error>
pub async fn get_message_insights( &self, message_id: &str, ) -> Result<SesMessageInsightsResponse, Error>
Get a per-message insights snapshot (sends, deliveries, bounces, complaints, …). 404 if the message id is unknown.
Sourcepub async fn get_smtp_submissions(
&self,
) -> Result<SesSmtpSubmissionsResponse, Error>
pub async fn get_smtp_submissions( &self, ) -> Result<SesSmtpSubmissionsResponse, Error>
List submissions received via the SES SMTP endpoint.