rekognition-2016-06-27.waiters2.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "version": 2,
  3. "waiters": {
  4. "ProjectVersionTrainingCompleted": {
  5. "description": "Wait until the ProjectVersion training completes.",
  6. "operation": "DescribeProjectVersions",
  7. "delay": 120,
  8. "maxAttempts": 360,
  9. "acceptors": [
  10. {
  11. "state": "success",
  12. "matcher": "pathAll",
  13. "argument": "ProjectVersionDescriptions[].Status",
  14. "expected": "TRAINING_COMPLETED"
  15. },
  16. {
  17. "state": "failure",
  18. "matcher": "pathAny",
  19. "argument": "ProjectVersionDescriptions[].Status",
  20. "expected": "TRAINING_FAILED"
  21. }
  22. ]
  23. },
  24. "ProjectVersionRunning": {
  25. "description": "Wait until the ProjectVersion is running.",
  26. "delay": 30,
  27. "maxAttempts": 40,
  28. "operation": "DescribeProjectVersions",
  29. "acceptors": [
  30. {
  31. "state": "success",
  32. "matcher": "pathAll",
  33. "argument": "ProjectVersionDescriptions[].Status",
  34. "expected": "RUNNING"
  35. },
  36. {
  37. "state": "failure",
  38. "matcher": "pathAny",
  39. "argument": "ProjectVersionDescriptions[].Status",
  40. "expected": "FAILED"
  41. }
  42. ]
  43. }
  44. }
  45. }