Skip to content

Commit

Permalink
Regenerating amazonka-opsworks-cm from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed Feb 2, 2017
1 parent 4dc5c62 commit cf337db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amazonka-opsworks-cm/gen/Network/AWS/OpsWorksCM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ module Network.AWS.OpsWorksCM
-- * Waiters
-- $waiters

-- ** NodeAssociated
, nodeAssociated

-- * Operations
-- $operations

Expand Down
18 changes: 18 additions & 0 deletions amazonka-opsworks-cm/gen/Network/AWS/OpsWorksCM/Waiters.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
module Network.AWS.OpsWorksCM.Waiters where

import Network.AWS.Lens
import Network.AWS.OpsWorksCM.DescribeNodeAssociationStatus
import Network.AWS.OpsWorksCM.Types
import Network.AWS.Prelude
import Network.AWS.Waiter

-- | Polls 'Network.AWS.OpsWorksCM.DescribeNodeAssociationStatus' every 15 seconds until a successful state is reached. An error is returned after 15 failed checks.
nodeAssociated :: Wait DescribeNodeAssociationStatus
nodeAssociated =
Wait
{ _waitName = "NodeAssociated"
, _waitAttempts = 15
, _waitDelay = 15
, _waitAcceptors = [ matchAll
"SUCCESS"
AcceptSuccess
(dnasrsNodeAssociationStatus . to toTextCI)
, matchAll
"FAILED"
AcceptFailure
(dnasrsNodeAssociationStatus . to toTextCI)]
}

0 comments on commit cf337db

Please sign in to comment.