Package software.amazon.cloudformation
Class HookAbstractWrapper<TargetT,CallbackT,ConfigurationT>
java.lang.Object
software.amazon.cloudformation.HookAbstractWrapper<TargetT,CallbackT,ConfigurationT>
- Direct Known Subclasses:
HookExecutableWrapper,HookLambdaWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final software.amazon.awssdk.http.SdkHttpClient -
Constructor Summary
ConstructorsConstructorDescriptionHookAbstractWrapper(CredentialsProvider providerCredentialsProvider, CloudWatchLogPublisher providerEventsLogger, LogPublisher platformEventsLogger, MetricsPublisher providerMetricsPublisher, software.amazon.cloudformation.resource.SchemaValidator validator, Serializer serializer, software.amazon.awssdk.http.SdkHttpClient httpClient, Cipher cipher) -
Method Summary
Modifier and TypeMethodDescriptionabstract ProgressEvent<TargetT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, HookHandlerRequest request, HookInvocationPoint invocationPoint, CallbackT callbackContext, ConfigurationT typeConfiguration) Implemented by the handler package as the key entry point.voidprocessRequest(InputStream inputStream, OutputStream outputStream) retrieveHookInvocationPayloadFromS3(String s3PresignedUrl)
-
Field Details
-
HTTP_CLIENT
public static final software.amazon.awssdk.http.SdkHttpClient HTTP_CLIENT
-
-
Constructor Details
-
HookAbstractWrapper
public HookAbstractWrapper(CredentialsProvider providerCredentialsProvider, CloudWatchLogPublisher providerEventsLogger, LogPublisher platformEventsLogger, MetricsPublisher providerMetricsPublisher, software.amazon.cloudformation.resource.SchemaValidator validator, Serializer serializer, software.amazon.awssdk.http.SdkHttpClient httpClient, Cipher cipher)
-
-
Method Details
-
processRequest
public void processRequest(InputStream inputStream, OutputStream outputStream) throws IOException, TerminalException - Throws:
IOExceptionTerminalException
-
retrieveHookInvocationPayloadFromS3
-
invokeHandler
public abstract ProgressEvent<TargetT,CallbackT> invokeHandler(AmazonWebServicesClientProxy proxy, HookHandlerRequest request, HookInvocationPoint invocationPoint, 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 callinvocationPoint- which invocation point the hook is invoked atcallbackContext- the callback context to handle reentrant calls- Returns:
- progress event indicating complete, in progress with delay callback or failed state
- Throws:
Exception- propagate any unexpected errors
-