#[non_exhaustive]pub struct NotificationChannelConfig {
pub sns: Option<SnsChannelConfig>,
pub filters: Option<NotificationFilterConfig>,
}
Expand description
Information about notification channels you have configured with DevOps Guru. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
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.sns: Option<SnsChannelConfig>
Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.
filters: Option<NotificationFilterConfig>
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru. If you do not provide filter configurations, the default configurations are to receive notifications for all message types of High
or Medium
severity.
Implementations§
source§impl NotificationChannelConfig
impl NotificationChannelConfig
sourcepub fn sns(&self) -> Option<&SnsChannelConfig>
pub fn sns(&self) -> Option<&SnsChannelConfig>
Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.
sourcepub fn filters(&self) -> Option<&NotificationFilterConfig>
pub fn filters(&self) -> Option<&NotificationFilterConfig>
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru. If you do not provide filter configurations, the default configurations are to receive notifications for all message types of High
or Medium
severity.
source§impl NotificationChannelConfig
impl NotificationChannelConfig
sourcepub fn builder() -> NotificationChannelConfigBuilder
pub fn builder() -> NotificationChannelConfigBuilder
Creates a new builder-style object to manufacture NotificationChannelConfig
.
Trait Implementations§
source§impl Clone for NotificationChannelConfig
impl Clone for NotificationChannelConfig
source§fn clone(&self) -> NotificationChannelConfig
fn clone(&self) -> NotificationChannelConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationChannelConfig
impl Debug for NotificationChannelConfig
source§impl PartialEq for NotificationChannelConfig
impl PartialEq for NotificationChannelConfig
source§fn eq(&self, other: &NotificationChannelConfig) -> bool
fn eq(&self, other: &NotificationChannelConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationChannelConfig
Auto Trait Implementations§
impl Freeze for NotificationChannelConfig
impl RefUnwindSafe for NotificationChannelConfig
impl Send for NotificationChannelConfig
impl Sync for NotificationChannelConfig
impl Unpin for NotificationChannelConfig
impl UnwindSafe for NotificationChannelConfig
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