public static class LambdaInvokerFactory.Builder
extends java.lang.Object
public LambdaInvokerFactory.Builder context(android.content.Context context)
context
- The context.public LambdaInvokerFactory.Builder region(Regions region)
region
- The region your lambda functions were created in.public LambdaInvokerFactory.Builder credentialsProvider(AWSCredentialsProvider provider)
provider
- The credentials that have access to the functionspublic LambdaInvokerFactory.Builder clientConfiguration(ClientConfiguration clientConfig)
ClientConfiguration
.
ClientConfiguration config = new ClientConfiguration(); config.setSocketTimeout(5 * 60 * 1000); // 5 minutes
clientConfig
- The configuration for the lambda clientpublic LambdaInvokerFactory.Builder clientContext(ClientContext clientContext)
clientContext
- Client contextpublic LambdaInvokerFactory.Builder lambdaClient(AWSLambda lambda)
credentialsProvider(AWSCredentialsProvider)
and
clientContext(ClientContext)
and either
region(Regions)
or
awsConfiguration(AWSConfiguration)
lambda
- The lambda client making the network callspublic LambdaInvokerFactory.Builder awsConfiguration(AWSConfiguration awsConfig)
region(Regions)
, if specified.
Example awsconfiguration.json
{
"LambdaInvoker" : {
"Default": {
"Region": "ap-northeast-1"
}
}
}awsConfig
- The configuration will override the region set in
the lambda client.public LambdaInvokerFactory build()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.