Interface OpsWorksAsyncWaiter
-
- All Superinterfaces:
AutoCloseable,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface OpsWorksAsyncWaiter 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 interfaceOpsWorksAsyncWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilAppExists
default CompletableFuture<WaiterResponse<DescribeAppsResponse>> waitUntilAppExists(DescribeAppsRequest describeAppsRequest)
PollsOpsWorksAsyncClient.describeApps(software.amazon.awssdk.services.opsworks.model.DescribeAppsRequest)API until the desired conditionAppExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAppsRequest- 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.
-
waitUntilAppExists
default CompletableFuture<WaiterResponse<DescribeAppsResponse>> waitUntilAppExists(Consumer<DescribeAppsRequest.Builder> describeAppsRequest)
PollsOpsWorksAsyncClient.describeApps(software.amazon.awssdk.services.opsworks.model.DescribeAppsRequest)API until the desired conditionAppExistsis 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
DescribeAppsRequest.builder()- Parameters:
describeAppsRequest- 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
-
waitUntilAppExists
default CompletableFuture<WaiterResponse<DescribeAppsResponse>> waitUntilAppExists(DescribeAppsRequest describeAppsRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeApps(software.amazon.awssdk.services.opsworks.model.DescribeAppsRequest)API until the desired conditionAppExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAppsRequest- 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
-
waitUntilAppExists
default CompletableFuture<WaiterResponse<DescribeAppsResponse>> waitUntilAppExists(Consumer<DescribeAppsRequest.Builder> describeAppsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeApps(software.amazon.awssdk.services.opsworks.model.DescribeAppsRequest)API until the desired conditionAppExistsis 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:
describeAppsRequest- 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
-
waitUntilDeploymentSuccessful
default CompletableFuture<WaiterResponse<DescribeDeploymentsResponse>> waitUntilDeploymentSuccessful(DescribeDeploymentsRequest describeDeploymentsRequest)
PollsOpsWorksAsyncClient.describeDeployments(software.amazon.awssdk.services.opsworks.model.DescribeDeploymentsRequest)API until the desired conditionDeploymentSuccessfulis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeDeploymentsRequest- 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.
-
waitUntilDeploymentSuccessful
default CompletableFuture<WaiterResponse<DescribeDeploymentsResponse>> waitUntilDeploymentSuccessful(Consumer<DescribeDeploymentsRequest.Builder> describeDeploymentsRequest)
PollsOpsWorksAsyncClient.describeDeployments(software.amazon.awssdk.services.opsworks.model.DescribeDeploymentsRequest)API until the desired conditionDeploymentSuccessfulis 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
DescribeDeploymentsRequest.builder()- Parameters:
describeDeploymentsRequest- 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
-
waitUntilDeploymentSuccessful
default CompletableFuture<WaiterResponse<DescribeDeploymentsResponse>> waitUntilDeploymentSuccessful(DescribeDeploymentsRequest describeDeploymentsRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeDeployments(software.amazon.awssdk.services.opsworks.model.DescribeDeploymentsRequest)API until the desired conditionDeploymentSuccessfulis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeDeploymentsRequest- 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
-
waitUntilDeploymentSuccessful
default CompletableFuture<WaiterResponse<DescribeDeploymentsResponse>> waitUntilDeploymentSuccessful(Consumer<DescribeDeploymentsRequest.Builder> describeDeploymentsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeDeployments(software.amazon.awssdk.services.opsworks.model.DescribeDeploymentsRequest)API until the desired conditionDeploymentSuccessfulis 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:
describeDeploymentsRequest- 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
-
waitUntilInstanceOnline
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceOnline(DescribeInstancesRequest describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceOnlineis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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.
-
waitUntilInstanceOnline
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceOnline(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceOnlineis 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
DescribeInstancesRequest.builder()- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceOnline
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceOnline(DescribeInstancesRequest describeInstancesRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceOnlineis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceOnline
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceOnline(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceOnlineis 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:
describeInstancesRequest- 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
-
waitUntilInstanceRegistered
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceRegistered(DescribeInstancesRequest describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceRegisteredis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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.
-
waitUntilInstanceRegistered
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceRegistered(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceRegisteredis 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
DescribeInstancesRequest.builder()- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceRegistered
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceRegistered(DescribeInstancesRequest describeInstancesRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceRegisteredis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceRegistered
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceRegistered(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceRegisteredis 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:
describeInstancesRequest- 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
-
waitUntilInstanceStopped
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceStopped(DescribeInstancesRequest describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceStoppedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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.
-
waitUntilInstanceStopped
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceStopped(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceStoppedis 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
DescribeInstancesRequest.builder()- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceStopped
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceStopped(DescribeInstancesRequest describeInstancesRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceStoppedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceStopped
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceStopped(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceStoppedis 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:
describeInstancesRequest- 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
-
waitUntilInstanceTerminated
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceTerminated(DescribeInstancesRequest describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceTerminatedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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.
-
waitUntilInstanceTerminated
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceTerminated(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceTerminatedis 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
DescribeInstancesRequest.builder()- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceTerminated
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceTerminated(DescribeInstancesRequest describeInstancesRequest, WaiterOverrideConfiguration overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceTerminatedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeInstancesRequest- 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
-
waitUntilInstanceTerminated
default CompletableFuture<WaiterResponse<DescribeInstancesResponse>> waitUntilInstanceTerminated(Consumer<DescribeInstancesRequest.Builder> describeInstancesRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsOpsWorksAsyncClient.describeInstances(software.amazon.awssdk.services.opsworks.model.DescribeInstancesRequest)API until the desired conditionInstanceTerminatedis 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:
describeInstancesRequest- 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 OpsWorksAsyncWaiter.Builder builder()
Create a builder that can be used to configure and create aOpsWorksAsyncWaiter.- Returns:
- a builder
-
create
static OpsWorksAsyncWaiter create()
Create an instance ofOpsWorksAsyncWaiterwith the default configuration.A default
OpsWorksAsyncClientwill 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
OpsWorksAsyncWaiter
-
-