Class: ElastiCache
- Defined in:
- lib/aws_recon/collectors/elasticache.rb
Overview
Collect ElastiCache resources
Constant Summary
Constants inherited from Mapper
Mapper::SINGLE_REGION_SERVICES
Instance Method Summary collapse
Methods inherited from Mapper
Constructor Details
This class inherits a constructor from Mapper
Instance Method Details
#collect ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/aws_recon/collectors/elasticache.rb', line 7 def collect resources = [] # # describe_cache_clusters # @client.describe_cache_clusters.each_with_index do |response, page| log(response.context.operation_name, page) response.cache_clusters.each do |cluster| struct = OpenStruct.new(cluster.to_h) struct.type = 'cluster' struct.arn = cluster.arn resources.push(struct.to_h) end end resources end |