Interface RedshiftAsyncWaiter
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
builder()
method-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RedshiftAsyncWaiter.Builder
builder()
Create a builder that can be used to configure and create aRedshiftAsyncWaiter
.static RedshiftAsyncWaiter
create()
Create an instance ofRedshiftAsyncWaiter
with the default configuration.waitUntilClusterAvailable
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterAvailable
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterAvailable
(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired statewaitUntilClusterAvailable
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired statewaitUntilClusterDeleted
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterDeleted
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterDeleted
(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired statewaitUntilClusterDeleted
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired statewaitUntilClusterRestored
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterRestored
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired state.waitUntilClusterRestored
(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired statewaitUntilClusterRestored
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired statewaitUntilSnapshotAvailable
(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired state.waitUntilSnapshotAvailable
(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired state.waitUntilSnapshotAvailable
(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired statewaitUntilSnapshotAvailable
(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired stateMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Method Details
-
waitUntilClusterAvailable
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterAvailable(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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.
-
waitUntilClusterAvailable
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterAvailable(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
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
DescribeClustersRequest.builder()
- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterAvailable
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterAvailable(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterAvailable
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterAvailable(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterAvailable
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:
describeClustersRequest
- 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
-
waitUntilClusterDeleted
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterDeleted(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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.
-
waitUntilClusterDeleted
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterDeleted(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
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
DescribeClustersRequest.builder()
- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterDeleted
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterDeleted(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterDeleted
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterDeleted(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterDeleted
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:
describeClustersRequest
- 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
-
waitUntilClusterRestored
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterRestored(DescribeClustersRequest describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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.
-
waitUntilClusterRestored
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterRestored(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
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
DescribeClustersRequest.builder()
- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterRestored
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterRestored(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClustersRequest
- 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
-
waitUntilClusterRestored
default CompletableFuture<WaiterResponse<DescribeClustersResponse>> waitUntilClusterRestored(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusters(software.amazon.awssdk.services.redshift.model.DescribeClustersRequest)
API until the desired conditionClusterRestored
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:
describeClustersRequest
- 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
-
waitUntilSnapshotAvailable
default CompletableFuture<WaiterResponse<DescribeClusterSnapshotsResponse>> waitUntilSnapshotAvailable(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterSnapshotsRequest
- 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.
-
waitUntilSnapshotAvailable
default CompletableFuture<WaiterResponse<DescribeClusterSnapshotsResponse>> waitUntilSnapshotAvailable(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
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
DescribeClusterSnapshotsRequest.builder()
- Parameters:
describeClusterSnapshotsRequest
- 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
-
waitUntilSnapshotAvailable
default CompletableFuture<WaiterResponse<DescribeClusterSnapshotsResponse>> waitUntilSnapshotAvailable(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
is met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeClusterSnapshotsRequest
- 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
-
waitUntilSnapshotAvailable
default CompletableFuture<WaiterResponse<DescribeClusterSnapshotsResponse>> waitUntilSnapshotAvailable(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftAsyncClient.describeClusterSnapshots(software.amazon.awssdk.services.redshift.model.DescribeClusterSnapshotsRequest)
API until the desired conditionSnapshotAvailable
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:
describeClusterSnapshotsRequest
- 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
Create a builder that can be used to configure and create aRedshiftAsyncWaiter
.- Returns:
- a builder
-
create
Create an instance ofRedshiftAsyncWaiter
with the default configuration.A default
RedshiftAsyncClient
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
RedshiftAsyncWaiter
-