AWS Lambda

List Object Uploaded To S3 Bucket
import json import urllib import boto3 s3 = boto3.client('s3') def lambda_handler(event, context): bucket = event['Records'][0]['s3']['bucket']['name'] object_key = event['Records'][0]['s3']['object']['key'] return object_key