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.33 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.32 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.31 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.30 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.29 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.28 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.27 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.26 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.25 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.24 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.23 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.22 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.21 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.20 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.19 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.18 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.17 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.16 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.15 lib/aws_recon/lib/formatter.rb
aws_recon-0.5.14 lib/aws_recon/lib/formatter.rb