Sha256: 528abf431f8859602600c101daeb923a1c2346afcef51fd617d109223bd52c77

Contents?: true

Size: 944 Bytes

Versions: 61

Compression:

Stored size: 944 Bytes

Contents

module Fog
  module AWS
    class Elasticache
      class Real

        require 'fog/aws/parsers/elasticache/single_security_group'

        # 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,
            'Description' => description,
            :parser => Fog::Parsers::AWS::Elasticache::SingleSecurityGroup.new
          })
        end
      end

      class Mock
        def create_cache_security_group(name, desciption=name)
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 17 rubygems

Version Path
fog-1.0.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb