@Generated(value="software.amazon.awssdk:codegen") public interface LambdaClient extends SdkClient, SdkAutoCloseable
builder() method.
Overview
This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, see What is AWS Lambda, and for information about how the service works, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AddPermissionResponse |
addPermission(AddPermissionRequest addPermissionRequest)
Adds a permission to the resource policy associated with the specified AWS Lambda function.
|
default AddPermissionResponse |
addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest)
Adds a permission to the resource policy associated with the specified AWS Lambda function.
|
static LambdaClientBuilder |
builder()
Create a builder that can be used to configure and create a
LambdaClient. |
static LambdaClient |
create()
Create a
LambdaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateAliasResponse |
createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)
Creates an alias that points to the specified Lambda function version.
|
default CreateAliasResponse |
createAlias(CreateAliasRequest createAliasRequest)
Creates an alias that points to the specified Lambda function version.
|
default CreateEventSourceMappingResponse |
createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest)
Identifies a stream as an event source for a Lambda function.
|
default CreateEventSourceMappingResponse |
createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest)
Identifies a stream as an event source for a Lambda function.
|
default CreateFunctionResponse |
createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest)
Creates a new Lambda function.
|
default CreateFunctionResponse |
createFunction(CreateFunctionRequest createFunctionRequest)
Creates a new Lambda function.
|
default DeleteAliasResponse |
deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)
Deletes the specified Lambda function alias.
|
default DeleteAliasResponse |
deleteAlias(DeleteAliasRequest deleteAliasRequest)
Deletes the specified Lambda function alias.
|
default DeleteEventSourceMappingResponse |
deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest)
Removes an event source mapping.
|
default DeleteEventSourceMappingResponse |
deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest)
Removes an event source mapping.
|
default DeleteFunctionResponse |
deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest)
Deletes the specified Lambda function code and configuration.
|
default DeleteFunctionResponse |
deleteFunction(DeleteFunctionRequest deleteFunctionRequest)
Deletes the specified Lambda function code and configuration.
|
default DeleteFunctionConcurrencyResponse |
deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function.
|
default DeleteFunctionConcurrencyResponse |
deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function.
|
default GetAccountSettingsResponse |
getAccountSettings()
Returns a customer's account settings.
|
default GetAccountSettingsResponse |
getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest)
Returns a customer's account settings.
|
default GetAccountSettingsResponse |
getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest)
Returns a customer's account settings.
|
default GetAliasResponse |
getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest)
Returns the specified alias information such as the alias ARN, description, and function version it is pointing
to.
|
default GetAliasResponse |
getAlias(GetAliasRequest getAliasRequest)
Returns the specified alias information such as the alias ARN, description, and function version it is pointing
to.
|
default GetEventSourceMappingResponse |
getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest)
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
|
default GetEventSourceMappingResponse |
getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest)
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
|
default GetFunctionResponse |
getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest)
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.
|
default GetFunctionResponse |
getFunction(GetFunctionRequest getFunctionRequest)
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.
|
default GetFunctionConfigurationResponse |
getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
Returns the configuration information of the Lambda function.
|
default GetFunctionConfigurationResponse |
getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
Returns the configuration information of the Lambda function.
|
default GetPolicyResponse |
getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
|
default GetPolicyResponse |
getPolicy(GetPolicyRequest getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
|
default InvokeResponse |
invoke(Consumer<InvokeRequest.Builder> invokeRequest)
Invokes a specific Lambda function.
|
default InvokeResponse |
invoke(InvokeRequest invokeRequest)
Invokes a specific Lambda function.
|
default InvokeAsyncResponse |
invokeAsync(Consumer<InvokeAsyncRequest.Builder> invokeAsyncRequest,
Path filePath)
|
default InvokeAsyncResponse |
invokeAsync(Consumer<InvokeAsyncRequest.Builder> invokeAsyncRequest,
RequestBody requestBody)
|
default InvokeAsyncResponse |
invokeAsync(InvokeAsyncRequest invokeAsyncRequest,
Path filePath)
|
default InvokeAsyncResponse |
invokeAsync(InvokeAsyncRequest invokeAsyncRequest,
RequestBody requestBody)
|
default ListAliasesResponse |
listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
Returns list of aliases created for a Lambda function.
|
default ListAliasesResponse |
listAliases(ListAliasesRequest listAliasesRequest)
Returns list of aliases created for a Lambda function.
|
default ListEventSourceMappingsResponse |
listEventSourceMappings()
Returns a list of event source mappings you created using the
CreateEventSourceMapping (see
CreateEventSourceMapping). |
default ListEventSourceMappingsResponse |
listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Returns a list of event source mappings you created using the
CreateEventSourceMapping (see
CreateEventSourceMapping). |
default ListEventSourceMappingsResponse |
listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Returns a list of event source mappings you created using the
CreateEventSourceMapping (see
CreateEventSourceMapping). |
default ListEventSourceMappingsIterable |
listEventSourceMappingsPaginator()
Returns a list of event source mappings you created using the
CreateEventSourceMapping (see
CreateEventSourceMapping). |
default ListEventSourceMappingsIterable |
listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Returns a list of event source mappings you created using the
CreateEventSourceMapping (see
CreateEventSourceMapping). |
default ListFunctionsResponse |
listFunctions()
Returns a list of your Lambda functions.
|
default ListFunctionsResponse |
listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
Returns a list of your Lambda functions.
|
default ListFunctionsResponse |
listFunctions(ListFunctionsRequest listFunctionsRequest)
Returns a list of your Lambda functions.
|
default ListFunctionsIterable |
listFunctionsPaginator()
Returns a list of your Lambda functions.
|
default ListFunctionsIterable |
listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest)
Returns a list of your Lambda functions.
|
default ListTagsResponse |
listTags(Consumer<ListTagsRequest.Builder> listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
|
default ListTagsResponse |
listTags(ListTagsRequest listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
|
default ListVersionsByFunctionResponse |
listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest)
List all versions of a function.
|
default ListVersionsByFunctionResponse |
listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest)
List all versions of a function.
|
default PublishVersionResponse |
publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest)
Publishes a version of your function from the current snapshot of $LATEST.
|
default PublishVersionResponse |
publishVersion(PublishVersionRequest publishVersionRequest)
Publishes a version of your function from the current snapshot of $LATEST.
|
default PutFunctionConcurrencyResponse |
putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest)
Sets a limit on the number of concurrent executions available to this function.
|
default PutFunctionConcurrencyResponse |
putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest)
Sets a limit on the number of concurrent executions available to this function.
|
default RemovePermissionResponse |
removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest)
You can remove individual permissions from an resource policy associated with a Lambda function by providing a
statement ID that you provided when you added the permission.
|
default RemovePermissionResponse |
removePermission(RemovePermissionRequest removePermissionRequest)
You can remove individual permissions from an resource policy associated with a Lambda function by providing a
statement ID that you provided when you added the permission.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Creates a list of tags (key-value pairs) on the Lambda function.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Creates a list of tags (key-value pairs) on the Lambda function.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a Lambda function.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a Lambda function.
|
default UpdateAliasResponse |
updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest)
Using this API you can update the function version to which the alias points and the alias description.
|
default UpdateAliasResponse |
updateAlias(UpdateAliasRequest updateAliasRequest)
Using this API you can update the function version to which the alias points and the alias description.
|
default UpdateEventSourceMappingResponse |
updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest)
You can update an event source mapping.
|
default UpdateEventSourceMappingResponse |
updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest)
You can update an event source mapping.
|
default UpdateFunctionCodeResponse |
updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest)
Updates the code for the specified Lambda function.
|
default UpdateFunctionCodeResponse |
updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest)
Updates the code for the specified Lambda function.
|
default UpdateFunctionConfigurationResponse |
updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest)
Updates the configuration parameters for the specified Lambda function by using the values provided in the
request.
|
default UpdateFunctionConfigurationResponse |
updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest)
Updates the configuration parameters for the specified Lambda function by using the values provided in the
request.
|
serviceNameclosestatic final String SERVICE_NAME
static LambdaClient create()
LambdaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static LambdaClientBuilder builder()
LambdaClient.default AddPermissionResponse addPermission(AddPermissionRequest addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.
For information about the push model, see AWS Lambda: How it Works.
If you are using versioning, the permissions you add are specific to the Lambda function version or alias you
specify in the AddPermission request via the Qualifier parameter. For more information
about versioning, see AWS Lambda
Function Versioning and Aliases.
This operation requires permission for the lambda:AddPermission action.
addPermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.PolicyLengthExceededException - Lambda function access policy is limited to 20 KB.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddPermissionResponse addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.
For information about the push model, see AWS Lambda: How it Works.
If you are using versioning, the permissions you add are specific to the Lambda function version or alias you
specify in the AddPermission request via the Qualifier parameter. For more information
about versioning, see AWS Lambda
Function Versioning and Aliases.
This operation requires permission for the lambda:AddPermission action.
This is a convenience which creates an instance of the AddPermissionRequest.Builder avoiding the need to
create one manually via AddPermissionRequest.builder()
addPermissionRequest - A Consumer that will call methods on AddPermissionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.PolicyLengthExceededException - Lambda function access policy is limited to 20 KB.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateAliasResponse createAlias(CreateAliasRequest createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases.
Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.
createAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateAliasResponse createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases.
Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.
This is a convenience which creates an instance of the CreateAliasRequest.Builder avoiding the need to
create one manually via CreateAliasRequest.builder()
createAliasRequest - A Consumer that will call methods on CreateAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEventSourceMappingResponse createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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 association between a stream source and a Lambda function is called the event source mapping.
This event source mapping is relevant only in the AWS Lambda pull model, where AWS Lambda invokes the function. For more information, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.
You provide mapping information (for example, which stream to read from and which Lambda function to invoke) 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.
If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:CreateEventSourceMapping action.
createEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceConflictException - The resource already exists.TooManyRequestsExceptionResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEventSourceMappingResponse createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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 association between a stream source and a Lambda function is called the event source mapping.
This event source mapping is relevant only in the AWS Lambda pull model, where AWS Lambda invokes the function. For more information, see AWS Lambda: How it Works in the AWS Lambda Developer Guide.
You provide mapping information (for example, which stream to read from and which Lambda function to invoke) 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.
If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:CreateEventSourceMapping action.
This is a convenience which creates an instance of the CreateEventSourceMappingRequest.Builder avoiding
the need to create one manually via CreateEventSourceMappingRequest.builder()
createEventSourceMappingRequest - A Consumer that will call methods on CreateEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceConflictException - The resource already exists.TooManyRequestsExceptionResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFunctionResponse createFunction(CreateFunctionRequest createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using versioning, you can also publish a version of the Lambda function you are creating using the
Publish parameter. For more information about versioning, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:CreateFunction action.
createFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateFunctionResponse createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using versioning, you can also publish a version of the Lambda function you are creating using the
Publish parameter. For more information about versioning, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:CreateFunction action.
This is a convenience which creates an instance of the CreateFunctionRequest.Builder avoiding the need to
create one manually via CreateFunctionRequest.builder()
createFunctionRequest - A Consumer that will call methods on CreateFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.ResourceConflictException - The resource already exists.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:DeleteAlias action.
deleteAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteAliasResponse deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:DeleteAlias action.
This is a convenience which creates an instance of the DeleteAliasRequest.Builder avoiding the need to
create one manually via DeleteAliasRequest.builder()
deleteAliasRequest - A Consumer that will call methods on DeleteAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEventSourceMappingResponse deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
deleteEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEventSourceMappingResponse deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the DeleteEventSourceMappingRequest.Builder avoiding
the need to create one manually via DeleteEventSourceMappingRequest.builder()
deleteEventSourceMappingRequest - A Consumer that will call methods on DeleteEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionResponse deleteFunction(DeleteFunctionRequest deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the specified Lambda function code and configuration.
If you are using the versioning feature and you don't specify a function version in your
DeleteFunction request, AWS Lambda will delete the function, including all its versions, and any
aliases pointing to the function versions. To delete a specific function version, you must provide the function
version via the Qualifier parameter. For information about function versioning, see AWS Lambda Function Versioning and
Aliases.
When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.
This operation requires permission for the lambda:DeleteFunction action.
deleteFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceConflictException - The resource already exists.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionResponse deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the specified Lambda function code and configuration.
If you are using the versioning feature and you don't specify a function version in your
DeleteFunction request, AWS Lambda will delete the function, including all its versions, and any
aliases pointing to the function versions. To delete a specific function version, you must provide the function
version via the Qualifier parameter. For information about function versioning, see AWS Lambda Function Versioning and
Aliases.
When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.
This operation requires permission for the lambda:DeleteFunction action.
This is a convenience which creates an instance of the DeleteFunctionRequest.Builder avoiding the need to
create one manually via DeleteFunctionRequest.builder()
deleteFunctionRequest - A Consumer that will call methods on DeleteFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceConflictException - The resource already exists.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Removes concurrent execution limits from this function. For more information, see concurrent-executions.
deleteFunctionConcurrencyRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Removes concurrent execution limits from this function. For more information, see concurrent-executions.
This is a convenience which creates an instance of the DeleteFunctionConcurrencyRequest.Builder avoiding
the need to create one manually via DeleteFunctionConcurrencyRequest.builder()
deleteFunctionConcurrencyRequest - A Consumer that will call methods on DeleteFunctionConcurrencyRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountSettingsResponse getAccountSettings() throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns a customer's account settings.
You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see AWS Lambda Limits. You can also retrieve resource usage statistics, such as code storage usage and function count.
TooManyRequestsExceptionServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiongetAccountSettings(GetAccountSettingsRequest),
AWS API
Documentationdefault GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns a customer's account settings.
You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see AWS Lambda Limits. You can also retrieve resource usage statistics, such as code storage usage and function count.
getAccountSettingsRequest - TooManyRequestsExceptionServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns a customer's account settings.
You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see AWS Lambda Limits. You can also retrieve resource usage statistics, such as code storage usage and function count.
This is a convenience which creates an instance of the GetAccountSettingsRequest.Builder avoiding the
need to create one manually via GetAccountSettingsRequest.builder()
getAccountSettingsRequest - A Consumer that will call methods on GetAccountSettingsRequest.Builder to create a
request.TooManyRequestsExceptionServiceException - The AWS Lambda service encountered an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAliasResponse getAlias(GetAliasRequest getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:GetAlias action.
getAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAliasResponse getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:GetAlias action.
This is a convenience which creates an instance of the GetAliasRequest.Builder avoiding the need to
create one manually via GetAliasRequest.builder()
getAliasRequest - A Consumer that will call methods on GetAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEventSourceMappingResponse getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
This operation requires permission for the lambda:GetEventSourceMapping action.
getEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEventSourceMappingResponse getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
This operation requires permission for the lambda:GetEventSourceMapping action.
This is a convenience which creates an instance of the GetEventSourceMappingRequest.Builder avoiding the
need to create one manually via GetEventSourceMappingRequest.builder()
getEventSourceMappingRequest - A Consumer that will call methods on GetEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionResponse getFunction(GetFunctionRequest getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
Using the optional Qualifier parameter, you can specify a specific function version for which you
want this information. If you don't specify this parameter, the API uses unqualified function ARN which return
information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:GetFunction action.
getFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionResponse getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
Using the optional Qualifier parameter, you can specify a specific function version for which you
want this information. If you don't specify this parameter, the API uses unqualified function ARN which return
information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:GetFunction action.
This is a convenience which creates an instance of the GetFunctionRequest.Builder avoiding the need to
create one manually via GetFunctionRequest.builder()
getFunctionRequest - A Consumer that will call methods on GetFunctionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConfigurationResponse getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.
If you are using the versioning feature, you can retrieve this information for a specific function version by
using the optional Qualifier parameter and specifying the function version or alias that points to
it. If you don't provide it, the API returns information about the $LATEST version of the function. For more
information about versioning, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:GetFunctionConfiguration operation.
getFunctionConfigurationRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetFunctionConfigurationResponse getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.
If you are using the versioning feature, you can retrieve this information for a specific function version by
using the optional Qualifier parameter and specifying the function version or alias that points to
it. If you don't provide it, the API returns information about the $LATEST version of the function. For more
information about versioning, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:GetFunctionConfiguration operation.
This is a convenience which creates an instance of the GetFunctionConfigurationRequest.Builder avoiding
the need to create one manually via GetFunctionConfigurationRequest.builder()
getFunctionConfigurationRequest - A Consumer that will call methods on GetFunctionConfigurationRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource policy associated with the specified Lambda function.
If you are using the versioning feature, you can get the resource policy associated with the specific Lambda
function version or alias by specifying the version or alias name using the Qualifier parameter. For
more information about versioning, see AWS Lambda Function Versioning and
Aliases.
You need permission for the lambda:GetPolicy action.
getPolicyRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetPolicyResponse getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource policy associated with the specified Lambda function.
If you are using the versioning feature, you can get the resource policy associated with the specific Lambda
function version or alias by specifying the version or alias name using the Qualifier parameter. For
more information about versioning, see AWS Lambda Function Versioning and
Aliases.
You need permission for the lambda:GetPolicy action.
This is a convenience which creates an instance of the GetPolicyRequest.Builder avoiding the need to
create one manually via GetPolicyRequest.builder()
getPolicyRequest - A Consumer that will call methods on GetPolicyRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeResponse invoke(InvokeRequest invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, EC2UnexpectedException, SubnetIPAddressLimitReachedException, ENILimitReachedException, EC2ThrottledException, EC2AccessDeniedException, InvalidSubnetIDException, InvalidSecurityGroupIDException, InvalidZipFileException, KMSDisabledException, KMSInvalidStateException, KMSAccessDeniedException, KMSNotFoundException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
Invokes a specific Lambda function. For an example, see Create the Lambda Function and Test It Manually.
If you are using the versioning feature, you can invoke the specific function version by providing function
version or alias name that is pointing to the function version using the Qualifier parameter in the
request. If you don't provide the Qualifier parameter, the $LATEST version of the
Lambda function is invoked. Invocations occur at least once in response to an event and functions must be
idempotent to handle this. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:InvokeFunction action.
The TooManyRequestsException noted below will return the following:
ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved
concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds
the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will
be returned when a function with reserved concurrency exceeds its configured concurrency limit.
invokeRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.RequestTooLargeException - The request payload exceeded the Invoke request body JSON input limit. For more information,
see Limits.UnsupportedMediaTypeException - The content type of the Invoke request body is not JSON.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.EC2UnexpectedException - AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.SubnetIPAddressLimitReachedException - AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured
subnets has no available IP addresses.ENILimitReachedException - AWS Lambda was not able to create an Elastic Network Interface (ENI) in the VPC, specified as part of
Lambda function configuration, because the limit for network interfaces has been reached.EC2ThrottledException - AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role
provided for the Lambda function.EC2AccessDeniedExceptionInvalidSubnetIDException - The Subnet ID provided in the Lambda function VPC configuration is invalid.InvalidSecurityGroupIDException - The Security Group ID provided in the Lambda function VPC configuration is invalid.InvalidZipFileException - AWS Lambda could not unzip the function zip file.KMSDisabledException - Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the
Lambda function's KMS key settings.KMSInvalidStateException - Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state
for Decrypt. Check the function's KMS key settings.KMSAccessDeniedException - Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda
function's KMS permissions.KMSNotFoundException - Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the
function's KMS key settings.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeResponse invoke(Consumer<InvokeRequest.Builder> invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, EC2UnexpectedException, SubnetIPAddressLimitReachedException, ENILimitReachedException, EC2ThrottledException, EC2AccessDeniedException, InvalidSubnetIDException, InvalidSecurityGroupIDException, InvalidZipFileException, KMSDisabledException, KMSInvalidStateException, KMSAccessDeniedException, KMSNotFoundException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
Invokes a specific Lambda function. For an example, see Create the Lambda Function and Test It Manually.
If you are using the versioning feature, you can invoke the specific function version by providing function
version or alias name that is pointing to the function version using the Qualifier parameter in the
request. If you don't provide the Qualifier parameter, the $LATEST version of the
Lambda function is invoked. Invocations occur at least once in response to an event and functions must be
idempotent to handle this. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:InvokeFunction action.
The TooManyRequestsException noted below will return the following:
ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved
concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds
the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will
be returned when a function with reserved concurrency exceeds its configured concurrency limit.
This is a convenience which creates an instance of the InvokeRequest.Builder avoiding the need to create
one manually via InvokeRequest.builder()
invokeRequest - A Consumer that will call methods on InvocationRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.RequestTooLargeException - The request payload exceeded the Invoke request body JSON input limit. For more information,
see Limits.UnsupportedMediaTypeException - The content type of the Invoke request body is not JSON.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.EC2UnexpectedException - AWS Lambda received an unexpected EC2 client exception while setting up for the Lambda function.SubnetIPAddressLimitReachedException - AWS Lambda was not able to set up VPC access for the Lambda function because one or more configured
subnets has no available IP addresses.ENILimitReachedException - AWS Lambda was not able to create an Elastic Network Interface (ENI) in the VPC, specified as part of
Lambda function configuration, because the limit for network interfaces has been reached.EC2ThrottledException - AWS Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role
provided for the Lambda function.EC2AccessDeniedExceptionInvalidSubnetIDException - The Subnet ID provided in the Lambda function VPC configuration is invalid.InvalidSecurityGroupIDException - The Security Group ID provided in the Lambda function VPC configuration is invalid.InvalidZipFileException - AWS Lambda could not unzip the function zip file.KMSDisabledException - Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the
Lambda function's KMS key settings.KMSInvalidStateException - Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state
for Decrypt. Check the function's KMS key settings.KMSAccessDeniedException - Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda
function's KMS permissions.KMSNotFoundException - Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the
function's KMS key settings.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeAsyncResponse invokeAsync(InvokeAsyncRequest invokeAsyncRequest, RequestBody requestBody) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
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.
invokeAsyncRequest - requestBody - The content to send to the service. A RequestBody can be created using one of several factory
methods for various sources of data. For example, to create a request body from a file you can do the
following.
RequestBody.fromFile(new File("myfile.txt"))
See documentation in RequestBody for additional details and which sources of data are supported.
The service documentation for the request content is as follows '
JSON that you want to provide to your Lambda function as input.
'ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeAsyncResponse invokeAsync(Consumer<InvokeAsyncRequest.Builder> invokeAsyncRequest, RequestBody requestBody) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the InvokeAsyncRequest.Builder avoiding the need to
create one manually via InvokeAsyncRequest.builder()
invokeAsyncRequest - A Consumer that will call methods on InvokeAsyncRequest.Builder to create a request.requestBody - The content to send to the service. A RequestBody can be created using one of several factory
methods for various sources of data. For example, to create a request body from a file you can do the
following.
RequestBody.fromFile(new File("myfile.txt"))
See documentation in RequestBody for additional details and which sources of data are supported.
The service documentation for the request content is as follows '
JSON that you want to provide to your Lambda function as input.
'ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault InvokeAsyncResponse invokeAsync(InvokeAsyncRequest invokeAsyncRequest, Path filePath) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
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.
invokeAsyncRequest - path - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows '
JSON that you want to provide to your Lambda function as input.
'ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptioninvokeAsync(InvokeAsyncRequest, RequestBody),
AWS API
Documentationdefault InvokeAsyncResponse invokeAsync(Consumer<InvokeAsyncRequest.Builder> invokeAsyncRequest, Path filePath) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, InvalidRuntimeException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the InvokeAsyncRequest.Builder avoiding the need to
create one manually via InvokeAsyncRequest.builder()
invokeAsyncRequest - A Consumer that will call methods on InvokeAsyncRequest.Builder to create a request.path - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows '
JSON that you want to provide to your Lambda function as input.
'ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidRequestContentException - The request body could not be parsed as JSON.InvalidRuntimeException - The runtime or runtime version specified is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptioninvokeAsync(InvokeAsyncRequest, RequestBody),
AWS API
Documentationdefault ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:ListAliases action.
listAliasesRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListAliasesResponse listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:ListAliases action.
This is a convenience which creates an instance of the ListAliasesRequest.Builder avoiding the need to
create one manually via ListAliasesRequest.builder()
listAliasesRequest - A Consumer that will call methods on ListAliasesRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsResponse listEventSourceMappings() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of event source mappings you created using the CreateEventSourceMapping (see
CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function
version or an alias as described in the FunctionName parameter. For information about the versioning
feature, see AWS Lambda Function
Versioning and Aliases.
This operation requires permission for the lambda:ListEventSourceMappings action.
ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEventSourceMappings(ListEventSourceMappingsRequest),
AWS
API Documentationdefault ListEventSourceMappingsResponse listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of event source mappings you created using the CreateEventSourceMapping (see
CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function
version or an alias as described in the FunctionName parameter. For information about the versioning
feature, see AWS Lambda Function
Versioning and Aliases.
This operation requires permission for the lambda:ListEventSourceMappings action.
listEventSourceMappingsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsResponse listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of event source mappings you created using the CreateEventSourceMapping (see
CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function
version or an alias as described in the FunctionName parameter. For information about the versioning
feature, see AWS Lambda Function
Versioning and Aliases.
This operation requires permission for the lambda:ListEventSourceMappings action.
This is a convenience which creates an instance of the ListEventSourceMappingsRequest.Builder avoiding
the need to create one manually via ListEventSourceMappingsRequest.builder()
listEventSourceMappingsRequest - A Consumer that will call methods on ListEventSourceMappingsRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsIterable listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of event source mappings you created using the CreateEventSourceMapping (see
CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function
version or an alias as described in the FunctionName parameter. For information about the versioning
feature, see AWS Lambda Function
Versioning and Aliases.
This operation requires permission for the lambda:ListEventSourceMappings action.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client
.listEventSourceMappingsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
listEventSourceMappingsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEventSourceMappingsIterable listEventSourceMappingsPaginator() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of event source mappings you created using the CreateEventSourceMapping (see
CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function
version or an alias as described in the FunctionName parameter. For information about the versioning
feature, see AWS Lambda Function
Versioning and Aliases.
This operation requires permission for the lambda:ListEventSourceMappings action.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client
.listEventSourceMappingsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistEventSourceMappingsPaginator(ListEventSourceMappingsRequest),
AWS
API Documentationdefault ListFunctionsResponse listFunctions() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can list all of your functions or only $LATEST
versions. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistFunctions(ListFunctionsRequest),
AWS API
Documentationdefault ListFunctionsResponse listFunctions(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can list all of your functions or only $LATEST
versions. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
listFunctionsRequest - ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsResponse listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can list all of your functions or only $LATEST
versions. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
This is a convenience which creates an instance of the ListFunctionsRequest.Builder avoiding the need to
create one manually via ListFunctionsRequest.builder()
listFunctionsRequest - A Consumer that will call methods on ListFunctionsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsIterable listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can list all of your functions or only $LATEST
versions. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
This is a variant of listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest) operation.
listFunctionsRequest - ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListFunctionsIterable listFunctionsPaginator() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can list all of your functions or only $LATEST
versions. For information about the versioning feature, see AWS Lambda Function Versioning and
Aliases.
This is a variant of listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest) operation.
ServiceException - The AWS Lambda service encountered an internal error.TooManyRequestsExceptionInvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistFunctionsPaginator(ListFunctionsRequest),
AWS API
Documentationdefault ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
listTagsRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsResponse listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
This is a convenience which creates an instance of the ListTagsRequest.Builder avoiding the need to
create one manually via ListTagsRequest.builder()
listTagsRequest - A Consumer that will call methods on ListTagsRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionResponse listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
listVersionsByFunctionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListVersionsByFunctionResponse listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This is a convenience which creates an instance of the ListVersionsByFunctionRequest.Builder avoiding the
need to create one manually via ListVersionsByFunctionRequest.builder()
listVersionsByFunctionRequest - A Consumer that will call methods on ListVersionsByFunctionRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishVersionResponse publishVersion(PublishVersionRequest publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
publishVersionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishVersionResponse publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This is a convenience which creates an instance of the PublishVersionRequest.Builder avoiding the need to
create one manually via PublishVersionRequest.builder()
publishVersionRequest - A Consumer that will call methods on PublishVersionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionConcurrencyResponse putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see concurrent-executions.
putFunctionConcurrencyRequest - ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PutFunctionConcurrencyResponse putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see concurrent-executions.
This is a convenience which creates an instance of the PutFunctionConcurrencyRequest.Builder avoiding the
need to create one manually via PutFunctionConcurrencyRequest.builder()
putFunctionConcurrencyRequest - A Consumer that will call methods on PutFunctionConcurrencyRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemovePermissionResponse removePermission(RemovePermissionRequest removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.
If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you
specify in the AddPermission request via the Qualifier parameter. For more information
about versioning, see AWS Lambda
Function Versioning and Aliases.
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.
removePermissionRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemovePermissionResponse removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.
If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you
specify in the AddPermission request via the Qualifier parameter. For more information
about versioning, see AWS Lambda
Function Versioning and Aliases.
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.
This is a convenience which creates an instance of the RemovePermissionRequest.Builder avoiding the need
to create one manually via RemovePermissionRequest.builder()
removePermissionRequest - A Consumer that will call methods on RemovePermissionRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null.
tagResourceRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name).
untagResourceRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name).
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:UpdateAlias action.
updateAliasRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateAliasResponse updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:UpdateAlias action.
This is a convenience which creates an instance of the UpdateAliasRequest.Builder avoiding the need to
create one manually via UpdateAliasRequest.builder()
updateAliasRequest - A Consumer that will call methods on UpdateAliasRequest.Builder to create a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEventSourceMappingResponse updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda
function version or alias as described in the FunctionName parameter. For information about the
versioning feature, see AWS Lambda
Function Versioning and Aliases.
If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.
This operation requires permission for the lambda:UpdateEventSourceMapping action.
updateEventSourceMappingRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionResourceConflictException - The resource already exists.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEventSourceMappingResponse updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda
function version or alias as described in the FunctionName parameter. For information about the
versioning feature, see AWS Lambda
Function Versioning and Aliases.
If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.
This operation requires permission for the lambda:UpdateEventSourceMapping action.
This is a convenience which creates an instance of the UpdateEventSourceMappingRequest.Builder avoiding
the need to create one manually via UpdateEventSourceMappingRequest.builder()
updateEventSourceMappingRequest - A Consumer that will call methods on UpdateEventSourceMappingRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionResourceConflictException - The resource already exists.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionCodeResponse updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:UpdateFunctionCode action.
updateFunctionCodeRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionCodeResponse updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:UpdateFunctionCode action.
This is a convenience which creates an instance of the UpdateFunctionCodeRequest.Builder avoiding the
need to create one manually via UpdateFunctionCodeRequest.builder()
updateFunctionCodeRequest - A Consumer that will call methods on UpdateFunctionCodeRequest.Builder to create a
request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionCodeStorageExceededException - You have exceeded your maximum total code size per account. LimitsPreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionConfigurationResponse updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:UpdateFunctionConfiguration action.
updateFunctionConfigurationRequest - ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionResourceConflictException - The resource already exists.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateFunctionConfigurationResponse updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:UpdateFunctionConfiguration action.
This is a convenience which creates an instance of the UpdateFunctionConfigurationRequest.Builder
avoiding the need to create one manually via UpdateFunctionConfigurationRequest.builder()
updateFunctionConfigurationRequest - A Consumer that will call methods on UpdateFunctionConfigurationRequest.Builder to create
a request.ServiceException - The AWS Lambda service encountered an internal error.ResourceNotFoundException - The resource (for example, a Lambda function or access policy statement) specified in the request does
not exist.InvalidParameterValueException - One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda
to assume in the CreateFunction or the UpdateFunctionConfiguration API, that
AWS Lambda is unable to assume you will get this exception.TooManyRequestsExceptionResourceConflictException - The resource already exists.PreconditionFailedException - The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction or the GetAlias API to retrieve the latest RevisionId for your
resource.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.