Interface LambdaCoreClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 LambdaCoreClientBuilderbuilder()Create a builder that can be used to configure and create aLambdaCoreClient.static LambdaCoreClientcreate()Create aLambdaCoreClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateNetworkConnectorResponsecreateNetworkConnector(Consumer<CreateNetworkConnectorRequest.Builder> createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.default CreateNetworkConnectorResponsecreateNetworkConnector(CreateNetworkConnectorRequest createNetworkConnectorRequest) Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.default CreateRuntimeResponsecreateRuntime(Consumer<CreateRuntimeRequest.Builder> createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions.default CreateRuntimeResponsecreateRuntime(CreateRuntimeRequest createRuntimeRequest) Creates a customer-managed runtime, a resource providing a centrally managed execution environment for your Lambda functions.default CreateRuntimeAliasResponsecreateRuntimeAlias(Consumer<CreateRuntimeAliasRequest.Builder> createRuntimeAliasRequest) Creates a new customer-managed runtime alias.default CreateRuntimeAliasResponsecreateRuntimeAlias(CreateRuntimeAliasRequest createRuntimeAliasRequest) Creates a new customer-managed runtime alias.default CreateRuntimeVersionResponsecreateRuntimeVersion(Consumer<CreateRuntimeVersionRequest.Builder> createRuntimeVersionRequest) Creates a new runtime version.default CreateRuntimeVersionResponsecreateRuntimeVersion(CreateRuntimeVersionRequest createRuntimeVersionRequest) Creates a new runtime version.default DeleteNetworkConnectorResponsedeleteNetworkConnector(Consumer<DeleteNetworkConnectorRequest.Builder> deleteNetworkConnectorRequest) Initiates deletion of a network connector.default DeleteNetworkConnectorResponsedeleteNetworkConnector(DeleteNetworkConnectorRequest deleteNetworkConnectorRequest) Initiates deletion of a network connector.default DeleteRuntimeResponsedeleteRuntime(Consumer<DeleteRuntimeRequest.Builder> deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted.default DeleteRuntimeResponsedeleteRuntime(DeleteRuntimeRequest deleteRuntimeRequest) Schedules a customer-managed runtime to be deleted.default DeleteRuntimeAliasResponsedeleteRuntimeAlias(Consumer<DeleteRuntimeAliasRequest.Builder> deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted.default DeleteRuntimeAliasResponsedeleteRuntimeAlias(DeleteRuntimeAliasRequest deleteRuntimeAliasRequest) Schedules a runtime alias to be deleted.default DeleteRuntimeVersionResponsedeleteRuntimeVersion(Consumer<DeleteRuntimeVersionRequest.Builder> deleteRuntimeVersionRequest) Schedules a runtime version to be deleted.default DeleteRuntimeVersionResponsedeleteRuntimeVersion(DeleteRuntimeVersionRequest deleteRuntimeVersionRequest) Schedules a runtime version to be deleted.default GetNetworkConnectorResponsegetNetworkConnector(Consumer<GetNetworkConnectorRequest.Builder> getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector.default GetNetworkConnectorResponsegetNetworkConnector(GetNetworkConnectorRequest getNetworkConnectorRequest) Retrieves the current configuration, state, and metadata of a network connector.default GetRuntimeResponsegetRuntime(Consumer<GetRuntimeRequest.Builder> getRuntimeRequest) Retrieves the configuration and metadata of a runtime.default GetRuntimeResponsegetRuntime(GetRuntimeRequest getRuntimeRequest) Retrieves the configuration and metadata of a runtime.default GetRuntimeAliasResponsegetRuntimeAlias(Consumer<GetRuntimeAliasRequest.Builder> getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.default GetRuntimeAliasResponsegetRuntimeAlias(GetRuntimeAliasRequest getRuntimeAliasRequest) Retrieves the configuration, state, and metadata of a runtime alias.default GetRuntimeVersionResponsegetRuntimeVersion(Consumer<GetRuntimeVersionRequest.Builder> getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.default GetRuntimeVersionResponsegetRuntimeVersion(GetRuntimeVersionRequest getRuntimeVersionRequest) Retrieves the configuration, state, and metadata of a runtime version.default ListNetworkConnectorsResponselistNetworkConnectors(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region.default ListNetworkConnectorsResponselistNetworkConnectors(ListNetworkConnectorsRequest listNetworkConnectorsRequest) Returns a paginated list of network connectors in your account for the current Region.default ListNetworkConnectorsIterablelistNetworkConnectorsPaginator(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) This is a variant oflistNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation.default ListNetworkConnectorsIterablelistNetworkConnectorsPaginator(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.default ListRuntimeAliasesResponselistRuntimeAliases(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.default ListRuntimeAliasesResponselistRuntimeAliases(ListRuntimeAliasesRequest listRuntimeAliasesRequest) Returns a paginated list of aliases for the specified runtime.default ListRuntimeAliasesIterablelistRuntimeAliasesPaginator(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) This is a variant oflistRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.default ListRuntimeAliasesIterablelistRuntimeAliasesPaginator(ListRuntimeAliasesRequest listRuntimeAliasesRequest) This is a variant oflistRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation.default ListRuntimesResponselistRuntimes(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.default ListRuntimesResponselistRuntimes(ListRuntimesRequest listRuntimesRequest) Returns a paginated list of runtimes in your account for the current Region.default ListRuntimesIterablelistRuntimesPaginator(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) This is a variant oflistRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.default ListRuntimesIterablelistRuntimesPaginator(ListRuntimesRequest listRuntimesRequest) This is a variant oflistRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation.default ListRuntimeVersionsResponselistRuntimeVersions(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.default ListRuntimeVersionsResponselistRuntimeVersions(ListRuntimeVersionsRequest listRuntimeVersionsRequest) Returns a paginated list of versions for the specified runtime.default ListRuntimeVersionsIterablelistRuntimeVersionsPaginator(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) This is a variant oflistRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.default ListRuntimeVersionsIterablelistRuntimeVersionsPaginator(ListRuntimeVersionsRequest listRuntimeVersionsRequest) This is a variant oflistRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation.default RestoreRuntimeResponserestoreRuntime(Consumer<RestoreRuntimeRequest.Builder> restoreRuntimeRequest) Cancels a pending scheduled deletion, returning the resource to the ACTIVE state.default RestoreRuntimeResponserestoreRuntime(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., ClientOverrideConfigurationstatic ServiceMetadatadefault UpdateNetworkConnectorResponseupdateNetworkConnector(Consumer<UpdateNetworkConnectorRequest.Builder> updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector.default UpdateNetworkConnectorResponseupdateNetworkConnector(UpdateNetworkConnectorRequest updateNetworkConnectorRequest) Updates the VPC configuration or operator role of an existing network connector.default UpdateRuntimeResponseupdateRuntime(Consumer<UpdateRuntimeRequest.Builder> updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.default UpdateRuntimeResponseupdateRuntime(UpdateRuntimeRequest updateRuntimeRequest) Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.default UpdateRuntimeAliasResponseupdateRuntimeAlias(Consumer<UpdateRuntimeAliasRequest.Builder> updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.default UpdateRuntimeAliasResponseupdateRuntimeAlias(UpdateRuntimeAliasRequest updateRuntimeAliasRequest) Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.default UpdateRuntimeVersionResponseupdateRuntimeVersion(Consumer<UpdateRuntimeVersionRequest.Builder> updateRuntimeVersionRequest) Updates the runtime version release notes.default UpdateRuntimeVersionResponseupdateRuntimeVersion(UpdateRuntimeVersionRequest updateRuntimeVersionRequest) Updates the runtime version release notes.default LambdaCoreWaiterwaiter()Create an instance ofLambdaCoreWaiterusing 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 CreateNetworkConnectorResponse createNetworkConnector(CreateNetworkConnectorRequest createNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, NetworkConnectorLimitExceededException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateNetworkConnector operation returned by the service.
- See Also:
-
createNetworkConnector
default CreateNetworkConnectorResponse createNetworkConnector(Consumer<CreateNetworkConnectorRequest.Builder> createNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, NetworkConnectorLimitExceededException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateNetworkConnector operation returned by the service.
- See Also:
-
createRuntime
default CreateRuntimeResponse createRuntime(CreateRuntimeRequest createRuntimeRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntime operation returned by the service.
- See Also:
-
createRuntime
default CreateRuntimeResponse createRuntime(Consumer<CreateRuntimeRequest.Builder> createRuntimeRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntime operation returned by the service.
- See Also:
-
createRuntimeAlias
default CreateRuntimeAliasResponse createRuntimeAlias(CreateRuntimeAliasRequest createRuntimeAliasRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntimeAlias operation returned by the service.
- See Also:
-
createRuntimeAlias
default CreateRuntimeAliasResponse createRuntimeAlias(Consumer<CreateRuntimeAliasRequest.Builder> createRuntimeAliasRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntimeAlias operation returned by the service.
- See Also:
-
createRuntimeVersion
default CreateRuntimeVersionResponse createRuntimeVersion(CreateRuntimeVersionRequest createRuntimeVersionRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntimeVersion operation returned by the service.
- See Also:
-
createRuntimeVersion
default CreateRuntimeVersionResponse createRuntimeVersion(Consumer<CreateRuntimeVersionRequest.Builder> createRuntimeVersionRequest) throws InvalidParameterValueException, ServiceQuotaExceededException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the CreateRuntimeVersion operation returned by the service.
- See Also:
-
deleteNetworkConnector
default DeleteNetworkConnectorResponse deleteNetworkConnector(DeleteNetworkConnectorRequest deleteNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteNetworkConnector operation returned by the service.
- See Also:
-
deleteNetworkConnector
default DeleteNetworkConnectorResponse deleteNetworkConnector(Consumer<DeleteNetworkConnectorRequest.Builder> deleteNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteNetworkConnector operation returned by the service.
- See Also:
-
deleteRuntime
default DeleteRuntimeResponse deleteRuntime(DeleteRuntimeRequest deleteRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntime operation returned by the service.
- See Also:
-
deleteRuntime
default DeleteRuntimeResponse deleteRuntime(Consumer<DeleteRuntimeRequest.Builder> deleteRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntime operation returned by the service.
- See Also:
-
deleteRuntimeAlias
default DeleteRuntimeAliasResponse deleteRuntimeAlias(DeleteRuntimeAliasRequest deleteRuntimeAliasRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntimeAlias operation returned by the service.
- See Also:
-
deleteRuntimeAlias
default DeleteRuntimeAliasResponse deleteRuntimeAlias(Consumer<DeleteRuntimeAliasRequest.Builder> deleteRuntimeAliasRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntimeAlias operation returned by the service.
- See Also:
-
deleteRuntimeVersion
default DeleteRuntimeVersionResponse deleteRuntimeVersion(DeleteRuntimeVersionRequest deleteRuntimeVersionRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntimeVersion operation returned by the service.
- See Also:
-
deleteRuntimeVersion
default DeleteRuntimeVersionResponse deleteRuntimeVersion(Consumer<DeleteRuntimeVersionRequest.Builder> deleteRuntimeVersionRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the DeleteRuntimeVersion operation returned by the service.
- See Also:
-
getNetworkConnector
default GetNetworkConnectorResponse getNetworkConnector(GetNetworkConnectorRequest getNetworkConnectorRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the GetNetworkConnector operation returned by the service.
- See Also:
-
getNetworkConnector
default GetNetworkConnectorResponse getNetworkConnector(Consumer<GetNetworkConnectorRequest.Builder> getNetworkConnectorRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the GetNetworkConnector operation returned by the service.
- See Also:
-
getRuntime
default GetRuntimeResponse getRuntime(GetRuntimeRequest getRuntimeRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Retrieves the configuration and metadata of a runtime.
- Parameters:
getRuntimeRequest-- Returns:
- Result of the GetRuntime operation returned by the service.
- See Also:
-
getRuntime
default GetRuntimeResponse getRuntime(Consumer<GetRuntimeRequest.Builder> getRuntimeRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the GetRuntime operation returned by the service.
- See Also:
-
getRuntimeAlias
default GetRuntimeAliasResponse getRuntimeAlias(GetRuntimeAliasRequest getRuntimeAliasRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Retrieves the configuration, state, and metadata of a runtime alias.
- Parameters:
getRuntimeAliasRequest-- Returns:
- Result of the GetRuntimeAlias operation returned by the service.
- See Also:
-
getRuntimeAlias
default GetRuntimeAliasResponse getRuntimeAlias(Consumer<GetRuntimeAliasRequest.Builder> getRuntimeAliasRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the GetRuntimeAlias operation returned by the service.
- See Also:
-
getRuntimeVersion
default GetRuntimeVersionResponse getRuntimeVersion(GetRuntimeVersionRequest getRuntimeVersionRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Retrieves the configuration, state, and metadata of a runtime version.
- Parameters:
getRuntimeVersionRequest-- Returns:
- Result of the GetRuntimeVersion operation returned by the service.
- See Also:
-
getRuntimeVersion
default GetRuntimeVersionResponse getRuntimeVersion(Consumer<GetRuntimeVersionRequest.Builder> getRuntimeVersionRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the GetRuntimeVersion operation returned by the service.
- See Also:
-
listNetworkConnectorVersions
default ListNetworkConnectorVersionsResponse listNetworkConnectorVersions(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListNetworkConnectorVersions operation returned by the service.
- See Also:
-
listNetworkConnectorVersions
default ListNetworkConnectorVersionsResponse listNetworkConnectorVersions(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListNetworkConnectorVersions operation returned by the service.
- See Also:
-
listNetworkConnectorVersionsPaginator
default ListNetworkConnectorVersionsIterable listNetworkConnectorVersionsPaginator(ListNetworkConnectorVersionsRequest listNetworkConnectorVersionsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client.listNetworkConnectorVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client .listNetworkConnectorVersionsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client.listNetworkConnectorVersionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listNetworkConnectorVersionsPaginator
default ListNetworkConnectorVersionsIterable listNetworkConnectorVersionsPaginator(Consumer<ListNetworkConnectorVersionsRequest.Builder> listNetworkConnectorVersionsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listNetworkConnectorVersions(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client.listNetworkConnectorVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client .listNetworkConnectorVersionsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorVersionsIterable responses = client.listNetworkConnectorVersionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listNetworkConnectors
default ListNetworkConnectorsResponse listNetworkConnectors(ListNetworkConnectorsRequest listNetworkConnectorsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListNetworkConnectors operation returned by the service.
- See Also:
-
listNetworkConnectors
default ListNetworkConnectorsResponse listNetworkConnectors(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListNetworkConnectors operation returned by the service.
- See Also:
-
listNetworkConnectorsPaginator
default ListNetworkConnectorsIterable listNetworkConnectorsPaginator(ListNetworkConnectorsRequest listNetworkConnectorsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client.listNetworkConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client .listNetworkConnectorsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client.listNetworkConnectorsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listNetworkConnectorsPaginator
default ListNetworkConnectorsIterable listNetworkConnectorsPaginator(Consumer<ListNetworkConnectorsRequest.Builder> listNetworkConnectorsRequest) throws InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listNetworkConnectors(software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client.listNetworkConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client .listNetworkConnectorsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListNetworkConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListNetworkConnectorsIterable responses = client.listNetworkConnectorsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimeAliases
default ListRuntimeAliasesResponse listRuntimeAliases(ListRuntimeAliasesRequest listRuntimeAliasesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Returns a paginated list of aliases for the specified runtime.
- Parameters:
listRuntimeAliasesRequest-- Returns:
- Result of the ListRuntimeAliases operation returned by the service.
- See Also:
-
listRuntimeAliases
default ListRuntimeAliasesResponse listRuntimeAliases(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListRuntimeAliases operation returned by the service.
- See Also:
-
listRuntimeAliasesPaginator
default ListRuntimeAliasesIterable listRuntimeAliasesPaginator(ListRuntimeAliasesRequest listRuntimeAliasesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client.listRuntimeAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client .listRuntimeAliasesPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client.listRuntimeAliasesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimeAliasesPaginator
default ListRuntimeAliasesIterable listRuntimeAliasesPaginator(Consumer<ListRuntimeAliasesRequest.Builder> listRuntimeAliasesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimeAliases(software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client.listRuntimeAliasesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client .listRuntimeAliasesPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimeAliasesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeAliasesIterable responses = client.listRuntimeAliasesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimeVersions
default ListRuntimeVersionsResponse listRuntimeVersions(ListRuntimeVersionsRequest listRuntimeVersionsRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Returns a paginated list of versions for the specified runtime.
- Parameters:
listRuntimeVersionsRequest-- Returns:
- Result of the ListRuntimeVersions operation returned by the service.
- See Also:
-
listRuntimeVersions
default ListRuntimeVersionsResponse listRuntimeVersions(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListRuntimeVersions operation returned by the service.
- See Also:
-
listRuntimeVersionsPaginator
default ListRuntimeVersionsIterable listRuntimeVersionsPaginator(ListRuntimeVersionsRequest listRuntimeVersionsRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client.listRuntimeVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client .listRuntimeVersionsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client.listRuntimeVersionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimeVersionsPaginator
default ListRuntimeVersionsIterable listRuntimeVersionsPaginator(Consumer<ListRuntimeVersionsRequest.Builder> listRuntimeVersionsRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimeVersions(software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client.listRuntimeVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client .listRuntimeVersionsPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimeVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimeVersionsIterable responses = client.listRuntimeVersionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimes
default ListRuntimesResponse listRuntimes(ListRuntimesRequest listRuntimesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException Returns a paginated list of runtimes in your account for the current Region.
- Parameters:
listRuntimesRequest-- Returns:
- Result of the ListRuntimes operation returned by the service.
- See Also:
-
listRuntimes
default ListRuntimesResponse listRuntimes(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the ListRuntimes operation returned by the service.
- See Also:
-
listRuntimesPaginator
default ListRuntimesIterable listRuntimesPaginator(ListRuntimesRequest listRuntimesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listRuntimesPaginator
default ListRuntimesIterable listRuntimesPaginator(Consumer<ListRuntimesRequest.Builder> listRuntimesRequest) throws InvalidParameterValueException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaCoreException This is a variant of
listRuntimes(software.amazon.awssdk.services.lambdacore.model.ListRuntimesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); for (software.amazon.awssdk.services.lambdacore.model.ListRuntimesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.lambdacore.paginators.ListRuntimesIterable responses = client.listRuntimesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
restoreRuntime
default RestoreRuntimeResponse restoreRuntime(RestoreRuntimeRequest restoreRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the RestoreRuntime operation returned by the service.
- See Also:
-
restoreRuntime
default RestoreRuntimeResponse restoreRuntime(Consumer<RestoreRuntimeRequest.Builder> restoreRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the RestoreRuntime operation returned by the service.
- See Also:
-
updateNetworkConnector
default UpdateNetworkConnectorResponse updateNetworkConnector(UpdateNetworkConnectorRequest updateNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, NetworkConnectorLimitExceededException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateNetworkConnector operation returned by the service.
- See Also:
-
updateNetworkConnector
default UpdateNetworkConnectorResponse updateNetworkConnector(Consumer<UpdateNetworkConnectorRequest.Builder> updateNetworkConnectorRequest) throws InvalidParameterValueException, ResourceConflictException, NetworkConnectorLimitExceededException, ServiceException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateNetworkConnector operation returned by the service.
- See Also:
-
updateRuntime
default UpdateRuntimeResponse updateRuntime(UpdateRuntimeRequest updateRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Updates the properties of an existing customer-managed runtime, such as its description, license information, or lifecycle information.
- Parameters:
updateRuntimeRequest-- Returns:
- Result of the UpdateRuntime operation returned by the service.
- See Also:
-
updateRuntime
default UpdateRuntimeResponse updateRuntime(Consumer<UpdateRuntimeRequest.Builder> updateRuntimeRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateRuntime operation returned by the service.
- See Also:
-
updateRuntimeAlias
default UpdateRuntimeAliasResponse updateRuntimeAlias(UpdateRuntimeAliasRequest updateRuntimeAliasRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException Updates an existing runtime alias to point to a different runtime version or to change its description or lifecycle information.
- Parameters:
updateRuntimeAliasRequest-- Returns:
- Result of the UpdateRuntimeAlias operation returned by the service.
- See Also:
-
updateRuntimeAlias
default UpdateRuntimeAliasResponse updateRuntimeAlias(Consumer<UpdateRuntimeAliasRequest.Builder> updateRuntimeAliasRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateRuntimeAlias operation returned by the service.
- See Also:
-
updateRuntimeVersion
default UpdateRuntimeVersionResponse updateRuntimeVersion(UpdateRuntimeVersionRequest updateRuntimeVersionRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateRuntimeVersion operation returned by the service.
- See Also:
-
updateRuntimeVersion
default UpdateRuntimeVersionResponse updateRuntimeVersion(Consumer<UpdateRuntimeVersionRequest.Builder> updateRuntimeVersionRequest) throws InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ServiceException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaCoreException 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:
- Result of the UpdateRuntimeVersion operation returned by the service.
- See Also:
-
waiter
Create an instance ofLambdaCoreWaiterusing 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
LambdaCoreWaiter
-
create
Create aLambdaCoreClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLambdaCoreClient. -
serviceMetadata
-
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
-