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



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

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

#modify(changes) ⇒ Object



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

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



26
27
28
# File 'lib/fog/aws/models/rds/parameter_group.rb', line 26

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

#saveObject



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

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