Interface LambdaWaiter
-
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface LambdaWaiter extends SdkAutoCloseable
Waiter utility class that polls a resource until a desired state is reached or until it is determined that the resource will never enter into the desired state. This can be created using the staticbuilder()
method
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LambdaWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilFunctionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionActive(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionActive
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionActive(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionActive
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionConfigurationRequest.builder()
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionActive(GetFunctionConfigurationRequest getFunctionConfigurationRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionActive
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionActive(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionActive
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActiveV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionActiveV2(GetFunctionRequest getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionActiveV2
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActiveV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionActiveV2(Consumer<GetFunctionRequest.Builder> getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionActiveV2
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionRequest.builder()
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActiveV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionActiveV2(GetFunctionRequest getFunctionRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionActiveV2
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionActiveV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionActiveV2(Consumer<GetFunctionRequest.Builder> getFunctionRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionActiveV2
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionExists
default WaiterResponse<GetFunctionResponse> waitUntilFunctionExists(GetFunctionRequest getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionExists
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionExists
default WaiterResponse<GetFunctionResponse> waitUntilFunctionExists(Consumer<GetFunctionRequest.Builder> getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionExists
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionRequest.builder()
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionExists
default WaiterResponse<GetFunctionResponse> waitUntilFunctionExists(GetFunctionRequest getFunctionRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionExists
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionExists
default WaiterResponse<GetFunctionResponse> waitUntilFunctionExists(Consumer<GetFunctionRequest.Builder> getFunctionRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionExists
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdated
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionUpdated(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionUpdated
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdated
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionUpdated(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionUpdated
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionConfigurationRequest.builder()
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdated
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionUpdated(GetFunctionConfigurationRequest getFunctionConfigurationRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionUpdated
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdated
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilFunctionUpdated(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionFunctionUpdated
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdatedV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionUpdatedV2(GetFunctionRequest getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionUpdatedV2
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdatedV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionUpdatedV2(Consumer<GetFunctionRequest.Builder> getFunctionRequest)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionUpdatedV2
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionRequest.builder()
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdatedV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionUpdatedV2(GetFunctionRequest getFunctionRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionUpdatedV2
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilFunctionUpdatedV2
default WaiterResponse<GetFunctionResponse> waitUntilFunctionUpdatedV2(Consumer<GetFunctionRequest.Builder> getFunctionRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunction(software.amazon.awssdk.services.lambda.model.GetFunctionRequest)
API until the desired conditionFunctionUpdatedV2
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilPublishedVersionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilPublishedVersionActive(GetFunctionConfigurationRequest getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionPublishedVersionActive
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilPublishedVersionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilPublishedVersionActive(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionPublishedVersionActive
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder without the need to create one manually using
GetFunctionConfigurationRequest.builder()
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilPublishedVersionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilPublishedVersionActive(GetFunctionConfigurationRequest getFunctionConfigurationRequest, WaiterOverrideConfiguration overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionPublishedVersionActive
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getFunctionConfigurationRequest
- The request to be used for pollingoverrideConfig
- Per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilPublishedVersionActive
default WaiterResponse<GetFunctionConfigurationResponse> waitUntilPublishedVersionActive(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsLambdaClient.getFunctionConfiguration(software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationRequest)
API until the desired conditionPublishedVersionActive
is met, or until it is determined that the resource will never enter into the desired state.This is a convenience method to create an instance of the request builder and instance of the override config builder
- Parameters:
getFunctionConfigurationRequest
- The consumer that will configure the request to be used for pollingoverrideConfig
- The consumer that will configure the per request override configuration for waiters- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
builder
static LambdaWaiter.Builder builder()
Create a builder that can be used to configure and create aLambdaWaiter
.- Returns:
- a builder
-
create
static LambdaWaiter create()
Create an instance ofLambdaWaiter
with the default configuration.A default
LambdaClient
will be created to poll resources. It is recommended to share a single instance of the waiter created via this method. If it is not desirable to share a waiter instance, invokeSdkAutoCloseable.close()
to release the resources once the waiter is not needed.- Returns:
- an instance of
LambdaWaiter
-
-