Sha256: e3297b15d7701752c29bcbbc38dc7e62df1924ed3eaf2572957a76ec4edbf4dc

Contents?: true

Size: 596 Bytes

Versions: 76

Compression:

Stored size: 596 Bytes

Contents

#
# Customize resource format/shape
#
class Formatter
  #
  # Custom
  #
  def custom(account_id, region, service, resource)
    {
      account: account_id,
      name: resource[:arn],
      service: service.name,
      region: region,
      asset_type: resource[:type],
      resource: { data: resource, version: 'v1' },
      timestamp: Time.now.utc
    }
  end

  #
  # Standard AWS
  #
  def aws(account_id, region, service, resource)
    {
      account: account_id,
      service: service.name,
      region: region,
      resource: resource,
      timestamp: Time.now.utc
    }
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
aws_recon-0.5.13 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.12 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.11 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.10 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.9 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.8 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.7 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.6 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.5 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.4 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.3 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.2 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.1 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.0 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.6 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.5 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.4 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.3 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.2 lib/aws_recon/lib/formatter.rb
aws_recon-0.4.1 lib/aws_recon/lib/formatter.rb