public class AWSLambdaAsyncClient extends AWSLambdaClient implements AWSLambdaAsync
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.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSLambdaAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AWSLambda.
|
AWSLambdaAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials.
|
AWSLambdaAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials,
executor service, and client configuration options.
|
AWSLambdaAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials
and executor service.
|
AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials provider.
|
AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials
provider and client configuration options.
|
AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSLambda using the specified AWS account credentials provider
and executor service.
|
AWSLambdaAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AWSLambda.
|
Modifier and Type | Method and Description |
---|---|
Future<AddEventSourceResult> |
addEventSourceAsync(AddEventSourceRequest addEventSourceRequest)
Identifies an Amazon Kinesis stream as the event source for an AWS
Lambda function.
|
Future<AddEventSourceResult> |
addEventSourceAsync(AddEventSourceRequest addEventSourceRequest,
AsyncHandler<AddEventSourceRequest,AddEventSourceResult> asyncHandler)
Identifies an Amazon Kinesis stream as the event source for an AWS
Lambda function.
|
Future<Void> |
deleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest)
Deletes the specified Lambda function code and configuration.
|
Future<Void> |
deleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest,
AsyncHandler<DeleteFunctionRequest,Void> asyncHandler)
Deletes the specified Lambda function code and configuration.
|
Future<GetEventSourceResult> |
getEventSourceAsync(GetEventSourceRequest getEventSourceRequest)
Returns configuration information for the specified event source
mapping (see AddEventSource).
|
Future<GetEventSourceResult> |
getEventSourceAsync(GetEventSourceRequest getEventSourceRequest,
AsyncHandler<GetEventSourceRequest,GetEventSourceResult> asyncHandler)
Returns configuration information for the specified event source
mapping (see AddEventSource).
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<GetFunctionResult> |
getFunctionAsync(GetFunctionRequest getFunctionRequest)
Returns the configuration information of the Lambda function and a
presigned URL link to the .zip file you uploaded with UploadFunction
so you can download the .zip file.
|
Future<GetFunctionResult> |
getFunctionAsync(GetFunctionRequest getFunctionRequest,
AsyncHandler<GetFunctionRequest,GetFunctionResult> asyncHandler)
Returns the configuration information of the Lambda function and a
presigned URL link to the .zip file you uploaded with UploadFunction
so you can download the .zip file.
|
Future<GetFunctionConfigurationResult> |
getFunctionConfigurationAsync(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
Returns the configuration information of the Lambda function.
|
Future<GetFunctionConfigurationResult> |
getFunctionConfigurationAsync(GetFunctionConfigurationRequest getFunctionConfigurationRequest,
AsyncHandler<GetFunctionConfigurationRequest,GetFunctionConfigurationResult> asyncHandler)
Returns the configuration information of the Lambda function.
|
Future<InvokeAsyncResult> |
invokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest)
Submits an invocation request to AWS Lambda.
|
Future<InvokeAsyncResult> |
invokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest,
AsyncHandler<InvokeAsyncRequest,InvokeAsyncResult> asyncHandler)
Submits an invocation request to AWS Lambda.
|
Future<ListEventSourcesResult> |
listEventSourcesAsync(ListEventSourcesRequest listEventSourcesRequest)
Returns a list of event source mappings.
|
Future<ListEventSourcesResult> |
listEventSourcesAsync(ListEventSourcesRequest listEventSourcesRequest,
AsyncHandler<ListEventSourcesRequest,ListEventSourcesResult> asyncHandler)
Returns a list of event source mappings.
|
Future<ListFunctionsResult> |
listFunctionsAsync(ListFunctionsRequest listFunctionsRequest)
Returns a list of your Lambda functions.
|
Future<ListFunctionsResult> |
listFunctionsAsync(ListFunctionsRequest listFunctionsRequest,
AsyncHandler<ListFunctionsRequest,ListFunctionsResult> asyncHandler)
Returns a list of your Lambda functions.
|
Future<Void> |
removeEventSourceAsync(RemoveEventSourceRequest removeEventSourceRequest)
Removes an event source mapping.
|
Future<Void> |
removeEventSourceAsync(RemoveEventSourceRequest removeEventSourceRequest,
AsyncHandler<RemoveEventSourceRequest,Void> asyncHandler)
Removes an event source mapping.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<UpdateFunctionConfigurationResult> |
updateFunctionConfigurationAsync(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest)
Updates the configuration parameters for the specified Lambda
function by using the values provided in the request.
|
Future<UpdateFunctionConfigurationResult> |
updateFunctionConfigurationAsync(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest,
AsyncHandler<UpdateFunctionConfigurationRequest,UpdateFunctionConfigurationResult> asyncHandler)
Updates the configuration parameters for the specified Lambda
function by using the values provided in the request.
|
Future<UploadFunctionResult> |
uploadFunctionAsync(UploadFunctionRequest uploadFunctionRequest)
Creates a new Lambda function or updates an existing function.
|
Future<UploadFunctionResult> |
uploadFunctionAsync(UploadFunctionRequest uploadFunctionRequest,
AsyncHandler<UploadFunctionRequest,UploadFunctionResult> asyncHandler)
Creates a new Lambda function or updates an existing function.
|
addEventSource, deleteFunction, getCachedResponseMetadata, getEventSource, getFunction, getFunctionConfiguration, invokeAsync, listEventSources, listEventSources, listFunctions, listFunctions, removeEventSource, setEndpoint, setEndpoint, updateFunctionConfiguration, uploadFunction
addRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventSource, deleteFunction, getCachedResponseMetadata, getEventSource, getFunction, getFunctionConfiguration, invokeAsync, listEventSources, listEventSources, listFunctions, listFunctions, removeEventSource, setEndpoint, setRegion, updateFunctionConfiguration, uploadFunction
public AWSLambdaAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AWSLambdaAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AWSLambda
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AWSLambdaAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AWSLambdaAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AWSLambdaAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).public AWSLambdaAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AWSLambda
shutdown
in class AmazonWebServiceClient
public Future<GetEventSourceResult> getEventSourceAsync(GetEventSourceRequest getEventSourceRequest) throws AmazonServiceException, AmazonClientException
Returns configuration information for the specified event source mapping (see AddEventSource).
This operation requires permission for the
lambda:GetEventSource
action.
getEventSourceAsync
in interface AWSLambdaAsync
getEventSourceRequest
- Container for the necessary parameters to
execute the GetEventSource operation on AWSLambda.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.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<GetEventSourceResult> getEventSourceAsync(GetEventSourceRequest getEventSourceRequest, AsyncHandler<GetEventSourceRequest,GetEventSourceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns configuration information for the specified event source mapping (see AddEventSource).
This operation requires permission for the
lambda:GetEventSource
action.
getEventSourceAsync
in interface AWSLambdaAsync
getEventSourceRequest
- Container for the necessary parameters to
execute the GetEventSource 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.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.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<Void> deleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified Lambda function code and configuration.
This operation requires permission for the
lambda:DeleteFunction
action.
deleteFunctionAsync
in interface AWSLambdaAsync
deleteFunctionRequest
- Container for the necessary parameters to
execute the DeleteFunction operation on AWSLambda.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.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<Void> deleteFunctionAsync(DeleteFunctionRequest deleteFunctionRequest, AsyncHandler<DeleteFunctionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified Lambda function code and configuration.
This operation requires permission for the
lambda:DeleteFunction
action.
deleteFunctionAsync
in interface AWSLambdaAsync
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.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.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<ListFunctionsResult> listFunctionsAsync(ListFunctionsRequest listFunctionsRequest) throws AmazonServiceException, AmazonClientException
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.
listFunctionsAsync
in interface AWSLambdaAsync
listFunctionsRequest
- Container for the necessary parameters to
execute the ListFunctions operation on AWSLambda.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.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<ListFunctionsResult> listFunctionsAsync(ListFunctionsRequest listFunctionsRequest, AsyncHandler<ListFunctionsRequest,ListFunctionsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
listFunctionsAsync
in interface AWSLambdaAsync
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.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.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<AddEventSourceResult> addEventSourceAsync(AddEventSourceRequest addEventSourceRequest) throws AmazonServiceException, AmazonClientException
Identifies an Amazon Kinesis stream as the event source for an AWS Lambda function. 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 LambdaL How it Works in the AWS Lambda Developer Guide.
This association between an Amazon Kinesis stream and an AWS Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which AWS Lambda function to invoke) for the event source mapping in the request body.
This operation requires permission for the iam:PassRole
action for the IAM role. It also requires permission for the
lambda:AddEventSource
action.
addEventSourceAsync
in interface AWSLambdaAsync
addEventSourceRequest
- Container for the necessary parameters to
execute the AddEventSource operation on AWSLambda.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.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<AddEventSourceResult> addEventSourceAsync(AddEventSourceRequest addEventSourceRequest, AsyncHandler<AddEventSourceRequest,AddEventSourceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Identifies an Amazon Kinesis stream as the event source for an AWS Lambda function. 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 LambdaL How it Works in the AWS Lambda Developer Guide.
This association between an Amazon Kinesis stream and an AWS Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which AWS Lambda function to invoke) for the event source mapping in the request body.
This operation requires permission for the iam:PassRole
action for the IAM role. It also requires permission for the
lambda:AddEventSource
action.
addEventSourceAsync
in interface AWSLambdaAsync
addEventSourceRequest
- Container for the necessary parameters to
execute the AddEventSource 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.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.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<UploadFunctionResult> uploadFunctionAsync(UploadFunctionRequest uploadFunctionRequest) throws AmazonServiceException, AmazonClientException
Creates a new Lambda function or updates an existing 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 existing Lambda function is updated with the new code and metadata.
This operation requires permission for the
lambda:UploadFunction
action.
uploadFunctionAsync
in interface AWSLambdaAsync
uploadFunctionRequest
- Container for the necessary parameters to
execute the UploadFunction operation on AWSLambda.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.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<UploadFunctionResult> uploadFunctionAsync(UploadFunctionRequest uploadFunctionRequest, AsyncHandler<UploadFunctionRequest,UploadFunctionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new Lambda function or updates an existing 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 existing Lambda function is updated with the new code and metadata.
This operation requires permission for the
lambda:UploadFunction
action.
uploadFunctionAsync
in interface AWSLambdaAsync
uploadFunctionRequest
- Container for the necessary parameters to
execute the UploadFunction 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.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.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<GetFunctionConfigurationResult> getFunctionConfigurationAsync(GetFunctionConfigurationRequest getFunctionConfigurationRequest) throws AmazonServiceException, AmazonClientException
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using UploadFunction.
This operation requires permission for the
lambda:GetFunctionConfiguration
operation.
getFunctionConfigurationAsync
in interface AWSLambdaAsync
getFunctionConfigurationRequest
- Container for the necessary
parameters to execute the GetFunctionConfiguration operation on
AWSLambda.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.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<GetFunctionConfigurationResult> getFunctionConfigurationAsync(GetFunctionConfigurationRequest getFunctionConfigurationRequest, AsyncHandler<GetFunctionConfigurationRequest,GetFunctionConfigurationResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using UploadFunction.
This operation requires permission for the
lambda:GetFunctionConfiguration
operation.
getFunctionConfigurationAsync
in interface AWSLambdaAsync
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.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.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<InvokeAsyncResult> invokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest) throws AmazonServiceException, AmazonClientException
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:InvokeAsync
action.
invokeAsyncAsync
in interface AWSLambdaAsync
invokeAsyncRequest
- Container for the necessary parameters to
execute the InvokeAsync operation on AWSLambda.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.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<InvokeAsyncResult> invokeAsyncAsync(InvokeAsyncRequest invokeAsyncRequest, AsyncHandler<InvokeAsyncRequest,InvokeAsyncResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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:InvokeAsync
action.
invokeAsyncAsync
in interface AWSLambdaAsync
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.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.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<ListEventSourcesResult> listEventSourcesAsync(ListEventSourcesRequest listEventSourcesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of event source mappings. For each mapping, the API returns configuration information (see AddEventSource). You can optionally specify filters to retrieve specific event source mappings.
This operation requires permission for the
lambda:ListEventSources
action.
listEventSourcesAsync
in interface AWSLambdaAsync
listEventSourcesRequest
- Container for the necessary parameters
to execute the ListEventSources operation on AWSLambda.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.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<ListEventSourcesResult> listEventSourcesAsync(ListEventSourcesRequest listEventSourcesRequest, AsyncHandler<ListEventSourcesRequest,ListEventSourcesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of event source mappings. For each mapping, the API returns configuration information (see AddEventSource). You can optionally specify filters to retrieve specific event source mappings.
This operation requires permission for the
lambda:ListEventSources
action.
listEventSourcesAsync
in interface AWSLambdaAsync
listEventSourcesRequest
- Container for the necessary parameters
to execute the ListEventSources 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.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.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<GetFunctionResult> getFunctionAsync(GetFunctionRequest getFunctionRequest) throws AmazonServiceException, AmazonClientException
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with UploadFunction 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.
getFunctionAsync
in interface AWSLambdaAsync
getFunctionRequest
- Container for the necessary parameters to
execute the GetFunction operation on AWSLambda.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.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<GetFunctionResult> getFunctionAsync(GetFunctionRequest getFunctionRequest, AsyncHandler<GetFunctionRequest,GetFunctionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with UploadFunction 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.
getFunctionAsync
in interface AWSLambdaAsync
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.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.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<UpdateFunctionConfigurationResult> updateFunctionConfigurationAsync(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) throws AmazonServiceException, AmazonClientException
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.
updateFunctionConfigurationAsync
in interface AWSLambdaAsync
updateFunctionConfigurationRequest
- Container for the necessary
parameters to execute the UpdateFunctionConfiguration operation on
AWSLambda.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.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<UpdateFunctionConfigurationResult> updateFunctionConfigurationAsync(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest, AsyncHandler<UpdateFunctionConfigurationRequest,UpdateFunctionConfigurationResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
updateFunctionConfigurationAsync
in interface AWSLambdaAsync
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.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.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<Void> removeEventSourceAsync(RemoveEventSourceRequest removeEventSourceRequest) throws AmazonServiceException, AmazonClientException
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:RemoveEventSource
action.
removeEventSourceAsync
in interface AWSLambdaAsync
removeEventSourceRequest
- Container for the necessary parameters
to execute the RemoveEventSource operation on AWSLambda.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.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<Void> removeEventSourceAsync(RemoveEventSourceRequest removeEventSourceRequest, AsyncHandler<RemoveEventSourceRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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:RemoveEventSource
action.
removeEventSourceAsync
in interface AWSLambdaAsync
removeEventSourceRequest
- Container for the necessary parameters
to execute the RemoveEventSource 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.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.AmazonServiceException
- If an error response is returned by AWSLambda indicating
either a problem with the data in the request, or a server side issue.Copyright © 2015. All rights reserved.