Interface LambdaCoreAsyncClient
- 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 Core is a set of APIs for managing shared infrastructure resources used by Lambda. The Lambda Core API provides operations for:
-
Creating and managing network connectors that enable Lambda MicroVMs and Lambda Web Functions to access resources in your Amazon Virtual Private Cloud (Amazon VPC).
-
Creating customer-managed runtimes which can be used with Lambda Event Functions.
Network connectors provision elastic network interfaces (ENIs) in your VPC subnets, providing a managed network path from Lambda compute environments to private resources such as Amazon RDS databases, Amazon ElastiCache clusters, and internal APIs. You create a network connector once and attach it to one or more Lambda MicroVMs or Lambda Web Functions at run time.
A customer-managed runtime is a Lambda runtime that you create and manage as a standalone resource. Lambda Event Functions can use your customer-managed runtime instead of using one of the built-in Lambda-managed runtimes. Customer-managed runtimes enable you to create customized runtimes for your workloads, and give you control over runtime updates and the deprecation lifecycle.
The Lambda Core 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaCoreAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aLambdaCoreAsyncClient.static LambdaCoreAsyncClientcreate()Create aLambdaCoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createNetworkConnector(Consumer<CreateNetworkConnectorRequest.Builder> createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.createNetworkConnector(CreateNetworkConnectorRequest createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.default CompletableFuture<CreateRuntimeResponse> createRuntime(Consumer<CreateRuntimeRequest.Builder> createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions.default CompletableFuture<CreateRuntimeResponse> createRuntime(CreateRuntimeRequest createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions.createRuntimeAlias(Consumer<CreateRuntimeAliasRequest.Builder> createRuntimeAliasRequest) Creates a new customer-managed runtime alias.createRuntimeAlias(CreateRuntimeAliasRequest createRuntimeAliasRequest) Creates a new customer-managed runtime alias.createRuntimeVersion(Consumer<CreateRuntimeVersionRequest.Builder> createRuntimeVersionRequest) Creates a new runtime version.createRuntimeVersion(CreateRuntimeVersionRequest createRuntimeVersionRequest) Creates a new runtime version.deleteNetworkConnector(Consumer<DeleteNetworkConnectorRequest.Builder> deleteNetworkConnectorRequest) Initiates deletion of a network connector.deleteNetworkConnector(DeleteNetworkConnectorRequest deleteNetworkConnectorRequest) Initiates deletion of a network connector.default CompletableFuture<DeleteRuntimeResponse> deleteRuntime(Consumer<DeleteRuntimeRequest.Builder> deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted.default CompletableFuture<DeleteRuntimeResponse> deleteRuntime(DeleteRuntimeRequest deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted.deleteRuntimeAlias(Consumer<DeleteRuntimeAliasRequest.Builder> deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted.deleteRuntimeAlias(DeleteRuntimeAliasRequest deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted.deleteRuntimeVersion(Consumer<DeleteRuntimeVersionRequest.Builder> deleteRuntimeVersionRequest) Schedules a runtime version to be deleted.deleteRuntimeVersion(DeleteRuntimeVersionRequest deleteRuntimeVersionRequest) Schedules a runtime version to be deleted.getNetworkConnector(Consumer<GetNetworkConnectorRequest.Builder> getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector.getNetworkConnector(GetNetworkConnectorRequest getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector.default CompletableFuture<GetRuntimeResponse> getRuntime(Consumer<GetRuntimeRequest.Builder> getRuntimeRequest) Retrieves the configuration and metadata of a runtime.default CompletableFuture<GetRuntimeResponse> getRuntime(GetRuntimeRequest getRuntimeRequest) Retrieves the configuration and metadata of a runtime.default CompletableFuture<GetRuntimeAliasResponse> getRuntimeAlias(Consumer<GetRuntimeAliasRequest.Builder> getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.default CompletableFuture<GetRuntimeAliasResponse> getRuntimeAlias(GetRuntimeAliasRequest getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.getRuntimeVersion(Consumer<GetRuntimeVersionRequest.Builder> getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.getRuntimeVersion(GetRuntimeVersionRequest getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.listNetworkConnectors(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region.listNetworkConnectors(ListNetworkConnectorsRequest listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region.default ListNetworkConnectorsPublisherlistNetworkConnectorsPaginator(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) This is a variant oflistNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation.default ListNetworkConnectorsPublisherlistNetworkConnectorsPaginator(ListNetworkConnectorsRequest listNetworkConnectorsRequest) This is a variant oflistNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation.listNetworkConnectorVersions(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) Returns a paginated list of the versions of a network connector.listNetworkConnectorVersions(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) Returns a paginated list of the versions of a network connector.listNetworkConnectorVersionsPaginator(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) This is a variant oflistNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation.listNetworkConnectorVersionsPaginator(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) This is a variant oflistNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation.listRuntimeAliases(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.listRuntimeAliases(ListRuntimeAliasesRequest listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.default ListRuntimeAliasesPublisherlistRuntimeAliasesPaginator(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) This is a variant oflistRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.default ListRuntimeAliasesPublisherlistRuntimeAliasesPaginator(ListRuntimeAliasesRequest listRuntimeAliasesRequest) This is a variant oflistRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.default CompletableFuture<ListRuntimesResponse> listRuntimes(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.default CompletableFuture<ListRuntimesResponse> listRuntimes(ListRuntimesRequest listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.default ListRuntimesPublisherlistRuntimesPaginator(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) This is a variant oflistRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.default ListRuntimesPublisherlistRuntimesPaginator(ListRuntimesRequest listRuntimesRequest) This is a variant oflistRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.listRuntimeVersions(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.listRuntimeVersions(ListRuntimeVersionsRequest listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.default ListRuntimeVersionsPublisherlistRuntimeVersionsPaginator(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) This is a variant oflistRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.default ListRuntimeVersionsPublisherlistRuntimeVersionsPaginator(ListRuntimeVersionsRequest listRuntimeVersionsRequest) This is a variant oflistRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.default CompletableFuture<RestoreRuntimeResponse> restoreRuntime(Consumer<RestoreRuntimeRequest.Builder> restoreRuntimeRequest) Cancels a pending scheduled deletion, returning the resource to the ACTIVE state.default CompletableFuture<RestoreRuntimeResponse> restoreRuntime(RestoreRuntimeRequest restoreRuntimeRequest) Cancels a pending scheduled deletion, returning the resource to the ACTIVE state.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateNetworkConnector(Consumer<UpdateNetworkConnectorRequest.Builder> updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector.updateNetworkConnector(UpdateNetworkConnectorRequest updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector.default CompletableFuture<UpdateRuntimeResponse> updateRuntime(Consumer<UpdateRuntimeRequest.Builder> updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.default CompletableFuture<UpdateRuntimeResponse> updateRuntime(UpdateRuntimeRequest updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.updateRuntimeAlias(Consumer<UpdateRuntimeAliasRequest.Builder> updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.updateRuntimeAlias(UpdateRuntimeAliasRequest updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.updateRuntimeVersion(Consumer<UpdateRuntimeVersionRequest.Builder> updateRuntimeVersionRequest) Updates the runtime version release notes.updateRuntimeVersion(UpdateRuntimeVersionRequest updateRuntimeVersionRequest) Updates the runtime version release notes.default LambdaCoreAsyncWaiterwaiter()Create an instance ofLambdaCoreAsyncWaiterusing 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
-
createNetworkConnector
default CompletableFuture<CreateNetworkConnectorResponse> createNetworkConnector(CreateNetworkConnectorRequest createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC. The network connector provisions elastic network interfaces (ENIs) in the subnets you specify, providing a managed network path to private resources such as databases, caches, and internal APIs.
This operation is asynchronous. The network connector starts in
PENDINGstate while ENIs are provisioned in your VPC (provisioning typically takes up to 10 minutes). UseGetNetworkConnectorto poll the connector state until it reachesACTIVE. Once active, you can attach the connector to supported Lambda compute resources — such as MicroVMs and WebFunctions — at run time. For how to attach a connector, see the documentation for the specific compute type.This operation is idempotent when you provide a
ClientToken— if you retry a request that completed successfully using the same client token, the operation returns the existing connector without creating a duplicate.- Parameters:
createNetworkConnectorRequest-- Returns:
- A Java Future containing the result of the CreateNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- NetworkConnectorLimitExceededException The request would exceed a network connector limit. For
CreateNetworkConnector, the account has reached the maximum number of network connectors allowed. ForUpdateNetworkConnector, the connector has reached the maximum number of versions allowed. - ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createNetworkConnector
default CompletableFuture<CreateNetworkConnectorResponse> createNetworkConnector(Consumer<CreateNetworkConnectorRequest.Builder> createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC. The network connector provisions elastic network interfaces (ENIs) in the subnets you specify, providing a managed network path to private resources such as databases, caches, and internal APIs.
This operation is asynchronous. The network connector starts in
PENDINGstate while ENIs are provisioned in your VPC (provisioning typically takes up to 10 minutes). UseGetNetworkConnectorto poll the connector state until it reachesACTIVE. Once active, you can attach the connector to supported Lambda compute resources — such as MicroVMs and WebFunctions — at run time. For how to attach a connector, see the documentation for the specific compute type.This operation is idempotent when you provide a
ClientToken— if you retry a request that completed successfully using the same client token, the operation returns the existing connector without creating a duplicate.
This is a convenience which creates an instance of the
CreateNetworkConnectorRequest.Builderavoiding the need to create one manually viaCreateNetworkConnectorRequest.builder()- Parameters:
createNetworkConnectorRequest- AConsumerthat will call methods onCreateNetworkConnectorRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- NetworkConnectorLimitExceededException The request would exceed a network connector limit. For
CreateNetworkConnector, the account has reached the maximum number of network connectors allowed. ForUpdateNetworkConnector, the connector has reached the maximum number of versions allowed. - ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntime
default CompletableFuture<CreateRuntimeResponse> createRuntime(CreateRuntimeRequest createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions. The runtime resource is the parent of the runtime version and runtime alias child resources.
- Parameters:
createRuntimeRequest-- Returns:
- A Java Future containing the result of the CreateRuntime 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntime
default CompletableFuture<CreateRuntimeResponse> createRuntime(Consumer<CreateRuntimeRequest.Builder> createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions. The runtime resource is the parent of the runtime version and runtime alias child resources.
This is a convenience which creates an instance of the
CreateRuntimeRequest.Builderavoiding the need to create one manually viaCreateRuntimeRequest.builder()- Parameters:
createRuntimeRequest- AConsumerthat will call methods onCreateRuntimeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateRuntime 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntimeAlias
default CompletableFuture<CreateRuntimeAliasResponse> createRuntimeAlias(CreateRuntimeAliasRequest createRuntimeAliasRequest) Creates a new customer-managed runtime alias. The alias is a named pointer to a runtime version. Functions consume the customer-managed runtime through the runtime alias.
- Parameters:
createRuntimeAliasRequest-- Returns:
- A Java Future containing the result of the CreateRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntimeAlias
default CompletableFuture<CreateRuntimeAliasResponse> createRuntimeAlias(Consumer<CreateRuntimeAliasRequest.Builder> createRuntimeAliasRequest) Creates a new customer-managed runtime alias. The alias is a named pointer to a runtime version. Functions consume the customer-managed runtime through the runtime alias.
This is a convenience which creates an instance of the
CreateRuntimeAliasRequest.Builderavoiding the need to create one manually viaCreateRuntimeAliasRequest.builder()- Parameters:
createRuntimeAliasRequest- AConsumerthat will call methods onCreateRuntimeAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntimeVersion
default CompletableFuture<CreateRuntimeVersionResponse> createRuntimeVersion(CreateRuntimeVersionRequest createRuntimeVersionRequest) Creates a new runtime version. A runtime version defines the function execution environment by referencing a container image. Runtime versions are immutable. To update the runtime, create a new runtime version and migrate functions by updating the runtime aliases to point to the new runtime version.
- Parameters:
createRuntimeVersionRequest-- Returns:
- A Java Future containing the result of the CreateRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createRuntimeVersion
default CompletableFuture<CreateRuntimeVersionResponse> createRuntimeVersion(Consumer<CreateRuntimeVersionRequest.Builder> createRuntimeVersionRequest) Creates a new runtime version. A runtime version defines the function execution environment by referencing a container image. Runtime versions are immutable. To update the runtime, create a new runtime version and migrate functions by updating the runtime aliases to point to the new runtime version.
This is a convenience which creates an instance of the
CreateRuntimeVersionRequest.Builderavoiding the need to create one manually viaCreateRuntimeVersionRequest.builder()- Parameters:
createRuntimeVersionRequest- AConsumerthat will call methods onCreateRuntimeVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ServiceQuotaExceededException The request would exceed a service quota for your account. Request a quota increase or reduce the number of resources in use, then retry the request.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteNetworkConnector
default CompletableFuture<DeleteNetworkConnectorResponse> deleteNetworkConnector(DeleteNetworkConnectorRequest deleteNetworkConnectorRequest) Initiates deletion of a network connector. The connector transitions to
DELETINGstate while elastic network interfaces are cleaned up asynchronously. After deletion completes, subsequent calls toGetNetworkConnectorreturnResourceNotFoundException.This operation is idempotent — calling delete on a connector that is already deleting or has been deleted succeeds without error. You can delete connectors in
ACTIVEorFAILEDstates. Before deleting a connector, ensure that no Lambda compute resources are using it, as they will lose VPC egress connectivity immediately.Deleting with an unqualified identifier removes the connector and all of its versions. To remove a single historical version, supply its version-qualified ARN; the connector and its remaining versions are unaffected. You can't delete the latest version on its own — delete the connector to remove it.
- Parameters:
deleteNetworkConnectorRequest-- Returns:
- A Java Future containing the result of the DeleteNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteNetworkConnector
default CompletableFuture<DeleteNetworkConnectorResponse> deleteNetworkConnector(Consumer<DeleteNetworkConnectorRequest.Builder> deleteNetworkConnectorRequest) Initiates deletion of a network connector. The connector transitions to
DELETINGstate while elastic network interfaces are cleaned up asynchronously. After deletion completes, subsequent calls toGetNetworkConnectorreturnResourceNotFoundException.This operation is idempotent — calling delete on a connector that is already deleting or has been deleted succeeds without error. You can delete connectors in
ACTIVEorFAILEDstates. Before deleting a connector, ensure that no Lambda compute resources are using it, as they will lose VPC egress connectivity immediately.Deleting with an unqualified identifier removes the connector and all of its versions. To remove a single historical version, supply its version-qualified ARN; the connector and its remaining versions are unaffected. You can't delete the latest version on its own — delete the connector to remove it.
This is a convenience which creates an instance of the
DeleteNetworkConnectorRequest.Builderavoiding the need to create one manually viaDeleteNetworkConnectorRequest.builder()- Parameters:
deleteNetworkConnectorRequest- AConsumerthat will call methods onDeleteNetworkConnectorRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntime
default CompletableFuture<DeleteRuntimeResponse> deleteRuntime(DeleteRuntimeRequest deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted. Runtimes scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Runtime versions and aliases must be deleted or scheduled for deletion before deleting the runtime. Function invokes fail for functions using runtime versions or aliases that are deleted or pending deletion.
- Parameters:
deleteRuntimeRequest-- Returns:
- A Java Future containing the result of the DeleteRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntime
default CompletableFuture<DeleteRuntimeResponse> deleteRuntime(Consumer<DeleteRuntimeRequest.Builder> deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted. Runtimes scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Runtime versions and aliases must be deleted or scheduled for deletion before deleting the runtime. Function invokes fail for functions using runtime versions or aliases that are deleted or pending deletion.
This is a convenience which creates an instance of the
DeleteRuntimeRequest.Builderavoiding the need to create one manually viaDeleteRuntimeRequest.builder()- Parameters:
deleteRuntimeRequest- AConsumerthat will call methods onDeleteRuntimeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntimeAlias
default CompletableFuture<DeleteRuntimeAliasResponse> deleteRuntimeAlias(DeleteRuntimeAliasRequest deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted. Runtime aliases scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Function invokes fail for functions using runtime aliases that are deleted or pending deletion.
- Parameters:
deleteRuntimeAliasRequest-- Returns:
- A Java Future containing the result of the DeleteRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntimeAlias
default CompletableFuture<DeleteRuntimeAliasResponse> deleteRuntimeAlias(Consumer<DeleteRuntimeAliasRequest.Builder> deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted. Runtime aliases scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Function invokes fail for functions using runtime aliases that are deleted or pending deletion.
This is a convenience which creates an instance of the
DeleteRuntimeAliasRequest.Builderavoiding the need to create one manually viaDeleteRuntimeAliasRequest.builder()- Parameters:
deleteRuntimeAliasRequest- AConsumerthat will call methods onDeleteRuntimeAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntimeVersion
default CompletableFuture<DeleteRuntimeVersionResponse> deleteRuntimeVersion(DeleteRuntimeVersionRequest deleteRuntimeVersionRequest) Schedules a runtime version to be deleted. Runtime versions scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Function invokes fail for functions using a runtime version that is deleted or pending deletion.
- Parameters:
deleteRuntimeVersionRequest-- Returns:
- A Java Future containing the result of the DeleteRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRuntimeVersion
default CompletableFuture<DeleteRuntimeVersionResponse> deleteRuntimeVersion(Consumer<DeleteRuntimeVersionRequest.Builder> deleteRuntimeVersionRequest) Schedules a runtime version to be deleted. Runtime versions scheduled for deletion enter the PENDING_DELETION state and can be restored during the scheduled deletion window. Function invokes fail for functions using a runtime version that is deleted or pending deletion.
This is a convenience which creates an instance of the
DeleteRuntimeVersionRequest.Builderavoiding the need to create one manually viaDeleteRuntimeVersionRequest.builder()- Parameters:
deleteRuntimeVersionRequest- AConsumerthat will call methods onDeleteRuntimeVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNetworkConnector
default CompletableFuture<GetNetworkConnectorResponse> getNetworkConnector(GetNetworkConnectorRequest getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector. The
Identifierparameter accepts the connector ID, name, or full ARN. Use this operation to poll connector state after creation or update, or to inspect the current VPC configuration and any failure reasons.The response includes the full connector configuration, current state, and — if the connector has been updated — the
LastUpdateStatusandLastUpdateStatusReasonCodefields that indicate whether the most recent update succeeded or failed.- Parameters:
getNetworkConnectorRequest-- Returns:
- A Java Future containing the result of the GetNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getNetworkConnector
default CompletableFuture<GetNetworkConnectorResponse> getNetworkConnector(Consumer<GetNetworkConnectorRequest.Builder> getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector. The
Identifierparameter accepts the connector ID, name, or full ARN. Use this operation to poll connector state after creation or update, or to inspect the current VPC configuration and any failure reasons.The response includes the full connector configuration, current state, and — if the connector has been updated — the
LastUpdateStatusandLastUpdateStatusReasonCodefields that indicate whether the most recent update succeeded or failed.
This is a convenience which creates an instance of the
GetNetworkConnectorRequest.Builderavoiding the need to create one manually viaGetNetworkConnectorRequest.builder()- Parameters:
getNetworkConnectorRequest- AConsumerthat will call methods onGetNetworkConnectorRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntime
Retrieves the configuration and metadata of a runtime.
- Parameters:
getRuntimeRequest-- Returns:
- A Java Future containing the result of the GetRuntime 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntime
default CompletableFuture<GetRuntimeResponse> getRuntime(Consumer<GetRuntimeRequest.Builder> getRuntimeRequest) Retrieves the configuration and metadata of a runtime.
This is a convenience which creates an instance of the
GetRuntimeRequest.Builderavoiding the need to create one manually viaGetRuntimeRequest.builder()- Parameters:
getRuntimeRequest- AConsumerthat will call methods onGetRuntimeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRuntime 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntimeAlias
default CompletableFuture<GetRuntimeAliasResponse> getRuntimeAlias(GetRuntimeAliasRequest getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.
- Parameters:
getRuntimeAliasRequest-- Returns:
- A Java Future containing the result of the GetRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntimeAlias
default CompletableFuture<GetRuntimeAliasResponse> getRuntimeAlias(Consumer<GetRuntimeAliasRequest.Builder> getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.
This is a convenience which creates an instance of the
GetRuntimeAliasRequest.Builderavoiding the need to create one manually viaGetRuntimeAliasRequest.builder()- Parameters:
getRuntimeAliasRequest- AConsumerthat will call methods onGetRuntimeAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntimeVersion
default CompletableFuture<GetRuntimeVersionResponse> getRuntimeVersion(GetRuntimeVersionRequest getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.
- Parameters:
getRuntimeVersionRequest-- Returns:
- A Java Future containing the result of the GetRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRuntimeVersion
default CompletableFuture<GetRuntimeVersionResponse> getRuntimeVersion(Consumer<GetRuntimeVersionRequest.Builder> getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.
This is a convenience which creates an instance of the
GetRuntimeVersionRequest.Builderavoiding the need to create one manually viaGetRuntimeVersionRequest.builder()- Parameters:
getRuntimeVersionRequest- AConsumerthat will call methods onGetRuntimeVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorVersions
default CompletableFuture<ListNetworkConnectorVersionsResponse> listNetworkConnectorVersions(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) Returns a paginated list of the versions of a network connector. Each configuration update creates a new immutable version; this operation lists those versions for the connector you specify. You can optionally filter results by version state. Use the
Markerparameter from a previous response to retrieve the next page of results.Each item in the response includes the version-qualified ARN, version number, current state, and last modified timestamp for that version. To retrieve the current (latest) configuration of the connector, use
GetNetworkConnector; to inspect a specific version, callGetNetworkConnectorwith a version-qualified identifier.- Parameters:
listNetworkConnectorVersionsRequest-- Returns:
- A Java Future containing the result of the ListNetworkConnectorVersions 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorVersions
default CompletableFuture<ListNetworkConnectorVersionsResponse> listNetworkConnectorVersions(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) Returns a paginated list of the versions of a network connector. Each configuration update creates a new immutable version; this operation lists those versions for the connector you specify. You can optionally filter results by version state. Use the
Markerparameter from a previous response to retrieve the next page of results.Each item in the response includes the version-qualified ARN, version number, current state, and last modified timestamp for that version. To retrieve the current (latest) configuration of the connector, use
GetNetworkConnector; to inspect a specific version, callGetNetworkConnectorwith a version-qualified identifier.
This is a convenience which creates an instance of the
ListNetworkConnectorVersionsRequest.Builderavoiding the need to create one manually viaListNetworkConnectorVersionsRequest.builder()- Parameters:
listNetworkConnectorVersionsRequest- AConsumerthat will call methods onListNetworkConnectorVersionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListNetworkConnectorVersions 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorVersionsPaginator
default ListNetworkConnectorVersionsPublisher listNetworkConnectorVersionsPaginator(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) This is a variant of
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)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.lambdacore.paginators.ListNetworkConnectorVersionsPublisher publisher = client.listNetworkConnectorVersionsPaginator(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.lambdacore.paginators.ListNetworkConnectorVersionsPublisher publisher = client.listNetworkConnectorVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse 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
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation.- Parameters:
listNetworkConnectorVersionsRequest-- 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorVersionsPaginator
default ListNetworkConnectorVersionsPublisher listNetworkConnectorVersionsPaginator(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) This is a variant of
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)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.lambdacore.paginators.ListNetworkConnectorVersionsPublisher publisher = client.listNetworkConnectorVersionsPaginator(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.lambdacore.paginators.ListNetworkConnectorVersionsPublisher publisher = client.listNetworkConnectorVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse 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
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation.
This is a convenience which creates an instance of the
ListNetworkConnectorVersionsRequest.Builderavoiding the need to create one manually viaListNetworkConnectorVersionsRequest.builder()- Parameters:
listNetworkConnectorVersionsRequest- AConsumerthat will call methods onListNetworkConnectorVersionsRequest.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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectors
default CompletableFuture<ListNetworkConnectorsResponse> listNetworkConnectors(ListNetworkConnectorsRequest listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the
Markerparameter from a previous response to retrieve the next page of results.Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use
GetNetworkConnector.- Parameters:
listNetworkConnectorsRequest-- Returns:
- A Java Future containing the result of the ListNetworkConnectors 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectors
default CompletableFuture<ListNetworkConnectorsResponse> listNetworkConnectors(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the
Markerparameter from a previous response to retrieve the next page of results.Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use
GetNetworkConnector.
This is a convenience which creates an instance of the
ListNetworkConnectorsRequest.Builderavoiding the need to create one manually viaListNetworkConnectorsRequest.builder()- Parameters:
listNetworkConnectorsRequest- AConsumerthat will call methods onListNetworkConnectorsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListNetworkConnectors 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorsPaginator
default ListNetworkConnectorsPublisher listNetworkConnectorsPaginator(ListNetworkConnectorsRequest listNetworkConnectorsRequest) This is a variant of
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)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.lambdacore.paginators.ListNetworkConnectorsPublisher publisher = client.listNetworkConnectorsPaginator(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.lambdacore.paginators.ListNetworkConnectorsPublisher publisher = client.listNetworkConnectorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse 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
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation.- Parameters:
listNetworkConnectorsRequest-- 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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listNetworkConnectorsPaginator
default ListNetworkConnectorsPublisher listNetworkConnectorsPaginator(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) This is a variant of
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)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.lambdacore.paginators.ListNetworkConnectorsPublisher publisher = client.listNetworkConnectorsPaginator(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.lambdacore.paginators.ListNetworkConnectorsPublisher publisher = client.listNetworkConnectorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse 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
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation.
This is a convenience which creates an instance of the
ListNetworkConnectorsRequest.Builderavoiding the need to create one manually viaListNetworkConnectorsRequest.builder()- Parameters:
listNetworkConnectorsRequest- AConsumerthat will call methods onListNetworkConnectorsRequest.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. Check the error message for details about which parameter failed validation.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeAliases
default CompletableFuture<ListRuntimeAliasesResponse> listRuntimeAliases(ListRuntimeAliasesRequest listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.
- Parameters:
listRuntimeAliasesRequest-- Returns:
- A Java Future containing the result of the ListRuntimeAliases 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeAliases
default CompletableFuture<ListRuntimeAliasesResponse> listRuntimeAliases(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.
This is a convenience which creates an instance of the
ListRuntimeAliasesRequest.Builderavoiding the need to create one manually viaListRuntimeAliasesRequest.builder()- Parameters:
listRuntimeAliasesRequest- AConsumerthat will call methods onListRuntimeAliasesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRuntimeAliases 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeAliasesPaginator
default ListRuntimeAliasesPublisher listRuntimeAliasesPaginator(ListRuntimeAliasesRequest listRuntimeAliasesRequest) This is a variant of
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)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.lambdacore.paginators.ListRuntimeAliasesPublisher publisher = client.listRuntimeAliasesPaginator(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.lambdacore.paginators.ListRuntimeAliasesPublisher publisher = client.listRuntimeAliasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.- Parameters:
listRuntimeAliasesRequest-- 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeAliasesPaginator
default ListRuntimeAliasesPublisher listRuntimeAliasesPaginator(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) This is a variant of
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)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.lambdacore.paginators.ListRuntimeAliasesPublisher publisher = client.listRuntimeAliasesPaginator(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.lambdacore.paginators.ListRuntimeAliasesPublisher publisher = client.listRuntimeAliasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.
This is a convenience which creates an instance of the
ListRuntimeAliasesRequest.Builderavoiding the need to create one manually viaListRuntimeAliasesRequest.builder()- Parameters:
listRuntimeAliasesRequest- AConsumerthat will call methods onListRuntimeAliasesRequest.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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeVersions
default CompletableFuture<ListRuntimeVersionsResponse> listRuntimeVersions(ListRuntimeVersionsRequest listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.
- Parameters:
listRuntimeVersionsRequest-- Returns:
- A Java Future containing the result of the ListRuntimeVersions 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeVersions
default CompletableFuture<ListRuntimeVersionsResponse> listRuntimeVersions(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.
This is a convenience which creates an instance of the
ListRuntimeVersionsRequest.Builderavoiding the need to create one manually viaListRuntimeVersionsRequest.builder()- Parameters:
listRuntimeVersionsRequest- AConsumerthat will call methods onListRuntimeVersionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRuntimeVersions 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeVersionsPaginator
default ListRuntimeVersionsPublisher listRuntimeVersionsPaginator(ListRuntimeVersionsRequest listRuntimeVersionsRequest) This is a variant of
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)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.lambdacore.paginators.ListRuntimeVersionsPublisher publisher = client.listRuntimeVersionsPaginator(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.lambdacore.paginators.ListRuntimeVersionsPublisher publisher = client.listRuntimeVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.- Parameters:
listRuntimeVersionsRequest-- 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimeVersionsPaginator
default ListRuntimeVersionsPublisher listRuntimeVersionsPaginator(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) This is a variant of
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)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.lambdacore.paginators.ListRuntimeVersionsPublisher publisher = client.listRuntimeVersionsPaginator(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.lambdacore.paginators.ListRuntimeVersionsPublisher publisher = client.listRuntimeVersionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.
This is a convenience which creates an instance of the
ListRuntimeVersionsRequest.Builderavoiding the need to create one manually viaListRuntimeVersionsRequest.builder()- Parameters:
listRuntimeVersionsRequest- AConsumerthat will call methods onListRuntimeVersionsRequest.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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimes
default CompletableFuture<ListRuntimesResponse> listRuntimes(ListRuntimesRequest listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.
- Parameters:
listRuntimesRequest-- Returns:
- A Java Future containing the result of the ListRuntimes 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimes
default CompletableFuture<ListRuntimesResponse> listRuntimes(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.
This is a convenience which creates an instance of the
ListRuntimesRequest.Builderavoiding the need to create one manually viaListRuntimesRequest.builder()- Parameters:
listRuntimesRequest- AConsumerthat will call methods onListRuntimesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRuntimes 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimesPaginator
This is a variant of
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)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.lambdacore.paginators.ListRuntimesPublisher publisher = client.listRuntimesPaginator(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.lambdacore.paginators.ListRuntimesPublisher publisher = client.listRuntimesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.- Parameters:
listRuntimesRequest-- 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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRuntimesPaginator
default ListRuntimesPublisher listRuntimesPaginator(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) This is a variant of
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)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.lambdacore.paginators.ListRuntimesPublisher publisher = client.listRuntimesPaginator(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.lambdacore.paginators.ListRuntimesPublisher publisher = client.listRuntimesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse response) { //... }; });Please notice that the configuration of MaxResults 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
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.
This is a convenience which creates an instance of the
ListRuntimesRequest.Builderavoiding the need to create one manually viaListRuntimesRequest.builder()- Parameters:
listRuntimesRequest- AConsumerthat will call methods onListRuntimesRequest.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. Check the error message for details about which parameter failed validation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
restoreRuntime
default CompletableFuture<RestoreRuntimeResponse> restoreRuntime(RestoreRuntimeRequest restoreRuntimeRequest) Cancels a pending scheduled deletion, returning the resource to the ACTIVE state. Scope is determined by the RuntimeName path parameter plus an optional, mutually exclusive RuntimeVersion or RuntimeAlias query parameter: with neither, the runtime itself is restored; with RuntimeVersion, the named runtime version; with RuntimeAlias, the named runtime alias. Restoring a resource that is already ACTIVE is a no-op success. Restore only works while the target is PENDING_DELETION; once the scheduled deletion has begun executing (DELETING) or has completed, the call fails.
- Parameters:
restoreRuntimeRequest-- Returns:
- A Java Future containing the result of the RestoreRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
restoreRuntime
default CompletableFuture<RestoreRuntimeResponse> restoreRuntime(Consumer<RestoreRuntimeRequest.Builder> restoreRuntimeRequest) Cancels a pending scheduled deletion, returning the resource to the ACTIVE state. Scope is determined by the RuntimeName path parameter plus an optional, mutually exclusive RuntimeVersion or RuntimeAlias query parameter: with neither, the runtime itself is restored; with RuntimeVersion, the named runtime version; with RuntimeAlias, the named runtime alias. Restoring a resource that is already ACTIVE is a no-op success. Restore only works while the target is PENDING_DELETION; once the scheduled deletion has begun executing (DELETING) or has completed, the call fails.
This is a convenience which creates an instance of the
RestoreRuntimeRequest.Builderavoiding the need to create one manually viaRestoreRuntimeRequest.builder()- Parameters:
restoreRuntimeRequest- AConsumerthat will call methods onRestoreRuntimeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RestoreRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateNetworkConnector
default CompletableFuture<UpdateNetworkConnectorResponse> updateNetworkConnector(UpdateNetworkConnectorRequest updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector. You can modify the subnet IDs, security group IDs, network protocol, or operator role. The connector must be in
ACTIVEstate to accept updates.This operation is asynchronous. The connector remains in
ACTIVEstate during the update — existing workloads that reference this connector are not disrupted. UseGetNetworkConnectorto monitor theLastUpdateStatusfield, which transitions throughInProgresstoSuccessfulorFailed. If the update fails, theLastUpdateStatusReasonCodefield provides a specific error code for troubleshooting. This operation is idempotent when you provide aClientToken.Each successful configuration change creates a new immutable version. A connector can have a limited number of versions; once that limit is reached, further updates fail with
NetworkConnectorLimitExceededExceptionuntil you delete older versions.- Parameters:
updateNetworkConnectorRequest-- Returns:
- A Java Future containing the result of the UpdateNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- NetworkConnectorLimitExceededException The request would exceed a network connector limit. For
CreateNetworkConnector, the account has reached the maximum number of network connectors allowed. ForUpdateNetworkConnector, the connector has reached the maximum number of versions allowed. - ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateNetworkConnector
default CompletableFuture<UpdateNetworkConnectorResponse> updateNetworkConnector(Consumer<UpdateNetworkConnectorRequest.Builder> updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector. You can modify the subnet IDs, security group IDs, network protocol, or operator role. The connector must be in
ACTIVEstate to accept updates.This operation is asynchronous. The connector remains in
ACTIVEstate during the update — existing workloads that reference this connector are not disrupted. UseGetNetworkConnectorto monitor theLastUpdateStatusfield, which transitions throughInProgresstoSuccessfulorFailed. If the update fails, theLastUpdateStatusReasonCodefield provides a specific error code for troubleshooting. This operation is idempotent when you provide aClientToken.Each successful configuration change creates a new immutable version. A connector can have a limited number of versions; once that limit is reached, further updates fail with
NetworkConnectorLimitExceededExceptionuntil you delete older versions.
This is a convenience which creates an instance of the
UpdateNetworkConnectorRequest.Builderavoiding the need to create one manually viaUpdateNetworkConnectorRequest.builder()- Parameters:
updateNetworkConnectorRequest- AConsumerthat will call methods onUpdateNetworkConnectorRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateNetworkConnector 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- NetworkConnectorLimitExceededException The request would exceed a network connector limit. For
CreateNetworkConnector, the account has reached the maximum number of network connectors allowed. ForUpdateNetworkConnector, the connector has reached the maximum number of versions allowed. - ServiceException An internal service error occurred. Retry the request with exponential backoff.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntime
default CompletableFuture<UpdateRuntimeResponse> updateRuntime(UpdateRuntimeRequest updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.
- Parameters:
updateRuntimeRequest-- Returns:
- A Java Future containing the result of the UpdateRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntime
default CompletableFuture<UpdateRuntimeResponse> updateRuntime(Consumer<UpdateRuntimeRequest.Builder> updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.
This is a convenience which creates an instance of the
UpdateRuntimeRequest.Builderavoiding the need to create one manually viaUpdateRuntimeRequest.builder()- Parameters:
updateRuntimeRequest- AConsumerthat will call methods onUpdateRuntimeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateRuntime 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntimeAlias
default CompletableFuture<UpdateRuntimeAliasResponse> updateRuntimeAlias(UpdateRuntimeAliasRequest updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.
- Parameters:
updateRuntimeAliasRequest-- Returns:
- A Java Future containing the result of the UpdateRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntimeAlias
default CompletableFuture<UpdateRuntimeAliasResponse> updateRuntimeAlias(Consumer<UpdateRuntimeAliasRequest.Builder> updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.
This is a convenience which creates an instance of the
UpdateRuntimeAliasRequest.Builderavoiding the need to create one manually viaUpdateRuntimeAliasRequest.builder()- Parameters:
updateRuntimeAliasRequest- AConsumerthat will call methods onUpdateRuntimeAliasRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateRuntimeAlias 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntimeVersion
default CompletableFuture<UpdateRuntimeVersionResponse> updateRuntimeVersion(UpdateRuntimeVersionRequest updateRuntimeVersionRequest) Updates the runtime version release notes. The runtime version must be in the ACTIVE state. The runtime version image is immutable. To change the runtime contents, create a new runtime version.
- Parameters:
updateRuntimeVersionRequest-- Returns:
- A Java Future containing the result of the UpdateRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateRuntimeVersion
default CompletableFuture<UpdateRuntimeVersionResponse> updateRuntimeVersion(Consumer<UpdateRuntimeVersionRequest.Builder> updateRuntimeVersionRequest) Updates the runtime version release notes. The runtime version must be in the ACTIVE state. The runtime version image is immutable. To change the runtime contents, create a new runtime version.
This is a convenience which creates an instance of the
UpdateRuntimeVersionRequest.Builderavoiding the need to create one manually viaUpdateRuntimeVersionRequest.builder()- Parameters:
updateRuntimeVersionRequest- AConsumerthat will call methods onUpdateRuntimeVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateRuntimeVersion 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. Check the error message for details about which parameter failed validation.
- ResourceConflictException The request could not be completed due to a conflict with the current state of the resource. For example, attempting to modify a resource that is not in a state that permits the operation.
- TooManyRequestsException The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
- ServiceException An internal service error occurred. Retry the request with exponential backoff.
- ResourceNotFoundException The specified resource does not exist. Verify the identifier and Region.
- 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.
- LambdaCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
waiter
Create an instance ofLambdaCoreAsyncWaiterusing 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
LambdaCoreAsyncWaiter
-
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 aLambdaCoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLambdaCoreAsyncClient.
-