class CodePipeline
Collect CodePipeline
resources
Public Instance Methods
collect()
click to toggle source
Returns an array of resources.
# File lib/aws_recon/collectors/codepipeline.rb, line 10 def collect resources = [] # # list_pipelines # begin @client.list_pipelines.each_with_index do |response, page| log(response.context.operation_name, page) # get_pipeline response.pipelines.each do |pipeline| resp = @client.get_pipeline(name: pipeline.name) struct = OpenStruct.new(resp.pipeline.to_h) struct.type = 'pipeline' struct.arn = resp.metadata.pipeline_arn resources.push(struct.to_h) end end rescue Aws::CodePipeline::Errors::ServiceError => e log_error(e.code) raise e unless suppressed_errors.include?(e.code) && !@options.quit_on_exception end resources end
Private Instance Methods
suppressed_errors()
click to toggle source
not an error
# File lib/aws_recon/collectors/codepipeline.rb, line 42 def suppressed_errors %w[ AccessDeniedException ] end