Sha256: 91287749ac594411a701b8bba0606f217a233fa2ab4b31dd50ecdc5568742c16
Contents?: true
Size: 762 Bytes
Versions: 3
Compression:
Stored size: 762 Bytes
Contents
module Awspec::Type class RdsDbParameterGroup < Base attr_reader :parameters def initialize(name) super @parameters = {} marker = nil while @parameters.empty? || !marker.nil? res = @rds_client.describe_db_parameters( db_parameter_group_name: name, marker: marker) marker = res.marker break if res.parameters.empty? res.parameters.each do |param| @parameters[param.parameter_name] = param.parameter_value end end @id = name unless @parameters.empty? end def method_missing(name) param_name = name.to_s if @parameters.key?(param_name) @parameters[param_name].to_s else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awspec-0.2.2 | lib/awspec/type/rds_db_parameter_group.rb |
awspec-0.2.1 | lib/awspec/type/rds_db_parameter_group.rb |
awspec-0.2.0 | lib/awspec/type/rds_db_parameter_group.rb |