Sha256: 327eef45fca3b41ff7dfdb1efee5efe6d983889ece8dcc7611de923a9bf42c53

Contents?: true

Size: 739 Bytes

Versions: 178

Compression:

Stored size: 739 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.single_resource(id)
      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.single_resource(group_name)
      end
    end
  end
end

Version data entries

178 entries across 178 versions & 4 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/helper/finder/elasticache.rb
cthiesfork-awspec-1.2.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.5 lib/awspec/helper/finder/elasticache.rb
cthiesfork-awspec-1.2.0 lib/awspec/helper/finder/elasticache.rb
cthiesfork-awspec-1.1.0 lib/awspec/helper/finder/elasticache.rb
cthiesfork-awspec-1.0.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.4 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.3 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.2 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.18.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.17.4 lib/awspec/helper/finder/elasticache.rb
awspec-1.17.3 lib/awspec/helper/finder/elasticache.rb
awspec-1.17.2 lib/awspec/helper/finder/elasticache.rb
awspec-1.17.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.17.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.16.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.16.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.15.3 lib/awspec/helper/finder/elasticache.rb
awspec-1.15.2 lib/awspec/helper/finder/elasticache.rb