Package software.amazon.cloudformation
Class AbstractWrapper<ResourceT,CallbackT,ConfigurationT>
java.lang.Object
software.amazon.cloudformation.AbstractWrapper<ResourceT,CallbackT,ConfigurationT>
- Direct Known Subclasses:
ExecutableWrapper,LambdaWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final software.amazon.awssdk.http.SdkHttpClient -
Constructor Summary
ConstructorsConstructorDescriptionAbstractWrapper(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 TypeMethodDescriptionabstract ProgressEvent<ResourceT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, ResourceHandlerRequest<ResourceT> request, Action action, CallbackT callbackContext, ConfigurationT typeConfiguration) Implemented by the handler package as the key entry point.voidprocessRequest(InputStream inputStream, OutputStream outputStream)
-
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(InputStream inputStream, OutputStream outputStream) throws IOException, TerminalException - Throws:
IOExceptionTerminalException
-
invokeHandler
public abstract ProgressEvent<ResourceT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, ResourceHandlerRequest<ResourceT> request, Action action, CallbackT callbackContext, ConfigurationT typeConfiguration) throws Exception Implemented 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 callstypeConfiguration- the configuration for the type set by type consumer- Returns:
- progress event indicating success, in progress with delay callback or failed state
- Throws:
Exception- propagate any unexpected errors
-