class WorkSpaces
Collect WorkSpaces
resources
Public Instance Methods
collect()
click to toggle source
Returns an array of resources.
# File lib/aws_recon/collectors/workspaces.rb, line 10 def collect resources = [] # # describe_workspaces # @client.describe_workspaces.each_with_index do |response, page| log(response.context.operation_name, page) response.workspaces.each do |workspace| struct = OpenStruct.new(workspace.to_h) struct.type = 'workspace' struct.arn = "arn:aws:workspaces:#{@region}::workspace/#{workspace.workspace_id}" resources.push(struct.to_h) end end resources end