Interface RedshiftWaiter
- All Superinterfaces:
AutoCloseable
,SdkAutoCloseable
builder()
method-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RedshiftWaiter.Builder
builder()
Create a builder that can be used to configure and create aRedshiftWaiter
.static RedshiftWaiter
create()
Create an instance ofRedshiftWaiter
with the default configuration.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterAvailable
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterAvailable
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterAvailable
(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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 statedefault WaiterResponse
<DescribeClustersResponse> waitUntilClusterAvailable
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 statedefault WaiterResponse
<DescribeClustersResponse> waitUntilClusterDeleted
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterDeleted
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterDeleted
(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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 statedefault WaiterResponse
<DescribeClustersResponse> waitUntilClusterDeleted
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 statedefault WaiterResponse
<DescribeClustersResponse> waitUntilClusterRestored
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterRestored
(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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.default WaiterResponse
<DescribeClustersResponse> waitUntilClusterRestored
(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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 statedefault WaiterResponse
<DescribeClustersResponse> waitUntilClusterRestored
(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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) PollsRedshiftClient.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) PollsRedshiftClient.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) PollsRedshiftClient.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) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterAvailable(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterAvailable
default WaiterResponse<DescribeClustersResponse> waitUntilClusterAvailable(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterAvailable
default WaiterResponse<DescribeClustersResponse> waitUntilClusterAvailable(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterAvailable(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterDeleted(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterDeleted
default WaiterResponse<DescribeClustersResponse> waitUntilClusterDeleted(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterDeleted
default WaiterResponse<DescribeClustersResponse> waitUntilClusterDeleted(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterDeleted(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterRestored(DescribeClustersRequest describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterRestored
default WaiterResponse<DescribeClustersResponse> waitUntilClusterRestored(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilClusterRestored
default WaiterResponse<DescribeClustersResponse> waitUntilClusterRestored(DescribeClustersRequest describeClustersRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClustersResponse> waitUntilClusterRestored(Consumer<DescribeClustersRequest.Builder> describeClustersRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClusterSnapshotsResponse> waitUntilSnapshotAvailable(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilSnapshotAvailable
default WaiterResponse<DescribeClusterSnapshotsResponse> waitUntilSnapshotAvailable(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest) PollsRedshiftClient.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:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilSnapshotAvailable
default WaiterResponse<DescribeClusterSnapshotsResponse> waitUntilSnapshotAvailable(DescribeClusterSnapshotsRequest describeClusterSnapshotsRequest, WaiterOverrideConfiguration overrideConfig) PollsRedshiftClient.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 WaiterResponse<DescribeClusterSnapshotsResponse> waitUntilSnapshotAvailable(Consumer<DescribeClusterSnapshotsRequest.Builder> describeClusterSnapshotsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsRedshiftClient.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 aRedshiftWaiter
.- Returns:
- a builder
-
create
Create an instance ofRedshiftWaiter
with the default configuration.A default
RedshiftClient
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
RedshiftWaiter
-