public abstract class LambdaWrapper<ResourceT,CallbackT> extends Object implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
| Modifier and Type | Field and Description |
|---|---|
static software.amazon.awssdk.http.SdkHttpClient |
HTTP_CLIENT |
| Constructor and Description |
|---|
LambdaWrapper(CallbackAdapter<ResourceT> callbackAdapter,
CredentialsProvider platformCredentialsProvider,
CredentialsProvider providerCredentialsProvider,
CloudWatchLogPublisher providerEventsLogger,
LogPublisher platformEventsLogger,
MetricsPublisher platformMetricsPublisher,
MetricsPublisher providerMetricsPublisher,
CloudWatchScheduler scheduler,
software.amazon.cloudformation.resource.SchemaValidator validator,
Serializer serializer,
software.amazon.awssdk.http.SdkHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(InputStream inputStream,
OutputStream outputStream,
com.amazonaws.services.lambda.runtime.Context context) |
abstract ProgressEvent<ResourceT,CallbackT> |
invokeHandler(AmazonWebServicesClientProxy proxy,
ResourceHandlerRequest<ResourceT> request,
Action action,
CallbackT callbackContext)
Implemented by the handler package as the key entry point.
|
public LambdaWrapper(CallbackAdapter<ResourceT> callbackAdapter, CredentialsProvider platformCredentialsProvider, CredentialsProvider providerCredentialsProvider, CloudWatchLogPublisher providerEventsLogger, LogPublisher platformEventsLogger, MetricsPublisher platformMetricsPublisher, MetricsPublisher providerMetricsPublisher, CloudWatchScheduler scheduler, software.amazon.cloudformation.resource.SchemaValidator validator, Serializer serializer, software.amazon.awssdk.http.SdkHttpClient httpClient)
public void handleRequest(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context) throws IOException, TerminalException
handleRequest in interface com.amazonaws.services.lambda.runtime.RequestStreamHandlerIOExceptionTerminalExceptionpublic abstract ProgressEvent<ResourceT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, ResourceHandlerRequest<ResourceT> request, Action action, CallbackT callbackContext) throws Exception
proxy - Amazon webservice proxy to inject credentials correctly.request - incoming request for the callaction - which action to take Action.CREATE,
Action.DELETE, Action.READ Action.LIST or
Action.UPDATEcallbackContext - the callback context to handle reentrant callsException - propagate any unexpected errorsCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.