O'Reilly logo

Serverless Architectures on AWS: With examples using AWS Lambda by Peter Sbarski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix F. S3 event message structure

This appendix covers

  • S3 event message structure

If you use S3 with Lambda, you need to understand the S3 event message structure for the purpose of extracting needed information from the message. This appendix describes the structure of the event message, so that you’re aware of the available properties and their expected values.

F.1. S3 structure

The following listing shows an example S3 event message after an object has been added to a bucket. This example is adapted from https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html.

Listing F.1. S3 Event message structure

F.2. A few things to remember

  • The key of the object is encoded. For example, the file hello world.jpg ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required