Sha256: 40dec385c7ea81164bdd91c262d381b5f356560090ae934a194116f4a8a8cb0f

Contents?: true

Size: 846 Bytes

Versions: 18

Compression:

Stored size: 846 Bytes

Contents

module Awspec::Type
  class RdsDbClusterParameterGroup < Base
    def initialize(name)
      super
      @parameters = {}
      res = rds_client.describe_db_cluster_parameters({
                                                        db_cluster_parameter_group_name: name
                                                      })

      loop do
        res.parameters.each do |param|
          @parameters[param.parameter_name] = param.parameter_value
        end
        (res.respond_to?(:next_page?) && res.next_page? && res = res.next_page) || break
      end

      @id = name unless @parameters.empty?
      @resource_via_client = @parameters
    end

    def method_missing(name)
      param_name = name.to_s
      if @parameters.include?(param_name)
        @parameters[param_name].to_s
      else
        super
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
awspec-0.55.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.54.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.52.4 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.52.3 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.52.2 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.52.1 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.52.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.51.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.50.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.49.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.48.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.47.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.46.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.45.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.44.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.43.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.42.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-0.41.0 lib/awspec/type/rds_db_cluster_parameter_group.rb