Struct aws_sdk_ses::types::builders::EventDestinationBuilder
source · #[non_exhaustive]pub struct EventDestinationBuilder { /* private fields */ }
Expand description
A builder for EventDestination
.
Implementations§
source§impl EventDestinationBuilder
impl EventDestinationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the event destination. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 64 characters or fewer.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the event destination. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 64 characters or fewer.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the event destination. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain 64 characters or fewer.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true
to enable publishing to this destination; set to false
to prevent publishing to this destination. The default value is false
.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true
to enable publishing to this destination; set to false
to prevent publishing to this destination. The default value is false
.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true
to enable publishing to this destination; set to false
to prevent publishing to this destination. The default value is false
.
sourcepub fn matching_event_types(self, input: EventType) -> Self
pub fn matching_event_types(self, input: EventType) -> Self
Appends an item to matching_event_types
.
To override the contents of this collection use set_matching_event_types
.
The type of email sending events to publish to the event destination.
-
send
- The call was successful and Amazon SES is attempting to deliver the email. -
reject
- Amazon SES determined that the email contained a virus and rejected it. -
bounce
- The recipient's mail server permanently rejected the email. This corresponds to a hard bounce. -
complaint
- The recipient marked the email as spam. -
delivery
- Amazon SES successfully delivered the email to the recipient's mail server. -
open
- The recipient received the email and opened it in their email client. -
click
- The recipient clicked one or more links in the email. -
renderingFailure
- Amazon SES did not send the email because of a template rendering issue.
sourcepub fn set_matching_event_types(self, input: Option<Vec<EventType>>) -> Self
pub fn set_matching_event_types(self, input: Option<Vec<EventType>>) -> Self
The type of email sending events to publish to the event destination.
-
send
- The call was successful and Amazon SES is attempting to deliver the email. -
reject
- Amazon SES determined that the email contained a virus and rejected it. -
bounce
- The recipient's mail server permanently rejected the email. This corresponds to a hard bounce. -
complaint
- The recipient marked the email as spam. -
delivery
- Amazon SES successfully delivered the email to the recipient's mail server. -
open
- The recipient received the email and opened it in their email client. -
click
- The recipient clicked one or more links in the email. -
renderingFailure
- Amazon SES did not send the email because of a template rendering issue.
sourcepub fn get_matching_event_types(&self) -> &Option<Vec<EventType>>
pub fn get_matching_event_types(&self) -> &Option<Vec<EventType>>
The type of email sending events to publish to the event destination.
-
send
- The call was successful and Amazon SES is attempting to deliver the email. -
reject
- Amazon SES determined that the email contained a virus and rejected it. -
bounce
- The recipient's mail server permanently rejected the email. This corresponds to a hard bounce. -
complaint
- The recipient marked the email as spam. -
delivery
- Amazon SES successfully delivered the email to the recipient's mail server. -
open
- The recipient received the email and opened it in their email client. -
click
- The recipient clicked one or more links in the email. -
renderingFailure
- Amazon SES did not send the email because of a template rendering issue.
sourcepub fn kinesis_firehose_destination(
self,
input: KinesisFirehoseDestination
) -> Self
pub fn kinesis_firehose_destination( self, input: KinesisFirehoseDestination ) -> Self
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
sourcepub fn set_kinesis_firehose_destination(
self,
input: Option<KinesisFirehoseDestination>
) -> Self
pub fn set_kinesis_firehose_destination( self, input: Option<KinesisFirehoseDestination> ) -> Self
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
sourcepub fn get_kinesis_firehose_destination(
&self
) -> &Option<KinesisFirehoseDestination>
pub fn get_kinesis_firehose_destination( &self ) -> &Option<KinesisFirehoseDestination>
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
sourcepub fn cloud_watch_destination(self, input: CloudWatchDestination) -> Self
pub fn cloud_watch_destination(self, input: CloudWatchDestination) -> Self
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
sourcepub fn set_cloud_watch_destination(
self,
input: Option<CloudWatchDestination>
) -> Self
pub fn set_cloud_watch_destination( self, input: Option<CloudWatchDestination> ) -> Self
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
sourcepub fn get_cloud_watch_destination(&self) -> &Option<CloudWatchDestination>
pub fn get_cloud_watch_destination(&self) -> &Option<CloudWatchDestination>
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
sourcepub fn sns_destination(self, input: SnsDestination) -> Self
pub fn sns_destination(self, input: SnsDestination) -> Self
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
sourcepub fn set_sns_destination(self, input: Option<SnsDestination>) -> Self
pub fn set_sns_destination(self, input: Option<SnsDestination>) -> Self
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
sourcepub fn get_sns_destination(&self) -> &Option<SnsDestination>
pub fn get_sns_destination(&self) -> &Option<SnsDestination>
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
sourcepub fn build(self) -> Result<EventDestination, BuildError>
pub fn build(self) -> Result<EventDestination, BuildError>
Consumes the builder and constructs a EventDestination
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EventDestinationBuilder
impl Clone for EventDestinationBuilder
source§fn clone(&self) -> EventDestinationBuilder
fn clone(&self) -> EventDestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventDestinationBuilder
impl Debug for EventDestinationBuilder
source§impl Default for EventDestinationBuilder
impl Default for EventDestinationBuilder
source§fn default() -> EventDestinationBuilder
fn default() -> EventDestinationBuilder
source§impl PartialEq for EventDestinationBuilder
impl PartialEq for EventDestinationBuilder
source§fn eq(&self, other: &EventDestinationBuilder) -> bool
fn eq(&self, other: &EventDestinationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.