Sha256: ec6f2af4f31b7eb95625c3428df9d7f4d00cdca2741ae04213fd627659ad3788

Contents?: true

Size: 784 Bytes

Versions: 14

Compression:

Stored size: 784 Bytes

Contents

# frozen_string_literal: true

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 StandardError
        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

14 entries across 14 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.31.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.30.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.29.3 lib/awspec/helper/finder/elasticache.rb
awspec-1.29.2 lib/awspec/helper/finder/elasticache.rb
awspec-1.29.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.29.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.28.2 lib/awspec/helper/finder/elasticache.rb
awspec-1.28.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.28.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.27.1 lib/awspec/helper/finder/elasticache.rb
awspec-1.27.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.26.0 lib/awspec/helper/finder/elasticache.rb
awspec-1.25.2 lib/awspec/helper/finder/elasticache.rb