Class: Fog::AWS::RDS::SubnetGroup

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

def destroy
  requires :id
  service.delete_db_subnet_group(id)
end

#ready?Boolean

Returns:

  • (Boolean)


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

def ready?
  requires :status
  status == 'Complete'
end

#saveObject



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

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