1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/rds/describe_db_parameters.rb
Josh Lane d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00

42 lines
1.3 KiB
Ruby

module Fog
module AWS
class RDS
class Real
require 'fog/aws/parsers/rds/describe_db_parameters'
# Describe parameters from a parameter group
# http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DescribeDBParameters.html
# ==== Parameters
# * DBParameterGroupName <~String> - name of parameter group to retrieve parameters for
# * Source <~String> - The parameter types to return. user | system | engine-default
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
def describe_db_parameters(name, opts={})
params={}
if opts[:marker]
params['Marker'] = opts[:marker]
end
if opts[:source]
params['Source'] = opts[:source]
end
if opts[:max_records]
params['MaxRecords'] = opts[:max_records]
end
request({
'Action' => 'DescribeDBParameters',
'DBParameterGroupName' => name,
:parser => Fog::Parsers::AWS::RDS::DescribeDBParameters.new
}.merge(params))
end
end
class Mock
def describe_db_parameters(name, opts={})
Fog::Mock.not_implemented
end
end
end
end
end