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.
AWS Lambda Core is a set of APIs for managing shared infrastructure resources used by AWS Lambda. The Lambda Core API provides operations for creating and managing network connectors that enable Lambda MicroVMs to access resources in your Amazon Virtual Private Cloud (Amazon VPC).
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 at run time.
-
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.deleteNetworkConnector(Consumer<DeleteNetworkConnectorRequest.Builder> deleteNetworkConnectorRequest) Initiates deletion of a network connector.deleteNetworkConnector(DeleteNetworkConnectorRequest deleteNetworkConnectorRequest) Initiates deletion of a network connector.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.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.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.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 Lambda MicroVMs at run time using theegressNetworkConnectorsparameter onRunMicroVm.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 update a connector that is not in
ACTIVEstate. - NetworkConnectorLimitExceededException The account has reached the maximum number of network connectors allowed. Delete unused connectors or request a limit increase through Service Quotas.
- 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 Lambda MicroVMs at run time using theegressNetworkConnectorsparameter onRunMicroVm.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 update a connector that is not in
ACTIVEstate. - NetworkConnectorLimitExceededException The account has reached the maximum number of network connectors allowed. Delete unused connectors or request a limit increase through Service Quotas.
- 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:
-
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 MicroVMs are using it, as they will lose VPC egress connectivity immediately.- 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 update a connector that is not in
ACTIVEstate. - 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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 MicroVMs are using it, as they will lose VPC egress connectivity immediately.
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 update a connector that is not in
ACTIVEstate. - 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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:
-
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.- 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 update a connector that is not in
ACTIVEstate. - 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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.
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 update a connector that is not in
ACTIVEstate. - 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 network connector does not exist. Verify the identifier (ID, name, or ARN) 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:
-
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.
-