Struct aws_sdk_sesv2::types::EventDestinationDefinition
source · #[non_exhaustive]pub struct EventDestinationDefinition {
pub enabled: bool,
pub matching_event_types: Option<Vec<EventType>>,
pub kinesis_firehose_destination: Option<KinesisFirehoseDestination>,
pub cloud_watch_destination: Option<CloudWatchDestination>,
pub sns_destination: Option<SnsDestination>,
pub pinpoint_destination: Option<PinpointDestination>,
}Expand description
An object that defines the event destination. Specifically, it defines which services receive events from emails sent using the configuration set that the event destination is associated with. Also defines the types of events that are sent to the event destination.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolIf true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.
If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.
matching_event_types: Option<Vec<EventType>>An array that specifies which events the Amazon SES API v2 should send to the destinations in this EventDestinationDefinition.
kinesis_firehose_destination: Option<KinesisFirehoseDestination>An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.
cloud_watch_destination: Option<CloudWatchDestination>An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
sns_destination: Option<SnsDestination>An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.
pinpoint_destination: Option<PinpointDestination>An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the Amazon Pinpoint User Guide.
Implementations§
source§impl EventDestinationDefinition
impl EventDestinationDefinition
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.
If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.
sourcepub fn matching_event_types(&self) -> &[EventType]
pub fn matching_event_types(&self) -> &[EventType]
An array that specifies which events the Amazon SES API v2 should send to the destinations in this EventDestinationDefinition.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .matching_event_types.is_none().
sourcepub fn kinesis_firehose_destination(
&self
) -> Option<&KinesisFirehoseDestination>
pub fn kinesis_firehose_destination( &self ) -> Option<&KinesisFirehoseDestination>
An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.
sourcepub fn cloud_watch_destination(&self) -> Option<&CloudWatchDestination>
pub fn cloud_watch_destination(&self) -> Option<&CloudWatchDestination>
An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
sourcepub fn sns_destination(&self) -> Option<&SnsDestination>
pub fn sns_destination(&self) -> Option<&SnsDestination>
An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.
sourcepub fn pinpoint_destination(&self) -> Option<&PinpointDestination>
pub fn pinpoint_destination(&self) -> Option<&PinpointDestination>
An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the Amazon Pinpoint User Guide.
source§impl EventDestinationDefinition
impl EventDestinationDefinition
sourcepub fn builder() -> EventDestinationDefinitionBuilder
pub fn builder() -> EventDestinationDefinitionBuilder
Creates a new builder-style object to manufacture EventDestinationDefinition.
Trait Implementations§
source§impl Clone for EventDestinationDefinition
impl Clone for EventDestinationDefinition
source§fn clone(&self) -> EventDestinationDefinition
fn clone(&self) -> EventDestinationDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EventDestinationDefinition
impl Debug for EventDestinationDefinition
source§impl PartialEq for EventDestinationDefinition
impl PartialEq for EventDestinationDefinition
source§fn eq(&self, other: &EventDestinationDefinition) -> bool
fn eq(&self, other: &EventDestinationDefinition) -> bool
self and other values to be equal, and is used
by ==.