Let the wait_for method accept a callback to support variable sleep interval.
Use case: http://docs.aws.amazon.com/general/latest/gr/api-retries.html