Struct aws_sdk_ses::model::EventDestination
source · [−]#[non_exhaustive]pub struct EventDestination {
pub name: Option<String>,
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>,
}
Expand description
Contains information about the event destination that the specified email sending events will be published to.
When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple Notification Service (Amazon SNS).
Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see the Amazon SES Developer Guide.
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.name: Option<String>
The name of the event destination. The name must:
-
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain less than 64 characters.
enabled: 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
.
matching_event_types: Option<Vec<EventType>>
The type of email sending events to publish to the event destination.
kinesis_firehose_destination: Option<KinesisFirehoseDestination>
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
cloud_watch_destination: Option<CloudWatchDestination>
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
sns_destination: Option<SnsDestination>
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
Implementations
sourceimpl EventDestination
impl EventDestination
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the event destination. The name must:
-
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Contain less than 64 characters.
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> 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) -> Option<&[EventType]>
pub fn matching_event_types(&self) -> Option<&[EventType]>
The type of email sending events to publish to the event destination.
sourcepub fn kinesis_firehose_destination(
&self
) -> Option<&KinesisFirehoseDestination>
pub fn 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) -> Option<&CloudWatchDestination>
pub fn 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) -> Option<&SnsDestination>
pub fn sns_destination(&self) -> Option<&SnsDestination>
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
sourceimpl EventDestination
impl EventDestination
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EventDestination
Trait Implementations
sourceimpl Clone for EventDestination
impl Clone for EventDestination
sourcefn clone(&self) -> EventDestination
fn clone(&self) -> EventDestination
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventDestination
impl Debug for EventDestination
sourceimpl PartialEq<EventDestination> for EventDestination
impl PartialEq<EventDestination> for EventDestination
sourcefn eq(&self, other: &EventDestination) -> bool
fn eq(&self, other: &EventDestination) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EventDestination) -> bool
fn ne(&self, other: &EventDestination) -> bool
This method tests for !=
.
impl StructuralPartialEq for EventDestination
Auto Trait Implementations
impl RefUnwindSafe for EventDestination
impl Send for EventDestination
impl Sync for EventDestination
impl Unpin for EventDestination
impl UnwindSafe for EventDestination
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more