Skip to content

Instantly share code, notes, and snippets.

@quiver
Created June 1, 2015 01:44
Show Gist options
  • Save quiver/abe66c05b76d1a624cf6 to your computer and use it in GitHub Desktop.
Save quiver/abe66c05b76d1a624cf6 to your computer and use it in GitHub Desktop.
aws cli machinelearning waiter
{
"version": 2,
"waiters": {
"DataSourceAvailable": {
"delay": 30,
"operation": "GetDataSource",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "FAILED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "INPROGRESS",
"matcher": "path",
"state": "retry",
"argument": "Status"
},
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "success"
}
]
},
"MLModelAvailable": {
"delay": 30,
"operation": "GetMLModel",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "FAILED",
"matcher": "pathAny",
"state": "success",
"argument": "Status"
},
{
"expected": "INPROGRESS",
"matcher": "pathAny",
"state": "retry",
"argument": "Status"
},
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "success"
}
]
},
"EvaluationAvailable": {
"delay": 30,
"operation": "GetEvaluation",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "FAILED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "INPROGRESS",
"matcher": "path",
"state": "retry",
"argument": "Status"
},
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "success"
}
]
},
"BatchPredictionAvailable": {
"delay": 30,
"operation": "GetBatchPrediction",
"maxAttempts": 60,
"acceptors": [
{
"expected": "COMPLETED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "FAILED",
"matcher": "path",
"state": "success",
"argument": "Status"
},
{
"expected": "INPROGRESS",
"matcher": "path",
"state": "retry",
"argument": "Status"
},
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "success"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment