Struct aws_sdk_resiliencehub::types::EventSubscription
source · #[non_exhaustive]pub struct EventSubscription {
pub name: String,
pub event_type: EventType,
pub sns_topic_arn: Option<String>,
}Expand description
Indicates an event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
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: StringUnique name to identify an event subscription.
event_type: EventTypeThe type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected (DriftDetected) and Scheduled assessment failure (ScheduledAssessmentFailure) events.
sns_topic_arn: Option<String>Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is: arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
Implementations§
source§impl EventSubscription
impl EventSubscription
sourcepub fn event_type(&self) -> &EventType
pub fn event_type(&self) -> &EventType
The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected (DriftDetected) and Scheduled assessment failure (ScheduledAssessmentFailure) events.
sourcepub fn sns_topic_arn(&self) -> Option<&str>
pub fn sns_topic_arn(&self) -> Option<&str>
Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is: arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
source§impl EventSubscription
impl EventSubscription
sourcepub fn builder() -> EventSubscriptionBuilder
pub fn builder() -> EventSubscriptionBuilder
Creates a new builder-style object to manufacture EventSubscription.
Trait Implementations§
source§impl Clone for EventSubscription
impl Clone for EventSubscription
source§fn clone(&self) -> EventSubscription
fn clone(&self) -> EventSubscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EventSubscription
impl Debug for EventSubscription
source§impl PartialEq for EventSubscription
impl PartialEq for EventSubscription
source§fn eq(&self, other: &EventSubscription) -> bool
fn eq(&self, other: &EventSubscription) -> bool
self and other values to be equal, and is used
by ==.