public ProgressEvent handleRequest()

in activity/src/main/java/com/amazonaws/stepfunctions/cloudformation/activity/UpdateHandler.java [18:43]


    public ProgressEvent<ResourceModel, CallbackContext> handleRequest(
        final AmazonWebServicesClientProxy proxy,
        final ResourceHandlerRequest<ResourceModel> request,
        final CallbackContext callbackContext,
        final Logger logger) {

        logger.log("INFO Activity UpdateHandler with clientRequestToken: " + request.getClientRequestToken());

        final ResourceModel model = request.getDesiredResourceState();

        try {
            verifyActivityArnIsPresent(model.getArn());

            AWSStepFunctions sfnClient = AWSStepFunctionsClientBuilder.defaultClient();

            updateTags(request, proxy, sfnClient);

            return ProgressEvent.<ResourceModel, CallbackContext>builder()
                    .resourceModel(model)
                    .status(OperationStatus.SUCCESS)
                    .build();
        } catch (Exception e) {
            logger.log("ERROR Updating Activity, caused by " + e.toString());
            return handleDefaultError(request, e);
        }
    }