Struct aws_sdk_devopsguru::client::fluent_builders::AddNotificationChannel [−][src]
pub struct AddNotificationChannel<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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. For more information, see Permissions for cross account Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics.
Implementations
impl<C, M, R> AddNotificationChannel<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AddNotificationChannel<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError>> where
R::Policy: SmithyRetryPolicy<AddNotificationChannelInputOperationOutputAlias, AddNotificationChannelOutput, AddNotificationChannelError, AddNotificationChannelInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError>> where
R::Policy: SmithyRetryPolicy<AddNotificationChannelInputOperationOutputAlias, AddNotificationChannelOutput, AddNotificationChannelError, AddNotificationChannelInputOperationRetryAlias>,
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.
A NotificationChannelConfig
object that specifies what type of
notification channel to add. The one
supported notification channel is Amazon Simple Notification Service (Amazon SNS).
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for AddNotificationChannel<C, M, R>
impl<C, M, R> Send for AddNotificationChannel<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AddNotificationChannel<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AddNotificationChannel<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AddNotificationChannel<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more