Skip to content

Put Notification Configuration

autoscaling_put_notification_configuration R Documentation

Configures an Auto Scaling group to send notifications when specified events take place

Description

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 Amazon SNS notification options for Amazon EC2 Auto Scaling 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.

Usage

autoscaling_put_notification_configuration(AutoScalingGroupName,
  TopicARN, NotificationTypes)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

TopicARN

[required] The Amazon Resource Name (ARN) of the Amazon SNS topic.

NotificationTypes

[required] The type of event that causes the notification to be sent. To query the notification types supported by Amazon EC2 Auto Scaling, call the describe_auto_scaling_notification_types API.

Value

An empty list.

Request syntax

svc$put_notification_configuration(
  AutoScalingGroupName = "string",
  TopicARN = "string",
  NotificationTypes = list(
    "string"
  )
)

Examples

## Not run: 
# This example adds the specified notification to the specified Auto
# Scaling group.
svc$put_notification_configuration(
  AutoScalingGroupName = "my-auto-scaling-group",
  NotificationTypes = list(
    "autoscaling:TEST_NOTIFICATION"
  ),
  TopicARN = "arn:aws:sns:us-west-2:123456789012:my-sns-topic"
)

## End(Not run)