Example usage for com.amazonaws.services.lambda AWSLambda deleteEventSourceMapping

List of usage examples for com.amazonaws.services.lambda AWSLambda deleteEventSourceMapping

Introduction

In this page you can find the example usage for com.amazonaws.services.lambda AWSLambda deleteEventSourceMapping.

Prototype

DeleteEventSourceMappingResult deleteEventSourceMapping(
        DeleteEventSourceMappingRequest deleteEventSourceMappingRequest);

Source Link

Document

<p> Deletes an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html">event source mapping</a>.

Usage

From source file:com.netflix.spinnaker.clouddriver.lambda.deploy.ops.DeleteLambdaEventSourceAtomicOperation.java

License:Apache License

private DeleteEventSourceMappingResult deleteEventSourceMappingResult() {
    updateTaskStatus("Initializing Deleting of AWS Lambda Function Event Mapping Operation...");

    AWSLambda client = getLambdaClient();
    DeleteEventSourceMappingRequest request = new DeleteEventSourceMappingRequest()
            .withUUID(description.getUuid());

    DeleteEventSourceMappingResult result = client.deleteEventSourceMapping(request);
    updateTaskStatus("Finished Deleting of AWS Lambda Function Event Mapping Operation...");

    return result;
}