Interface CloudWatchWaiter
- All Superinterfaces:
AutoCloseable,SdkAutoCloseable
builder() method-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudWatchWaiter.Builderbuilder()Create a builder that can be used to configure and create aCloudWatchWaiter.static CloudWatchWaitercreate()Create an instance ofCloudWatchWaiterwith the default configuration.default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(DescribeAlarmsRequest describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(DescribeAlarmsRequest describeAlarmsRequest, WaiterOverrideConfiguration overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis met, or until it is determined that the resource will never enter into the desired state.default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(DescribeAlarmsRequest describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis met, or until it is determined that the resource will never enter into the desired statedefault WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(DescribeAlarmsRequest describeAlarmsRequest, WaiterOverrideConfiguration overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis 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
-
waitUntilAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(DescribeAlarmsRequest describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAlarmsRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis 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
DescribeAlarmsRequest.builder()- Parameters:
describeAlarmsRequest- 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
-
waitUntilAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(DescribeAlarmsRequest describeAlarmsRequest, WaiterOverrideConfiguration overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAlarmsRequest- 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
-
waitUntilAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionAlarmExistsis 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:
describeAlarmsRequest- 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
-
waitUntilCompositeAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(DescribeAlarmsRequest describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAlarmsRequest- the request to be used for polling- Returns:
- WaiterResponse containing either a response or an exception that has matched with the waiter success condition
-
waitUntilCompositeAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis 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
DescribeAlarmsRequest.builder()- Parameters:
describeAlarmsRequest- 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
-
waitUntilCompositeAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(DescribeAlarmsRequest describeAlarmsRequest, WaiterOverrideConfiguration overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis met, or until it is determined that the resource will never enter into the desired state- Parameters:
describeAlarmsRequest- 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
-
waitUntilCompositeAlarmExists
default WaiterResponse<DescribeAlarmsResponse> waitUntilCompositeAlarmExists(Consumer<DescribeAlarmsRequest.Builder> describeAlarmsRequest, Consumer<WaiterOverrideConfiguration.Builder> overrideConfig) PollsCloudWatchClient.describeAlarms(software.amazon.awssdk.services.cloudwatch.model.DescribeAlarmsRequest)API until the desired conditionCompositeAlarmExistsis 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:
describeAlarmsRequest- 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 aCloudWatchWaiter.- Returns:
- a builder
-
create
Create an instance ofCloudWatchWaiterwith the default configuration.A default
CloudWatchClientwill 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
CloudWatchWaiter
-