module Awspec::Helper::Finder::Elasticache
Public Instance Methods
find_cache_cluster(id)
click to toggle source
# File lib/awspec/helper/finder/elasticache.rb, line 4 def find_cache_cluster(id) res = elasticache_client.describe_cache_clusters({ cache_cluster_id: id }) res.cache_clusters.single_resource(id) rescue nil end
find_cache_subnet_group(group_name)
click to toggle source
# File lib/awspec/helper/finder/elasticache.rb, line 13 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