Struct aws_sdk_autoscaling::operation::put_notification_configuration::builders::PutNotificationConfigurationFluentBuilder
source · pub struct PutNotificationConfigurationFluentBuilder { /* 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§
source§impl PutNotificationConfigurationFluentBuilder
impl PutNotificationConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &PutNotificationConfigurationInputBuilder
pub fn as_input(&self) -> &PutNotificationConfigurationInputBuilder
Access the PutNotificationConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<PutNotificationConfigurationOutput, SdkError<PutNotificationConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<PutNotificationConfigurationOutput, SdkError<PutNotificationConfigurationError, 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<PutNotificationConfigurationOutput, PutNotificationConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<PutNotificationConfigurationOutput, PutNotificationConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_auto_scaling_group_name(&self) -> &Option<String>
pub fn get_auto_scaling_group_name(&self) -> &Option<String>
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 get_topic_arn(&self) -> &Option<String>
pub fn get_topic_arn(&self) -> &Option<String>
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.
sourcepub fn get_notification_types(&self) -> &Option<Vec<String>>
pub fn get_notification_types(&self) -> &Option<Vec<String>>
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§
source§impl Clone for PutNotificationConfigurationFluentBuilder
impl Clone for PutNotificationConfigurationFluentBuilder
source§fn clone(&self) -> PutNotificationConfigurationFluentBuilder
fn clone(&self) -> PutNotificationConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more