#[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 ==.impl StructuralPartialEq for EventSubscriptionBuilder
Auto Trait Implementations§
impl Freeze for EventSubscriptionBuilder
impl RefUnwindSafe for EventSubscriptionBuilder
impl Send for EventSubscriptionBuilder
impl Sync for EventSubscriptionBuilder
impl Unpin for EventSubscriptionBuilder
impl UnwindSafe for EventSubscriptionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more