Sha256: d04b6935625e472de854edc642d588a94d63ab3bacc52bc9706672fc50874643

Contents?: true

Size: 568 Bytes

Versions: 12

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

module Awspec::Type
  class RdsDbClusterParameterGroup < ResourceBase
    def resource_via_client
      return @resource_via_client if @resource_via_client

      @resource_via_client ||= select_all_rds_db_cluster_parameters(@display_name)
    end

    def id
      @id ||= @display_name unless resource_via_client.empty?
    end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.30.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.29.3 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.29.2 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.29.1 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.29.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.28.2 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.28.1 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.28.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.27.1 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.27.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.26.0 lib/awspec/type/rds_db_cluster_parameter_group.rb
awspec-1.25.2 lib/awspec/type/rds_db_cluster_parameter_group.rb