lib/rds/right_rds_interface.rb
# Create a new RDS instance from a point-in-time system snapshot. The target
# database is created from the source database restore point with the same configuration as
# the original source database, except that the new RDS instance is created with the default
# security group.
#
# Optional params: +:instance_class+, +:endpoint_port+, +:availability_zone+, +:multi_az+, +:restore_time+,
# +:auto_minor_version_upgrade+, +:use_latest_restorable_time+, +:license_model+, +:db_name+, +:engine+
# +:db_subnet_group_name+, +:iops+, +:option_group_name+
#
Create a new RDS instance from a point-in-time system snapshot. The target
database is created from the source database restore point with the same configuration as
the original source database, except that the new RDS instance is created with the default
security group.


Create a new RDS instance from a point - in - time system snapshot . The target database is created from the source database restore point with the same configuration as the original source database except that the new RDS instance is created with the default security group .
def restore_db_instance_to_point_in_time(instance_aws_id, new_instance_aws_id, params={})
      request_hash = { 'SourceDBInstanceIdentifier' => instance_aws_id,
                       'TargetDBInstanceIdentifier' => new_instance_aws_id}
      request_hash['UseLatestRestorableTime'] = params[:use_latest_restorable_time].to_s unless params[:use_latest_restorable_time].nil?
      request_hash['RestoreTime']             = params[:restore_time]               unless params[:restore_time].right_blank?
      request_hash['DBInstanceClass']         = params[:instance_class]             unless params[:instance_class].right_blank?
      request_hash['MultiAZ']                 = params[:multi_az]                   unless params[:multi_az].nil?
      request_hash['Port']                    = params[:endpoint_port]              unless params[:endpoint_port].right_blank?
      request_hash['AvailabilityZone']        = params[:availability_zone]          unless params[:availability_zone].right_blank?
      request_hash['AutoMinorVersionUpgrade'] = params[:auto_minor_version_upgrade] unless params[:auto_minor_version_upgrade].nil?
      request_hash['LicenseModel']            = params[:license_model]              unless params[:license_model].right_blank?
      request_hash['DBName']                  = params[:db_name]                    unless params[:db_name].right_blank?
      request_hash['Engine']                  = params[:engine]                     unless params[:enginel].right_blank?
      request_hash['DBSubnetGroupName']       = params[:db_subnet_group_name]       unless params[:db_subnet_group_name].right_blank?
      request_hash['Iops']                    = params[:iops]                       unless params[:iops].right_blank?
      request_hash['OptionGroupName']         = params[:option_group_name]          unless params[:option_group_name].right_blank?
      link = generate_request('RestoreDBInstanceToPointInTime', request_hash)
      request_info(link, DescribeDbInstancesParser.new(:logger => @logger))[:db_instances].first
    end
def restore_db_instance_to_point_in_time ( instance_aws_id , new_instance_aws_id , params = { } ) request_hash = { 'SourceDBInstanceIdentifier' => instance_aws_id , 'TargetDBInstanceIdentifier' => new_instance_aws_id } request_hash [ 'UseLatestRestorableTime' ] = params [ :use_latest_restorable_time ] . to_s unless params [ :use_latest_restorable_time ] . nil? request_hash [ 'RestoreTime' ] = params [ :restore_time ] unless params [ :restore_time ] . right_blank? request_hash [ 'DBInstanceClass' ] = params [ :instance_class ] unless params [ :instance_class ] . right_blank? request_hash [ 'MultiAZ' ] = params [ :multi_az ] unless params [ :multi_az ] . nil? request_hash [ 'Port' ] = params [ :endpoint_port ] unless params [ :endpoint_port ] . right_blank? request_hash [ 'AvailabilityZone' ] = params [ :availability_zone ] unless params [ :availability_zone ] . right_blank? request_hash [ 'AutoMinorVersionUpgrade' ] = params [ :auto_minor_version_upgrade ] unless params [ :auto_minor_version_upgrade ] . nil? request_hash [ 'LicenseModel' ] = params [ :license_model ] unless params [ :license_model ] . right_blank? request_hash [ 'DBName' ] = params [ :db_name ] unless params [ :db_name ] . right_blank? request_hash [ 'Engine' ] = params [ :engine ] unless params [ :enginel ] . right_blank? request_hash [ 'DBSubnetGroupName' ] = params [ :db_subnet_group_name ] unless params [ :db_subnet_group_name ] . right_blank? request_hash [ 'Iops' ] = params [ :iops ] unless params [ :iops ] . right_blank? request_hash [ 'OptionGroupName' ] = params [ :option_group_name ] unless params [ :option_group_name ] . right_blank? link = generate_request ( 'RestoreDBInstanceToPointInTime' , request_hash ) request_info ( link , DescribeDbInstancesParser . new ( :logger => @logger ) ) [ :db_instances ] . first end
Create a new RDS instance from a point-in-time system snapshot.
Create a new RDS instance from a point - in - time system snapshot .
instance_aws_id
<not_specific>
new_instance_aws_id
<not_specific>
params
<not_specific>