From c0d590adf8104582cb1e9c9f910248cea105c3e9 Mon Sep 17 00:00:00 2001 From: Marc Bollinger Date: Fri, 5 Jun 2015 12:24:30 -0700 Subject: [PATCH] Adding Redshift waiter: ClusterRestored --- .../apis/redshift/2012-12-01/waiters-2.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/aws-sdk-core/apis/redshift/2012-12-01/waiters-2.json b/aws-sdk-core/apis/redshift/2012-12-01/waiters-2.json index 0d1236b07ea..889c8000760 100644 --- a/aws-sdk-core/apis/redshift/2012-12-01/waiters-2.json +++ b/aws-sdk-core/apis/redshift/2012-12-01/waiters-2.json @@ -44,6 +44,25 @@ } ] }, + "ClusterRestored": { + "operation": "DescribeClusters", + "maxAttempts": 30, + "delay": 60, + "acceptors": [ + { + "state": "success", + "matcher": "pathAll", + "argument": "Clusters[].RestoreStatus.Status", + "expected": "completed" + }, + { + "state": "failure", + "matcher": "pathAny", + "argument": "Clusters[].ClusterStatus", + "expected": "deleting" + } + ] + }, "SnapshotAvailable": { "operation": "DescribeClusterSnapshots", "maxAttempts": 20,