Sha256: 6dc08df1bae92f13d43c26e38967786716e181ba26a727bca770cda1eb0afe84

Contents?: true

Size: 782 Bytes

Versions: 10

Compression:

Stored size: 782 Bytes

Contents

module Awspec::Helper
  module Finder
    module Elasticache
      def find_cache_cluster(id)
        res = elasticache_client.describe_cache_clusters({
                                                           cache_cluster_id: id
                                                         })
        res[:cache_clusters].first if res[:cache_clusters].count == 1
      rescue
        nil
      end

      def find_cache_subnet_group(group_name)
        res = elasticache_client.describe_cache_subnet_groups({
                                                                cache_subnet_group_name: group_name
                                                              })
        res[:cache_subnet_groups].first if res[:cache_subnet_groups].count == 1
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
awspec-0.33.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.32.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.31.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.30.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.29.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.28.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.28.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.27.2 lib/awspec/helper/finder/elasticache.rb
awspec-0.27.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.27.0 lib/awspec/helper/finder/elasticache.rb