Interface LambdaAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
Overview
Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see What is Lambda in the Lambda Developer Guide.
The Lambda API Reference provides information about each of the API methods, including details about the parameters in each API request and response.
You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see Tools for Amazon Web Services.
For a list of Region-specific endpoints that Lambda supports, see Lambda endpoints and quotas in the Amazon Web Services General Reference..
When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see Signature Version 4 signing process in the Amazon Web Services General Reference..
CA certificates
Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:
-
Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list.
-
Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list.
-
Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list.
-
Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.
When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs:
-
Amazon Root CA 1
-
Starfield Services Root Certificate Authority - G2
-
Starfield Class 2 Certification Authority
Root certificates from the first two authorities are available from Amazon trust services, but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionaddLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer.addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer.default CompletableFuture<AddPermissionResponse> addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) Grants a principal permission to use a function.default CompletableFuture<AddPermissionResponse> addPermission(AddPermissionRequest addPermissionRequest) Grants a principal permission to use a function.static LambdaAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aLambdaAsyncClient.static LambdaAsyncClientcreate()Create aLambdaAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateAliasResponse> createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) Creates an alias for a Lambda function version.default CompletableFuture<CreateAliasResponse> createAlias(CreateAliasRequest createAliasRequest) Creates an alias for a Lambda function version.createCodeSigningConfig(Consumer<CreateCodeSigningConfigRequest.Builder> createCodeSigningConfigRequest) Creates a code signing configuration.createCodeSigningConfig(CreateCodeSigningConfigRequest createCodeSigningConfigRequest) Creates a code signing configuration.createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function.createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function.default CompletableFuture<CreateFunctionResponse> createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) Creates a Lambda function.default CompletableFuture<CreateFunctionResponse> createFunction(CreateFunctionRequest createFunctionRequest) Creates a Lambda function.createFunctionUrlConfig(Consumer<CreateFunctionUrlConfigRequest.Builder> createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters.createFunctionUrlConfig(CreateFunctionUrlConfigRequest createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters.default CompletableFuture<DeleteAliasResponse> deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) Deletes a Lambda function alias.default CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest deleteAliasRequest) Deletes a Lambda function alias.deleteCodeSigningConfig(Consumer<DeleteCodeSigningConfigRequest.Builder> deleteCodeSigningConfigRequest) Deletes the code signing configuration.deleteCodeSigningConfig(DeleteCodeSigningConfigRequest deleteCodeSigningConfigRequest) Deletes the code signing configuration.deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) Deletes an event source mapping.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.deleteFunctionCodeSigningConfig(Consumer<DeleteFunctionCodeSigningConfigRequest.Builder> deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.deleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.deleteFunctionUrlConfig(Consumer<DeleteFunctionUrlConfigRequest.Builder> deleteFunctionUrlConfigRequest) Deletes a Lambda function URL.deleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest deleteFunctionUrlConfigRequest) Deletes a Lambda function URL.deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) Deletes a version of an Lambda layer.deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) Deletes a version of an Lambda layer.deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.Retrieves details about your account's limits and usage in an Amazon Web Services Region.getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.default CompletableFuture<GetAliasResponse> getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) Returns details about a Lambda function alias.default CompletableFuture<GetAliasResponse> getAlias(GetAliasRequest getAliasRequest) Returns details about a Lambda function alias.getCodeSigningConfig(Consumer<GetCodeSigningConfigRequest.Builder> getCodeSigningConfigRequest) Returns information about the specified code signing configuration.getCodeSigningConfig(GetCodeSigningConfigRequest getCodeSigningConfigRequest) Returns information about the specified code signing configuration.getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) Returns details about an event source mapping.getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) Returns details about an event source mapping.default CompletableFuture<GetFunctionResponse> getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest) Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes.default CompletableFuture<GetFunctionResponse> getFunction(GetFunctionRequest getFunctionRequest) Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes.getFunctionCodeSigningConfig(Consumer<GetFunctionCodeSigningConfigRequest.Builder> getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.getFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.getFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function.getFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function.getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version.getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version.getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.getFunctionRecursionConfig(Consumer<GetFunctionRecursionConfigRequest.Builder> getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.getFunctionRecursionConfig(GetFunctionRecursionConfigRequest getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.getFunctionUrlConfig(Consumer<GetFunctionUrlConfigRequest.Builder> getFunctionUrlConfigRequest) Returns details about a Lambda function URL.getFunctionUrlConfig(GetFunctionUrlConfigRequest getFunctionUrlConfigRequest) Returns details about a Lambda function URL.default CompletableFuture<GetLayerVersionResponse> getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) Returns information about a version of an Lambda 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 an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer.getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer.default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) Returns the resource-based IAM policy for a function, version, or alias.default CompletableFuture<GetPolicyResponse> getPolicy(GetPolicyRequest getPolicyRequest) Returns the resource-based IAM policy for a function, version, or alias.getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.getRuntimeManagementConfig(Consumer<GetRuntimeManagementConfigRequest.Builder> getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version.getRuntimeManagementConfig(GetRuntimeManagementConfigRequest getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version.default CompletableFuture<InvokeResponse> invoke(Consumer<InvokeRequest.Builder> invokeRequest) Invokes a Lambda function.default CompletableFuture<InvokeResponse> invoke(InvokeRequest invokeRequest) Invokes a Lambda function.default CompletableFuture<Void> invokeWithResponseStream(Consumer<InvokeWithResponseStreamRequest.Builder> invokeWithResponseStreamRequest, InvokeWithResponseStreamResponseHandler asyncResponseHandler) Configure your Lambda functions to stream response payloads back to clients.default CompletableFuture<Void> invokeWithResponseStream(InvokeWithResponseStreamRequest invokeWithResponseStreamRequest, InvokeWithResponseStreamResponseHandler asyncResponseHandler) Configure your Lambda functions to stream response payloads back to clients.default CompletableFuture<ListAliasesResponse> listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) Returns a list of aliases for a Lambda function.default CompletableFuture<ListAliasesResponse> listAliases(ListAliasesRequest listAliasesRequest) Returns a list of aliases for a Lambda function.default ListAliasesPublisherlistAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) This is a variant oflistAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.default ListAliasesPublisherlistAliasesPaginator(ListAliasesRequest listAliasesRequest) This is a variant oflistAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.listCodeSigningConfigs(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) Returns a list of code signing configurations.listCodeSigningConfigs(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) Returns a list of code signing configurations.default ListCodeSigningConfigsPublisherlistCodeSigningConfigsPaginator(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) This is a variant oflistCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.default ListCodeSigningConfigsPublisherlistCodeSigningConfigsPaginator(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) This is a variant oflistCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.Lists event source mappings.listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) Lists event source mappings.listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) Lists event source mappings.default ListEventSourceMappingsPublisherThis is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.default ListEventSourceMappingsPublisherlistEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) This is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.default ListEventSourceMappingsPublisherlistEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) This is a variant oflistEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) This is a variant oflistFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) This is a variant oflistFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.default CompletableFuture<ListFunctionsResponse> Returns a list of Lambda functions, with the version-specific configuration of each.default CompletableFuture<ListFunctionsResponse> listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each.default CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each.listFunctionsByCodeSigningConfig(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration.listFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration.listFunctionsByCodeSigningConfigPaginator(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) This is a variant oflistFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.listFunctionsByCodeSigningConfigPaginator(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) This is a variant oflistFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.default ListFunctionsPublisherThis is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.default ListFunctionsPublisherlistFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) This is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.default ListFunctionsPublisherlistFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) This is a variant oflistFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.listFunctionUrlConfigs(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.listFunctionUrlConfigs(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.default ListFunctionUrlConfigsPublisherlistFunctionUrlConfigsPaginator(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) This is a variant oflistFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.default ListFunctionUrlConfigsPublisherlistFunctionUrlConfigsPaginator(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) This is a variant oflistFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.default CompletableFuture<ListLayersResponse> Lists Lambda layers and shows information about the latest version of each.default CompletableFuture<ListLayersResponse> listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) Lists Lambda layers and shows information about the latest version of each.default CompletableFuture<ListLayersResponse> listLayers(ListLayersRequest listLayersRequest) Lists Lambda layers and shows information about the latest version of each.default ListLayersPublisherThis is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.default ListLayersPublisherlistLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) This is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.default ListLayersPublisherlistLayersPaginator(ListLayersRequest listLayersRequest) This is a variant oflistLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) Lists the versions of an Lambda layer.listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) Lists the versions of an Lambda layer.default ListLayerVersionsPublisherlistLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) This is a variant oflistLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.default ListLayerVersionsPublisherlistLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) This is a variant oflistLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) This is a variant oflistProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) This is a variant oflistProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) Returns a function, event source mapping, or code signing configuration's tags.default CompletableFuture<ListTagsResponse> listTags(ListTagsRequest listTagsRequest) Returns a function, event source mapping, or code signing configuration's tags.listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each.listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each.default ListVersionsByFunctionPublisherlistVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) This is a variant oflistVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.default ListVersionsByFunctionPublisherlistVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) This is a variant oflistVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive.publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive.default CompletableFuture<PublishVersionResponse> publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) Creates a version from the current code and configuration of a function.default CompletableFuture<PublishVersionResponse> publishVersion(PublishVersionRequest publishVersionRequest) Creates a version from the current code and configuration of a function.putFunctionCodeSigningConfig(Consumer<PutFunctionCodeSigningConfigRequest.Builder> putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function.putFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function.putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias.putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias.putFunctionRecursionConfig(Consumer<PutFunctionRecursionConfigRequest.Builder> putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.putFunctionRecursionConfig(PutFunctionRecursionConfigRequest putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.putRuntimeManagementConfig(Consumer<PutRuntimeManagementConfigRequest.Builder> putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version.putRuntimeManagementConfig(PutRuntimeManagementConfigRequest putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version.removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer.removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer.removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account.removePermission(RemovePermissionRequest removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account.default LambdaServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a function, event source mapping, or code signing configuration.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to a function, event source mapping, or code signing configuration.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.default CompletableFuture<UpdateAliasResponse> updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) Updates the configuration of a Lambda function alias.default CompletableFuture<UpdateAliasResponse> updateAlias(UpdateAliasRequest updateAliasRequest) Updates the configuration of a Lambda function alias.updateCodeSigningConfig(Consumer<UpdateCodeSigningConfigRequest.Builder> updateCodeSigningConfigRequest) Update the code signing configuration.updateCodeSigningConfig(UpdateCodeSigningConfigRequest updateCodeSigningConfigRequest) Update the code signing configuration.updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) Updates an event source mapping.updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) Updates an event source mapping.updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) Updates a Lambda function's code.updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) Updates a Lambda function's code.updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.updateFunctionUrlConfig(Consumer<UpdateFunctionUrlConfigRequest.Builder> updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.updateFunctionUrlConfig(UpdateFunctionUrlConfigRequest updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.default LambdaAsyncWaiterwaiter()Create an instance ofLambdaAsyncWaiterusing this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
addLayerVersionPermission
default CompletableFuture<AddLayerVersionPermissionResponse> addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
- Parameters:
addLayerVersionPermissionRequest-- Returns:
- A Java Future containing the result of the AddLayerVersionPermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
addLayerVersionPermission
default CompletableFuture<AddLayerVersionPermissionResponse> addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest) Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
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.Builderavoiding the need to create one manually viaAddLayerVersionPermissionRequest.builder()- Parameters:
addLayerVersionPermissionRequest- AConsumerthat will call methods onAddLayerVersionPermissionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the AddLayerVersionPermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
addPermission
default CompletableFuture<AddPermissionResponse> addPermission(AddPermissionRequest addPermissionRequest) Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version invalid input: '$'LATEST.
To grant permission to another account, specify the account ID as the
Principal. To grant permission to an organization defined in Organizations, specify the organization ID as thePrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.comorsns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as theSourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.
- Parameters:
addPermissionRequest-- Returns:
- A Java Future containing the result of the AddPermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
addPermission
default CompletableFuture<AddPermissionResponse> addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version invalid input: '$'LATEST.
To grant permission to another account, specify the account ID as the
Principal. To grant permission to an organization defined in Organizations, specify the organization ID as thePrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.comorsns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as theSourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda.
This is a convenience which creates an instance of the
AddPermissionRequest.Builderavoiding the need to create one manually viaAddPermissionRequest.builder()- Parameters:
addPermissionRequest- AConsumerthat will call methods onAddPermissionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the AddPermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
createAlias
Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the
RoutingConfigparameter to specify a second version and the percentage of invocation requests that it receives.- Parameters:
createAliasRequest-- Returns:
- A Java Future containing the result of the CreateAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
createAlias
default CompletableFuture<CreateAliasResponse> createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the
RoutingConfigparameter to specify a second version and the percentage of invocation requests that it receives.
This is a convenience which creates an instance of the
CreateAliasRequest.Builderavoiding the need to create one manually viaCreateAliasRequest.builder()- Parameters:
createAliasRequest- AConsumerthat will call methods onCreateAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
createCodeSigningConfig
default CompletableFuture<CreateCodeSigningConfigResponse> createCodeSigningConfig(CreateCodeSigningConfigRequest createCodeSigningConfigRequest) Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
- Parameters:
createCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the CreateCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
createCodeSigningConfig
default CompletableFuture<CreateCodeSigningConfigResponse> createCodeSigningConfig(Consumer<CreateCodeSigningConfigRequest.Builder> createCodeSigningConfigRequest) Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
This is a convenience which creates an instance of the
CreateCodeSigningConfigRequest.Builderavoiding the need to create one manually viaCreateCodeSigningConfigRequest.builder()- Parameters:
createCodeSigningConfigRequest- AConsumerthat will call methods onCreateCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
createEventSourceMapping
default CompletableFuture<CreateEventSourceMappingResponse> createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only for stream sources (DynamoDB and Kinesis):
-
BisectBatchOnFunctionError– If the function returns an error, split the batch in two and retry. -
DestinationConfig– Send discarded records to an Amazon SQS queue or Amazon SNS topic. -
MaximumRecordAgeInSeconds– Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
- Parameters:
createEventSourceMappingRequest-- Returns:
- A Java Future containing the result of the CreateEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
createEventSourceMapping
default CompletableFuture<CreateEventSourceMappingResponse> createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only for stream sources (DynamoDB and Kinesis):
-
BisectBatchOnFunctionError– If the function returns an error, split the batch in two and retry. -
DestinationConfig– Send discarded records to an Amazon SQS queue or Amazon SNS topic. -
MaximumRecordAgeInSeconds– Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
This is a convenience which creates an instance of the
CreateEventSourceMappingRequest.Builderavoiding the need to create one manually viaCreateEventSourceMappingRequest.builder()- Parameters:
createEventSourceMappingRequest- AConsumerthat will call methods onCreateEventSourceMappingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
createFunction
default CompletableFuture<CreateFunctionResponse> createFunction(CreateFunctionRequest createFunctionRequest) Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
If the deployment package is a container image, then you set the package type to
Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.If the deployment package is a .zip file archive, then you set the package type to
Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64orarm64). If you do not specify the architecture, then the default value isx86-64.When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The
State,StateReason, andStateReasonCodefields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the
Publishparameter to create version1of your function from its initial configuration.The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.
If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.
- Parameters:
createFunctionRequest-- Returns:
- A Java Future containing the result of the CreateFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
createFunction
default CompletableFuture<CreateFunctionResponse> createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
If the deployment package is a container image, then you set the package type to
Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.If the deployment package is a .zip file archive, then you set the package type to
Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64orarm64). If you do not specify the architecture, then the default value isx86-64.When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The
State,StateReason, andStateReasonCodefields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states.A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the
Publishparameter to create version1of your function from its initial configuration.The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.
If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions.
This is a convenience which creates an instance of the
CreateFunctionRequest.Builderavoiding the need to create one manually viaCreateFunctionRequest.builder()- Parameters:
createFunctionRequest- AConsumerthat will call methods onCreateFunctionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
createFunctionUrlConfig
default CompletableFuture<CreateFunctionUrlConfigResponse> createFunctionUrlConfig(CreateFunctionUrlConfigRequest createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
- Parameters:
createFunctionUrlConfigRequest-- Returns:
- A Java Future containing the result of the CreateFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
createFunctionUrlConfig
default CompletableFuture<CreateFunctionUrlConfigResponse> createFunctionUrlConfig(Consumer<CreateFunctionUrlConfigRequest.Builder> createFunctionUrlConfigRequest) Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
This is a convenience which creates an instance of the
CreateFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaCreateFunctionUrlConfigRequest.builder()- Parameters:
createFunctionUrlConfigRequest- AConsumerthat will call methods onCreateFunctionUrlConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteAlias
Deletes a Lambda function alias.
- Parameters:
deleteAliasRequest-- Returns:
- A Java Future containing the result of the DeleteAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteAlias
default CompletableFuture<DeleteAliasResponse> deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) Deletes a Lambda function alias.
This is a convenience which creates an instance of the
DeleteAliasRequest.Builderavoiding the need to create one manually viaDeleteAliasRequest.builder()- Parameters:
deleteAliasRequest- AConsumerthat will call methods onDeleteAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteCodeSigningConfig
default CompletableFuture<DeleteCodeSigningConfigResponse> deleteCodeSigningConfig(DeleteCodeSigningConfigRequest deleteCodeSigningConfigRequest) Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
- Parameters:
deleteCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the DeleteCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteCodeSigningConfig
default CompletableFuture<DeleteCodeSigningConfigResponse> deleteCodeSigningConfig(Consumer<DeleteCodeSigningConfigRequest.Builder> deleteCodeSigningConfigRequest) Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
This is a convenience which creates an instance of the
DeleteCodeSigningConfigRequest.Builderavoiding the need to create one manually viaDeleteCodeSigningConfigRequest.builder()- Parameters:
deleteCodeSigningConfigRequest- AConsumerthat will call methods onDeleteCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteEventSourceMapping
default CompletableFuture<DeleteEventSourceMappingResponse> deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a
Deletingstate and might not be completely deleted for several seconds.- Parameters:
deleteEventSourceMappingRequest-- Returns:
- A Java Future containing the result of the DeleteEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceInUseException The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
- 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.
- See Also:
-
deleteEventSourceMapping
default CompletableFuture<DeleteEventSourceMappingResponse> deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a
Deletingstate and might not be completely deleted for several seconds.
This is a convenience which creates an instance of the
DeleteEventSourceMappingRequest.Builderavoiding the need to create one manually viaDeleteEventSourceMappingRequest.builder()- Parameters:
deleteEventSourceMappingRequest- AConsumerthat will call methods onDeleteEventSourceMappingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceInUseException The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
- 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.
- See Also:
-
deleteFunction
default CompletableFuture<DeleteFunctionResponse> deleteFunction(DeleteFunctionRequest deleteFunctionRequest) Deletes a Lambda function. To delete a specific function version, use the
Qualifierparameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
- Parameters:
deleteFunctionRequest-- Returns:
- A Java Future containing the result of the DeleteFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunction
default CompletableFuture<DeleteFunctionResponse> deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest) Deletes a Lambda function. To delete a specific function version, use the
Qualifierparameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
This is a convenience which creates an instance of the
DeleteFunctionRequest.Builderavoiding the need to create one manually viaDeleteFunctionRequest.builder()- Parameters:
deleteFunctionRequest- AConsumerthat will call methods onDeleteFunctionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionCodeSigningConfig
default CompletableFuture<DeleteFunctionCodeSigningConfigResponse> deleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.
- Parameters:
deleteFunctionCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the DeleteFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- CodeSigningConfigNotFoundException The specified code signing configuration does not exist.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionCodeSigningConfig
default CompletableFuture<DeleteFunctionCodeSigningConfigResponse> deleteFunctionCodeSigningConfig(Consumer<DeleteFunctionCodeSigningConfigRequest.Builder> deleteFunctionCodeSigningConfigRequest) Removes the code signing configuration from the function.
This is a convenience which creates an instance of the
DeleteFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaDeleteFunctionCodeSigningConfigRequest.builder()- Parameters:
deleteFunctionCodeSigningConfigRequest- AConsumerthat will call methods onDeleteFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- CodeSigningConfigNotFoundException The specified code signing configuration does not exist.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionConcurrency
default CompletableFuture<DeleteFunctionConcurrencyResponse> deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.
- Parameters:
deleteFunctionConcurrencyRequest-- Returns:
- A Java Future containing the result of the DeleteFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionConcurrency
default CompletableFuture<DeleteFunctionConcurrencyResponse> deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) Removes a concurrent execution limit from a function.
This is a convenience which creates an instance of the
DeleteFunctionConcurrencyRequest.Builderavoiding the need to create one manually viaDeleteFunctionConcurrencyRequest.builder()- Parameters:
deleteFunctionConcurrencyRequest- AConsumerthat will call methods onDeleteFunctionConcurrencyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionEventInvokeConfig
default CompletableFuture<DeleteFunctionEventInvokeConfigResponse> deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
deleteFunctionEventInvokeConfigRequest-- Returns:
- A Java Future containing the result of the DeleteFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionEventInvokeConfig
default CompletableFuture<DeleteFunctionEventInvokeConfigResponse> deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
DeleteFunctionEventInvokeConfigRequest.Builderavoiding the need to create one manually viaDeleteFunctionEventInvokeConfigRequest.builder()- Parameters:
deleteFunctionEventInvokeConfigRequest- AConsumerthat will call methods onDeleteFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
deleteFunctionUrlConfig
default CompletableFuture<DeleteFunctionUrlConfigResponse> deleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest deleteFunctionUrlConfigRequest) Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.
- Parameters:
deleteFunctionUrlConfigRequest-- Returns:
- A Java Future containing the result of the DeleteFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteFunctionUrlConfig
default CompletableFuture<DeleteFunctionUrlConfigResponse> deleteFunctionUrlConfig(Consumer<DeleteFunctionUrlConfigRequest.Builder> deleteFunctionUrlConfigRequest) Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.
This is a convenience which creates an instance of the
DeleteFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaDeleteFunctionUrlConfigRequest.builder()- Parameters:
deleteFunctionUrlConfigRequest- AConsumerthat will call methods onDeleteFunctionUrlConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteLayerVersion
default CompletableFuture<DeleteLayerVersionResponse> deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
- Parameters:
deleteLayerVersionRequest-- Returns:
- A Java Future containing the result of the DeleteLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteLayerVersion
default CompletableFuture<DeleteLayerVersionResponse> deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, 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.Builderavoiding the need to create one manually viaDeleteLayerVersionRequest.builder()- Parameters:
deleteLayerVersionRequest- AConsumerthat will call methods onDeleteLayerVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
deleteProvisionedConcurrencyConfig
default CompletableFuture<DeleteProvisionedConcurrencyConfigResponse> deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.
- Parameters:
deleteProvisionedConcurrencyConfigRequest-- Returns:
- A Java Future containing the result of the DeleteProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
deleteProvisionedConcurrencyConfig
default CompletableFuture<DeleteProvisionedConcurrencyConfigResponse> deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest) Deletes the provisioned concurrency configuration for a function.
This is a convenience which creates an instance of the
DeleteProvisionedConcurrencyConfigRequest.Builderavoiding the need to create one manually viaDeleteProvisionedConcurrencyConfigRequest.builder()- Parameters:
deleteProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onDeleteProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getAccountSettings
default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.
- Parameters:
getAccountSettingsRequest-- Returns:
- A Java Future containing the result of the GetAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getAccountSettings
default CompletableFuture<GetAccountSettingsResponse> getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Retrieves details about your account's limits and usage in an Amazon Web Services Region.
This is a convenience which creates an instance of the
GetAccountSettingsRequest.Builderavoiding the need to create one manually viaGetAccountSettingsRequest.builder()- Parameters:
getAccountSettingsRequest- AConsumerthat will call methods onGetAccountSettingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getAccountSettings
Retrieves details about your account's limits and usage in an Amazon Web Services Region.
- Returns:
- A Java Future containing the result of the GetAccountSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getAlias
Returns details about a Lambda function alias.
- Parameters:
getAliasRequest-- Returns:
- A Java Future containing the result of the GetAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getAlias
default CompletableFuture<GetAliasResponse> getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) Returns details about a Lambda function alias.
This is a convenience which creates an instance of the
GetAliasRequest.Builderavoiding the need to create one manually viaGetAliasRequest.builder()- Parameters:
getAliasRequest- AConsumerthat will call methods onGetAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getCodeSigningConfig
default CompletableFuture<GetCodeSigningConfigResponse> getCodeSigningConfig(GetCodeSigningConfigRequest getCodeSigningConfigRequest) Returns information about the specified code signing configuration.
- Parameters:
getCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the GetCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
getCodeSigningConfig
default CompletableFuture<GetCodeSigningConfigResponse> getCodeSigningConfig(Consumer<GetCodeSigningConfigRequest.Builder> getCodeSigningConfigRequest) Returns information about the specified code signing configuration.
This is a convenience which creates an instance of the
GetCodeSigningConfigRequest.Builderavoiding the need to create one manually viaGetCodeSigningConfigRequest.builder()- Parameters:
getCodeSigningConfigRequest- AConsumerthat will call methods onGetCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
getEventSourceMapping
default CompletableFuture<GetEventSourceMappingResponse> getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
- Parameters:
getEventSourceMappingRequest-- Returns:
- A Java Future containing the result of the GetEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getEventSourceMapping
default CompletableFuture<GetEventSourceMappingResponse> getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
This is a convenience which creates an instance of the
GetEventSourceMappingRequest.Builderavoiding the need to create one manually viaGetEventSourceMappingRequest.builder()- Parameters:
getEventSourceMappingRequest- AConsumerthat will call methods onGetEventSourceMappingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunction
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
- Parameters:
getFunctionRequest-- Returns:
- A Java Future containing the result of the GetFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getFunction
default CompletableFuture<GetFunctionResponse> getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest) Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
This is a convenience which creates an instance of the
GetFunctionRequest.Builderavoiding the need to create one manually viaGetFunctionRequest.builder()- Parameters:
getFunctionRequest- AConsumerthat will call methods onGetFunctionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getFunctionCodeSigningConfig
default CompletableFuture<GetFunctionCodeSigningConfigResponse> getFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.
- Parameters:
getFunctionCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the GetFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunctionCodeSigningConfig
default CompletableFuture<GetFunctionCodeSigningConfigResponse> getFunctionCodeSigningConfig(Consumer<GetFunctionCodeSigningConfigRequest.Builder> getFunctionCodeSigningConfigRequest) Returns the code signing configuration for the specified function.
This is a convenience which creates an instance of the
GetFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaGetFunctionCodeSigningConfigRequest.builder()- Parameters:
getFunctionCodeSigningConfigRequest- AConsumerthat will call methods onGetFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunctionConcurrency
default CompletableFuture<GetFunctionConcurrencyResponse> getFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
- Parameters:
getFunctionConcurrencyRequest-- Returns:
- A Java Future containing the result of the GetFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getFunctionConcurrency
default CompletableFuture<GetFunctionConcurrencyResponse> getFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest) Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
This is a convenience which creates an instance of the
GetFunctionConcurrencyRequest.Builderavoiding the need to create one manually viaGetFunctionConcurrencyRequest.builder()- Parameters:
getFunctionConcurrencyRequest- AConsumerthat will call methods onGetFunctionConcurrencyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getFunctionConfiguration
default CompletableFuture<GetFunctionConfigurationResponse> getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
- Parameters:
getFunctionConfigurationRequest-- Returns:
- A Java Future containing the result of the GetFunctionConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getFunctionConfiguration
default CompletableFuture<GetFunctionConfigurationResponse> getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
This is a convenience which creates an instance of the
GetFunctionConfigurationRequest.Builderavoiding the need to create one manually viaGetFunctionConfigurationRequest.builder()- Parameters:
getFunctionConfigurationRequest- AConsumerthat will call methods onGetFunctionConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getFunctionEventInvokeConfig
default CompletableFuture<GetFunctionEventInvokeConfigResponse> getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
getFunctionEventInvokeConfigRequest-- Returns:
- A Java Future containing the result of the GetFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunctionEventInvokeConfig
default CompletableFuture<GetFunctionEventInvokeConfigResponse> getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest) Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
GetFunctionEventInvokeConfigRequest.Builderavoiding the need to create one manually viaGetFunctionEventInvokeConfigRequest.builder()- Parameters:
getFunctionEventInvokeConfigRequest- AConsumerthat will call methods onGetFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunctionRecursionConfig
default CompletableFuture<GetFunctionRecursionConfigResponse> getFunctionRecursionConfig(GetFunctionRecursionConfigRequest getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.
- Parameters:
getFunctionRecursionConfigRequest-- Returns:
- A Java Future containing the result of the GetFunctionRecursionConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getFunctionRecursionConfig
default CompletableFuture<GetFunctionRecursionConfigResponse> getFunctionRecursionConfig(Consumer<GetFunctionRecursionConfigRequest.Builder> getFunctionRecursionConfigRequest) Returns your function's recursive loop detection configuration.
This is a convenience which creates an instance of the
GetFunctionRecursionConfigRequest.Builderavoiding the need to create one manually viaGetFunctionRecursionConfigRequest.builder()- Parameters:
getFunctionRecursionConfigRequest- AConsumerthat will call methods onGetFunctionRecursionConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionRecursionConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
getFunctionUrlConfig
default CompletableFuture<GetFunctionUrlConfigResponse> getFunctionUrlConfig(GetFunctionUrlConfigRequest getFunctionUrlConfigRequest) Returns details about a Lambda function URL.
- Parameters:
getFunctionUrlConfigRequest-- Returns:
- A Java Future containing the result of the GetFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getFunctionUrlConfig
default CompletableFuture<GetFunctionUrlConfigResponse> getFunctionUrlConfig(Consumer<GetFunctionUrlConfigRequest.Builder> getFunctionUrlConfigRequest) Returns details about a Lambda function URL.
This is a convenience which creates an instance of the
GetFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaGetFunctionUrlConfigRequest.builder()- Parameters:
getFunctionUrlConfigRequest- AConsumerthat will call methods onGetFunctionUrlConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getLayerVersion
default CompletableFuture<GetLayerVersionResponse> getLayerVersion(GetLayerVersionRequest getLayerVersionRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionRequest-- Returns:
- A Java Future containing the result of the GetLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
getLayerVersion
default CompletableFuture<GetLayerVersionResponse> getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) Returns information about a version of an Lambda 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.Builderavoiding the need to create one manually viaGetLayerVersionRequest.builder()- Parameters:
getLayerVersionRequest- AConsumerthat will call methods onGetLayerVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
getLayerVersionByArn
default CompletableFuture<GetLayerVersionByArnResponse> getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionByArnRequest-- Returns:
- A Java Future containing the result of the GetLayerVersionByArn operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
getLayerVersionByArn
default CompletableFuture<GetLayerVersionByArnResponse> getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) Returns information about a version of an Lambda 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
GetLayerVersionByArnRequest.Builderavoiding the need to create one manually viaGetLayerVersionByArnRequest.builder()- Parameters:
getLayerVersionByArnRequest- AConsumerthat will call methods onGetLayerVersionByArnRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetLayerVersionByArn operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceNotFoundException The resource 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.
- See Also:
-
getLayerVersionPolicy
default CompletableFuture<GetLayerVersionPolicyResponse> getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
getLayerVersionPolicyRequest-- Returns:
- A Java Future containing the result of the GetLayerVersionPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getLayerVersionPolicy
default CompletableFuture<GetLayerVersionPolicyResponse> getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
GetLayerVersionPolicyRequest.Builderavoiding the need to create one manually viaGetLayerVersionPolicyRequest.builder()- Parameters:
getLayerVersionPolicyRequest- AConsumerthat will call methods onGetLayerVersionPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetLayerVersionPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getPolicy
Returns the resource-based IAM policy for a function, version, or alias.
- Parameters:
getPolicyRequest-- Returns:
- A Java Future containing the result of the GetPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getPolicy
default CompletableFuture<GetPolicyResponse> getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) Returns the resource-based IAM policy for a function, version, or alias.
This is a convenience which creates an instance of the
GetPolicyRequest.Builderavoiding the need to create one manually viaGetPolicyRequest.builder()- Parameters:
getPolicyRequest- AConsumerthat will call methods onGetPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
getProvisionedConcurrencyConfig
default CompletableFuture<GetProvisionedConcurrencyConfigResponse> getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.
- Parameters:
getProvisionedConcurrencyConfigRequest-- Returns:
- A Java Future containing the result of the GetProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The Lambda service encountered an internal error.
- ProvisionedConcurrencyConfigNotFoundException The specified configuration 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.
- See Also:
-
getProvisionedConcurrencyConfig
default CompletableFuture<GetProvisionedConcurrencyConfigResponse> getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest) Retrieves the provisioned concurrency configuration for a function's alias or version.
This is a convenience which creates an instance of the
GetProvisionedConcurrencyConfigRequest.Builderavoiding the need to create one manually viaGetProvisionedConcurrencyConfigRequest.builder()- Parameters:
getProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onGetProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The Lambda service encountered an internal error.
- ProvisionedConcurrencyConfigNotFoundException The specified configuration 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.
- See Also:
-
getRuntimeManagementConfig
default CompletableFuture<GetRuntimeManagementConfigResponse> getRuntimeManagementConfig(GetRuntimeManagementConfigRequest getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and
nullis returned for the ARN. For more information, see Runtime updates.- Parameters:
getRuntimeManagementConfigRequest-- Returns:
- A Java Future containing the result of the GetRuntimeManagementConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
getRuntimeManagementConfig
default CompletableFuture<GetRuntimeManagementConfigResponse> getRuntimeManagementConfig(Consumer<GetRuntimeManagementConfigRequest.Builder> getRuntimeManagementConfigRequest) Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and
nullis returned for the ARN. For more information, see Runtime updates.
This is a convenience which creates an instance of the
GetRuntimeManagementConfigRequest.Builderavoiding the need to create one manually viaGetRuntimeManagementConfigRequest.builder()- Parameters:
getRuntimeManagementConfigRequest- AConsumerthat will call methods onGetRuntimeManagementConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRuntimeManagementConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
invoke
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationTypeisRequestResponse). To invoke a function asynchronously, setInvocationTypetoEvent. Lambda passes theClientContextobject to your function for synchronous invocations only.For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Error handling and automatic retries in Lambda.
For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, quota errors, or issues with your function's code and configuration. For example, Lambda returns
TooManyRequestsExceptionif running the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).For functions with a long timeout, your client might disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
- Parameters:
invokeRequest-- Returns:
- A Java Future containing the result of the Invoke operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidRequestContentException The request body could not be parsed as JSON.
- RequestTooLargeException The request payload exceeded the
Invokerequest body JSON input quota. For more information, see Lambda quotas. - UnsupportedMediaTypeException The content type of the
Invokerequest body is not JSON. - TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- Ec2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
- SubnetIpAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
- EniLimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
- EfsMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
- EfsMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
- EfsMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
- EfsioException An error occurred when reading from or writing to a connected file system.
- SnapStartException The
afterRestore()runtime hook encountered an error. For more information, check the Amazon CloudWatch logs. - SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
- SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the
function state becomes
Active. - Ec2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
- Ec2AccessDeniedException Need additional permissions to configure VPC settings.
- InvalidSubnetIdException The subnet ID provided in the Lambda function VPC configuration is not valid.
- InvalidSecurityGroupIdException The security group ID provided in the Lambda function VPC configuration is not valid.
- InvalidZipFileException Lambda could not unzip the deployment package.
- KmsDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
- KmsInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- KmsAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
- KmsNotFoundException Lambda couldn't 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.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
- RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- 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.
- See Also:
-
invoke
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationTypeisRequestResponse). To invoke a function asynchronously, setInvocationTypetoEvent. Lambda passes theClientContextobject to your function for synchronous invocations only.For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Error handling and automatic retries in Lambda.
For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, quota errors, or issues with your function's code and configuration. For example, Lambda returns
TooManyRequestsExceptionif running the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).For functions with a long timeout, your client might disconnect 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. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
This is a convenience which creates an instance of the
InvokeRequest.Builderavoiding the need to create one manually viaInvokeRequest.builder()- Parameters:
invokeRequest- AConsumerthat will call methods onInvokeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the Invoke operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidRequestContentException The request body could not be parsed as JSON.
- RequestTooLargeException The request payload exceeded the
Invokerequest body JSON input quota. For more information, see Lambda quotas. - UnsupportedMediaTypeException The content type of the
Invokerequest body is not JSON. - TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- Ec2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
- SubnetIpAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
- EniLimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
- EfsMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
- EfsMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
- EfsMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
- EfsioException An error occurred when reading from or writing to a connected file system.
- SnapStartException The
afterRestore()runtime hook encountered an error. For more information, check the Amazon CloudWatch logs. - SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
- SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the
function state becomes
Active. - Ec2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
- Ec2AccessDeniedException Need additional permissions to configure VPC settings.
- InvalidSubnetIdException The subnet ID provided in the Lambda function VPC configuration is not valid.
- InvalidSecurityGroupIdException The security group ID provided in the Lambda function VPC configuration is not valid.
- InvalidZipFileException Lambda could not unzip the deployment package.
- KmsDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
- KmsInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- KmsAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
- KmsNotFoundException Lambda couldn't 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.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
- RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- 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.
- See Also:
-
invokeWithResponseStream
default CompletableFuture<Void> invokeWithResponseStream(InvokeWithResponseStreamRequest invokeWithResponseStreamRequest, InvokeWithResponseStreamResponseHandler asyncResponseHandler) Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.
This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
- Parameters:
invokeWithResponseStreamRequest-- Returns:
- A Java Future containing the result of the InvokeWithResponseStream operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidRequestContentException The request body could not be parsed as JSON.
- RequestTooLargeException The request payload exceeded the
Invokerequest body JSON input quota. For more information, see Lambda quotas. - UnsupportedMediaTypeException The content type of the
Invokerequest body is not JSON. - TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- Ec2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
- SubnetIpAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
- EniLimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
- EfsMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
- EfsMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
- EfsMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
- EfsioException An error occurred when reading from or writing to a connected file system.
- SnapStartException The
afterRestore()runtime hook encountered an error. For more information, check the Amazon CloudWatch logs. - SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
- SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the
function state becomes
Active. - Ec2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
- Ec2AccessDeniedException Need additional permissions to configure VPC settings.
- InvalidSubnetIdException The subnet ID provided in the Lambda function VPC configuration is not valid.
- InvalidSecurityGroupIdException The security group ID provided in the Lambda function VPC configuration is not valid.
- InvalidZipFileException Lambda could not unzip the deployment package.
- KmsDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
- KmsInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- KmsAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
- KmsNotFoundException Lambda couldn't 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.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
- RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- 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.
- See Also:
-
invokeWithResponseStream
default CompletableFuture<Void> invokeWithResponseStream(Consumer<InvokeWithResponseStreamRequest.Builder> invokeWithResponseStreamRequest, InvokeWithResponseStreamResponseHandler asyncResponseHandler) Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.
This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.
This is a convenience which creates an instance of the
InvokeWithResponseStreamRequest.Builderavoiding the need to create one manually viaInvokeWithResponseStreamRequest.builder()- Parameters:
invokeWithResponseStreamRequest- AConsumerthat will call methods onInvokeWithResponseStreamRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the InvokeWithResponseStream operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidRequestContentException The request body could not be parsed as JSON.
- RequestTooLargeException The request payload exceeded the
Invokerequest body JSON input quota. For more information, see Lambda quotas. - UnsupportedMediaTypeException The content type of the
Invokerequest body is not JSON. - TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- Ec2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
- SubnetIpAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
- EniLimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
- EfsMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
- EfsMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
- EfsMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
- EfsioException An error occurred when reading from or writing to a connected file system.
- SnapStartException The
afterRestore()runtime hook encountered an error. For more information, check the Amazon CloudWatch logs. - SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
- SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the
function state becomes
Active. - Ec2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
- Ec2AccessDeniedException Need additional permissions to configure VPC settings.
- InvalidSubnetIdException The subnet ID provided in the Lambda function VPC configuration is not valid.
- InvalidSecurityGroupIdException The security group ID provided in the Lambda function VPC configuration is not valid.
- InvalidZipFileException Lambda could not unzip the deployment package.
- KmsDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
- KmsInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
- KmsAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
- KmsNotFoundException Lambda couldn't 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.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
- RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
- 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.
- See Also:
-
listAliases
Returns a list of aliases for a Lambda function.
- Parameters:
listAliasesRequest-- Returns:
- A Java Future containing the result of the ListAliases operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listAliases
default CompletableFuture<ListAliasesResponse> listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) Returns a list of aliases for a Lambda function.
This is a convenience which creates an instance of the
ListAliasesRequest.Builderavoiding the need to create one manually viaListAliasesRequest.builder()- Parameters:
listAliasesRequest- AConsumerthat will call methods onListAliasesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAliases operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listAliasesPaginator
This is a variant of
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListAliasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListAliasesResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.- Parameters:
listAliasesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listAliasesPaginator
default ListAliasesPublisher listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) This is a variant of
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListAliasesPublisher publisher = client.listAliasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListAliasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListAliasesResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)operation.
This is a convenience which creates an instance of the
ListAliasesRequest.Builderavoiding the need to create one manually viaListAliasesRequest.builder()- Parameters:
listAliasesRequest- AConsumerthat will call methods onListAliasesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listCodeSigningConfigs
default CompletableFuture<ListCodeSigningConfigsResponse> listCodeSigningConfigs(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the
MaxItemsparameter to return fewer configurations per call.- Parameters:
listCodeSigningConfigsRequest-- Returns:
- A Java Future containing the result of the ListCodeSigningConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listCodeSigningConfigs
default CompletableFuture<ListCodeSigningConfigsResponse> listCodeSigningConfigs(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the
MaxItemsparameter to return fewer configurations per call.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builderavoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()- Parameters:
listCodeSigningConfigsRequest- AConsumerthat will call methods onListCodeSigningConfigsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCodeSigningConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsPublisher listCodeSigningConfigsPaginator(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsPublisher publisher = client.listCodeSigningConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsPublisher publisher = client.listCodeSigningConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.- Parameters:
listCodeSigningConfigsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsPublisher listCodeSigningConfigsPaginator(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsPublisher publisher = client.listCodeSigningConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsPublisher publisher = client.listCodeSigningConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)operation.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builderavoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()- Parameters:
listCodeSigningConfigsRequest- AConsumerthat will call methods onListCodeSigningConfigsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listEventSourceMappings
default CompletableFuture<ListEventSourceMappingsResponse> listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) Lists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.- Parameters:
listEventSourceMappingsRequest-- Returns:
- A Java Future containing the result of the ListEventSourceMappings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listEventSourceMappings
default CompletableFuture<ListEventSourceMappingsResponse> listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) Lists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.
This is a convenience which creates an instance of the
ListEventSourceMappingsRequest.Builderavoiding the need to create one manually viaListEventSourceMappingsRequest.builder()- Parameters:
listEventSourceMappingsRequest- AConsumerthat will call methods onListEventSourceMappingsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListEventSourceMappings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listEventSourceMappings
Lists event source mappings. Specify an
EventSourceArnto show only event source mappings for a single event source.- Returns:
- A Java Future containing the result of the ListEventSourceMappings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listEventSourceMappingsPaginator
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsPublisher listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) 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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)operation.- Parameters:
listEventSourceMappingsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsPublisher listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) 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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsPublisher publisher = client.listEventSourceMappingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.Builderavoiding the need to create one manually viaListEventSourceMappingsRequest.builder()- Parameters:
listEventSourceMappingsRequest- AConsumerthat will call methods onListEventSourceMappingsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listFunctionEventInvokeConfigs
default CompletableFuture<ListFunctionEventInvokeConfigsResponse> listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
listFunctionEventInvokeConfigsRequest-- Returns:
- A Java Future containing the result of the ListFunctionEventInvokeConfigs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listFunctionEventInvokeConfigs
default CompletableFuture<ListFunctionEventInvokeConfigsResponse> listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
ListFunctionEventInvokeConfigsRequest.Builderavoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()- Parameters:
listFunctionEventInvokeConfigsRequest- AConsumerthat will call methods onListFunctionEventInvokeConfigsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFunctionEventInvokeConfigs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsPublisher listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsPublisher publisher = client.listFunctionEventInvokeConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsPublisher publisher = client.listFunctionEventInvokeConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.- Parameters:
listFunctionEventInvokeConfigsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsPublisher listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsPublisher publisher = client.listFunctionEventInvokeConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsPublisher publisher = client.listFunctionEventInvokeConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)operation.
This is a convenience which creates an instance of the
ListFunctionEventInvokeConfigsRequest.Builderavoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()- Parameters:
listFunctionEventInvokeConfigsRequest- AConsumerthat will call methods onListFunctionEventInvokeConfigsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listFunctionUrlConfigs
default CompletableFuture<ListFunctionUrlConfigsResponse> listFunctionUrlConfigs(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.
- Parameters:
listFunctionUrlConfigsRequest-- Returns:
- A Java Future containing the result of the ListFunctionUrlConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listFunctionUrlConfigs
default CompletableFuture<ListFunctionUrlConfigsResponse> listFunctionUrlConfigs(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) Returns a list of Lambda function URLs for the specified function.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builderavoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()- Parameters:
listFunctionUrlConfigsRequest- AConsumerthat will call methods onListFunctionUrlConfigsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFunctionUrlConfigs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsPublisher listFunctionUrlConfigsPaginator(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsPublisher publisher = client.listFunctionUrlConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsPublisher publisher = client.listFunctionUrlConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.- Parameters:
listFunctionUrlConfigsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsPublisher listFunctionUrlConfigsPaginator(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsPublisher publisher = client.listFunctionUrlConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsPublisher publisher = client.listFunctionUrlConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)operation.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builderavoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()- Parameters:
listFunctionUrlConfigsRequest- AConsumerthat will call methods onListFunctionUrlConfigsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listFunctions
default CompletableFuture<ListFunctionsResponse> listFunctions(ListFunctionsRequest listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.- Parameters:
listFunctionsRequest-- Returns:
- A Java Future containing the result of the ListFunctions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listFunctions
default CompletableFuture<ListFunctionsResponse> listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.
This is a convenience which creates an instance of the
ListFunctionsRequest.Builderavoiding the need to create one manually viaListFunctionsRequest.builder()- Parameters:
listFunctionsRequest- AConsumerthat will call methods onListFunctionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFunctions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listFunctions
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersiontoALLto include all published versions of each function in addition to the unpublished version.The
ListFunctionsoperation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.- Returns:
- A Java Future containing the result of the ListFunctions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listFunctionsByCodeSigningConfig
default CompletableFuture<ListFunctionsByCodeSigningConfigResponse> listFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
- Parameters:
listFunctionsByCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the ListFunctionsByCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
listFunctionsByCodeSigningConfig
default CompletableFuture<ListFunctionsByCodeSigningConfigResponse> listFunctionsByCodeSigningConfig(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builderavoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()- Parameters:
listFunctionsByCodeSigningConfigRequest- AConsumerthat will call methods onListFunctionsByCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListFunctionsByCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigPublisher listFunctionsByCodeSigningConfigPaginator(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigPublisher publisher = client.listFunctionsByCodeSigningConfigPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigPublisher publisher = client.listFunctionsByCodeSigningConfigPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.- Parameters:
listFunctionsByCodeSigningConfigRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigPublisher listFunctionsByCodeSigningConfigPaginator(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigPublisher publisher = client.listFunctionsByCodeSigningConfigPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigPublisher publisher = client.listFunctionsByCodeSigningConfigPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)operation.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builderavoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()- Parameters:
listFunctionsByCodeSigningConfigRequest- AConsumerthat will call methods onListFunctionsByCodeSigningConfigRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
listFunctionsPaginator
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listFunctionsPaginator
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)operation.- Parameters:
listFunctionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listFunctionsPaginator
default ListFunctionsPublisher listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) 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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsPublisher publisher = client.listFunctionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.Builderavoiding the need to create one manually viaListFunctionsRequest.builder()- Parameters:
listFunctionsRequest- AConsumerthat will call methods onListFunctionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- 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.
- See Also:
-
listLayerVersions
default CompletableFuture<ListLayerVersionsResponse> listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) Lists the versions of an Lambda 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
- Parameters:
listLayerVersionsRequest-- Returns:
- A Java Future containing the result of the ListLayerVersions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayerVersions
default CompletableFuture<ListLayerVersionsResponse> listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) Lists the versions of an Lambda 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. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
This is a convenience which creates an instance of the
ListLayerVersionsRequest.Builderavoiding the need to create one manually viaListLayerVersionsRequest.builder()- Parameters:
listLayerVersionsRequest- AConsumerthat will call methods onListLayerVersionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListLayerVersions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayerVersionsPaginator
default ListLayerVersionsPublisher listLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsPublisher publisher = client.listLayerVersionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsPublisher publisher = client.listLayerVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.- Parameters:
listLayerVersionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayerVersionsPaginator
default ListLayerVersionsPublisher listLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsPublisher publisher = client.listLayerVersionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsPublisher publisher = client.listLayerVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)operation.
This is a convenience which creates an instance of the
ListLayerVersionsRequest.Builderavoiding the need to create one manually viaListLayerVersionsRequest.builder()- Parameters:
listLayerVersionsRequest- AConsumerthat will call methods onListLayerVersionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayers
Lists Lambda 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
- Parameters:
listLayersRequest-- Returns:
- A Java Future containing the result of the ListLayers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayers
default CompletableFuture<ListLayersResponse> listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) Lists Lambda 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
This is a convenience which creates an instance of the
ListLayersRequest.Builderavoiding the need to create one manually viaListLayersRequest.builder()- Parameters:
listLayersRequest- AConsumerthat will call methods onListLayersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListLayers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayers
Lists Lambda 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. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.
- Returns:
- A Java Future containing the result of the ListLayers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayersPaginator
This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListLayersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListLayersResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayersPaginator
This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListLayersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListLayersResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.- Parameters:
listLayersRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listLayersPaginator
default ListLayersPublisher listLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListLayersPublisher publisher = client.listLayersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListLayersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListLayersResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)operation.
This is a convenience which creates an instance of the
ListLayersRequest.Builderavoiding the need to create one manually viaListLayersRequest.builder()- Parameters:
listLayersRequest- AConsumerthat will call methods onListLayersRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listProvisionedConcurrencyConfigs
default CompletableFuture<ListProvisionedConcurrencyConfigsResponse> listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.
- Parameters:
listProvisionedConcurrencyConfigsRequest-- Returns:
- A Java Future containing the result of the ListProvisionedConcurrencyConfigs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listProvisionedConcurrencyConfigs
default CompletableFuture<ListProvisionedConcurrencyConfigsResponse> listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) Retrieves a list of provisioned concurrency configurations for a function.
This is a convenience which creates an instance of the
ListProvisionedConcurrencyConfigsRequest.Builderavoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()- Parameters:
listProvisionedConcurrencyConfigsRequest- AConsumerthat will call methods onListProvisionedConcurrencyConfigsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListProvisionedConcurrencyConfigs operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsPublisher listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsPublisher publisher = client.listProvisionedConcurrencyConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsPublisher publisher = client.listProvisionedConcurrencyConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.- Parameters:
listProvisionedConcurrencyConfigsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsPublisher listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsPublisher publisher = client.listProvisionedConcurrencyConfigsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsPublisher publisher = client.listProvisionedConcurrencyConfigsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)operation.
This is a convenience which creates an instance of the
ListProvisionedConcurrencyConfigsRequest.Builderavoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()- Parameters:
listProvisionedConcurrencyConfigsRequest- AConsumerthat will call methods onListProvisionedConcurrencyConfigsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
listTags
Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.
- Parameters:
listTagsRequest-- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listTags
default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.
This is a convenience which creates an instance of the
ListTagsRequest.Builderavoiding the need to create one manually viaListTagsRequest.builder()- Parameters:
listTagsRequest- AConsumerthat will call methods onListTagsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listVersionsByFunction
default CompletableFuture<ListVersionsByFunctionResponse> listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
- Parameters:
listVersionsByFunctionRequest-- Returns:
- A Java Future containing the result of the ListVersionsByFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listVersionsByFunction
default CompletableFuture<ListVersionsByFunctionResponse> listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This is a convenience which creates an instance of the
ListVersionsByFunctionRequest.Builderavoiding the need to create one manually viaListVersionsByFunctionRequest.builder()- Parameters:
listVersionsByFunctionRequest- AConsumerthat will call methods onListVersionsByFunctionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListVersionsByFunction operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionPublisher listVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionPublisher publisher = client.listVersionsByFunctionPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionPublisher publisher = client.listVersionsByFunctionPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.- Parameters:
listVersionsByFunctionRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionPublisher listVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionPublisher publisher = client.listVersionsByFunctionPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionPublisher publisher = client.listVersionsByFunctionPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response) { //... }; });Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)operation.
This is a convenience which creates an instance of the
ListVersionsByFunctionRequest.Builderavoiding the need to create one manually viaListVersionsByFunctionRequest.builder()- Parameters:
listVersionsByFunctionRequest- AConsumerthat will call methods onListVersionsByFunctionRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
publishLayerVersion
default CompletableFuture<PublishLayerVersionResponse> publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive. Each time you call
PublishLayerVersionwith the same layer name, a new version is created.Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
- Parameters:
publishLayerVersionRequest-- Returns:
- A Java Future containing the result of the PublishLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- 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.
- See Also:
-
publishLayerVersion
default CompletableFuture<PublishLayerVersionResponse> publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) Creates an Lambda layer from a ZIP archive. Each time you call
PublishLayerVersionwith the same layer 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.Builderavoiding the need to create one manually viaPublishLayerVersionRequest.builder()- Parameters:
publishLayerVersionRequest- AConsumerthat will call methods onPublishLayerVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PublishLayerVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- InvalidParameterValueException One of the parameters in the request is not valid.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- 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.
- See Also:
-
publishVersion
default CompletableFuture<PublishVersionResponse> publishVersion(PublishVersionRequest publishVersionRequest) Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.
Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
- Parameters:
publishVersionRequest-- Returns:
- A Java Future containing the result of the PublishVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
publishVersion
default CompletableFuture<PublishVersionResponse> publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.
Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
This is a convenience which creates an instance of the
PublishVersionRequest.Builderavoiding the need to create one manually viaPublishVersionRequest.builder()- Parameters:
publishVersionRequest- AConsumerthat will call methods onPublishVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PublishVersion operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
putFunctionCodeSigningConfig
default CompletableFuture<PutFunctionCodeSigningConfigResponse> putFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
- Parameters:
putFunctionCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the PutFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
putFunctionCodeSigningConfig
default CompletableFuture<PutFunctionCodeSigningConfigResponse> putFunctionCodeSigningConfig(Consumer<PutFunctionCodeSigningConfigRequest.Builder> putFunctionCodeSigningConfigRequest) Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
This is a convenience which creates an instance of the
PutFunctionCodeSigningConfigRequest.Builderavoiding the need to create one manually viaPutFunctionCodeSigningConfigRequest.builder()- Parameters:
putFunctionCodeSigningConfigRequest- AConsumerthat will call methods onPutFunctionCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutFunctionCodeSigningConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
putFunctionConcurrency
default CompletableFuture<PutFunctionConcurrencyResponse> putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.
- Parameters:
putFunctionConcurrencyRequest-- Returns:
- A Java Future containing the result of the PutFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
putFunctionConcurrency
default CompletableFuture<PutFunctionConcurrencyResponse> putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.
This is a convenience which creates an instance of the
PutFunctionConcurrencyRequest.Builderavoiding the need to create one manually viaPutFunctionConcurrencyRequest.builder()- Parameters:
putFunctionConcurrencyRequest- AConsumerthat will call methods onPutFunctionConcurrencyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutFunctionConcurrency operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
putFunctionEventInvokeConfig
default CompletableFuture<PutFunctionEventInvokeConfigResponse> putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.
To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
- Parameters:
putFunctionEventInvokeConfigRequest-- Returns:
- A Java Future containing the result of the PutFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
putFunctionEventInvokeConfig
default CompletableFuture<PutFunctionEventInvokeConfigResponse> putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.
To send an invocation record to a queue, topic, function, or event bus, specify a destination. You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
This is a convenience which creates an instance of the
PutFunctionEventInvokeConfigRequest.Builderavoiding the need to create one manually viaPutFunctionEventInvokeConfigRequest.builder()- Parameters:
putFunctionEventInvokeConfigRequest- AConsumerthat will call methods onPutFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
putFunctionRecursionConfig
default CompletableFuture<PutFunctionRecursionConfigResponse> putFunctionRecursionConfig(PutFunctionRecursionConfigRequest putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate, it stops your function being invoked and notifies you.- Parameters:
putFunctionRecursionConfigRequest-- Returns:
- A Java Future containing the result of the PutFunctionRecursionConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
putFunctionRecursionConfig
default CompletableFuture<PutFunctionRecursionConfigResponse> putFunctionRecursionConfig(Consumer<PutFunctionRecursionConfigRequest.Builder> putFunctionRecursionConfigRequest) Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate, it stops your function being invoked and notifies you.
This is a convenience which creates an instance of the
PutFunctionRecursionConfigRequest.Builderavoiding the need to create one manually viaPutFunctionRecursionConfigRequest.builder()- Parameters:
putFunctionRecursionConfigRequest- AConsumerthat will call methods onPutFunctionRecursionConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutFunctionRecursionConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
putProvisionedConcurrencyConfig
default CompletableFuture<PutProvisionedConcurrencyConfigResponse> putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.
- Parameters:
putProvisionedConcurrencyConfigRequest-- Returns:
- A Java Future containing the result of the PutProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
putProvisionedConcurrencyConfig
default CompletableFuture<PutProvisionedConcurrencyConfigResponse> putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest) Adds a provisioned concurrency configuration to a function's alias or version.
This is a convenience which creates an instance of the
PutProvisionedConcurrencyConfigRequest.Builderavoiding the need to create one manually viaPutProvisionedConcurrencyConfigRequest.builder()- Parameters:
putProvisionedConcurrencyConfigRequest- AConsumerthat will call methods onPutProvisionedConcurrencyConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutProvisionedConcurrencyConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ServiceException The 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.
- See Also:
-
putRuntimeManagementConfig
default CompletableFuture<PutRuntimeManagementConfigResponse> putRuntimeManagementConfig(PutRuntimeManagementConfigRequest putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
- Parameters:
putRuntimeManagementConfigRequest-- Returns:
- A Java Future containing the result of the PutRuntimeManagementConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
putRuntimeManagementConfig
default CompletableFuture<PutRuntimeManagementConfigResponse> putRuntimeManagementConfig(Consumer<PutRuntimeManagementConfigRequest.Builder> putRuntimeManagementConfigRequest) Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
This is a convenience which creates an instance of the
PutRuntimeManagementConfigRequest.Builderavoiding the need to create one manually viaPutRuntimeManagementConfigRequest.builder()- Parameters:
putRuntimeManagementConfigRequest- AConsumerthat will call methods onPutRuntimeManagementConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutRuntimeManagementConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- ResourceConflictException The resource already exists, or another operation is in progress.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
removeLayerVersionPermission
default CompletableFuture<RemoveLayerVersionPermissionResponse> removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
removeLayerVersionPermissionRequest-- Returns:
- A Java Future containing the result of the RemoveLayerVersionPermission operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
removeLayerVersionPermission
default CompletableFuture<RemoveLayerVersionPermissionResponse> removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest) Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
RemoveLayerVersionPermissionRequest.Builderavoiding the need to create one manually viaRemoveLayerVersionPermissionRequest.builder()- Parameters:
removeLayerVersionPermissionRequest- AConsumerthat will call methods onRemoveLayerVersionPermissionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RemoveLayerVersionPermission operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
removePermission
default CompletableFuture<RemovePermissionResponse> removePermission(RemovePermissionRequest removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.
- Parameters:
removePermissionRequest-- Returns:
- A Java Future containing the result of the RemovePermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
removePermission
default CompletableFuture<RemovePermissionResponse> removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.
This is a convenience which creates an instance of the
RemovePermissionRequest.Builderavoiding the need to create one manually viaRemovePermissionRequest.builder()- Parameters:
removePermissionRequest- AConsumerthat will call methods onRemovePermissionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RemovePermission operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto 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.
- See Also:
-
tagResource
Adds tags to a function, event source mapping, or code signing configuration.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a function, event source mapping, or code signing configuration.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a function, event source mapping, or code signing configuration.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
updateAlias
Updates the configuration of a Lambda function alias.
- Parameters:
updateAliasRequest-- Returns:
- A Java Future containing the result of the UpdateAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
updateAlias
default CompletableFuture<UpdateAliasResponse> updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) Updates the configuration of a Lambda function alias.
This is a convenience which creates an instance of the
UpdateAliasRequest.Builderavoiding the need to create one manually viaUpdateAliasRequest.builder()- Parameters:
updateAliasRequest- AConsumerthat will call methods onUpdateAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
updateCodeSigningConfig
default CompletableFuture<UpdateCodeSigningConfigResponse> updateCodeSigningConfig(UpdateCodeSigningConfigRequest updateCodeSigningConfigRequest) Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
- Parameters:
updateCodeSigningConfigRequest-- Returns:
- A Java Future containing the result of the UpdateCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
updateCodeSigningConfig
default CompletableFuture<UpdateCodeSigningConfigResponse> updateCodeSigningConfig(Consumer<UpdateCodeSigningConfigRequest.Builder> updateCodeSigningConfigRequest) Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.
This is a convenience which creates an instance of the
UpdateCodeSigningConfigRequest.Builderavoiding the need to create one manually viaUpdateCodeSigningConfigRequest.builder()- Parameters:
updateCodeSigningConfigRequest- AConsumerthat will call methods onUpdateCodeSigningConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateCodeSigningConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ResourceNotFoundException The resource 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.
- See Also:
-
updateEventSourceMapping
default CompletableFuture<UpdateEventSourceMappingResponse> updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only for stream sources (DynamoDB and Kinesis):
-
BisectBatchOnFunctionError– If the function returns an error, split the batch in two and retry. -
DestinationConfig– Send discarded records to an Amazon SQS queue or Amazon SNS topic. -
MaximumRecordAgeInSeconds– Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
- Parameters:
updateEventSourceMappingRequest-- Returns:
- A Java Future containing the result of the UpdateEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceInUseException The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
- 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.
- See Also:
-
updateEventSourceMapping
default CompletableFuture<UpdateEventSourceMappingResponse> updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
The following error handling options are available only for stream sources (DynamoDB and Kinesis):
-
BisectBatchOnFunctionError– If the function returns an error, split the batch in two and retry. -
DestinationConfig– Send discarded records to an Amazon SQS queue or Amazon SNS topic. -
MaximumRecordAgeInSeconds– Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires -
MaximumRetryAttempts– Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires. -
ParallelizationFactor– Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
This is a convenience which creates an instance of the
UpdateEventSourceMappingRequest.Builderavoiding the need to create one manually viaUpdateEventSourceMappingRequest.builder()- Parameters:
updateEventSourceMappingRequest- AConsumerthat will call methods onUpdateEventSourceMappingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateEventSourceMapping operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceInUseException The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
- 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.
- See Also:
-
updateFunctionCode
default CompletableFuture<UpdateFunctionCodeResponse> updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.
If the function's package type is
Image, then you must specify the code package inImageUrias the URI of a container image in the Amazon ECR registry.If the function's package type is
Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using theZipFilefield.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64orarm64).The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
- Parameters:
updateFunctionCodeRequest-- Returns:
- A Java Future containing the result of the UpdateFunctionCode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
updateFunctionCode
default CompletableFuture<UpdateFunctionCodeResponse> updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.
If the function's package type is
Image, then you must specify the code package inImageUrias the URI of a container image in the Amazon ECR registry.If the function's package type is
Zip, then you must specify the deployment package as a .zip file archive. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using theZipFilefield.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64orarm64).The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
This is a convenience which creates an instance of the
UpdateFunctionCodeRequest.Builderavoiding the need to create one manually viaUpdateFunctionCodeRequest.builder()- Parameters:
updateFunctionCodeRequest- AConsumerthat will call methods onUpdateFunctionCodeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateFunctionCode operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- ResourceConflictException The resource already exists, or another operation is in progress.
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
updateFunctionConfiguration
default CompletableFuture<UpdateFunctionConfigurationResponse> updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The
LastUpdateStatus,LastUpdateStatusReason, andLastUpdateStatusReasonCodefields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Services service, use AddPermission.
- Parameters:
updateFunctionConfigurationRequest-- Returns:
- A Java Future containing the result of the UpdateFunctionConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
updateFunctionConfiguration
default CompletableFuture<UpdateFunctionConfigurationResponse> updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The
LastUpdateStatus,LastUpdateStatusReason, andLastUpdateStatusReasonCodefields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Lambda function states.These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an Amazon Web Services account or Amazon Web Services service, use AddPermission.
This is a convenience which creates an instance of the
UpdateFunctionConfigurationRequest.Builderavoiding the need to create one manually viaUpdateFunctionConfigurationRequest.builder()- Parameters:
updateFunctionConfigurationRequest- AConsumerthat will call methods onUpdateFunctionConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateFunctionConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the
Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicyto retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunctionorGetAliasto retrieve the latest RevisionId for your resource.
-
- CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
- InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
- CodeSigningConfigNotFoundException The specified code signing configuration 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.
- See Also:
-
updateFunctionEventInvokeConfig
default CompletableFuture<UpdateFunctionEventInvokeConfigResponse> updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
updateFunctionEventInvokeConfigRequest-- Returns:
- A Java Future containing the result of the UpdateFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
updateFunctionEventInvokeConfig
default CompletableFuture<UpdateFunctionEventInvokeConfigResponse> updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
UpdateFunctionEventInvokeConfigRequest.Builderavoiding the need to create one manually viaUpdateFunctionEventInvokeConfigRequest.builder()- Parameters:
updateFunctionEventInvokeConfigRequest- AConsumerthat will call methods onUpdateFunctionEventInvokeConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateFunctionEventInvokeConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceException The Lambda service encountered an internal error.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- ResourceConflictException The resource already exists, or another operation is in progress.
- 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.
- See Also:
-
updateFunctionUrlConfig
default CompletableFuture<UpdateFunctionUrlConfigResponse> updateFunctionUrlConfig(UpdateFunctionUrlConfigRequest updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.
- Parameters:
updateFunctionUrlConfigRequest-- Returns:
- A Java Future containing the result of the UpdateFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
updateFunctionUrlConfig
default CompletableFuture<UpdateFunctionUrlConfigResponse> updateFunctionUrlConfig(Consumer<UpdateFunctionUrlConfigRequest.Builder> updateFunctionUrlConfigRequest) Updates the configuration for a Lambda function URL.
This is a convenience which creates an instance of the
UpdateFunctionUrlConfigRequest.Builderavoiding the need to create one manually viaUpdateFunctionUrlConfigRequest.builder()- Parameters:
updateFunctionUrlConfigRequest- AConsumerthat will call methods onUpdateFunctionUrlConfigRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateFunctionUrlConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceConflictException The resource already exists, or another operation is in progress.
- ResourceNotFoundException The resource specified in the request does not exist.
- InvalidParameterValueException One of the parameters in the request is not valid.
- ServiceException The Lambda service encountered an internal error.
- TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas.
- 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.
- See Also:
-
waiter
Create an instance ofLambdaAsyncWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
LambdaAsyncWaiter
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aLambdaAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLambdaAsyncClient.
-