Skip to content

Commit d3e3142

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

File tree

5 files changed

+65
-1
lines changed

5 files changed

+65
-1
lines changed

aws-lambda-java-core/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.amazonaws</groupId>
55
<artifactId>aws-lambda-java-core</artifactId>
6-
<version>1.0.0</version>
6+
<version>1.1.0</version>
77
<packaging>jar</packaging>
88

99
<name>AWS Lambda Java Core Library</name>
@@ -45,6 +45,9 @@
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-javadoc-plugin</artifactId>
4747
<version>2.9.1</version>
48+
<configuration>
49+
<additionalparam>-Xdoclint:none</additionalparam>
50+
</configuration>
4851
<executions>
4952
<execution>
5053
<id>attach-javadocs</id>
@@ -78,6 +81,9 @@
7881
<groupId>org.apache.maven.plugins</groupId>
7982
<artifactId>maven-javadoc-plugin</artifactId>
8083
<version>2.9.1</version>
84+
<configuration>
85+
<additionalparam>-Xdoclint:none</additionalparam>
86+
</configuration>
8187
<executions>
8288
<execution>
8389
<id>attach-javadocs</id>

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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
2+
3+
package com.amazonaws.services.lambda.runtime;
4+
5+
/**
6+
* This class is used internally by Lambda Runtime.
7+
*/
8+
public final class LambdaRuntimeInternal {
9+
private LambdaRuntimeInternal() {}
10+
11+
private static boolean useLog4jAppender;
12+
13+
public static void setUseLog4jAppender(boolean useLog4j) {
14+
useLog4jAppender = useLog4j;
15+
}
16+
17+
public static boolean getUseLog4jAppender() {
18+
return useLog4jAppender;
19+
}
20+
}

0 commit comments

Comments
 (0)