lib/rds/right_rds_interface.rb
# Purchases a reserved DB Instance offering.
# Options: :aws_id, :count
Purchases a reserved DB Instance offering.
Purchases a reserved DB Instance offering .
def purchase_reserved_db_instances_offering(offering_aws_id, params={})
      request_hash = { 'ReservedDBInstancesOfferingId' => offering_aws_id }
      request_hash['ReservedDBInstanceId'] = params[:aws_id] unless params[:aws_id].right_blank?
      request_hash['DBInstanceCount']      = params[:count]  unless params[:count].right_blank?
      link = generate_request('PurchaseReservedDBInstancesOffering', request_hash)
      request_info(link, DescribeReservedDBInstancesParser.new(:logger => @logger))[:reserved_db_instances].first
    end
def purchase_reserved_db_instances_offering ( offering_aws_id , params = { } ) request_hash = { 'ReservedDBInstancesOfferingId' => offering_aws_id } request_hash [ 'ReservedDBInstanceId' ] = params [ :aws_id ] unless params [ :aws_id ] . right_blank? request_hash [ 'DBInstanceCount' ] = params [ :count ] unless params [ :count ] . right_blank? link = generate_request ( 'PurchaseReservedDBInstancesOffering' , request_hash ) request_info ( link , DescribeReservedDBInstancesParser . new ( :logger => @logger ) ) [ :reserved_db_instances ] . first end
Purchases a reserved DB Instance offering.
Purchases a reserved DB Instance offering .
offering_aws_id
<not_specific>
params
<not_specific>