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



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

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

#ready?Boolean

Returns:

  • (Boolean)


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

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

#saveObject



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

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