Struct aws_sdk_devopsguru::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder
source · pub struct AddNotificationChannelFluentBuilder { /* 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 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.
Implementations§
source§impl AddNotificationChannelFluentBuilder
impl AddNotificationChannelFluentBuilder
sourcepub fn as_input(&self) -> &AddNotificationChannelInputBuilder
pub fn as_input(&self) -> &AddNotificationChannelInputBuilder
Access the AddNotificationChannel as a reference.
sourcepub async fn send(
self
) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError, HttpResponse>>
pub async fn send( self ) -> Result<AddNotificationChannelOutput, SdkError<AddNotificationChannelError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<AddNotificationChannelOutput, AddNotificationChannelError, Self>
pub fn customize( self ) -> CustomizableOperation<AddNotificationChannelOutput, AddNotificationChannelError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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).
sourcepub fn get_config(&self) -> &Option<NotificationChannelConfig>
pub fn get_config(&self) -> &Option<NotificationChannelConfig>
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 AddNotificationChannelFluentBuilder
impl Clone for AddNotificationChannelFluentBuilder
source§fn clone(&self) -> AddNotificationChannelFluentBuilder
fn clone(&self) -> AddNotificationChannelFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more