#[non_exhaustive]pub struct EventSubscriptionBuilder { /* private fields */ }Expand description
A builder for EventSubscription.
Implementations§
source§impl EventSubscriptionBuilder
impl EventSubscriptionBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Unique name to identify an event subscription.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Unique name to identify an event subscription.
sourcepub fn event_type(self, input: EventType) -> Self
pub fn event_type(self, input: EventType) -> Self
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 set_event_type(self, input: Option<EventType>) -> Self
pub fn set_event_type(self, input: Option<EventType>) -> Self
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 get_event_type(&self) -> &Option<EventType>
pub fn get_event_type(&self) -> &Option<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, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_sns_topic_arn(&self) -> &Option<String>
pub fn get_sns_topic_arn(&self) -> &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.
sourcepub fn build(self) -> Result<EventSubscription, BuildError>
pub fn build(self) -> Result<EventSubscription, BuildError>
Consumes the builder and constructs a EventSubscription.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EventSubscriptionBuilder
impl Clone for EventSubscriptionBuilder
source§fn clone(&self) -> EventSubscriptionBuilder
fn clone(&self) -> EventSubscriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EventSubscriptionBuilder
impl Debug for EventSubscriptionBuilder
source§impl Default for EventSubscriptionBuilder
impl Default for EventSubscriptionBuilder
source§fn default() -> EventSubscriptionBuilder
fn default() -> EventSubscriptionBuilder
source§impl PartialEq for EventSubscriptionBuilder
impl PartialEq for EventSubscriptionBuilder
source§fn eq(&self, other: &EventSubscriptionBuilder) -> bool
fn eq(&self, other: &EventSubscriptionBuilder) -> bool
self and other values to be equal, and is used
by ==.