Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bugs [CloudFront/RDS] and added new waiters [OpsWorks/ElastiCache/CloudFormation/EC2] #758

Merged
merged 5 commits into from
Apr 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions aws-sdk-core/apis/cloudformation/2010-05-15/waiters-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"version": 2,
"waiters": {
"StackCreateComplete": {
"delay": 30,
"operation": "DescribeStacks",
"maxAttempts": 50,
"description": "Wait until stack status is CREATE_COMPLETE.",
"acceptors": [
{
"expected": "CREATE_COMPLETE",
"matcher": "pathAll",
"state": "success",
"argument": "Stacks[].StackStatus"
},
{
"expected": "CREATE_FAILED",
"matcher": "pathAny",
"state": "failure",
"argument": "Stacks[].StackStatus"
}
]
},
"StackDeleteComplete": {
"delay": 30,
"operation": "DescribeStacks",
"maxAttempts": 25,
"description": "Wait until stack status is DELETE_COMPLETE.",
"acceptors": [
{
"expected": "DELETE_COMPLETE",
"matcher": "pathAll",
"state": "success",
"argument": "Stacks[].StackStatus"
},
{
"expected": "ValidationError",
"matcher": "error",
"state": "success"
},
{
"expected": "DELETE_FAILED",
"matcher": "pathAny",
"state": "failure",
"argument": "Stacks[].StackStatus"
}
]
},
"StackUpdateComplete": {
"delay": 30,
"operation": "DescribeStacks",
"maxAttempts": 5,
"description": "Wait until stack status is UPDATE_COMPLETE.",
"acceptors": [
{
"expected": "UPDATE_COMPLETE",
"matcher": "pathAll",
"state": "success",
"argument": "Stacks[].StackStatus"
},
{
"expected": "UPDATE_FAILED",
"matcher": "pathAny",
"state": "failure",
"argument": "Stacks[].StackStatus"
}
]
}
}
}
6 changes: 3 additions & 3 deletions aws-sdk-core/apis/cloudfront/2014-11-06/waiters-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"expected": "Deployed",
"matcher": "path",
"state": "success",
"argument": "Status"
"argument": "Distribution.Status"
}
]
},
Expand All @@ -25,7 +25,7 @@
"expected": "Completed",
"matcher": "path",
"state": "success",
"argument": "Status"
"argument": "Invalidation.Status"
}
]
},
Expand All @@ -39,7 +39,7 @@
"expected": "Deployed",
"matcher": "path",
"state": "success",
"argument": "Status"
"argument": "StreamingDistribution.Status"
}
]
}
Expand Down
36 changes: 36 additions & 0 deletions aws-sdk-core/apis/ec2/2014-10-01/waiters-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,42 @@
}
]
},
"KeyPairExists": {
"operation": "DescribeKeyPairs",
"delay": 5,
"maxAttempts": 6,
"acceptors": [
{
"expected": true,
"matcher": "pathAll",
"state": "success",
"argument": "length(KeyPairs[].KeyName) > `0`"
},
{
"expected": "InvalidKeyPairNotFound",
"matcher": "error",
"state": "retry"
}
]
},
"NetworkInterfaceAvailable": {
"operation": "DescribeNetworkInterfaces",
"delay": 20,
"maxAttempts": 10,
"acceptors": [
{
"expected": "available",
"matcher": "pathAll",
"state": "success",
"argument": "NetworkInterfaces[].Status"
},
{
"expected": "InvalidNetworkInterfaceIDNotFound",
"matcher": "error",
"state": "failure"
}
]
},
"PasswordDataAvailable": {
"operation": "GetPasswordData",
"maxAttempts": 40,
Expand Down
143 changes: 143 additions & 0 deletions aws-sdk-core/apis/elasticache/2015-02-02/waiters-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"version": 2,
"waiters": {
"CacheClusterAvailable": {
"delay": 15,
"operation": "DescribeCacheClusters",
"maxAttempts": 40,
"description": "Wait until ElastiCache cluster is available.",
"acceptors": [
{
"expected": "available",
"matcher": "pathAll",
"state": "success",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "deleted",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "deleting",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "incompatible-network",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "restore-failed",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
}
]
},
"CacheClusterDeleted": {
"delay": 15,
"operation": "DescribeCacheClusters",
"maxAttempts": 40,
"description": "Wait until ElastiCache cluster is deleted.",
"acceptors": [
{
"expected": "deleted",
"matcher": "pathAll",
"state": "success",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "CacheClusterNotFound",
"matcher": "error",
"state": "success"
},
{
"expected": "available",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "creating",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "incompatible-network",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "modifying",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "restore-failed",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
},
{
"expected": "snapshotting",
"matcher": "pathAny",
"state": "failure",
"argument": "CacheClusters[].CacheClusterStatus"
}
]
},
"ReplicationGroupAvailable": {
"delay": 15,
"operation": "DescribeReplicationGroups",
"maxAttempts": 40,
"description": "Wait until ElastiCache replication group is available.",
"acceptors": [
{
"expected": "available",
"matcher": "pathAll",
"state": "success",
"argument": "ReplicationGroups[].Status"
},
{
"expected": "deleted",
"matcher": "pathAny",
"state": "failure",
"argument": "ReplicationGroups[].Status"
}
]
},
"ReplicationGroupDeleted": {
"delay": 15,
"operation": "DescribeReplicationGroups",
"maxAttempts": 40,
"description": "Wait until ElastiCache replication group is deleted.",
"acceptors": [
{
"expected": "deleted",
"matcher": "pathAll",
"state": "success",
"argument": "ReplicationGroups[].Status"
},
{
"expected": "available",
"matcher": "pathAny",
"state": "failure",
"argument": "ReplicationGroups[].Status"
},
{
"expected": "ReplicationGroupNotFoundFault",
"matcher": "error",
"state": "success"
}
]
}
}
}
Loading