Class QPostToSQSLambda
java.lang.Object
com.kingsrook.qqq.utilitylambdas.QPostToSQSLambda
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class QPostToSQSLambda
extends Object
implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
QQQ Utility Lambda to post input data to SQS.
Requires environment variable: QUEUE_URL (e.g., https://sqs.us-east-0.amazonaws.com/111122223333/my-queue-name)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context) Entrypoint from AWS Lambda.protected void
Write to the cloudwatch logs.protected void
protected void
writeResponse
(OutputStream outputStream, String messageBody)
-
Field Details
-
context
protected com.amazonaws.services.lambda.runtime.Context context
-
-
Constructor Details
-
QPostToSQSLambda
public QPostToSQSLambda()
-
-
Method Details
-
handleRequest
public void handleRequest(InputStream inputStream, OutputStream outputStream, com.amazonaws.services.lambda.runtime.Context context) throws IOException Entrypoint from AWS Lambda.- Specified by:
handleRequest
in interfacecom.amazonaws.services.lambda.runtime.RequestStreamHandler
- Throws:
IOException
-
log
Write to the cloudwatch logs. -
log
-
writeResponse
- Throws:
IOException
-