Class: XRay

Inherits:
Mapper show all
Defined in:
lib/aws_recon/collectors/xray.rb

Overview

Collect XRay resources

Constant Summary

Constants inherited from Mapper

Mapper::SINGLE_REGION_SERVICES

Instance Method Summary collapse

Methods inherited from Mapper

#initialize

Constructor Details

This class inherits a constructor from Mapper

Instance Method Details

#collectObject

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