Sha256: 497be3068bbe4bc1892fec2ed99e0e9cb78b5f56771582b43d89edcd883396b4

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'rackspace-fog/aws/parsers/rds/create_db_instance_read_replica'

        # create a read replica db instance
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_CreateDBInstanceReadReplica.html
        # ==== Parameters
        # * DBInstanceIdentifier <~String> - name of the db instance to create
        # * SourceDBInstanceIdentifier <~String> - name of the db instance that will be the source. Must have backup retention on
        # * AutoMinorVersionUpgrade <~Boolean> Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window 
        # * AvailabilityZone <~String> The availability zone to create the instance in
        # * DBInstanceClass <~String> The new compute and memory capacity of the DB Instance
        # * Port <~Integer> The port number on which the database accepts connections.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def create_db_instance_read_replica(instance_identifier, source_identifier, options={})
          
    
          request({
            'Action'  => 'CreateDBInstanceReadReplica',
            'DBInstanceIdentifier' => instance_identifier,
            'SourceDBInstanceIdentifier' => source_identifier,
            :parser   => Fog::Parsers::AWS::RDS::CreateDBInstanceReadReplica.new,
          }.merge(options))
        end

      end

      class Mock

        def create_db_instance_read_replica(instance_identifier, source_identifier, options={})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/rds/create_db_instance_read_replica.rb