Skip to content

Commit c25f1a3

Browse files
committed
address feedback
1 parent ed29db6 commit c25f1a3

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

sample-apps/java-basic/3-invoke.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ then
1616
PAYLOAD='[24,25,26]'
1717
;;
1818
19+
divide)
20+
PAYLOAD='[235241,17]'
21+
;;
22+
1923
*)
2024
echo -n "Unknown event type"
2125
;;

sample-apps/java-basic/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,14 @@ Choose a node in the main function graph. Then choose **View traces** to see a l
6767

6868
![Trace](/sample-apps/java-basic/images/java-basic-trace.png)
6969

70-
Finally, view the application in the Lambda console.
71-
72-
*To view the output*
73-
1. Open the [applications page](https://console.aws.amazon.com/lambda/home#/applications) in the Lambda console.
74-
2. Choose **java-basic**.
75-
76-
![Application](/sample-apps/java-basic/images/java-basic-application.png)
77-
7870
# Configure Handler Class
7971

8072
By default, the function uses a handler class named `Handler` that takes a map as input and returns a string. The project also includes handlers that use other input and output types. These are defined in the following files under src/main/java/example:
8173

8274
- `Handler.java` – Takes a `Map<String,String>` as input.
8375
- `HandlerInteger.java` – Takes an `Integer` as input.
8476
- `HandlerList.java` – Takes a `List<Integer>` as input.
77+
- `HandlerDivide.java` – Takes a `List<Integer>` with two integers as input.
8578
- `HandlerStream.java` – Takes an `InputStream` and `OutputStream` as input.
8679
- `HandlerString.java` – Takes a `String` as input.
8780
- `HandlerWeatherData.java` – Takes a custom type as input.
Loading
Loading
Loading

0 commit comments

Comments
 (0)