module Network.AWS.EMR.Waiters where
import Network.AWS.EMR.DescribeCluster
import Network.AWS.EMR.Types
import Network.AWS.Prelude
import Network.AWS.Waiter
clusterRunning :: Wait DescribeCluster
clusterRunning =
Wait
{ _waitName = "ClusterRunning"
, _waitAttempts = 60
, _waitDelay = 30
, _waitAcceptors = [ matchAll
"RUNNING"
AcceptSuccess
(dcrsCluster .
cluStatus . csState . _Just . to toTextCI)
, matchAll
"WAITING"
AcceptSuccess
(dcrsCluster .
cluStatus . csState . _Just . to toTextCI)
, matchAll
"TERMINATING"
AcceptFailure
(dcrsCluster .
cluStatus . csState . _Just . to toTextCI)
, matchAll
"TERMINATED"
AcceptFailure
(dcrsCluster .
cluStatus . csState . _Just . to toTextCI)
, matchAll
"TERMINATED_WITH_ERRORS"
AcceptFailure
(dcrsCluster .
cluStatus . csState . _Just . to toTextCI)]
}