Class: Fog::AWS::RDS::EventSubscriptions

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/rds/event_subscriptions.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
# File 'lib/fog/aws/models/rds/event_subscriptions.rb', line 10

def all
  data = service.describe_event_subscriptions.body['DescribeEventSubscriptionsResult']['EventSubscriptionsList']
  load(data)
end

#get(identity) ⇒ Object



15
16
17
18
19
20
# File 'lib/fog/aws/models/rds/event_subscriptions.rb', line 15

def get(identity)
  data = service.describe_event_subscriptions('SubscriptionName' => identity).body['DescribeEventSubscriptionsResult']['EventSubscriptionsList']
  new(data.first)
rescue Fog::AWS::RDS::NotFound
  nil
end