in powertools-cloudformation/src/main/java/software/amazon/lambda/powertools/cloudformation/AbstractCustomResourceHandler.java [78:95]
private Response getResponse(CloudFormationCustomResourceEvent event, Context context)
throws CustomResourceResponseException {
try {
switch (event.getRequestType()) {
case "Create":
return create(event, context);
case "Update":
return update(event, context);
case "Delete":
return delete(event, context);
default:
LOG.warn("Unexpected request type \"" + event.getRequestType() + "\" for event " + event);
return null;
}
} catch (RuntimeException e) {
throw new CustomResourceResponseException("Unable to get Response", e);
}
}