Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.lambda;
  
  
Interface for accessing AWSLambda asynchronously. Each asynchronous method will return a Java Future object, and users are also allowed to provide a callback handler. AWS Lambda

S

Overview

This is the AWS Lambda API Reference . The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda , and for information about how the service works, go to AWS LambdaL How it Works in the AWS Lambda Developer Guide .

  
  public interface AWSLambdaAsync extends AWSLambda {
    

Deletes the specified Lambda function code and configuration.

When you delete a function the associated access policy is also deleted. You will need to delete the event source mappings explicitly.

This operation requires permission for the lambda:DeleteFunction action.

Parameters:
deleteFunctionRequest Container for the necessary parameters to execute the DeleteFunction operation on AWSLambda.
Returns:
A Java Future object containing the response from the DeleteFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
  
      public Future<VoiddeleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest
              throws AmazonServiceExceptionAmazonClientException;

    

Deletes the specified Lambda function code and configuration.

When you delete a function the associated access policy is also deleted. You will need to delete the event source mappings explicitly.

This operation requires permission for the lambda:DeleteFunction action.

Parameters:
deleteFunctionRequest Container for the necessary parameters to execute the DeleteFunction operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest,
             AsyncHandler<DeleteFunctionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Adds a permission to the access policy associated with the specified AWS Lambda function. In a "push event" model, the access policy attached to the Lambda function grants Amazon S3 or a user application permission for the Lambda lambda:Invoke action. For information about the push model, see AWS Lambda: How it Works . Each Lambda function has one access policy associated with it. You can use the AddPermission API to add a permission to the policy. You have one access policy but it can have multiple permission statements.

This operation requires permission for the lambda:AddPermission action.

Parameters:
addPermissionRequest Container for the necessary parameters to execute the AddPermission operation on AWSLambda.
Returns:
A Java Future object containing the response from the AddPermission service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<AddPermissionResultaddPermissionAsync(AddPermissionRequest addPermissionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Adds a permission to the access policy associated with the specified AWS Lambda function. In a "push event" model, the access policy attached to the Lambda function grants Amazon S3 or a user application permission for the Lambda lambda:Invoke action. For information about the push model, see AWS Lambda: How it Works . Each Lambda function has one access policy associated with it. You can use the AddPermission API to add a permission to the policy. You have one access policy but it can have multiple permission statements.

This operation requires permission for the lambda:AddPermission action.

Parameters:
addPermissionRequest Container for the necessary parameters to execute the AddPermission operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AddPermission service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<AddPermissionResultaddPermissionAsync(AddPermissionRequest addPermissionRequest,
             AsyncHandler<AddPermissionRequestAddPermissionResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

Parameters:
listFunctionsRequest Container for the necessary parameters to execute the ListFunctions operation on AWSLambda.
Returns:
A Java Future object containing the response from the ListFunctions service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListFunctionsResultlistFunctionsAsync(ListFunctionsRequest listFunctionsRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

Parameters:
listFunctionsRequest Container for the necessary parameters to execute the ListFunctions operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListFunctions service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListFunctionsResultlistFunctionsAsync(ListFunctionsRequest listFunctionsRequest,
             AsyncHandler<ListFunctionsRequestListFunctionsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

You can remove individual permissions from an access policy associated with a Lambda function by providing a Statement ID.

Note that removal of a permission will cause an active event source to lose permission to the function.

You need permission for the lambda:RemovePermission action.

Parameters:
removePermissionRequest Container for the necessary parameters to execute the RemovePermission operation on AWSLambda.
Returns:
A Java Future object containing the response from the RemovePermission service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidremovePermissionAsync(RemovePermissionRequest removePermissionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

You can remove individual permissions from an access policy associated with a Lambda function by providing a Statement ID.

Note that removal of a permission will cause an active event source to lose permission to the function.

You need permission for the lambda:RemovePermission action.

Parameters:
removePermissionRequest Container for the necessary parameters to execute the RemovePermission operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RemovePermission service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidremovePermissionAsync(RemovePermissionRequest removePermissionRequest,
             AsyncHandler<RemovePermissionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

This operation requires permission for the lambda:CreateFunction action.

Parameters:
createFunctionRequest Container for the necessary parameters to execute the CreateFunction operation on AWSLambda.
Returns:
A Java Future object containing the response from the CreateFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateFunctionResultcreateFunctionAsync(CreateFunctionRequest createFunctionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

This operation requires permission for the lambda:CreateFunction action.

Parameters:
createFunctionRequest Container for the necessary parameters to execute the CreateFunction operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateFunctionResultcreateFunctionAsync(CreateFunctionRequest createFunctionRequest,
             AsyncHandler<CreateFunctionRequestCreateFunctionResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

This operation requires permission for the lambda:UpdateEventSourceMapping action.

Parameters:
updateEventSourceMappingRequest Container for the necessary parameters to execute the UpdateEventSourceMapping operation on AWSLambda.
Returns:
A Java Future object containing the response from the UpdateEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

This operation requires permission for the lambda:UpdateEventSourceMapping action.

Parameters:
updateEventSourceMappingRequest Container for the necessary parameters to execute the UpdateEventSourceMapping operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

IMPORTANT:This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch logs console.

This operation requires permission for the lambda:InvokeFunction action.

Parameters:
invokeAsyncRequest Container for the necessary parameters to execute the InvokeAsync operation on AWSLambda.
Returns:
A Java Future object containing the response from the InvokeAsync service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     @Deprecated
     public Future<InvokeAsyncResultinvokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest
             throws AmazonServiceExceptionAmazonClientException;

    

IMPORTANT:This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch logs console.

This operation requires permission for the lambda:InvokeFunction action.

Parameters:
invokeAsyncRequest Container for the necessary parameters to execute the InvokeAsync operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the InvokeAsync service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<InvokeAsyncResultinvokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest,
             AsyncHandler<InvokeAsyncRequestInvokeAsyncResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

This operation requires permission for the lambda:UpdateFunctionConfiguration action.

Parameters:
updateFunctionConfigurationRequest Container for the necessary parameters to execute the UpdateFunctionConfiguration operation on AWSLambda.
Returns:
A Java Future object containing the response from the UpdateFunctionConfiguration service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

This operation requires permission for the lambda:UpdateFunctionConfiguration action.

Parameters:
updateFunctionConfigurationRequest Container for the necessary parameters to execute the UpdateFunctionConfiguration operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateFunctionConfiguration service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

Invokes a specified Lambda function.

This operation requires permission for the lambda:InvokeFunction action.

Parameters:
invokeRequest Container for the necessary parameters to execute the Invoke operation on AWSLambda.
Returns:
A Java Future object containing the response from the Invoke service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<InvokeResultinvokeAsync(InvokeRequest invokeRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Invokes a specified Lambda function.

This operation requires permission for the lambda:InvokeFunction action.

Parameters:
invokeRequest Container for the necessary parameters to execute the Invoke operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the Invoke service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<InvokeResultinvokeAsync(InvokeRequest invokeRequest,
             AsyncHandler<InvokeRequestInvokeResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Returns the access policy, containing a list of permissions granted via the AddPermission API, associated with the specified bucket.

You need permission for the lambda:GetPolicy action.

Parameters:
getPolicyRequest Container for the necessary parameters to execute the GetPolicy operation on AWSLambda.
Returns:
A Java Future object containing the response from the GetPolicy service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetPolicyResultgetPolicyAsync(GetPolicyRequest getPolicyRequest
             throws AmazonServiceExceptionAmazonClientException;

    

Returns the access policy, containing a list of permissions granted via the AddPermission API, associated with the specified bucket.

You need permission for the lambda:GetPolicy action.

Parameters:
getPolicyRequest Container for the necessary parameters to execute the GetPolicy operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetPolicy service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetPolicyResultgetPolicyAsync(GetPolicyRequest getPolicyRequest,
             AsyncHandler<GetPolicyRequestGetPolicyResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping), where you identify a stream as an event source. This list does not include Amazon S3 event sources.

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

This operation requires permission for the lambda:ListEventSourceMappings action.

Parameters:
listEventSourceMappingsRequest Container for the necessary parameters to execute the ListEventSourceMappings operation on AWSLambda.
Returns:
A Java Future object containing the response from the ListEventSourceMappings service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping), where you identify a stream as an event source. This list does not include Amazon S3 event sources.

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

This operation requires permission for the lambda:ListEventSourceMappings action.

Parameters:
listEventSourceMappingsRequest Container for the necessary parameters to execute the ListEventSourceMappings operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListEventSourceMappings service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping action.

Parameters:
getEventSourceMappingRequest Container for the necessary parameters to execute the GetEventSourceMapping operation on AWSLambda.
Returns:
A Java Future object containing the response from the GetEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping action.

Parameters:
getEventSourceMappingRequest Container for the necessary parameters to execute the GetEventSourceMapping operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

Parameters:
getFunctionConfigurationRequest Container for the necessary parameters to execute the GetFunctionConfiguration operation on AWSLambda.
Returns:
A Java Future object containing the response from the GetFunctionConfiguration service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

This operation requires permission for the lambda:GetFunctionConfiguration operation.

Parameters:
getFunctionConfigurationRequest Container for the necessary parameters to execute the GetFunctionConfiguration operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetFunctionConfiguration service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

This operation requires permission for the lambda:DeleteEventSourceMapping action.

Parameters:
deleteEventSourceMappingRequest Container for the necessary parameters to execute the DeleteEventSourceMapping operation on AWSLambda.
Returns:
A Java Future object containing the response from the DeleteEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException;

    

Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

This operation requires permission for the lambda:DeleteEventSourceMapping action.

Parameters:
deleteEventSourceMappingRequest Container for the necessary parameters to execute the DeleteEventSourceMapping operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

This is the pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide .

This association between an Amazon Kinesis stream and a Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which Lambda function to invoke) for the event source mapping in the request body.

Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

This operation requires permission for the lambda:CreateEventSourceMapping action.

Parameters:
createEventSourceMappingRequest Container for the necessary parameters to execute the CreateEventSourceMapping operation on AWSLambda.
Returns:
A Java Future object containing the response from the CreateEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Identifies a stream as an event source for a Lambda function. It can be either an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream.

This is the pull model, where AWS Lambda invokes the function. For more information, go to AWS Lambda: How it Works in the AWS Lambda Developer Guide .

This association between an Amazon Kinesis stream and a Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which Lambda function to invoke) for the event source mapping in the request body.

Each event source, such as an Amazon Kinesis or a DynamoDB stream, can be associated with multiple AWS Lambda function. A given Lambda function can be associated with multiple AWS event sources.

This operation requires permission for the lambda:CreateEventSourceMapping action.

Parameters:
createEventSourceMappingRequest Container for the necessary parameters to execute the CreateEventSourceMapping operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateEventSourceMapping service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
                    throws AmazonServiceExceptionAmazonClientException;

    

Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

This operation requires permission for the lambda:UpdateFunctionCode action.

Parameters:
updateFunctionCodeRequest Container for the necessary parameters to execute the UpdateFunctionCode operation on AWSLambda.
Returns:
A Java Future object containing the response from the UpdateFunctionCode service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException;

    

Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

This operation requires permission for the lambda:UpdateFunctionCode action.

Parameters:
updateFunctionCodeRequest Container for the necessary parameters to execute the UpdateFunctionCode operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdateFunctionCode service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
            AsyncHandler<UpdateFunctionCodeRequestUpdateFunctionCodeResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

This operation requires permission for the lambda:GetFunction action.

Parameters:
getFunctionRequest Container for the necessary parameters to execute the GetFunction operation on AWSLambda.
Returns:
A Java Future object containing the response from the GetFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
    public Future<GetFunctionResultgetFunctionAsync(GetFunctionRequest getFunctionRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

This operation requires permission for the lambda:GetFunction action.

Parameters:
getFunctionRequest Container for the necessary parameters to execute the GetFunction operation on AWSLambda.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetFunction service method, as returned by AWSLambda.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSLambda indicating either a problem with the data in the request, or a server side issue.
    public Future<GetFunctionResultgetFunctionAsync(GetFunctionRequest getFunctionRequest,
            AsyncHandler<GetFunctionRequestGetFunctionResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;
}
        
New to GrepCode? Check out our FAQ X