aws_sdk_devopsguru/client/
add_notification_channel.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AddNotificationChannel`](crate::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`config(NotificationChannelConfig)`](crate::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder::config) / [`set_config(Option<NotificationChannelConfig>)`](crate::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder::set_config):<br>required: **true**<br><p>A <code>NotificationChannelConfig</code> object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).</p><br>
7    /// - On success, responds with [`AddNotificationChannelOutput`](crate::operation::add_notification_channel::AddNotificationChannelOutput) with field(s):
8    ///   - [`id(String)`](crate::operation::add_notification_channel::AddNotificationChannelOutput::id): <p>The ID of the added notification channel.</p>
9    /// - On failure, responds with [`SdkError<AddNotificationChannelError>`](crate::operation::add_notification_channel::AddNotificationChannelError)
10    pub fn add_notification_channel(&self) -> crate::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder {
11        crate::operation::add_notification_channel::builders::AddNotificationChannelFluentBuilder::new(self.handle.clone())
12    }
13}