mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
![]() |
module Fog
|
||
|
module AWS
|
||
|
class Elasticache
|
||
|
class Real
|
||
|
|
||
|
require 'fog/aws/parsers/elasticache/single_parameter_group'
|
||
|
|
||
|
# creates a cache parameter group
|
||
|
#
|
||
|
# === Parameters
|
||
|
# * name <~String> - The name for the Cache Parameter Group
|
||
|
# === Optional Parameters
|
||
|
# * description <~String> - The description for the Cache Parameter Group
|
||
|
# * family <~String> - The description for the Cache Parameter Group
|
||
|
# === Returns
|
||
|
# * response <~Excon::Response>:
|
||
|
# * body <~Hash>
|
||
|
def create_cache_parameter_group(name, description = name,
|
||
|
family = 'memcached1.4')
|
||
|
request({
|
||
|
'Action' => 'CreateCacheParameterGroup',
|
||
|
'CacheParameterGroupName' => name,
|
||
|
'Description' => description,
|
||
|
'CacheParameterGroupFamily' => family,
|
||
|
:parser => Fog::Parsers::AWS::Elasticache::SingleParameterGroup.new
|
||
|
})
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
def create_cache_parameter_group(name, desciption=name)
|
||
|
Fog::Mock.not_implemented
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|