See: Description
Interface | Description |
---|---|
LambdaDataBinder |
An interface for databinding between POJO and byte array.
|
Class | Description |
---|---|
LambdaInvokerFactory |
A factory class that creates a dynamic proxy object backed by Lambda service.
|
LambdaInvokerFactory.Builder |
Builder class for LambdaInvokerFactory
|
LambdaJsonBinder |
A Json data binder backed by Gson.
|
Exception | Description |
---|---|
LambdaFunctionException |
Lambda exception, thrown when Lambda service has problem evaluating a Lambda
function.
|
Annotation Type | Description |
---|---|
LambdaFunction |
Annotation that can be used to declare a method to be proxied by Lambda
service.
|
// define a method echo in MyEchoFunction
public interface MyEchoFunction {
// specify the Lambda function name and invocation type
@LambdaFunction(functionName = "echo", invocationType = "RequestResponse")
String echo(String str);
}
// creates an invocation factory
LambdaInvokerFactory factory = new LambdaInvokerFactory(context,
Regions.US_WEST_2, provider);
// create a proxied object of MyEchoFunction
MyEchoFunction echoFunction = factory.build(MyEchoFunction.class,
new LambdaJsonBinder());
// invoke it just like a regular method
String echo = echoFunction.echo("Hello world!");
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.