public final ProgressEvent handleRequest()

in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/CanaryActionHandler.java [27:48]


    public final ProgressEvent<ResourceModel, CallbackContext> handleRequest(final AmazonWebServicesClientProxy proxy,
                                                                             final ResourceHandlerRequest<ResourceModel> request,
                                                                             final CallbackContext callbackContext,
                                                                             final Logger logger) {
        this.proxy = proxy;
        this.request = request;
        this.context = callbackContext != null ? callbackContext : CallbackContext.builder().build();
        this.model = request.getDesiredResourceState();
        this.logger = new ActionLogger(logger, action, request.getAwsAccountId(), context, model);
        this.syntheticsClient = ClientBuilder.getClient();

        log("Invoking handler");
        ProgressEvent<ResourceModel, CallbackContext> response;
        try {
            response = handleRequest();
        } catch (Exception e) {
            log(e);
            throw e;
        }
        log("Handler invoked");
        return response;
    }