Class: Fog::AWS::RDS::EventSubscription
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::RDS::EventSubscription
- Defined in:
- lib/fog/aws/models/rds/event_subscription.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
20 21 22 23 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 20 def destroy service.delete_event_subscription(id) reload end |
#ready? ⇒ Boolean
16 17 18 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 16 def ready? ! ['deleting', 'creating'].include?(status) end |
#save ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 25 def save requires :id, :sns_topic_arn data = service.create_event_subscription( 'EventCategories' => event_categories, 'SourceType' => source_type, 'Enabled' => enabled || true, 'SubscriptionName' => id, 'SnsTopicArn' => sns_topic_arn ).body["CreateEventSubscriptionResult"]["EventSubscription"] merge_attributes(data) self end |