Skip to main content

notification_configurations

Creates, updates, deletes, gets or lists a notification_configurations resource.

Overview

Namenotification_configurations
TypeResource
Idaws.autoscaling.notification_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_scaling_group_namestringThe name of the Auto Scaling group.
notification_typestringOne of the following event notification types: autoscaling:EC2_INSTANCE_LAUNCH autoscaling:EC2_INSTANCE_LAUNCH_ERROR autoscaling:EC2_INSTANCE_TERMINATE autoscaling:EC2_INSTANCE_TERMINATE_ERROR autoscaling:TEST_NOTIFICATION
topic_arnstringThe Amazon Resource Name (ARN) of the Amazon SNS topic.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_notification_configurationsselectregionAutoScalingGroupNames, NextToken, MaxRecordsGets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.
put_notification_configurationreplaceAutoScalingGroupName, TopicARN, NotificationTypes, regionConfigures 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.
delete_notification_configurationdeleteAutoScalingGroupName, TopicARN, regionDeletes the specified notification.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AutoScalingGroupNamestringThe name of the Auto Scaling group.
NotificationTypesarrayThe 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.
TopicARNstringThe Amazon Resource Name (ARN) of the Amazon SNS topic.
regionstringAWS region (default: us-east-1)
AutoScalingGroupNamesarrayThe name of the Auto Scaling group.
MaxRecordsintegerThe maximum number of items to return with this call. The default value is 50 and the maximum value is 100.
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)

SELECT examples

Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.

SELECT
auto_scaling_group_name,
notification_type,
topic_arn
FROM aws.autoscaling.notification_configurations
WHERE region = '{{ region }}' -- required
AND AutoScalingGroupNames = '{{ AutoScalingGroupNames }}'
AND NextToken = '{{ NextToken }}'
AND MaxRecords = '{{ MaxRecords }}'
;

REPLACE examples

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.

REPLACE aws.autoscaling.notification_configurations
SET
-- No updatable properties
WHERE
AutoScalingGroupName = '{{ AutoScalingGroupName }}' --required
AND TopicARN = '{{ TopicARN }}' --required
AND NotificationTypes = '{{ NotificationTypes }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the specified notification.

DELETE FROM aws.autoscaling.notification_configurations
WHERE AutoScalingGroupName = '{{ AutoScalingGroupName }}' --required
AND TopicARN = '{{ TopicARN }}' --required
AND region = '{{ region }}' --required
;