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
18 19 20 21 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 18 def destroy service.delete_event_subscription(id) reload end |
#ready? ⇒ Boolean
14 15 16 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 14 def ready? ! ['deleting', 'creating'].include?(status) end |
#save ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/aws/models/rds/event_subscription.rb', line 23 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 |