Sha256: 6fd4a746576003e28b96f9758ef12a8ff65b23cf3aaeff6f13fe54a55d22d9ec

Contents?: true

Size: 819 Bytes

Versions: 76

Compression:

Stored size: 819 Bytes

Contents

module Fog
  module AWS
    class Elasticache
      class SubnetGroup < Fog::Model
        identity   :id, :aliases => ['CacheSubnetGroupName', :name]
        attribute  :description, :aliases => 'CacheSubnetGroupDescription'
        attribute  :vpc_id, :aliases => 'VpcId'
        attribute  :subnet_ids, :aliases => 'Subnets'

        def ready?
          # Just returning true, as Elasticache subnet groups
          # seem to not have a status, unlike RDS subnet groups.
          true
        end

        def save
          requires :description, :id, :subnet_ids
          service.create_cache_subnet_group(id, subnet_ids, description)
          reload
        end

        def destroy
          requires :id
          service.delete_cache_subnet_group(id)
          true
        end
      end
    end
  end
end

Version data entries

76 entries across 74 versions & 3 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.8.0 lib/fog/aws/models/elasticache/subnet_group.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.7.6 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.7.5 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.7.4 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.7.3 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.7.2 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.6.0 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.5.0 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.4.1 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.4.0 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.3.0 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.2.2 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.2.0 lib/fog/aws/models/elasticache/subnet_group.rb
fog-aws-0.1.2 lib/fog/aws/models/elasticache/subnet_group.rb