Interface AmpWaiter
-
- All Superinterfaces:
AutoCloseable,SdkAutoCloseable
@Generated("software.amazon.awssdk:codegen") @ThreadSafe @Immutable public interface AmpWaiter 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 interfaceAmpWaiter.Builder
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
waitUntilScraperActive
default WaiterResponse<DescribeScraperResponse> waitUntilScraperActive(DescribeScraperRequest describeScraperRequest)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperActiveis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeScraperRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilScraperActive
default WaiterResponse<DescribeScraperResponse> waitUntilScraperActive(Consumer<DescribeScraperRequest.Builder> describeScraperRequest)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperActiveis 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
DescribeScraperRequest.builder()- Parameters:
describeScraperRequest- 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
-
waitUntilScraperActive
default WaiterResponse<DescribeScraperResponse> waitUntilScraperActive(DescribeScraperRequest describeScraperRequest, WaiterOverrideConfiguration overrideConfig)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperActiveis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeScraperRequest- 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
-
waitUntilScraperActive
default WaiterResponse<DescribeScraperResponse> waitUntilScraperActive(Consumer<DescribeScraperRequest.Builder> describeScraperRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperActiveis 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:
describeScraperRequest- 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
-
waitUntilScraperDeleted
default WaiterResponse<DescribeScraperResponse> waitUntilScraperDeleted(DescribeScraperRequest describeScraperRequest)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperDeletedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeScraperRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilScraperDeleted
default WaiterResponse<DescribeScraperResponse> waitUntilScraperDeleted(Consumer<DescribeScraperRequest.Builder> describeScraperRequest)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperDeletedis 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
DescribeScraperRequest.builder()- Parameters:
describeScraperRequest- 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
-
waitUntilScraperDeleted
default WaiterResponse<DescribeScraperResponse> waitUntilScraperDeleted(DescribeScraperRequest describeScraperRequest, WaiterOverrideConfiguration overrideConfig)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperDeletedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeScraperRequest- 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
-
waitUntilScraperDeleted
default WaiterResponse<DescribeScraperResponse> waitUntilScraperDeleted(Consumer<DescribeScraperRequest.Builder> describeScraperRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsAmpClient.describeScraper(software.amazon.awssdk.services.amp.model.DescribeScraperRequest)API until the desired conditionScraperDeletedis 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:
describeScraperRequest- 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
-
waitUntilWorkspaceActive
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceActive(DescribeWorkspaceRequest describeWorkspaceRequest)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceActiveis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeWorkspaceRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilWorkspaceActive
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceActive(Consumer<DescribeWorkspaceRequest.Builder> describeWorkspaceRequest)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceActiveis 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
DescribeWorkspaceRequest.builder()- Parameters:
describeWorkspaceRequest- 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
-
waitUntilWorkspaceActive
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceActive(DescribeWorkspaceRequest describeWorkspaceRequest, WaiterOverrideConfiguration overrideConfig)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceActiveis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeWorkspaceRequest- 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
-
waitUntilWorkspaceActive
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceActive(Consumer<DescribeWorkspaceRequest.Builder> describeWorkspaceRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceActiveis 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:
describeWorkspaceRequest- 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
-
waitUntilWorkspaceDeleted
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceDeleted(DescribeWorkspaceRequest describeWorkspaceRequest)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceDeletedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeWorkspaceRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilWorkspaceDeleted
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceDeleted(Consumer<DescribeWorkspaceRequest.Builder> describeWorkspaceRequest)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceDeletedis 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
DescribeWorkspaceRequest.builder()- Parameters:
describeWorkspaceRequest- 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
-
waitUntilWorkspaceDeleted
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceDeleted(DescribeWorkspaceRequest describeWorkspaceRequest, WaiterOverrideConfiguration overrideConfig)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceDeletedis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeWorkspaceRequest- 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
-
waitUntilWorkspaceDeleted
default WaiterResponse<DescribeWorkspaceResponse> waitUntilWorkspaceDeleted(Consumer<DescribeWorkspaceRequest.Builder> describeWorkspaceRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig)
PollsAmpClient.describeWorkspace(software.amazon.awssdk.services.amp.model.DescribeWorkspaceRequest)API until the desired conditionWorkspaceDeletedis 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:
describeWorkspaceRequest- 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 AmpWaiter.Builder builder()
Create a builder that can be used to configure and create aAmpWaiter.- Returns:
- a builder
-
create
static AmpWaiter create()
Create an instance ofAmpWaiterwith the default configuration.A default
AmpClientwill 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
AmpWaiter
-
-