Sha256: aa6994007326e14dc340a693aa1577e8133fb848fce7ba24cee00ff441849e69

Contents?: true

Size: 788 Bytes

Versions: 34

Compression:

Stored size: 788 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

34 entries across 34 versions & 1 rubygems

Version Path
awspec-0.26.2 lib/awspec/helper/finder/elasticache.rb
awspec-0.26.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.26.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.25.3 lib/awspec/helper/finder/elasticache.rb
awspec-0.25.2 lib/awspec/helper/finder/elasticache.rb
awspec-0.25.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.25.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.24.2 lib/awspec/helper/finder/elasticache.rb
awspec-0.24.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.24.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.23.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.22.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.22.0 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.6 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.5 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.4 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.3 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.2 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.1 lib/awspec/helper/finder/elasticache.rb
awspec-0.21.0 lib/awspec/helper/finder/elasticache.rb