pub struct AddNotificationChannel { /* private fields */ }
Expand description
Fluent builder constructing a request to AddNotificationChannel
.
Adds a notification channel to DevOps Guru. A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to 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 cross account Amazon SNS topics.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account 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.
Implementations§
source§impl AddNotificationChannel
impl AddNotificationChannel
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AddNotificationChannel, AwsResponseRetryClassifier>, SdkError<AddNotificationChannelError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AddNotificationChannel, AwsResponseRetryClassifier>, SdkError<AddNotificationChannelError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError>>
pub async fn send(
self
) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn config(self, input: NotificationChannelConfig) -> Self
pub fn config(self, input: NotificationChannelConfig) -> Self
A NotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
sourcepub fn set_config(self, input: Option<NotificationChannelConfig>) -> Self
pub fn set_config(self, input: Option<NotificationChannelConfig>) -> Self
A NotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
Trait Implementations§
source§impl Clone for AddNotificationChannel
impl Clone for AddNotificationChannel
source§fn clone(&self) -> AddNotificationChannel
fn clone(&self) -> AddNotificationChannel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more