Class: Fog::AWS::RDS::ParameterGroup

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



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

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

#modify(changes) ⇒ Object



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

def modify(changes)
  service.modify_db_parameter_group id, changes.map {|c| {'ParameterName' => c[:name], 'ParameterValue' => c[:value], 'ApplyMethod' => c[:apply_method]}}
end

#parameters(filters = {}) ⇒ Object



28
29
30
# File 'lib/fog/aws/models/rds/parameter_group.rb', line 28

def parameters(filters={})
  service.parameters({:group => self}.merge(filters))
end

#saveObject



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

def save
  requires :family
  requires :description
  requires :id
  service.create_db_parameter_group(id, family, description)
end