List of usage examples for com.amazonaws.services.lambda.model UpdateEventSourceMappingRequest UpdateEventSourceMappingRequest
UpdateEventSourceMappingRequest
From source file:com.netflix.spinnaker.clouddriver.lambda.deploy.ops.UpsertLambdaEventSourceAtomicOperation.java
License:Apache License
private UpdateEventSourceMappingResult updateEventSourceMappingResult(LambdaFunction cache) { updateTaskStatus("Initializing Updating of AWS Lambda Function Event Mapping Operation..."); AWSLambda client = getLambdaClient(); UpdateEventSourceMappingRequest request = new UpdateEventSourceMappingRequest() .withFunctionName(cache.getFunctionArn()).withBatchSize(description.getBatchsize()) .withEnabled(description.getEnabled()).withUUID(description.getUuid()); UpdateEventSourceMappingResult result = client.updateEventSourceMapping(request); updateTaskStatus("Finished Updating of AWS Lambda Function Event Mapping Operation..."); return result; }