Sha256: 04b9f3c09b76e2ee4a304d0ac553a072c0509bb8d31bfde29d9c8abc7d496ab1

Contents?: true

Size: 1.03 KB

Versions: 29

Compression:

Stored size: 1.03 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'fog/aws/parsers/rds/create_db_snapshot'

        # creates a db snapshot
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_CreateDBSnapshot.html
        # ==== Parameters
        # * DBInstanceIdentifier <~String> - ID of instance to create snapshot for
        # * DBSnapshotIdentifier <~String> - The identifier for the DB Snapshot. 1-255 alphanumeric or hyphen characters. Must start with a letter
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def create_db_snapshot(identifier, name)
          request({
            'Action'  => 'CreateDBSnapshot',
            'DBInstanceIdentifier' => identifier,
            'DBSnapshotIdentifier' => name,
            :parser   => Fog::Parsers::AWS::RDS::CreateDBSnapshot.new
          })
        end

      end

      class Mock

        def create_db_snapshot(identifier, name)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-1.1.2 lib/fog/aws/requests/rds/create_db_snapshot.rb
fog_tractical-1.1.4 lib/fog/aws/requests/rds/create_db_snapshot.rb
fog_tractical-1.1.3 lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-1.1.1 lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-1.1.0 lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
tag-fog-1.0.1 lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-1.0.0 lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-0.11.0 lib/fog/aws/requests/rds/create_db_snapshot.rb
fog-0.10.0 lib/fog/aws/requests/rds/create_db_snapshot.rb