Class: Fog::AWS::RDS::ParameterGroup
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::RDS::ParameterGroup
- Defined in:
- lib/fog/aws/models/rds/parameter_group.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
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 |
#save ⇒ Object
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 |