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
gapinc-fog-1.12.1.2.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.15.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
gapinc-fog-1.14.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.14.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.13.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
gapinc-fog-1.12.1.2 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
gapinc-fog-1.12.1.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
gapinc-fog-1.12.1a lib/fog/aws/requests/elasticache/create_cache_security_group.rb
gapinc-fog-1.12.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.12.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.12.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
hpfog-0.0.20 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/elasticache/create_cache_security_group.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-nirvanix-1.8.2 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.11.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-1.11.0 lib/fog/aws/requests/elasticache/create_cache_security_group.rb
fog-nirvanix-1.8.1 lib/fog/aws/requests/elasticache/create_cache_security_group.rb