1.1.0 lambda-java-core release · rschmitt/aws-lambda-java-libs@d3e3142 · GitHub
Skip to content

Commit d3e3142

Browse files
committed
1.1.0 lambda-java-core release
1 parent 671d131 commit d3e3142

5 files changed

Lines changed: 65 additions & 1 deletion

File tree

‎aws-lambda-java-core/pom.xml‎

Lines changed: 7 additions & 1 deletion

‎aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/Client.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
*/
99
public interface Client {
1010

11+
/**
12+
* Gets the application's installation id
13+
*/
14+
public String getInstallationId();
15+
1116
/**
1217
* Gets the application's title
1318
*

‎aws-lambda-java-core/src/main/java/com/amazonaws/services/lambda/runtime/Context.java‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ public interface Context {
5757
*/
5858
public String getFunctionName();
5959

60+
/**
61+
* Gets the version of the function being executed.
62+
*
63+
*/
64+
public String getFunctionVersion();
65+
66+
/**
67+
* Gets the function Arn of the resource being invoked.
68+
*
69+
*/
70+
public String getInvokedFunctionArn();
71+
6072
/**
6173
* Gets information about the Amazon Cognito identity provider when invoked
6274
* through the AWS Mobile SDK. It can be null
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
2+
3+
package com.amazonaws.services.lambda.runtime;
4+
5+
public final class LambdaRuntime {
6+
private LambdaRuntime() {}
7+
8+
private static volatile LambdaLogger logger = new LambdaLogger() {
9+
public void log(String string) {
10+
System.out.print(string);
11+
}
12+
};
13+
14+
/**
15+
* Returns the global lambda logger instance
16+
*
17+
*/
18+
public static LambdaLogger getLogger() {
19+
return logger;
20+
}
21+
}
Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)