Sha256: 6ac7d78edc10f62dbfc83d9fdf88bc84941eed3df0a6d76af773a19fb337f9b7

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

class SecurityHub < Mapper
  #
  # Returns an array of resources.
  #
  def collect
    resources = []

    #
    # describe_hub
    #
    @client.describe_hub.each do |response|
      log(response.context.operation_name)

      struct = OpenStruct.new(response.to_h)
      struct.type = 'hub'
      struct.arn = response.hub_arn

      resources.push(struct.to_h)
    end

    resources
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws_recon-0.2.23 lib/aws_recon/collectors/securityhub.rb
aws_recon-0.2.22 lib/aws_recon/collectors/securityhub.rb
aws_recon-0.2.21 lib/aws_recon/collectors/securityhub.rb
aws_recon-0.2.20 lib/aws_recon/collectors/securityhub.rb