The configuration key path aws.lambda.functions
can be used to specify function endpoints in an AWS Lambda environment.
In the above case a function named hello
is mapped to the remote lambda function called hello-world
. You can define multiple named functions under the aws.lambda.functions
configuration. Each is configured by that allows setting any property on the underlying .
You can now write FunctionClient
interfaces against the remote function, as shown below.
@FunctionClient
interface HelloClient {
Single<String> hello(String name);