1{
2  "version": 2,
3  "waiters": {
4    "ClusterAvailable": {
5      "delay": 60,
6      "operation": "DescribeClusters",
7      "maxAttempts": 30,
8      "acceptors": [
9        {
10          "expected": "available",
11          "matcher": "pathAll",
12          "state": "success",
13          "argument": "Clusters[].ClusterStatus"
14        },
15        {
16          "expected": "deleting",
17          "matcher": "pathAny",
18          "state": "failure",
19          "argument": "Clusters[].ClusterStatus"
20        },
21        {
22          "expected": "ClusterNotFound",
23          "matcher": "error",
24          "state": "retry"
25        }
26      ]
27    },
28    "ClusterDeleted": {
29      "delay": 60,
30      "operation": "DescribeClusters",
31      "maxAttempts": 30,
32      "acceptors": [
33        {
34          "expected": "ClusterNotFound",
35          "matcher": "error",
36          "state": "success"
37        },
38        {
39          "expected": "creating",
40          "matcher": "pathAny",
41          "state": "failure",
42          "argument": "Clusters[].ClusterStatus"
43        },
44        {
45          "expected": "modifying",
46          "matcher": "pathAny",
47          "state": "failure",
48          "argument": "Clusters[].ClusterStatus"
49        }
50      ]
51    },
52    "ClusterRestored": {
53      "operation": "DescribeClusters",
54      "maxAttempts": 30,
55      "delay": 60,
56      "acceptors": [
57        {
58          "state": "success",
59          "matcher": "pathAll",
60          "argument": "Clusters[].RestoreStatus.Status",
61          "expected": "completed"
62        },
63        {
64          "state": "failure",
65          "matcher": "pathAny",
66          "argument": "Clusters[].ClusterStatus",
67          "expected": "deleting"
68        }
69      ]
70    },
71    "SnapshotAvailable": {
72      "delay": 15,
73      "operation": "DescribeClusterSnapshots",
74      "maxAttempts": 20,
75      "acceptors": [
76        {
77          "expected": "available",
78          "matcher": "pathAll",
79          "state": "success",
80          "argument": "Snapshots[].Status"
81        },
82        {
83          "expected": "failed",
84          "matcher": "pathAny",
85          "state": "failure",
86          "argument": "Snapshots[].Status"
87        },
88        {
89          "expected": "deleted",
90          "matcher": "pathAny",
91          "state": "failure",
92          "argument": "Snapshots[].Status"
93        }
94      ]
95    }
96  }
97}
98