From 3e0d5410fa78ab6327b2fa4dffa4ee9535bb2f6e Mon Sep 17 00:00:00 2001 From: george yoshida Date: Sun, 31 May 2015 06:28:19 +0900 Subject: [PATCH] Add machinelearning wait commands * DataSourceAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-data-sources. * MLModelAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-ml-models. * EvaluationAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-evaluations. * BatchPredictionAvailable: Wait until JMESPath query Results[].Status returns COMPLETED for all elements when polling with describe-batch-predictions. --- .../machinelearning/2014-12-12/waiters-2.json | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 botocore/data/machinelearning/2014-12-12/waiters-2.json diff --git a/botocore/data/machinelearning/2014-12-12/waiters-2.json b/botocore/data/machinelearning/2014-12-12/waiters-2.json new file mode 100644 index 0000000000..3ec9a64e8a --- /dev/null +++ b/botocore/data/machinelearning/2014-12-12/waiters-2.json @@ -0,0 +1,105 @@ +{ + "version": 2, + "waiters": { + "DataSourceAvailable": { + "delay": 30, + "operation": "DescribeDataSources", + "maxAttempts": 60, + "acceptors": [ + { + "expected": "COMPLETED", + "matcher": "pathAll", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "FAILED", + "matcher": "pathAny", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "INPROGRESS", + "matcher": "pathAny", + "state": "retry", + "argument": "Results[].Status" + } + ] + }, + "MLModelAvailable": { + "delay": 30, + "operation": "DescribeMLModels", + "maxAttempts": 60, + "acceptors": [ + { + "expected": "COMPLETED", + "matcher": "pathAll", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "FAILED", + "matcher": "pathAny", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "INPROGRESS", + "matcher": "pathAny", + "state": "retry", + "argument": "Results[].Status" + } + ] + }, + "EvaluationAvailable": { + "delay": 30, + "operation": "DescribeEvaluations", + "maxAttempts": 60, + "acceptors": [ + { + "expected": "COMPLETED", + "matcher": "pathAll", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "FAILED", + "matcher": "pathAny", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "INPROGRESS", + "matcher": "pathAny", + "state": "retry", + "argument": "Results[].Status" + } + ] + }, + "BatchPredictionAvailable": { + "delay": 30, + "operation": "DescribeBatchPredictions", + "maxAttempts": 60, + "acceptors": [ + { + "expected": "COMPLETED", + "matcher": "pathAll", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "FAILED", + "matcher": "pathAny", + "state": "success", + "argument": "Results[].Status" + }, + { + "expected": "INPROGRESS", + "matcher": "pathAny", + "state": "retry", + "argument": "Results[].Status" + } + ] + } + } +}