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