class AWS::AutoScaling::NotificationConfiguration
def delete
-
(nil)
-
def delete client_opts = {} client_opts[:auto_scaling_group_name] = group.name client_opts[:topic_arn] = topic_arn group.client.delete_notification_configuration(client_opts) nil end
def eql? other
- Private: -
def eql? other other.is_a?(NotificationConfiguration) and other.group == group and other.topic_arn == topic_arn and other.notification_types == notification_types end
def initialize auto_scaling_group, topic_arn, notification_types = []
- Private: -
def initialize auto_scaling_group, topic_arn, notification_types = [] @group = auto_scaling_group @topic_arn = topic_arn @notification_types = notification_types end
def notification_types= *notification_types
-
(nil)
-
def notification_types= *notification_types client_opts = {} client_opts[:topic_arn] = topic_arn client_opts[:notification_types] = notification_types.flatten client_opts[:auto_scaling_group_name] = group.name group.client.put_notification_configuration(client_opts) @notification_types = notification_types.flatten nil end
def topic
-
(SNS::Topic)
-
def topic SNS::Topic.new(topic_arn, :config => group.config) end