class AWS::RDS::DBSnapshotCollection

def [] db_snapshot_id

Returns:
  • (DBSnapshot) - Returns a {DBSnapshot} with the given ID.

Parameters:
  • db_snapshot_id (String) --
def [] db_snapshot_id
  DBSnapshot.new(db_snapshot_id, :config => config)
end

def _each_item marker, max_records, options = {}, &block

def _each_item marker, max_records, options = {}, &block
  options = @filters.merge(options)
  options[:marker] = marker if marker
  options[:max_records] = [[20,max_records].max,100].min if max_records
  response = client.describe_db_snapshots(options)
  response.data[:db_snapshots].each do |details|
    db_snapshot = DBSnapshot.new_from(
        :describe_db_snapshots,
        details,
        details[:db_snapshot_identifier],
        :config => config)
    yield(db_snapshot)
  end
  response.data[:marker]
end

def db_instance db_instance

Returns:
  • (DBSnapshotCollection) -

Parameters:
  • db_instance (String, DBInstance) -- A db instance identifier
def db_instance db_instance
  id = db_instance.is_a?(Core::Model) ? db_instance.id : db_instance
  filter(:db_instance_identifier, id.to_s.downcase)
end

def filter name, value

Returns:
  • (DBSnapshotCollection) -

Parameters:
  • value (Mixed) --
  • name (String, Symbol) --
def filter name, value
  options = {}
  options[:filters] = @filters.merge(name.to_s.to_sym => value)
  options[:config] = config
  DBSnapshotCollection.new(options)
end

def initialize options = {}

Other tags:
    Api: - private
def initialize options = {}
  @filters = options[:filters] || {}
  super
end

def with_type snapshot_type

Returns:
  • (DBSnapshotCollection) -

Parameters:
  • snapshot_type (String) --
def with_type snapshot_type
  filter(:snapshot_type, snapshot_type)
end