def METHOD_NAME(filename):
    message_contents = """{"Records":[{"eventVersion":"2.0","eventSource":"aws:s3","awsRegion":"eu-west-1","eventTime":"2017-05-16T11:38:41.073Z","eventName":"ObjectCreated:Put","userIdentity":{"principalId":"some-p-id"},"requestParameters":{"sourceIPAddress":"8.8.8.8"},"responseElements":{"x-amz-request-id":"some-r-id","x-amz-id-2":"some-x-am-id"},"s3":{"s3SchemaVersion":"1.0","configurationId":"some-c-id","bucket":{"name":"some-bucket","ownerIdentity":{"principalId":"some-p-id"},"arn":"some-bucket-arn"},
            "object":{"key":"%s"}}}]}""" % (
        filename
    )  # noqa
    return json.dumps(
        {
            "SigningCertURL": "foo.pem",
            "UnsubscribeURL": "bar",
            "Signature": "some-signature",
            "Type": "Notification",
            "Timestamp": "2016-05-03T08:35:12.884Z",
            "SignatureVersion": "1",
            "MessageId": "6adbfe0a-d610-509a-9c47-af894e90d32d",
            "Subject": "Amazon S3 Notification",
            "TopicArn": "sample-topic-arn",
            "Message": message_contents,
        }
    )