Sha256: 8939b7e1189be58623c74bcbfcc9ae0057365956bcb2c5fd36eb65ffe523d7d0

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

require 'rackspace-fog/core/model'

module Fog
  module AWS
    class Elasticache

      class ParameterGroup < Fog::Model

        identity :id, :aliases => 'CacheParameterGroupName'
        attribute :description, :aliases => 'Description'
        attribute :family, :aliases => 'CacheParameterGroupFamily'

        def destroy
          requires :id
          connection.delete_cache_parameter_group(id)
          true
        end

        def save
          requires :id
          connection.create_cache_parameter_group(
            id,
            description = id,
            family      = 'memcached1.4'
          )
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/models/elasticache/parameter_group.rb