Interface SsmAsyncWaiter
-
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") @ThreadSafe @Immutable public interface SsmAsyncWaiter 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
SsmAsyncWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilCommandExecuted
default CompletableFuture<WaiterResponse<GetCommandInvocationResponse>> waitUntilCommandExecuted(GetCommandInvocationRequest getCommandInvocationRequest)
PollsSsmAsyncClient.getCommandInvocation(software.amazon.awssdk.services.ssm.model.GetCommandInvocationRequest)
API until the desired conditionCommandExecuted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getCommandInvocationRequest
- the request to be used for polling- Returns:
- CompletableFuture containing the WaiterResponse. It completes successfully when the resource enters into a desired state or exceptionally when it is determined that the resource will never enter into the desired state.
-
waitUntilCommandExecuted
default CompletableFuture<WaiterResponse<GetCommandInvocationResponse>> waitUntilCommandExecuted(Consumer<GetCommandInvocationRequest.Builder> getCommandInvocationRequest)
PollsSsmAsyncClient.getCommandInvocation(software.amazon.awssdk.services.ssm.model.GetCommandInvocationRequest)
API until the desired conditionCommandExecuted
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
GetCommandInvocationRequest.builder()
- Parameters:
getCommandInvocationRequest
- The consumer that will configure the request to be used for polling- Returns:
- CompletableFuture of the WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCommandExecuted
default CompletableFuture<WaiterResponse<GetCommandInvocationResponse>> waitUntilCommandExecuted(GetCommandInvocationRequest getCommandInvocationRequest, WaiterOverrideConfiguration overrideConfig)
PollsSsmAsyncClient.getCommandInvocation(software.amazon.awssdk.services.ssm.model.GetCommandInvocationRequest)
API until the desired conditionCommandExecuted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
getCommandInvocationRequest
- 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
-
waitUntilCommandExecuted
default CompletableFuture<WaiterResponse<GetCommandInvocationResponse>> waitUntilCommandExecuted(Consumer<GetCommandInvocationRequest.Builder> getCommandInvocationRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsSsmAsyncClient.getCommandInvocation(software.amazon.awssdk.services.ssm.model.GetCommandInvocationRequest)
API until the desired conditionCommandExecuted
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:
getCommandInvocationRequest
- 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 SsmAsyncWaiter.Builder builder()
Create a builder that can be used to configure and create aSsmAsyncWaiter
.- Returns:
- a builder
-
create
static SsmAsyncWaiter create()
Create an instance ofSsmAsyncWaiter
with the default configuration.A default
SsmAsyncClient
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
SsmAsyncWaiter
-
-