Class: Fog::AWS::Elasticache::SubnetGroup

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/aws/models/elasticache/subnet_group.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



24
25
26
27
28
# File 'lib/fog/aws/models/elasticache/subnet_group.rb', line 24

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

#ready?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
# File 'lib/fog/aws/models/elasticache/subnet_group.rb', line 12

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

#saveObject



18
19
20
21
22
# File 'lib/fog/aws/models/elasticache/subnet_group.rb', line 18

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