Methods

Class/Module Index [+]

Quicksearch

Fog::AWS::RDS::SecurityGroups

Public Class Methods

new(attributes={}) click to toggle source
# File lib/fog/aws/models/rds/security_groups.rb, line 13
def initialize(attributes={})
  self.filters ||= {}
  if attributes[:server]
    filters[:identifier] = attributes[:server].id
  end
  super
end

Public Instance Methods

all(filters = filters) click to toggle source
# File lib/fog/aws/models/rds/security_groups.rb, line 21
def all(filters = filters)
  self.filters = filters
  data = service.describe_db_security_groups(filters).body['DescribeDBSecurityGroupsResult']['DBSecurityGroups']
  load(data) # data is an array of attribute hashes
end
get(identity) click to toggle source

Example: get('my_db_security_group') # => model for my_db_security_group

# File lib/fog/aws/models/rds/security_groups.rb, line 29
def get(identity)
  data = service.describe_db_security_groups(identity).body['DescribeDBSecurityGroupsResult']['DBSecurityGroups'].first
  new(data) # data is an attribute hash
rescue Fog::AWS::RDS::NotFound
  nil
end
new(attributes = {}) click to toggle source
# File lib/fog/aws/models/rds/security_groups.rb, line 36
def new(attributes = {})
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.