Class: AWS::AutoScaling::NotificationConfiguration
- Inherits:
-
Object
- Object
- AWS::AutoScaling::NotificationConfiguration
- Defined in:
- lib/aws/auto_scaling/notification_configuration.rb
Instance Attribute Summary (collapse)
- - (Group) group (also: #auto_scaling_group) readonly
- - (Arra<String>) notification_types
- - (String) topic_arn readonly
Instance Method Summary (collapse)
-
- (nil) delete
Deletes this Auto Scaling notification configuration.
- - (SNS::Topic) topic
Instance Attribute Details
- (Group) group (readonly) Also known as: auto_scaling_group
26 27 28 |
# File 'lib/aws/auto_scaling/notification_configuration.rb', line 26 def group @group end |
- (Arra<String>) notification_types
34 35 36 |
# File 'lib/aws/auto_scaling/notification_configuration.rb', line 34 def notification_types @notification_types end |
- (String) topic_arn (readonly)
31 32 33 |
# File 'lib/aws/auto_scaling/notification_configuration.rb', line 31 def topic_arn @topic_arn end |
Instance Method Details
- (nil) delete
Deletes this Auto Scaling notification configuration.
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/aws/auto_scaling/notification_configuration.rb', line 65 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 |
- (SNS::Topic) topic
37 38 39 |
# File 'lib/aws/auto_scaling/notification_configuration.rb', line 37 def topic SNS::Topic.new(topic_arn, :config => group.config) end |