Class: XRay
Overview
Collect XRay resources
Constant Summary
Constants inherited from Mapper
Mapper::SINGLE_REGION_SERVICES
Instance Method Summary collapse
-
#collect ⇒ Object
Returns an array of resources.
Methods inherited from Mapper
Constructor Details
This class inherits a constructor from Mapper
Instance Method Details
#collect ⇒ Object
Returns an array of resources.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/aws_recon/collectors/xray.rb', line 10 def collect resources = [] # # get_encryption_config # struct = OpenStruct.new struct.config = @client.get_encryption_config.encryption_config.to_h struct.type = 'config' struct.arn = "arn:aws:xray:#{@region}:#{@account}/config" resources.push(struct.to_h) resources end |