| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | 4 | <groupId>com.amazonaws</groupId> | |
| 5 | 5 | <artifactId>aws-lambda-java-core</artifactId> | |
| 6 | - <version>1.0.0</version> | ||
| 6 | + <version>1.1.0</version> | ||
| 7 | 7 | <packaging>jar</packaging> | |
| 8 | 8 | ||
| 9 | 9 | <name>AWS Lambda Java Core Library</name> | |
@@ -45,6 +45,9 @@ | |||
| 45 | 45 | <groupId>org.apache.maven.plugins</groupId> | |
| 46 | 46 | <artifactId>maven-javadoc-plugin</artifactId> | |
| 47 | 47 | <version>2.9.1</version> | |
| 48 | + <configuration> | ||
| 49 | + <additionalparam>-Xdoclint:none</additionalparam> | ||
| 50 | + </configuration> | ||
| 48 | 51 | <executions> | |
| 49 | 52 | <execution> | |
| 50 | 53 | <id>attach-javadocs</id> | |
@@ -78,6 +81,9 @@ | |||
| 78 | 81 | <groupId>org.apache.maven.plugins</groupId> | |
| 79 | 82 | <artifactId>maven-javadoc-plugin</artifactId> | |
| 80 | 83 | <version>2.9.1</version> | |
| 84 | + <configuration> | ||
| 85 | + <additionalparam>-Xdoclint:none</additionalparam> | ||
| 86 | + </configuration> | ||
| 81 | 87 | <executions> | |
| 82 | 88 | <execution> | |
| 83 | 89 | <id>attach-javadocs</id> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,11 @@ | |||
| 8 | 8 | */ | |
| 9 | 9 | public interface Client { | |
| 10 | 10 | ||
| 11 | + /** | ||
| 12 | + * Gets the application's installation id | ||
| 13 | + */ | ||
| 14 | + public String getInstallationId(); | ||
| 15 | + | ||
| 11 | 16 | /** | |
| 12 | 17 | * Gets the application's title | |
| 13 | 18 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,6 +57,18 @@ public interface Context { | |||
| 57 | 57 | */ | |
| 58 | 58 | public String getFunctionName(); | |
| 59 | 59 | ||
| 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 | + | ||
| 60 | 72 | /** | |
| 61 | 73 | * Gets information about the Amazon Cognito identity provider when invoked | |
| 62 | 74 | * through the AWS Mobile SDK. It can be null | |
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments