waiters-2.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "version": 2,
  3. "waiters": {
  4. "GroupExists": {
  5. "acceptors": [
  6. {
  7. "argument": "length(AutoScalingGroups) > `0`",
  8. "expected": true,
  9. "matcher": "path",
  10. "state": "success"
  11. },
  12. {
  13. "argument": "length(AutoScalingGroups) > `0`",
  14. "expected": false,
  15. "matcher": "path",
  16. "state": "retry"
  17. }
  18. ],
  19. "delay": 5,
  20. "maxAttempts": 10,
  21. "operation": "DescribeAutoScalingGroups"
  22. },
  23. "GroupInService": {
  24. "acceptors": [
  25. {
  26. "argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
  27. "expected": false,
  28. "matcher": "path",
  29. "state": "success"
  30. },
  31. {
  32. "argument": "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)",
  33. "expected": true,
  34. "matcher": "path",
  35. "state": "retry"
  36. }
  37. ],
  38. "delay": 15,
  39. "maxAttempts": 40,
  40. "operation": "DescribeAutoScalingGroups"
  41. },
  42. "GroupNotExists": {
  43. "acceptors": [
  44. {
  45. "argument": "length(AutoScalingGroups) > `0`",
  46. "expected": false,
  47. "matcher": "path",
  48. "state": "success"
  49. },
  50. {
  51. "argument": "length(AutoScalingGroups) > `0`",
  52. "expected": true,
  53. "matcher": "path",
  54. "state": "retry"
  55. }
  56. ],
  57. "delay": 15,
  58. "maxAttempts": 40,
  59. "operation": "DescribeAutoScalingGroups"
  60. }
  61. }
  62. }