Skip to content

Commit

Permalink
Update waiters to v2 format
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesls committed Oct 31, 2014
1 parent 0fcdaa5 commit 23e042f
Show file tree
Hide file tree
Showing 9 changed files with 632 additions and 248 deletions.
52 changes: 35 additions & 17 deletions botocore/data/aws/cloudfront/2014-05-31.waiters.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
{
"version": 2,
"waiters": {
"__default__": {
"success_type": "output",
"success_path": "Status"
},
"StreamingDistributionDeployed": {
"operation": "GetStreamingDistribution",
"description": "Wait until a streaming distribution is deployed.",
"interval": 60,
"max_attempts": 25,
"success_value": "Deployed"
},
"DistributionDeployed": {
"delay": 60,
"operation": "GetDistribution",
"maxAttempts": 25,
"description": "Wait until a distribution is deployed.",
"interval": 60,
"max_attempts": 25,
"success_value": "Deployed"
"acceptors": [
{
"expected": "Deployed",
"matcher": "path",
"state": "success",
"argument": "Status"
}
]
},
"InvalidationCompleted": {
"delay": 20,
"operation": "GetInvalidation",
"maxAttempts": 30,
"description": "Wait until an invalidation has completed.",
"interval": 20,
"max_attempts": 30,
"success_value": "Completed"
"acceptors": [
{
"expected": "Completed",
"matcher": "path",
"state": "success",
"argument": "Status"
}
]
},
"StreamingDistributionDeployed": {
"delay": 60,
"operation": "GetStreamingDistribution",
"maxAttempts": 25,
"description": "Wait until a streaming distribution is deployed.",
"acceptors": [
{
"expected": "Deployed",
"matcher": "path",
"state": "success",
"argument": "Status"
}
]
}
}
}
44 changes: 27 additions & 17 deletions botocore/data/aws/dynamodb/2012-08-10.waiters.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
{
"version": 2,
"waiters": {
"__default__": {
"interval": 20,
"max_attempts": 25
},
"__TableState": {
"operation": "DescribeTable"
},
"TableExists": {
"extends": "__TableState",
"ignore_errors": [
"ResourceNotFoundException"
],
"success_type": "output",
"success_path": "Table.TableStatus",
"success_value": "ACTIVE"
"delay": 20,
"operation": "DescribeTable",
"maxAttempts": 25,
"acceptors": [
{
"expected": "ACTIVE",
"matcher": "path",
"state": "success",
"argument": "Table.TableStatus"
},
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "retry"
}
]
},
"TableNotExists": {
"extends": "__TableState",
"success_type": "error",
"success_value": "ResourceNotFoundException"
"delay": 20,
"operation": "DescribeTable",
"maxAttempts": 25,
"acceptors": [
{
"expected": "ResourceNotFoundException",
"matcher": "error",
"state": "success"
}
]
}
}
}
Loading

0 comments on commit 23e042f

Please sign in to comment.