private HttpResponse handlePOST(HttpRequest request) {
        var json = toSlime(request.getData());
        AwsSettings settings;

        try {
            settings = AwsSettings.fromSlime(json);
        } catch (IllegalArgumentException e) {
            return ErrorResponse.badRequest(Exceptions.toMessageString(e));
        }

        var response = new Slime();
        var root = response.setObject();
        settings.toSlime(root.setObject("settings"));

        try {
            var parameterName = json.get().field("parameterName").asString();
            var store = new AwsParameterStore(List.of(settings));
            store.getSecret(parameterName);
            root.setString("status", "ok");
        } catch (RuntimeException e) {
            root.setString("status", "error");
            var error = root.setArray("errors").addObject();
            error.setString("type", e.getClass().getSimpleName());
            error.setString("message", Exceptions.toMessageString(e));
        }

        return new SlimeJsonResponse(response);
    }
Attempts to validate the AWS Systems Manager Parameter Store settings to see if we can
run a working Vespa Cloud Secret Store with them.

@author ogronnesby
jdisc-cloud-aws/src/main/java/com/yahoo/jdisc/cloud/aws/AwsParameterStoreValidationHandler.java