waiters-2.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. {
  2. "version": 2,
  3. "waiters": {
  4. "InstanceExists": {
  5. "delay": 5,
  6. "maxAttempts": 40,
  7. "operation": "DescribeInstances",
  8. "acceptors": [
  9. {
  10. "matcher": "status",
  11. "expected": 200,
  12. "state": "success"
  13. },
  14. {
  15. "matcher": "error",
  16. "expected": "InvalidInstanceIDNotFound",
  17. "state": "retry"
  18. }
  19. ]
  20. },
  21. "BundleTaskComplete": {
  22. "delay": 15,
  23. "operation": "DescribeBundleTasks",
  24. "maxAttempts": 40,
  25. "acceptors": [
  26. {
  27. "expected": "complete",
  28. "matcher": "pathAll",
  29. "state": "success",
  30. "argument": "BundleTasks[].State"
  31. },
  32. {
  33. "expected": "failed",
  34. "matcher": "pathAny",
  35. "state": "failure",
  36. "argument": "BundleTasks[].State"
  37. }
  38. ]
  39. },
  40. "ConversionTaskCancelled": {
  41. "delay": 15,
  42. "operation": "DescribeConversionTasks",
  43. "maxAttempts": 40,
  44. "acceptors": [
  45. {
  46. "expected": "cancelled",
  47. "matcher": "pathAll",
  48. "state": "success",
  49. "argument": "ConversionTasks[].State"
  50. }
  51. ]
  52. },
  53. "ConversionTaskCompleted": {
  54. "delay": 15,
  55. "operation": "DescribeConversionTasks",
  56. "maxAttempts": 40,
  57. "acceptors": [
  58. {
  59. "expected": "completed",
  60. "matcher": "pathAll",
  61. "state": "success",
  62. "argument": "ConversionTasks[].State"
  63. },
  64. {
  65. "expected": "cancelled",
  66. "matcher": "pathAny",
  67. "state": "failure",
  68. "argument": "ConversionTasks[].State"
  69. },
  70. {
  71. "expected": "cancelling",
  72. "matcher": "pathAny",
  73. "state": "failure",
  74. "argument": "ConversionTasks[].State"
  75. }
  76. ]
  77. },
  78. "ConversionTaskDeleted": {
  79. "delay": 15,
  80. "operation": "DescribeConversionTasks",
  81. "maxAttempts": 40,
  82. "acceptors": [
  83. {
  84. "expected": "deleted",
  85. "matcher": "pathAll",
  86. "state": "success",
  87. "argument": "ConversionTasks[].State"
  88. }
  89. ]
  90. },
  91. "CustomerGatewayAvailable": {
  92. "delay": 15,
  93. "operation": "DescribeCustomerGateways",
  94. "maxAttempts": 40,
  95. "acceptors": [
  96. {
  97. "expected": "available",
  98. "matcher": "pathAll",
  99. "state": "success",
  100. "argument": "CustomerGateways[].State"
  101. },
  102. {
  103. "expected": "deleted",
  104. "matcher": "pathAny",
  105. "state": "failure",
  106. "argument": "CustomerGateways[].State"
  107. },
  108. {
  109. "expected": "deleting",
  110. "matcher": "pathAny",
  111. "state": "failure",
  112. "argument": "CustomerGateways[].State"
  113. }
  114. ]
  115. },
  116. "ExportTaskCancelled": {
  117. "delay": 15,
  118. "operation": "DescribeExportTasks",
  119. "maxAttempts": 40,
  120. "acceptors": [
  121. {
  122. "expected": "cancelled",
  123. "matcher": "pathAll",
  124. "state": "success",
  125. "argument": "ExportTasks[].State"
  126. }
  127. ]
  128. },
  129. "ExportTaskCompleted": {
  130. "delay": 15,
  131. "operation": "DescribeExportTasks",
  132. "maxAttempts": 40,
  133. "acceptors": [
  134. {
  135. "expected": "completed",
  136. "matcher": "pathAll",
  137. "state": "success",
  138. "argument": "ExportTasks[].State"
  139. }
  140. ]
  141. },
  142. "ImageAvailable": {
  143. "operation": "DescribeImages",
  144. "maxAttempts": 40,
  145. "delay": 15,
  146. "acceptors": [
  147. {
  148. "state": "success",
  149. "matcher": "pathAll",
  150. "argument": "Images[].State",
  151. "expected": "available"
  152. },
  153. {
  154. "state": "failure",
  155. "matcher": "pathAny",
  156. "argument": "Images[].State",
  157. "expected": "failed"
  158. }
  159. ]
  160. },
  161. "InstanceRunning": {
  162. "delay": 15,
  163. "operation": "DescribeInstances",
  164. "maxAttempts": 40,
  165. "acceptors": [
  166. {
  167. "expected": "running",
  168. "matcher": "pathAll",
  169. "state": "success",
  170. "argument": "Reservations[].Instances[].State.Name"
  171. },
  172. {
  173. "expected": "shutting-down",
  174. "matcher": "pathAny",
  175. "state": "failure",
  176. "argument": "Reservations[].Instances[].State.Name"
  177. },
  178. {
  179. "expected": "terminated",
  180. "matcher": "pathAny",
  181. "state": "failure",
  182. "argument": "Reservations[].Instances[].State.Name"
  183. },
  184. {
  185. "expected": "stopping",
  186. "matcher": "pathAny",
  187. "state": "failure",
  188. "argument": "Reservations[].Instances[].State.Name"
  189. }
  190. ]
  191. },
  192. "InstanceStatusOk": {
  193. "operation": "DescribeInstanceStatus",
  194. "maxAttempts": 40,
  195. "delay": 15,
  196. "acceptors": [
  197. {
  198. "state": "success",
  199. "matcher": "pathAll",
  200. "argument": "InstanceStatuses[].InstanceStatus.Status",
  201. "expected": "ok"
  202. }
  203. ]
  204. },
  205. "InstanceStopped": {
  206. "delay": 15,
  207. "operation": "DescribeInstances",
  208. "maxAttempts": 40,
  209. "acceptors": [
  210. {
  211. "expected": "stopped",
  212. "matcher": "pathAll",
  213. "state": "success",
  214. "argument": "Reservations[].Instances[].State.Name"
  215. },
  216. {
  217. "expected": "pending",
  218. "matcher": "pathAny",
  219. "state": "failure",
  220. "argument": "Reservations[].Instances[].State.Name"
  221. },
  222. {
  223. "expected": "terminated",
  224. "matcher": "pathAny",
  225. "state": "failure",
  226. "argument": "Reservations[].Instances[].State.Name"
  227. }
  228. ]
  229. },
  230. "InstanceTerminated": {
  231. "delay": 15,
  232. "operation": "DescribeInstances",
  233. "maxAttempts": 40,
  234. "acceptors": [
  235. {
  236. "expected": "terminated",
  237. "matcher": "pathAll",
  238. "state": "success",
  239. "argument": "Reservations[].Instances[].State.Name"
  240. },
  241. {
  242. "expected": "pending",
  243. "matcher": "pathAny",
  244. "state": "failure",
  245. "argument": "Reservations[].Instances[].State.Name"
  246. },
  247. {
  248. "expected": "stopping",
  249. "matcher": "pathAny",
  250. "state": "failure",
  251. "argument": "Reservations[].Instances[].State.Name"
  252. }
  253. ]
  254. },
  255. "KeyPairExists": {
  256. "operation": "DescribeKeyPairs",
  257. "delay": 5,
  258. "maxAttempts": 6,
  259. "acceptors": [
  260. {
  261. "expected": true,
  262. "matcher": "pathAll",
  263. "state": "success",
  264. "argument": "length(KeyPairs[].KeyName) > `0`"
  265. },
  266. {
  267. "expected": "InvalidKeyPairNotFound",
  268. "matcher": "error",
  269. "state": "retry"
  270. }
  271. ]
  272. },
  273. "NetworkInterfaceAvailable": {
  274. "operation": "DescribeNetworkInterfaces",
  275. "delay": 20,
  276. "maxAttempts": 10,
  277. "acceptors": [
  278. {
  279. "expected": "available",
  280. "matcher": "pathAll",
  281. "state": "success",
  282. "argument": "NetworkInterfaces[].Status"
  283. },
  284. {
  285. "expected": "InvalidNetworkInterfaceIDNotFound",
  286. "matcher": "error",
  287. "state": "failure"
  288. }
  289. ]
  290. },
  291. "PasswordDataAvailable": {
  292. "operation": "GetPasswordData",
  293. "maxAttempts": 40,
  294. "delay": 15,
  295. "acceptors": [
  296. {
  297. "state": "success",
  298. "matcher": "path",
  299. "argument": "length(PasswordData) > `0`",
  300. "expected": true
  301. }
  302. ]
  303. },
  304. "SnapshotCompleted": {
  305. "delay": 15,
  306. "operation": "DescribeSnapshots",
  307. "maxAttempts": 40,
  308. "acceptors": [
  309. {
  310. "expected": "completed",
  311. "matcher": "pathAll",
  312. "state": "success",
  313. "argument": "Snapshots[].State"
  314. }
  315. ]
  316. },
  317. "SpotInstanceRequestFulfilled": {
  318. "operation": "DescribeSpotInstanceRequests",
  319. "maxAttempts": 40,
  320. "delay": 15,
  321. "acceptors": [
  322. {
  323. "state": "success",
  324. "matcher": "pathAll",
  325. "argument": "SpotInstanceRequests[].Status.Code",
  326. "expected": "fulfilled"
  327. },
  328. {
  329. "state": "failure",
  330. "matcher": "pathAny",
  331. "argument": "SpotInstanceRequests[].Status.Code",
  332. "expected": "schedule-expired"
  333. },
  334. {
  335. "state": "failure",
  336. "matcher": "pathAny",
  337. "argument": "SpotInstanceRequests[].Status.Code",
  338. "expected": "canceled-before-fulfillment"
  339. },
  340. {
  341. "state": "failure",
  342. "matcher": "pathAny",
  343. "argument": "SpotInstanceRequests[].Status.Code",
  344. "expected": "bad-parameters"
  345. },
  346. {
  347. "state": "failure",
  348. "matcher": "pathAny",
  349. "argument": "SpotInstanceRequests[].Status.Code",
  350. "expected": "system-error"
  351. }
  352. ]
  353. },
  354. "SubnetAvailable": {
  355. "delay": 15,
  356. "operation": "DescribeSubnets",
  357. "maxAttempts": 40,
  358. "acceptors": [
  359. {
  360. "expected": "available",
  361. "matcher": "pathAll",
  362. "state": "success",
  363. "argument": "Subnets[].State"
  364. }
  365. ]
  366. },
  367. "SystemStatusOk": {
  368. "operation": "DescribeInstanceStatus",
  369. "maxAttempts": 40,
  370. "delay": 15,
  371. "acceptors": [
  372. {
  373. "state": "success",
  374. "matcher": "pathAll",
  375. "argument": "InstanceStatuses[].SystemStatus.Status",
  376. "expected": "ok"
  377. }
  378. ]
  379. },
  380. "VolumeAvailable": {
  381. "delay": 15,
  382. "operation": "DescribeVolumes",
  383. "maxAttempts": 40,
  384. "acceptors": [
  385. {
  386. "expected": "available",
  387. "matcher": "pathAll",
  388. "state": "success",
  389. "argument": "Volumes[].State"
  390. },
  391. {
  392. "expected": "deleted",
  393. "matcher": "pathAny",
  394. "state": "failure",
  395. "argument": "Volumes[].State"
  396. }
  397. ]
  398. },
  399. "VolumeDeleted": {
  400. "delay": 15,
  401. "operation": "DescribeVolumes",
  402. "maxAttempts": 40,
  403. "acceptors": [
  404. {
  405. "expected": "deleted",
  406. "matcher": "pathAll",
  407. "state": "success",
  408. "argument": "Volumes[].State"
  409. },
  410. {
  411. "matcher": "error",
  412. "expected": "InvalidVolumeNotFound",
  413. "state": "success"
  414. }
  415. ]
  416. },
  417. "VolumeInUse": {
  418. "delay": 15,
  419. "operation": "DescribeVolumes",
  420. "maxAttempts": 40,
  421. "acceptors": [
  422. {
  423. "expected": "in-use",
  424. "matcher": "pathAll",
  425. "state": "success",
  426. "argument": "Volumes[].State"
  427. },
  428. {
  429. "expected": "deleted",
  430. "matcher": "pathAny",
  431. "state": "failure",
  432. "argument": "Volumes[].State"
  433. }
  434. ]
  435. },
  436. "VpcAvailable": {
  437. "delay": 15,
  438. "operation": "DescribeVpcs",
  439. "maxAttempts": 40,
  440. "acceptors": [
  441. {
  442. "expected": "available",
  443. "matcher": "pathAll",
  444. "state": "success",
  445. "argument": "Vpcs[].State"
  446. }
  447. ]
  448. },
  449. "VpnConnectionAvailable": {
  450. "delay": 15,
  451. "operation": "DescribeVpnConnections",
  452. "maxAttempts": 40,
  453. "acceptors": [
  454. {
  455. "expected": "available",
  456. "matcher": "pathAll",
  457. "state": "success",
  458. "argument": "VpnConnections[].State"
  459. },
  460. {
  461. "expected": "deleting",
  462. "matcher": "pathAny",
  463. "state": "failure",
  464. "argument": "VpnConnections[].State"
  465. },
  466. {
  467. "expected": "deleted",
  468. "matcher": "pathAny",
  469. "state": "failure",
  470. "argument": "VpnConnections[].State"
  471. }
  472. ]
  473. },
  474. "VpnConnectionDeleted": {
  475. "delay": 15,
  476. "operation": "DescribeVpnConnections",
  477. "maxAttempts": 40,
  478. "acceptors": [
  479. {
  480. "expected": "deleted",
  481. "matcher": "pathAll",
  482. "state": "success",
  483. "argument": "VpnConnections[].State"
  484. },
  485. {
  486. "expected": "pending",
  487. "matcher": "pathAny",
  488. "state": "failure",
  489. "argument": "VpnConnections[].State"
  490. }
  491. ]
  492. }
  493. }
  494. }