1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/rds/delete_db_snapshot.rb
2011-03-01 07:17:06 +08:00

36 lines
860 B
Ruby

module Fog
module AWS
class RDS
class Real
require 'fog/aws/parsers/rds/delete_db_snapshot'
# delete a database snapshot
# http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DeleteDBSnapshot.html
# ==== Parameters
# * DBSnapshotIdentifier <~String> - name of the snapshot
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
def delete_db_snapshot(group_name)
request({
'Action' => 'DeleteDBSnapshot',
'DBSnapshotIdentifier' => group_name,
:parser => Fog::Parsers::AWS::RDS::DeleteDBSnapshot.new
})
end
end
class Mock
def delete_db_snapshot(group_name)
Fog::Mock.not_implemented
end
end
end
end
end