| Package | Description |
|---|---|
| com.amazonaws.mobileconnectors.lambdainvoker |
This package provides features to invoke a Lambda function via dynamic proxy.
|
| Modifier and Type | Method and Description |
|---|---|
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.awsConfiguration(AWSConfiguration awsConfig)
This region will be overridden by
region(Regions), if specified. |
static LambdaInvokerFactory.Builder |
LambdaInvokerFactory.builder()
Some examples:
LambdaInvokerFactory.builder()
.context(context)
.region(Regions.AP_NORTHEAST_1)
.clientConfiguration(clientConfig) // Optional
.credentialsProvider(provider)
.build();
LambdaInvokerFactory.builder()
.context(context)
.awsConfiguration(awsConfig)
.clientConfiguration(clientConfig) // Optional
.credentialsProvider(provider)
.build;
LambdaInvokerFactory.builder()
.lambdaClient(client)
.clientContext(clientContext)
.build;
|
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.clientConfiguration(ClientConfiguration clientConfig)
If your Lambda function takes a long time to finish (longer than the
default socket timeout of 15 seconds), you can increase the timeout
via
ClientConfiguration . |
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.clientContext(ClientContext clientContext) |
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.context(android.content.Context context) |
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.credentialsProvider(AWSCredentialsProvider provider) |
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.lambdaClient(AWSLambda lambda)
This will be constructed if you directly provide
credentialsProvider(AWSCredentialsProvider) and
clientContext(ClientContext) and either
region(Regions) or
awsConfiguration(AWSConfiguration) |
LambdaInvokerFactory.Builder |
LambdaInvokerFactory.Builder.region(Regions region)
This will take precedence over any region specified in {@linkAWSConfiguration
|
Copyright © 2020. All rights reserved.