|The name of the S3 bucket|
|The path and name of the file.|
Unlike most file paths, the S3 key name (JSON Schema:
$.Records.s3.object.key) does not include a leading slash. So, if you have a file in the path
s3://mybucket/path/file.txt, the key will be
In Python at least, the key field value is UTF-8 URL encoded. This is noticeable when the filename contains spaces or non-ascii characters. The field needs to be URL decoded, then UTF-8 decoded - See Get non-ASCII filename from S3 notification event in Lambda
It is possible to have multiple of the same (or different) actions inside of the
"Records" key of the event; however, in practice, you will usually see one event per invocation of your Lambda function.
There are actually sample events in the Lambda console, if you choose Actions -> Configure Test Event. However, You can see the PUT operation in the examples above.
You can modify and submit test events from the AWS Lambda console to see how your function responds.