{
    "definitions": {
        "s3": {
            "description": "The s3 element contains the bucket & key data",
            "properties": {
                "awsRegion": {
                    "type": "string"
                },
                "bucket": {
                    "properties": {
                        "arn": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "name"
                    ],
                    "type": "object"
                },
                "eventName": {
                    "type": "string"
                },
                "eventSource": {
                    "type": "string"
                },
                "eventTime": {
                    "format": "date-time",
                    "type": "string"
                },
                "object": {
                    "properties": {
                        "eTag": {
                            "type": "string"
                        },
                        "key": {
                            "type": "string"
                        },
                        "sequencer": {
                            "type": "string"
                        },
                        "size": {
                            "type": "number"
                        }
                    },
                    "required": [
                        "key"
                    ],
                    "type": "object"
                }
            },
            "required": [
                "bucket",
                "object"
            ],
            "type": "object"
        },
        "s3event": {
            "description": "The s3 event",
            "properties": {
                "awsRegion": {
                    "type": "string"
                },
                "eventName": {
                    "type": "string"
                },
                "eventSource": {
                    "type": "string"
                },
                "eventTime": {
                    "format": "date-time",
                    "type": "string"
                },
                "s3": {
                    "$ref": "#/definitions/s3"
                }
            },
            "required": [
                "awsRegion",
                "eventSource",
                "eventName",
                "eventTime",
                "s3"
            ],
            "type": "object"
        }
    },
    "description": "Schema for an S3 event notification for Lambda. Incomplete.",
    "properties": {
        "Records": {
            "items": {
                "$ref": "#/definitions/s3event"
            },
            "type": "array"
        }
    },
    "required": [
        "Records"
    ],
    "type": "object"
}