Package software.amazon.cloudformation
Class AbstractWrapper<ResourceT,CallbackT>
java.lang.Object
software.amazon.cloudformation.AbstractWrapper<ResourceT,CallbackT>
- Direct Known Subclasses:
ExecutableWrapper,LambdaWrapper
public abstract class AbstractWrapper<ResourceT,CallbackT>
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static software.amazon.awssdk.http.SdkHttpClientHTTP_CLIENT -
Constructor Summary
Constructors Constructor Description AbstractWrapper(CredentialsProvider providerCredentialsProvider, LogPublisher platformEventsLogger, CloudWatchLogPublisher providerEventsLogger, MetricsPublisher providerMetricsPublisher, software.amazon.cloudformation.resource.SchemaValidator validator, Serializer serializer, software.amazon.awssdk.http.SdkHttpClient httpClient) -
Method Summary
Modifier and Type Method Description abstract ProgressEvent<ResourceT,CallbackT>invokeHandler(AmazonWebServicesClientProxy proxy, ResourceHandlerRequest<ResourceT> request, Action action, CallbackT callbackContext)Implemented by the handler package as the key entry point.voidprocessRequest(java.io.InputStream inputStream, java.io.OutputStream outputStream)Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
HTTP_CLIENT
public static final software.amazon.awssdk.http.SdkHttpClient HTTP_CLIENT
-
-
Constructor Details
-
AbstractWrapper
public AbstractWrapper(CredentialsProvider providerCredentialsProvider, LogPublisher platformEventsLogger, CloudWatchLogPublisher providerEventsLogger, MetricsPublisher providerMetricsPublisher, software.amazon.cloudformation.resource.SchemaValidator validator, Serializer serializer, software.amazon.awssdk.http.SdkHttpClient httpClient)
-
-
Method Details
-
processRequest
public void processRequest(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws java.io.IOException, TerminalException- Throws:
java.io.IOExceptionTerminalException
-
invokeHandler
public abstract ProgressEvent<ResourceT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, ResourceHandlerRequest<ResourceT> request, Action action, CallbackT callbackContext) throws java.lang.ExceptionImplemented by the handler package as the key entry point.- Parameters:
proxy- Amazon webservice proxy to inject credentials correctly.request- incoming request for the callaction- which action to takeAction.CREATE,Action.DELETE,Action.READAction.LISTorAction.UPDATEcallbackContext- the callback context to handle reentrant calls- Returns:
- progress event indicating success, in progress with delay callback or failed state
- Throws:
java.lang.Exception- propagate any unexpected errors
-