|
1 | | -# AWS Lambda Java Support Libraries |
| 1 | +# AWS Lambda Java Support Libraries |
2 | 2 | Interface definitions for Java code running on the AWS Lambda platform. |
3 | 3 |
|
4 | 4 | For issues and questions, you can start with our [FAQ](https://aws.amazon.com/lambda/faqs/) and the [AWS forums](https://forums.aws.amazon.com/forum.jspa?forumID=186) |
5 | 5 |
|
6 | 6 | To get started writing AWS Lambda functions in Java, check out the [official documentation] (http://docs.aws.amazon.com/lambda/latest/dg/java-gs.html). |
7 | 7 |
|
| 8 | +# Disclaimer of use |
| 9 | + |
| 10 | +Each of the supplied packages should be used without modification. Removing |
| 11 | +dependencies, adding conflicting dependencies, or selectively including classes |
| 12 | +from the packages can result in unexpected behavior, which the AWS Lambda team |
| 13 | +is not responsible for. |
| 14 | + |
| 15 | +# Recent Updates! |
| 16 | + |
| 17 | +* ### [2017 Java Events Update](https://github.com/aws/aws-lambda-java-libs/tree/master/aws-lambda-java-events) |
| 18 | +* ### [Log4j2 Support](https://github.com/aws/aws-lambda-java-libs/tree/master/aws-lambda-java-log4j2) |
| 19 | + |
| 20 | +# Where to get packages |
8 | 21 | ___ |
9 | 22 |
|
10 | 23 | [Maven](https://maven.apache.org) |
|
18 | 31 | <dependency> |
19 | 32 | <groupId>com.amazonaws</groupId> |
20 | 33 | <artifactId>aws-lambda-java-events</artifactId> |
21 | | - <version>1.3.0</version> |
| 34 | + <version>2.0</version> |
22 | 35 | </dependency> |
23 | 36 | <dependency> |
24 | 37 | <groupId>com.amazonaws</groupId> |
|
36 | 49 |
|
37 | 50 | ```groovy |
38 | 51 | 'com.amazonaws:aws-lambda-java-core:1.1.0' |
39 | | -'com.amazonaws:aws-lambda-java-events:1.3.0' |
| 52 | +'com.amazonaws:aws-lambda-java-events:2.0' |
40 | 53 | 'com.amazonaws:aws-lambda-java-log4j:1.0.0' |
41 | 54 | 'com.amazonaws:aws-lambda-java-log4j2:1.0.0' |
42 | 55 | ``` |
|
45 | 58 |
|
46 | 59 | ```clojure |
47 | 60 | [com.amazonaws/aws-lambda-java-core "1.1.0"] |
48 | | -[com.amazonaws/aws-lambda-java-events "1.3.0"] |
| 61 | +[com.amazonaws/aws-lambda-java-events "2.0"] |
49 | 62 | [com.amazonaws/aws-lambda-java-log4j "1.0.0"] |
50 | 63 | [com.amazonaws/aws-lambda-java-log4j2 "1.0.0"] |
51 | 64 | ``` |
|
54 | 67 |
|
55 | 68 | ```scala |
56 | 69 | "com.amazonaws" % "aws-lambda-java-core" % "1.1.0" |
57 | | -"com.amazonaws" % "aws-lambda-java-events" % "1.3.0" |
| 70 | +"com.amazonaws" % "aws-lambda-java-events" % "2.0" |
58 | 71 | "com.amazonaws" % "aws-lambda-java-log4j" % "1.0.0" |
59 | 72 | "com.amazonaws" % "aws-lambda-java-log4j2" % "1.0.0" |
60 | 73 | ``` |
| 74 | + |
| 75 | +# Using aws-lambda-java-core |
| 76 | + |
| 77 | +This package defines the Lambda [Context](http://docs.aws.amazon.com/lambda/latest/dg/java-context-object.html) |
| 78 | +object as well as [interfaces](http://docs.aws.amazon.com/lambda/latest/dg/java-handler-using-predefined-interfaces.html) that Lambda accepts. |
| 79 | + |
| 80 | +# Using aws-lambda-java-events |
| 81 | + |
| 82 | +This package defines [event sources](http://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html) that AWS Lambda natively accepts. See the [documentation](https://github.com/aws/aws-lambda-java-libs/tree/master/aws-lambda-java-events) for more information. |
| 83 | + |
| 84 | +# Using aws-lambda-java-log4j2 |
| 85 | + |
| 86 | +This package defines the Lambda adapter to use with log4j version 2. See |
| 87 | +[documentation](https://github.com/aws/aws-lambda-java-libs/tree/master/aws-lambda-java-log4j2) for how to use the adapter. |
| 88 | + |
| 89 | +# Using aws-lambda-java-log4j (Not recommended) |
| 90 | + |
| 91 | +This package defines the Lambda adapter to use with log4j version 1. See |
| 92 | +the [official documentation](http://docs.aws.amazon.com/lambda/latest/dg/java-logging.html#java-wt-logging-using-log4j) for how to use this adapter. |
0 commit comments