Example usage for com.amazonaws.services.lambda.model UpdateEventSourceMappingRequest UpdateEventSourceMappingRequest

List of usage examples for com.amazonaws.services.lambda.model UpdateEventSourceMappingRequest UpdateEventSourceMappingRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.lambda.model UpdateEventSourceMappingRequest UpdateEventSourceMappingRequest.

Prototype

UpdateEventSourceMappingRequest

Source Link

Usage

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;
}