@Generated(value="software.amazon.awssdk:codegen") public interface LambdaAsyncClient extends SdkClient
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 CompletableFuture<AddLayerVersionPermissionResponse> |
addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of a function layer.
|
default CompletableFuture<AddLayerVersionPermissionResponse> |
addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of a function layer.
|
default CompletableFuture<AddPermissionResponse> |
addPermission(AddPermissionRequest addPermissionRequest)
Adds a permission to the resource policy associated with the specified AWS Lambda function.
|
default CompletableFuture<AddPermissionResponse> |
addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest)
Adds a permission to the resource policy associated with the specified AWS Lambda function.
|
static LambdaAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
LambdaAsyncClient . |
static LambdaAsyncClient |
create()
Create a
LambdaAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateAliasResponse> |
createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)
Creates an alias that points to the specified Lambda function version.
|
default CompletableFuture<CreateAliasResponse> |
createAlias(CreateAliasRequest createAliasRequest)
Creates an alias that points to the specified Lambda function version.
|
default CompletableFuture<CreateEventSourceMappingResponse> |
createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function.
|
default CompletableFuture<CreateEventSourceMappingResponse> |
createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function.
|
default CompletableFuture<CreateFunctionResponse> |
createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest)
Creates a new Lambda function.
|
default CompletableFuture<CreateFunctionResponse> |
createFunction(CreateFunctionRequest createFunctionRequest)
Creates a new Lambda function.
|
default CompletableFuture<DeleteAliasResponse> |
deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)
Deletes the specified Lambda function alias.
|
default CompletableFuture<DeleteAliasResponse> |
deleteAlias(DeleteAliasRequest deleteAliasRequest)
Deletes the specified Lambda function alias.
|
default CompletableFuture<DeleteEventSourceMappingResponse> |
deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest)
Deletes an event source mapping.
|
default CompletableFuture<DeleteEventSourceMappingResponse> |
deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest)
Deletes an event source mapping.
|
default CompletableFuture<DeleteFunctionResponse> |
deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest)
Deletes a Lambda function.
|
default CompletableFuture<DeleteFunctionResponse> |
deleteFunction(DeleteFunctionRequest deleteFunctionRequest)
Deletes a Lambda function.
|
default CompletableFuture<DeleteFunctionConcurrencyResponse> |
deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function.
|
default CompletableFuture<DeleteFunctionConcurrencyResponse> |
deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function.
|
default CompletableFuture<DeleteLayerVersionResponse> |
deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest)
Deletes a version of a function layer.
|
default CompletableFuture<DeleteLayerVersionResponse> |
deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest)
Deletes a version of a function layer.
|
default CompletableFuture<GetAccountSettingsResponse> |
getAccountSettings()
Retrieves details about your account's limits and usage in a region.
|
default CompletableFuture<GetAccountSettingsResponse> |
getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest)
Retrieves details about your account's limits and usage in a region.
|
default CompletableFuture<GetAccountSettingsResponse> |
getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest)
Retrieves details about your account's limits and usage in a region.
|
default CompletableFuture<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 CompletableFuture<GetAliasResponse> |
getAlias(GetAliasRequest getAliasRequest)
Returns the specified alias information such as the alias ARN, description, and function version it is pointing
to.
|
default CompletableFuture<GetEventSourceMappingResponse> |
getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest)
Returns details about an event source mapping.
|
default CompletableFuture<GetEventSourceMappingResponse> |
getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest)
Returns details about an event source mapping.
|
default CompletableFuture<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 CompletableFuture<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 CompletableFuture<GetFunctionConfigurationResponse> |
getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
Returns the configuration information of the Lambda function.
|
default CompletableFuture<GetFunctionConfigurationResponse> |
getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
Returns the configuration information of the Lambda function.
|
default CompletableFuture<GetLayerVersionResponse> |
getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest)
Returns information about a version of a function layer, with a link to download the layer archive that's valid
for 10 minutes.
|
default CompletableFuture<GetLayerVersionResponse> |
getLayerVersion(GetLayerVersionRequest getLayerVersionRequest)
Returns information about a version of a function layer, with a link to download the layer archive that's valid
for 10 minutes.
|
default CompletableFuture<GetLayerVersionPolicyResponse> |
getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest)
Returns the permission policy for a layer version.
|
default CompletableFuture<GetLayerVersionPolicyResponse> |
getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest)
Returns the permission policy for a layer version.
|
default CompletableFuture<GetPolicyResponse> |
getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
|
default CompletableFuture<GetPolicyResponse> |
getPolicy(GetPolicyRequest getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
|
default CompletableFuture<InvokeResponse> |
invoke(Consumer<InvokeRequest.Builder> invokeRequest)
Invokes a Lambda function.
|
default CompletableFuture<InvokeResponse> |
invoke(InvokeRequest invokeRequest)
Invokes a Lambda function.
|
default CompletableFuture<ListAliasesResponse> |
listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
Returns list of aliases created for a Lambda function.
|
default CompletableFuture<ListAliasesResponse> |
listAliases(ListAliasesRequest listAliasesRequest)
Returns list of aliases created for a Lambda function.
|
default CompletableFuture<ListEventSourceMappingsResponse> |
listEventSourceMappings()
Lists event source mappings.
|
default CompletableFuture<ListEventSourceMappingsResponse> |
listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings.
|
default CompletableFuture<ListEventSourceMappingsResponse> |
listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListEventSourceMappingsPublisher |
listEventSourceMappingsPaginator()
Lists event source mappings.
|
default ListEventSourceMappingsPublisher |
listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings.
|
default ListEventSourceMappingsPublisher |
listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings.
|
default CompletableFuture<ListFunctionsResponse> |
listFunctions()
Returns a list of your Lambda functions.
|
default CompletableFuture<ListFunctionsResponse> |
listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
Returns a list of your Lambda functions.
|
default CompletableFuture<ListFunctionsResponse> |
listFunctions(ListFunctionsRequest listFunctionsRequest)
Returns a list of your Lambda functions.
|
default ListFunctionsPublisher |
listFunctionsPaginator()
Returns a list of your Lambda functions.
|
default ListFunctionsPublisher |
listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
Returns a list of your Lambda functions.
|
default ListFunctionsPublisher |
listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest)
Returns a list of your Lambda functions.
|
default CompletableFuture<ListLayersResponse> |
listLayers()
Lists function layers and shows information about the latest version of each.
|
default CompletableFuture<ListLayersResponse> |
listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest)
Lists function layers and shows information about the latest version of each.
|
default CompletableFuture<ListLayersResponse> |
listLayers(ListLayersRequest listLayersRequest)
Lists function layers and shows information about the latest version of each.
|
default CompletableFuture<ListLayerVersionsResponse> |
listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest)
Lists the versions of a function layer.
|
default CompletableFuture<ListLayerVersionsResponse> |
listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest)
Lists the versions of a function layer.
|
default CompletableFuture<ListTagsResponse> |
listTags(Consumer<ListTagsRequest.Builder> listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
|
default CompletableFuture<ListTagsResponse> |
listTags(ListTagsRequest listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
|
default CompletableFuture<ListVersionsByFunctionResponse> |
listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest)
Lists all versions of a function.
|
default CompletableFuture<ListVersionsByFunctionResponse> |
listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest)
Lists all versions of a function.
|
default CompletableFuture<PublishLayerVersionResponse> |
publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest)
Creates a function layer from a ZIP archive.
|
default CompletableFuture<PublishLayerVersionResponse> |
publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest)
Creates a function layer from a ZIP archive.
|
default CompletableFuture<PublishVersionResponse> |
publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest)
Publishes a version of your function from the current snapshot of $LATEST.
|
default CompletableFuture<PublishVersionResponse> |
publishVersion(PublishVersionRequest publishVersionRequest)
Publishes a version of your function from the current snapshot of $LATEST.
|
default CompletableFuture<PutFunctionConcurrencyResponse> |
putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest)
Sets a limit on the number of concurrent executions available to this function.
|
default CompletableFuture<PutFunctionConcurrencyResponse> |
putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest)
Sets a limit on the number of concurrent executions available to this function.
|
default CompletableFuture<RemoveLayerVersionPermissionResponse> |
removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a layer version.
|
default CompletableFuture<RemoveLayerVersionPermissionResponse> |
removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a layer version.
|
default CompletableFuture<RemovePermissionResponse> |
removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest)
Removes permissions from a function.
|
default CompletableFuture<RemovePermissionResponse> |
removePermission(RemovePermissionRequest removePermissionRequest)
Removes permissions from a function.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Creates a list of tags (key-value pairs) on the Lambda function.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Creates a list of tags (key-value pairs) on the Lambda function.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a Lambda function.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a Lambda function.
|
default CompletableFuture<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 CompletableFuture<UpdateAliasResponse> |
updateAlias(UpdateAliasRequest updateAliasRequest)
Using this API you can update the function version to which the alias points and the alias description.
|
default CompletableFuture<UpdateEventSourceMappingResponse> |
updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest)
Updates an event source mapping.
|
default CompletableFuture<UpdateEventSourceMappingResponse> |
updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest)
Updates an event source mapping.
|
default CompletableFuture<UpdateFunctionCodeResponse> |
updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest)
Updates the code for the specified Lambda function.
|
default CompletableFuture<UpdateFunctionCodeResponse> |
updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest)
Updates the code for the specified Lambda function.
|
default CompletableFuture<UpdateFunctionConfigurationResponse> |
updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest)
Updates the configuration parameters for the specified Lambda function by using the values provided in the
request.
|
default CompletableFuture<UpdateFunctionConfigurationResponse> |
updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest)
Updates the configuration parameters for the specified Lambda function by using the values provided in the
request.
|
serviceName
close
static final String SERVICE_NAME
static LambdaAsyncClient create()
LambdaAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static LambdaAsyncClientBuilder builder()
LambdaAsyncClient
.default CompletableFuture<AddLayerVersionPermissionResponse> addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of a function layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
addLayerVersionPermissionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<AddLayerVersionPermissionResponse> addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest)
Adds permissions to the resource-based policy of a version of a function layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
This is a convenience which creates an instance of the AddLayerVersionPermissionRequest.Builder
avoiding
the need to create one manually via AddLayerVersionPermissionRequest.builder()
addLayerVersionPermissionRequest
- A Consumer
that will call methods on AddLayerVersionPermissionRequest.Builder
to create a
request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<AddPermissionResponse> addPermission(AddPermissionRequest addPermissionRequest)
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 the 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.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the
unpublished version of the function), or include a version or alias. If a client uses a version or alias to
invoke a function, use the Qualifier
parameter to apply permissions to that ARN. For more
information about versioning, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:AddPermission
action.
addPermissionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<AddPermissionResponse> addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest)
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 the 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.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the
unpublished version of the function), or include a version or alias. If a client uses a version or alias to
invoke a function, use the Qualifier
parameter to apply permissions to that ARN. 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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<CreateAliasResponse> createAlias(CreateAliasRequest createAliasRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<CreateAliasResponse> createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<CreateEventSourceMappingResponse> createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
createEventSourceMappingRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<CreateEventSourceMappingResponse> createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest)
Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<CreateFunctionResponse> createFunction(CreateFunctionRequest createFunctionRequest)
Creates a new Lambda function. The function configuration is created from the request parameters, and the code for the function is provided by a .zip file. The function name is case-sensitive.
This operation requires permission for the lambda:CreateFunction
action.
createFunctionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<CreateFunctionResponse> createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest)
Creates a new Lambda function. The function configuration is created from the request parameters, and the code for the function is provided by a .zip file. The function name is case-sensitive.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest deleteAliasRequest)
Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases.
This requires permission for the lambda:DeleteAlias action.
deleteAliasRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteAliasResponse> deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteEventSourceMappingResponse> deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest)
Deletes an event source mapping.
deleteEventSourceMappingRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteEventSourceMappingResponse> deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest)
Deletes an event source mapping.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteFunctionResponse> deleteFunction(DeleteFunctionRequest deleteFunctionRequest)
Deletes a Lambda function. To delete a specific function version, use the Qualifier
parameter.
Otherwise, all versions and aliases are deleted. Event source mappings are not deleted.
This operation requires permission for the lambda:DeleteFunction
action.
deleteFunctionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteFunctionResponse> deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest)
Deletes a Lambda function. To delete a specific function version, use the Qualifier
parameter.
Otherwise, all versions and aliases are deleted. Event source mappings are not deleted.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteFunctionConcurrencyResponse> deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function. For more information, see Managing Concurrency.
deleteFunctionConcurrencyRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteFunctionConcurrencyResponse> deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest)
Removes concurrent execution limits from this function. For more information, see Managing Concurrency.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<DeleteLayerVersionResponse> deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest)
Deletes a version of a function layer. Deleted versions can no longer be viewed or added to functions. However, a copy of the version remains in Lambda until no functions refer to it.
deleteLayerVersionRequest
- default CompletableFuture<DeleteLayerVersionResponse> deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest)
Deletes a version of a function layer. Deleted versions can no longer be viewed or added to functions. However, a copy of the version remains in Lambda until no functions refer to it.
This is a convenience which creates an instance of the DeleteLayerVersionRequest.Builder
avoiding the
need to create one manually via DeleteLayerVersionRequest.builder()
deleteLayerVersionRequest
- A Consumer
that will call methods on DeleteLayerVersionRequest.Builder
to create a
request.default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest)
Retrieves details about your account's limits and usage in a region.
getAccountSettingsRequest
- default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest)
Retrieves details about your account's limits and usage in a region.
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.default CompletableFuture<GetAccountSettingsResponse> getAccountSettings()
Retrieves details about your account's limits and usage in a region.
default CompletableFuture<GetAliasResponse> getAlias(GetAliasRequest getAliasRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetAliasResponse> getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetEventSourceMappingResponse> getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest)
Returns details about an event source mapping.
getEventSourceMappingRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetEventSourceMappingResponse> getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest)
Returns details about an event source mapping.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<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. 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.
Use the Qualifier
parameter to retrieve a published version of the function. Otherwise, returns the
unpublished version ($LATEST
). For more information, see AWS Lambda Function Versioning and
Aliases.
This operation requires permission for the lambda:GetFunction
action.
getFunctionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<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. 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.
Use the Qualifier
parameter to retrieve a published version of the function. Otherwise, returns the
unpublished version ($LATEST
). 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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetFunctionConfigurationResponse> getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetFunctionConfigurationResponse> getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetLayerVersionResponse> getLayerVersion(GetLayerVersionRequest getLayerVersionRequest)
Returns information about a version of a function layer, with a link to download the layer archive that's valid for 10 minutes.
getLayerVersionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetLayerVersionResponse> getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest)
Returns information about a version of a function layer, with a link to download the layer archive that's valid for 10 minutes.
This is a convenience which creates an instance of the GetLayerVersionRequest.Builder
avoiding the need
to create one manually via GetLayerVersionRequest.builder()
getLayerVersionRequest
- A Consumer
that will call methods on GetLayerVersionRequest.Builder
to create a request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetLayerVersionPolicyResponse> getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest)
Returns the permission policy for a layer version. For more information, see AddLayerVersionPermission.
getLayerVersionPolicyRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetLayerVersionPolicyResponse> getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest)
Returns the permission policy for a layer version. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the GetLayerVersionPolicyRequest.Builder
avoiding the
need to create one manually via GetLayerVersionPolicyRequest.builder()
getLayerVersionPolicyRequest
- A Consumer
that will call methods on GetLayerVersionPolicyRequest.Builder
to create a
request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
This action requires permission for the lambda:GetPolicy action.
getPolicyRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest)
Returns the resource policy associated with the specified Lambda function.
This action requires 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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<InvokeResponse> invoke(InvokeRequest invokeRequest)
Invokes a Lambda function. For an example, see Create the Lambda Function and Test It Manually.
Specify just a function name to invoke the latest version of the function. To invoke a published version, use the
Qualifier
parameter to specify a version or alias.
If you use the RequestResponse
(synchronous) invocation option, the function will be invoked only
once. If you use the Event
(asynchronous) invocation option, the function will be invoked at least
once in response to an event and the function must be idempotent to handle this.
For functions with a long timeout, your client may be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
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
- Invoke
request body JSON input
limit. For more information, see Limits.Invoke
request body is not JSON.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<InvokeResponse> invoke(Consumer<InvokeRequest.Builder> invokeRequest)
Invokes a Lambda function. For an example, see Create the Lambda Function and Test It Manually.
Specify just a function name to invoke the latest version of the function. To invoke a published version, use the
Qualifier
parameter to specify a version or alias.
If you use the RequestResponse
(synchronous) invocation option, the function will be invoked only
once. If you use the Event
(asynchronous) invocation option, the function will be invoked at least
once in response to an event and the function must be idempotent to handle this.
For functions with a long timeout, your client may be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
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.Invoke
request body JSON input
limit. For more information, see Limits.Invoke
request body is not JSON.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListAliasesResponse> listAliases(ListAliasesRequest listAliasesRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListAliasesResponse> listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListEventSourceMappingsResponse> listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
listEventSourceMappingsRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListEventSourceMappingsResponse> listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListEventSourceMappingsResponse> listEventSourceMappings()
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListEventSourceMappingsPublisher listEventSourceMappingsPaginator()
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListEventSourceMappingsPublisher listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest)
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
listEventSourceMappingsRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListEventSourceMappingsPublisher listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest)
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a
single event source.
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest listFunctionsRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListFunctionsResponse> listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListFunctionsResponse> listFunctions()
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.
CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListFunctionsPublisher listFunctionsPaginator()
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.
CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListFunctionsPublisher listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.
listFunctionsRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default ListFunctionsPublisher listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListLayerVersionsResponse> listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest)
Lists the versions of a function layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
listLayerVersionsRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListLayerVersionsResponse> listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest)
Lists the versions of a function layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.
This is a convenience which creates an instance of the ListLayerVersionsRequest.Builder
avoiding the need
to create one manually via ListLayerVersionsRequest.builder()
listLayerVersionsRequest
- A Consumer
that will call methods on ListLayerVersionsRequest.Builder
to create a request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListLayersResponse> listLayers(ListLayersRequest listLayersRequest)
Lists function layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
listLayersRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListLayersResponse> listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest)
Lists function layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
This is a convenience which creates an instance of the ListLayersRequest.Builder
avoiding the need to
create one manually via ListLayersRequest.builder()
listLayersRequest
- A Consumer
that will call methods on ListLayersRequest.Builder
to create a request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListLayersResponse> listLayers()
Lists function layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.
CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListTagsResponse> listTags(ListTagsRequest listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
listTagsRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest)
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListVersionsByFunctionResponse> listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest)
Lists all versions of a function. For information about versioning, see AWS Lambda Function Versioning and Aliases.
listVersionsByFunctionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<ListVersionsByFunctionResponse> listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest)
Lists all versions of a function. For information about versioning, 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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<PublishLayerVersionResponse> publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest)
Creates a function layer from a ZIP archive. Each time you call PublishLayerVersion
with the same
version name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
publishLayerVersionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<PublishLayerVersionResponse> publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest)
Creates a function layer from a ZIP archive. Each time you call PublishLayerVersion
with the same
version name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
This is a convenience which creates an instance of the PublishLayerVersionRequest.Builder
avoiding the
need to create one manually via PublishLayerVersionRequest.builder()
publishLayerVersionRequest
- A Consumer
that will call methods on PublishLayerVersionRequest.Builder
to create a
request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<PublishVersionResponse> publishVersion(PublishVersionRequest publishVersionRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<PublishVersionResponse> publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<PutFunctionConcurrencyResponse> putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest)
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 Managing Concurrency.
putFunctionConcurrencyRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<PutFunctionConcurrencyResponse> putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest)
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 Managing Concurrency.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<RemoveLayerVersionPermissionResponse> removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a layer version. For more information, see AddLayerVersionPermission.
removeLayerVersionPermissionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<RemoveLayerVersionPermissionResponse> removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest)
Removes a statement from the permissions policy for a layer version. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the RemoveLayerVersionPermissionRequest.Builder
avoiding the need to create one manually via RemoveLayerVersionPermissionRequest.builder()
removeLayerVersionPermissionRequest
- A Consumer
that will call methods on RemoveLayerVersionPermissionRequest.Builder
to create
a request.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<RemovePermissionResponse> removePermission(RemovePermissionRequest removePermissionRequest)
Removes permissions from a function. 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. When you remove permissions, disable the event source mapping or trigger configuration first to avoid errors.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the
unpublished version of the function), or include a version or alias. If a client uses a version or alias to
invoke a function, use the Qualifier
parameter to apply permissions to that ARN. For more
information about versioning, see AWS Lambda Function Versioning and
Aliases.
You need permission for the lambda:RemovePermission
action.
removePermissionRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<RemovePermissionResponse> removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest)
Removes permissions from a function. 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. When you remove permissions, disable the event source mapping or trigger configuration first to avoid errors.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the
unpublished version of the function), or include a version or alias. If a client uses a version or alias to
invoke a function, use the Qualifier
parameter to apply permissions to that ARN. For more
information about versioning, see AWS Lambda Function Versioning and
Aliases.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
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. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
tagResourceRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
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. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
untagResourceRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<UpdateAliasResponse> updateAlias(UpdateAliasRequest updateAliasRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<UpdateAliasResponse> updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<UpdateEventSourceMappingResponse> updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest)
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.
updateEventSourceMappingRequest
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<UpdateEventSourceMappingResponse> updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest)
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.default CompletableFuture<UpdateFunctionCodeResponse> updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<UpdateFunctionCodeResponse> updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<UpdateFunctionConfigurationResponse> updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest)
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
- CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.default CompletableFuture<UpdateFunctionConfigurationResponse> updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest)
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.CreateFunction
or the
UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this
exception.GetFunction
or the GetAlias
API to retrieve
the latest RevisionId for your resource.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.