lib/rds/right_rds_interface.rb
# Describe a list of orderable DB Instance options for the specified engine.
# Optionals: +:instance_class+, +:engine_version+ , +:license_model+, +:vpc+
#
#  rds.describe_orderable_db_instance_options('oracle-ee', :engine_version => '11.2.0.2.v2') #=>
#    [{:read_replica_capable=>false,
#      :instance_class=>"db.m1.large",
#      :availability_zones=>["us-east-1a", "us-east-1b", "us-east-1d"],
#      :engine=>"oracle-ee",
#      :license_model=>"bring-your-own-license",
#      :engine_version=>"11.2.0.2.v2",
#      :multi_az_capable=>"false"}, ... ]
#
Describe a list of orderable DB Instance options for the specified engine.


Describe a list of orderable DB Instance options for the specified engine .
def describe_orderable_db_instance_options(engine, params={}, &block)
      request_hash = { 'Engine' => engine }
      request_hash['DBInstanceClass'] = params[:instance_class] unless params[:instance_class].right_blank?
      request_hash['EngineVersion']   = params[:engine_version] unless params[:engine_version].right_blank?
      request_hash['LicenseModel']    = params[:license_model]  unless params[:license_model].right_blank?
      request_hash['Vpc']             = !!params[:vpc]          if     params.has_key?(:vpc)
      result = []
      incrementally_list_items('DescribeOrderableDBInstanceOptions', DescribeOrderableDBInstanceOptionsParser, request_hash) do |response|
        result += response[:items]
        block ? block.call(response) : true
      end
      result
    end
def describe_orderable_db_instance_options ( engine , params = { } , & block ) request_hash = { 'Engine' => engine } request_hash [ 'DBInstanceClass' ] = params [ :instance_class ] unless params [ :instance_class ] . right_blank? request_hash [ 'EngineVersion' ] = params [ :engine_version ] unless params [ :engine_version ] . right_blank? request_hash [ 'LicenseModel' ] = params [ :license_model ] unless params [ :license_model ] . right_blank? request_hash [ 'Vpc' ] = ! ! params [ :vpc ] if params . has_key? ( :vpc ) result = [ ] incrementally_list_items ( 'DescribeOrderableDBInstanceOptions' , DescribeOrderableDBInstanceOptionsParser , request_hash ) do | response | result += response [ :items ] block ? block . call ( response ) : true end result end
Describe a list of orderable DB Instance options for the specified engine.
Describe a list of orderable DB Instance options for the specified engine .
engine
<not_specific>
params
<not_specific>
block
<not_specific>