Created
November 1, 2017 16:07
-
-
Save mikebroberts/840e70934465006a41813bbf61216f9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int containerExecutionCount = 0; | |
public void handler(Map<String, List<S3PutRecord>> input) { | |
final String key = input.get("Records").get(0).s3.object.key; | |
System.out.println("S3 PUT happened! Key was: " + key); | |
throw new RuntimeException("Throwing exception. This container has processed " + ++containerExecutionCount + " events"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment