paws.management (version 0.1.0)

autoscaling_put_notification_configuration: 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.

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 Simple Notification Service (Amazon SNS) topic.

NotificationTypes

[required] The type of event that causes the notification to be sent. For more information about notification types supported by Amazon EC2 Auto Scaling, see DescribeAutoScalingNotificationTypes.

Request syntax

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

Details

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.

Examples

Run this code
# NOT RUN {
# This example adds the specified notification to the specified Auto
# Scaling group.
# }
# NOT RUN {
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"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab