lib/rds/right_rds_interface.rb
# Returns information about reserved DB Instances for this account, or about
# a specified reserved DB Instance.
# Options: :aws_id, :offering_aws_id, :instance_class, :duration, :product_description, :multi_az
#
#  rds.describe_reserved_db_instances
#  rds.describe_reserved_db_instances(:aws_id => "myreservedinstance")
#  rds.describe_reserved_db_instances(:offering_aws_id => "248e7b75-49a7-4cd7-9a9b-354f4906a9b1")
#  rds.describe_reserved_db_instances(:instance_class => "db.m1.small")
#  rds.describe_reserved_db_instances(:duration => 31536000)
#  rds.describe_reserved_db_instances(:product_description => 'mysql')
#  rds.describe_reserved_db_instances_offerings(:multi_az => true)
#
Returns information about reserved DB Instances for this account, or about
a specified reserved DB Instance.


Returns information about reserved DB Instances for this account or about a specified reserved DB Instance .
def describe_reserved_db_instances(params={}, &block)
      params = params.dup
      params['ReservedDBInstancesId']         = params.delete(:aws_id)              unless params[:aws_id].right_blank?
      params['ReservedDBInstancesOfferingId'] = params.delete(:offering_aws_id)     unless params[:offering_aws_id].right_blank?
      params['DBInstanceClass']               = params.delete(:instance_class)      unless params[:instance_class].right_blank?
      params['Duration']                      = params.delete(:duration)            unless params[:duration].right_blank?
      params['ProductDescription']            = params.delete(:product_description) unless params[:product_description].right_blank?
      params['MultiAZ']                       = params.delete(:multi_az).to_s       unless params[:multi_az].nil?
      result = []
      incrementally_list_items('DescribeReservedDBInstances', DescribeReservedDBInstancesParser, params) do |response|
        result += response[:reserved_db_instances]
        block ? block.call(response) : true
      end
      result
    end
def describe_reserved_db_instances ( params = { } , & block ) params = params . dup params [ 'ReservedDBInstancesId' ] = params . delete ( :aws_id ) unless params [ :aws_id ] . right_blank? params [ 'ReservedDBInstancesOfferingId' ] = params . delete ( :offering_aws_id ) unless params [ :offering_aws_id ] . right_blank? params [ 'DBInstanceClass' ] = params . delete ( :instance_class ) unless params [ :instance_class ] . right_blank? params [ 'Duration' ] = params . delete ( :duration ) unless params [ :duration ] . right_blank? params [ 'ProductDescription' ] = params . delete ( :product_description ) unless params [ :product_description ] . right_blank? params [ 'MultiAZ' ] = params . delete ( :multi_az ) . to_s unless params [ :multi_az ] . nil? result = [ ] incrementally_list_items ( 'DescribeReservedDBInstances' , DescribeReservedDBInstancesParser , params ) do | response | result += response [ :reserved_db_instances ] block ? block . call ( response ) : true end result end
Returns information about reserved DB Instances for this account, or about
a specified reserved DB Instance.
Returns information about reserved DB Instances for this account or about a specified reserved DB Instance .
params
<not_specific>
block
<not_specific>