1{
2  "version" : 2,
3  "waiters" : {
4    "WaitForReplicationSetActive" : {
5      "description" : "Wait for a replication set to become ACTIVE",
6      "delay" : 30,
7      "maxAttempts" : 5,
8      "operation" : "GetReplicationSet",
9      "acceptors" : [ {
10        "matcher" : "path",
11        "argument" : "replicationSet.status",
12        "state" : "success",
13        "expected" : "ACTIVE"
14      }, {
15        "matcher" : "path",
16        "argument" : "replicationSet.status",
17        "state" : "retry",
18        "expected" : "CREATING"
19      }, {
20        "matcher" : "path",
21        "argument" : "replicationSet.status",
22        "state" : "retry",
23        "expected" : "UPDATING"
24      }, {
25        "matcher" : "path",
26        "argument" : "replicationSet.status",
27        "state" : "failure",
28        "expected" : "FAILED"
29      } ]
30    },
31    "WaitForReplicationSetDeleted" : {
32      "description" : "Wait for a replication set to be deleted",
33      "delay" : 30,
34      "maxAttempts" : 5,
35      "operation" : "GetReplicationSet",
36      "acceptors" : [ {
37        "matcher" : "error",
38        "state" : "success",
39        "expected" : "ResourceNotFoundException"
40      }, {
41        "matcher" : "path",
42        "argument" : "replicationSet.status",
43        "state" : "retry",
44        "expected" : "DELETING"
45      }, {
46        "matcher" : "path",
47        "argument" : "replicationSet.status",
48        "state" : "failure",
49        "expected" : "FAILED"
50      } ]
51    }
52  }
53}