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



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

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

#ready?Boolean

Returns:

  • (Boolean)


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

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

#saveObject



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

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