UNPKG

@aws-amplify/amplify-category-storage

Version:

amplify-cli storage plugin

9 lines (8 loc) 395 B
// eslint-disable-next-line exports.handler = async function (event) { console.log('Received S3 event:', JSON.stringify(event, null, 2)); // Get the object from the event and show its content type const bucket = event.Records[0].s3.bucket.name; //eslint-disable-line const key = event.Records[0].s3.object.key; //eslint-disable-line console.log(`Bucket: ${bucket}`, `Key: ${key}`); };