PutNotificationConfiguration#

Description#

Creates or updates a notification configuration for an Auto Scaling Group (ASG).

Request Parameters#

  • AutoScalingGroupName — The name of the ASG.

    • Type: String

    • Required: Yes

  • NotificationConfigurationName — The name of the notification configuration.

    • Type: String

    • Required: Yes

  • NotificationTypes — List of types of notifications to be sent.

    • Type: Array of strings

    • Required: Yes

    • Valid values: autoscaling:EC2_INSTANCE_LAUNCH | autoscaling:EC2_INSTANCE_LAUNCH_ERROR | autoscaling:EC2_INSTANCE_TERMINATE | autoscaling:EC2_INSTANCE_TERMINATE_ERROR

  • NotificationTargets — List of emails to which notifications are sent.

    • Required: No

    • Type: Array of strings

    • Valid values: example@mail.com

    • Length constraints for the list: From 0 to 10 items

Examples#

c2-as PutNotificationConfiguration
  AutoScalingGroupName "asg_name" \
  NotificationConfigurationName "notif_config_name" \
  NotificationTypes.1 "autoscaling:EC2_INSTANCE_LAUNCH_ERROR" \
  NotificationTypes.2 "autoscaling:EC2_INSTANCE_TERMINATE_ERROR" \
  NotificationTargets.1 "some@email.address" \
  NotificationTargets.2 "another@email.address"