Class DocDbIntegTestHandler

  • All Implemented Interfaces:
    com.amazonaws.services.lambda.runtime.RequestStreamHandler

    public class DocDbIntegTestHandler
    extends Object
    implements com.amazonaws.services.lambda.runtime.RequestStreamHandler
    This Lambda function handler is only used within the DocumentDB integration tests. The Lambda function, when invoked, will generate a MongoDB database, table, and insert values. The invocation of the Lambda function must include the following environment variables: default_docdb - The connection string used to connect to the DocumentDB cluster (e.g. mongodb://...). database_name - The MongoDB database name. table_name - The MongoDB collection name.
    • Constructor Detail

      • DocDbIntegTestHandler

        public DocDbIntegTestHandler()
    • Method Detail

      • handleRequest

        public final void handleRequest​(InputStream inputStream,
                                        OutputStream outputStream,
                                        com.amazonaws.services.lambda.runtime.Context context)
        Specified by:
        handleRequest in interface com.amazonaws.services.lambda.runtime.RequestStreamHandler