lib/rds/right_rds_interface.rb
# Get DBSecurityGroup details for a particular customer or for a particular DBSecurityGroup if a name is specified.
# Optional params: +:instance_aws_id+
#
#  # all snapshots
#  rds.describe_db_snapshots #=>
#    [{:status=>"Available",
#      :instance_aws_id=>"kd-test-n1",
#      :allocated_storage=>25,
#      :availability_zone=>"us-east-1b",
#      :aws_id=>"kd-test-n1-final-snapshot-at-20090630131215",
#      :engine=>"MySQL5.1",
#      :endpoint_port=>3306,
#      :instance_create_time=>"2009-06-30T12:48:15.590Z",
#      :master_username=>"payless",
#      :snapshot_time=>"2009-06-30T13:16:48.496Z"}, ...]
#
#  # all snapshots for a custom instance
#  rds.describe_db_snapshots(:instance_aws_id => 'kd-test-n3') #=>
#    [{:status=>"Available",
#      :instance_aws_id=>"kd-test-n3",
#      :allocated_storage=>25,
#      :availability_zone=>"us-east-1a",
#      :aws_id=>"kd-test-n3-final-snapshot-20090713074916",
#      :engine=>"MySQL5.1",
#      :endpoint_port=>3306,
#      :instance_create_time=>"2009-06-30T12:51:32.540Z",
#      :master_username=>"payless",
#      :snapshot_time=>"2009-07-13T07:52:35.542Z"}]
#
#  # a snapshot by id
#  rds.describe_db_snapshots('my-awesome-db-final-snapshot-20090713075554') #=>
#    [{:status=>"Available",
#      :allocated_storage=>25,
#      :engine=>"MySQL5.1",
#      :instance_aws_id=>"my-awesome-db",
#      :availability_zone=>"us-east-1a",
#      :instance_create_time=>"2009-07-13T07:53:08.912Z",
#      :endpoint_port=>3306,
#      :master_username=>"medium",
#      :aws_id=>"my-awesome-db-final-snapshot-20090713075554",
#      :snapshot_time=>"2009-07-13T07:59:17.537Z"}]
#
Get DBSecurityGroup details for a particular customer or for a particular DBSecurityGroup if a name is specified.






Get DBSecurityGroup details for a particular customer or for a particular DBSecurityGroup if a name is specified .
def describe_db_snapshots(params={}, &block)
      item, params = AwsUtils::split_items_and_params(params)
      params['DBSnapshotIdentifier'] = item if item
      params['DBInstanceIdentifier'] = params.delete(:instance_aws_id) unless params[:instance_aws_id].right_blank?
      result = []
      incrementally_list_items('DescribeDBSnapshots', DescribeDbSnapshotsParser, params) do |response|
        result += response[:db_snapshots]
        block ? block.call(response) : true
      end
      result
    end
def describe_db_snapshots ( params = { } , & block ) item , params = AwsUtils :: split_items_and_params ( params ) params [ 'DBSnapshotIdentifier' ] = item if item params [ 'DBInstanceIdentifier' ] = params . delete ( :instance_aws_id ) unless params [ :instance_aws_id ] . right_blank? result = [ ] incrementally_list_items ( 'DescribeDBSnapshots' , DescribeDbSnapshotsParser , params ) do | response | result += response [ :db_snapshots ] block ? block . call ( response ) : true end result end
Get DBSecurityGroup details for a particular customer or for a particular DBSecurityGroup if a name is specified.
Get DBSecurityGroup details for a particular customer or for a particular DBSecurityGroup if a name is specified .
params
<not_specific>
block
<not_specific>