pub struct PutNotificationConfiguration { /* private fields */ }
Expand description
Fluent builder constructing a request to PutNotificationConfiguration
.
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.
This configuration overwrites any existing configuration.
For more information, see Getting Amazon SNS notifications when your Auto Scaling group scales in the Amazon EC2 Auto Scaling User Guide.
If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call fails.
Implementations
sourceimpl PutNotificationConfiguration
impl PutNotificationConfiguration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutNotificationConfiguration, AwsResponseRetryClassifier>, SdkError<PutNotificationConfigurationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutNotificationConfiguration, AwsResponseRetryClassifier>, SdkError<PutNotificationConfigurationError>>
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<PutNotificationConfigurationOutput, SdkError<PutNotificationConfigurationError>>
pub async fn send(
self
) -> Result<PutNotificationConfigurationOutput, SdkError<PutNotificationConfigurationError>>
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 auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn topic_arn(self, input: impl Into<String>) -> Self
pub fn topic_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon SNS topic.
sourcepub fn set_topic_arn(self, input: Option<String>) -> Self
pub fn set_topic_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon SNS topic.
sourcepub fn notification_types(self, input: impl Into<String>) -> Self
pub fn notification_types(self, input: impl Into<String>) -> Self
Appends an item to NotificationTypes
.
To override the contents of this collection use set_notification_types
.
The type of event that causes the notification to be sent. To query the notification types supported by Amazon EC2 Auto Scaling, call the DescribeAutoScalingNotificationTypes
API.
sourcepub fn set_notification_types(self, input: Option<Vec<String>>) -> Self
pub fn set_notification_types(self, input: Option<Vec<String>>) -> Self
The type of event that causes the notification to be sent. To query the notification types supported by Amazon EC2 Auto Scaling, call the DescribeAutoScalingNotificationTypes
API.
Trait Implementations
sourceimpl Clone for PutNotificationConfiguration
impl Clone for PutNotificationConfiguration
sourcefn clone(&self) -> PutNotificationConfiguration
fn clone(&self) -> PutNotificationConfiguration
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more