[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-s3-lambda-ses-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":33,"level":34,"meta":35,"patternArch":36,"resources":55,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Fs3-lambda-ses-sam.json","Send email with pre-signed URL on file upload into Amazon S3 bucket",null,{"text":8},[9,10],"Delete the Amazon S3 email bucket content: \u003Ccode>aws s3 rm s3:\u002F\u002F{MyBucketName} --recursive --region {my-region}\u003C\u002Fcode>","Delete the resources deployed to your AWS account via AWS SAM: \u003Ccode>sam delete\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":14},[15,16],"See the GitHub repo for detailed deployment instructions.","sam deploy -g","This sample project shows how to send an email with pre-signed Amazon S3 bucket URL whenever a file is uploaded into the bucket.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-ses-sam","serverless-patterns\u002Fs3-lambda-ses-sam","s3-lambda-ses-sam","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31,32],"User uploads a file into the Amazon S3 bucket.","Amazon S3 triggers the AWS Lambda function.","The AWS Lambda function creates a pre-signed URL with validity of one hour for the uploaded file and calls Amazon SES API.","The Amazon SES sends the notification email.","Python","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"s3","Amazon S3",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"ses","Amazon SES",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"bullets":56},[57,60],{"text":58,"link":59},"Email sending with Amazon SES","https:\u002F\u002Fdocs.aws.amazon.com\u002Fses\u002Flatest\u002Fdg\u002Fsend-email.html",{"text":61,"link":62},"Using an Amazon S3 trigger to invoke a Lambda function","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html","patterns\u002Fs3-lambda-ses-sam",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","RLguPlZbrkc9p6DWNz-hSa6T8Me8loeDRcC1EoCG4sE",1778846887448]