diff --git a/data-prepper-plugins/aws-lambda/src/integrationTest/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessorServiceIT.java b/data-prepper-plugins/aws-lambda/src/integrationTest/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessorServiceIT.java index 686312cfe7..ab2c9b27a3 100644 --- a/data-prepper-plugins/aws-lambda/src/integrationTest/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessorServiceIT.java +++ b/data-prepper-plugins/aws-lambda/src/integrationTest/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessorServiceIT.java @@ -131,7 +131,7 @@ void verify_records_to_lambda_success(final int recordCount) throws Exception { when(lambdaProcessorConfig.getFunctionName()).thenReturn(functionName); when(lambdaProcessorConfig.getMaxConnectionRetries()).thenReturn(3); - when(lambdaProcessorConfig.getMode()).thenReturn("synchronous"); + when(lambdaProcessorConfig.getInvocationType()).thenReturn("RequestResponse"); LambdaProcessor objectUnderTest = createObjectUnderTest(lambdaProcessorConfig); @@ -148,7 +148,7 @@ void verify_records_with_batching_to_lambda(final int recordCount) throws JsonPr when(lambdaProcessorConfig.getFunctionName()).thenReturn(functionName); when(lambdaProcessorConfig.getMaxConnectionRetries()).thenReturn(3); - when(lambdaProcessorConfig.getMode()).thenReturn("synchronous"); + when(lambdaProcessorConfig.getInvocationType()).thenReturn("RequestResponse"); when(thresholdOptions.getEventCount()).thenReturn(1); when(thresholdOptions.getMaximumSize()).thenReturn(ByteCount.parse("2mb")); when(thresholdOptions.getEventCollectTimeOut()).thenReturn(Duration.parse("PT10s")); diff --git a/data-prepper-plugins/aws-lambda/src/main/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessor.java b/data-prepper-plugins/aws-lambda/src/main/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessor.java index 8625b64575..3f809f53a8 100644 --- a/data-prepper-plugins/aws-lambda/src/main/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessor.java +++ b/data-prepper-plugins/aws-lambda/src/main/java/org/opensearch/dataprepper/plugins/lambda/processor/LambdaProcessor.java @@ -57,8 +57,6 @@ public class LambdaProcessor extends AbstractProcessor, Record, Record