Sha256: a37fc541c60badec92b3cf3148064af543a13966ad0f9027112e27592740b588
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
module Awspec::Type class RdsDbParameterGroup < Base attr_reader :parameters def initialize(name) super @client = Aws::RDS::Client.new @parameters = {} marker = nil while @parameters.empty? || !marker.nil? res = @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
awspec-0.1.1 | lib/awspec/type/rds_db_parameter_group.rb |
awspec-0.1.0 | lib/awspec/type/rds_db_parameter_group.rb |