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