Package io.micronaut.function.client.aws
Class AWSLambdaConfiguration
java.lang.Object
io.micronaut.function.client.aws.AWSLambdaConfiguration
@ConfigurationProperties("aws.lambda")
@Requires(classes=com.amazonaws.services.lambda.AWSLambdaAsyncClientBuilder.class) @Requires(property="aws.lambda")
public class AWSLambdaConfiguration
extends Object
Configuration options for AWS Lambda.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAWSLambdaConfiguration
(AWSClientConfiguration clientConfiguration, io.micronaut.context.env.Environment environment) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.services.lambda.AWSLambdaAsyncClientBuilder
void
setEndpointConfiguration
(com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration endpointConfiguration) void
setMetricsCollector
(@Nullable com.amazonaws.metrics.RequestMetricCollector metricsCollector) void
setRequestHandlers
(@Nullable com.amazonaws.handlers.RequestHandler2... handlers)
-
Field Details
-
PREFIX
Prefix for AWS Lambda settings.- See Also:
-
-
Constructor Details
-
AWSLambdaConfiguration
public AWSLambdaConfiguration(AWSClientConfiguration clientConfiguration, io.micronaut.context.env.Environment environment) Constructor.- Parameters:
clientConfiguration
- clientConfigurationenvironment
- environment
-
-
Method Details
-
getBuilder
public com.amazonaws.services.lambda.AWSLambdaAsyncClientBuilder getBuilder()- Returns:
- The builder for the
AWSLambdaAsync
instance
-
setMetricsCollector
@Inject public void setMetricsCollector(@Nullable @Nullable com.amazonaws.metrics.RequestMetricCollector metricsCollector) - Parameters:
metricsCollector
- TheRequestMetricCollector
-
setEndpointConfiguration
@Inject public void setEndpointConfiguration(@Nullable com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration endpointConfiguration) - Parameters:
endpointConfiguration
- TheAwsClientBuilder.getEndpoint()
-
setRequestHandlers
@Inject public void setRequestHandlers(@Nullable @Nullable com.amazonaws.handlers.RequestHandler2... handlers) - Parameters:
handlers
- TheRequestHandler2
-