* @throws RuntimeException
*/
private AutoScalingGroup awaitGroupSize(AutoScalingGroup autoScalingGroup,
int targetSize) throws RuntimeException {
String groupName = autoScalingGroup.getAutoScalingGroupName();
Requester<AutoScalingGroup> requester = new AutoScalingGroupRequester(
getClient(), groupName);
RetryHandler<AutoScalingGroup> retryHandler = new RetryUntilScalingGroupSizeReached(
targetSize, this.maxRetries, this.retryDelay);
Callable<AutoScalingGroup> retryableRequest = new RetryableRequest<AutoScalingGroup>(
requester, retryHandler, "await group size");