1{ 2 "version": 2, 3 "waiters": { 4 "FlowActive": { 5 "description": "Wait until a flow is active", 6 "operation": "DescribeFlow", 7 "delay": 3, 8 "maxAttempts": 40, 9 "acceptors": [ 10 { 11 "state": "success", 12 "matcher": "path", 13 "argument": "Flow.Status", 14 "expected": "ACTIVE" 15 }, 16 { 17 "state": "retry", 18 "matcher": "path", 19 "argument": "Flow.Status", 20 "expected": "STARTING" 21 }, 22 { 23 "state": "retry", 24 "matcher": "path", 25 "argument": "Flow.Status", 26 "expected": "UPDATING" 27 }, 28 { 29 "state": "retry", 30 "matcher": "status", 31 "expected": 500 32 }, 33 { 34 "state": "retry", 35 "matcher": "status", 36 "expected": 503 37 }, 38 { 39 "state": "failure", 40 "matcher": "path", 41 "argument": "Flow.Status", 42 "expected": "ERROR" 43 } 44 ] 45 }, 46 "FlowStandby": { 47 "description": "Wait until a flow is in standby mode", 48 "operation": "DescribeFlow", 49 "delay": 3, 50 "maxAttempts": 40, 51 "acceptors": [ 52 { 53 "state": "success", 54 "matcher": "path", 55 "argument": "Flow.Status", 56 "expected": "STANDBY" 57 }, 58 { 59 "state": "retry", 60 "matcher": "path", 61 "argument": "Flow.Status", 62 "expected": "STOPPING" 63 }, 64 { 65 "state": "retry", 66 "matcher": "status", 67 "expected": 500 68 }, 69 { 70 "state": "retry", 71 "matcher": "status", 72 "expected": 503 73 }, 74 { 75 "state": "failure", 76 "matcher": "path", 77 "argument": "Flow.Status", 78 "expected": "ERROR" 79 } 80 ] 81 }, 82 "FlowDeleted": { 83 "description": "Wait until a flow is deleted", 84 "operation": "DescribeFlow", 85 "delay": 3, 86 "maxAttempts": 40, 87 "acceptors": [ 88 { 89 "state": "success", 90 "matcher": "status", 91 "expected": 404 92 }, 93 { 94 "state": "retry", 95 "matcher": "path", 96 "argument": "Flow.Status", 97 "expected": "DELETING" 98 }, 99 { 100 "state": "retry", 101 "matcher": "status", 102 "expected": 500 103 }, 104 { 105 "state": "retry", 106 "matcher": "status", 107 "expected": 503 108 }, 109 { 110 "state": "failure", 111 "matcher": "path", 112 "argument": "Flow.Status", 113 "expected": "ERROR" 114 } 115 ] 116 } 117 } 118} 119