Class GetUserHandler

java.lang.Object
org.machanism.macha.apps.adapters.faas.aws.GetUserHandler
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler

public class GetUserHandler extends Object implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
AWS Lambda handler for retrieving a user by ID.

This handler expects a query string parameter named "key" containing a UUID string. It looks up the user using the KUserLookup interactor and returns the user as a JSON response.

  • Constructor Details

  • Method Details

    • handleRequest

      public void handleRequest(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context) throws IOException
      Handles the AWS Lambda request to retrieve a user by ID.
      Specified by:
      handleRequest in interface com.amazonaws.services.lambda.runtime.RequestStreamHandler
      Parameters:
      inputStream - The input stream containing the Lambda event.
      outputStream - The output stream to write the response.
      context - The Lambda context object.
      Throws:
      IOException - If an I/O error occurs.