Sha256: bc7cb2e43fbc98aa64fd565618bbfced2f8be64c26eaa250a7301321dfc6d71d

Contents?: true

Size: 965 Bytes

Versions: 38

Compression:

Stored size: 965 Bytes

Contents

module Fog
  module AWS
    class RDS
      class Real
        require 'fog/aws/parsers/rds/restore_db_instance_from_db_snapshot'

        # Restores a DB Instance from a DB Snapshot
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?API_RestoreDBInstanceFromDBSnapshot.html
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def restore_db_instance_from_db_snapshot(snapshot_id, db_name, opts={})
          request({
            'Action'  => 'RestoreDBInstanceFromDBSnapshot',
            'DBSnapshotIdentifier' => snapshot_id,
            'DBInstanceIdentifier' => db_name,
            :parser   => Fog::Parsers::AWS::RDS::RestoreDBInstanceFromDBSnapshot.new,
          }.merge(opts))
        end
      end

      class Mock
        def restore_db_instance_from_db_snapshot(snapshot_id, db_id, options={})
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 5 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.8.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.7.6 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.7.5 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.7.4 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.7.3 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.7.2 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.6.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.5.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.4.1 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.4.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.3.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.2.2 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.2.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.1.2 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.1.1 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.1.0 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb
fog-aws-0.0.8 lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb