2011-09-27 10:48:38 -04:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class ACS
|
|
|
|
class Real
|
|
|
|
|
2011-09-27 10:52:46 -04:00
|
|
|
require 'fog/aws/parsers/acs/single_security_group'
|
2011-09-27 10:48:38 -04:00
|
|
|
|
|
|
|
# creates a cache security group
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
# * name <~String> - The name for the Cache Security Group
|
|
|
|
# * description <~String> - The description for the Cache Security Group
|
|
|
|
# === Returns
|
|
|
|
# * response <~Excon::Response>:
|
|
|
|
# * body <~Hash>
|
|
|
|
def create_cache_security_group(name, description = name)
|
|
|
|
request({
|
|
|
|
'Action' => 'CreateCacheSecurityGroup',
|
|
|
|
'CacheSecurityGroupName' => name,
|
|
|
|
'CacheSecurityGroupDescription' => description,
|
2011-09-27 10:52:46 -04:00
|
|
|
:parser => Fog::Parsers::AWS::ACS::SingleSecurityGroup.new
|
2011-09-27 10:48:38 -04:00
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
def create_cache_security_group(name, desciption=name)
|
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|