1{
2  "version" : 2,
3  "waiters" : {
4    "GraphAvailable" : {
5      "description" : "Wait until Graph is Available",
6      "delay" : 60,
7      "maxAttempts" : 480,
8      "operation" : "GetGraph",
9      "acceptors" : [ {
10        "matcher" : "path",
11        "argument" : "status",
12        "state" : "failure",
13        "expected" : "DELETING"
14      }, {
15        "matcher" : "path",
16        "argument" : "status",
17        "state" : "failure",
18        "expected" : "FAILED"
19      }, {
20        "matcher" : "path",
21        "argument" : "status",
22        "state" : "success",
23        "expected" : "AVAILABLE"
24      } ]
25    },
26    "GraphDeleted" : {
27      "description" : "Wait until Graph is Deleted",
28      "delay" : 60,
29      "maxAttempts" : 60,
30      "operation" : "GetGraph",
31      "acceptors" : [ {
32        "matcher" : "path",
33        "argument" : "status != 'DELETING'",
34        "state" : "failure",
35        "expected" : true
36      }, {
37        "matcher" : "error",
38        "state" : "success",
39        "expected" : "ResourceNotFoundException"
40      } ]
41    },
42    "GraphSnapshotAvailable" : {
43      "description" : "Wait until GraphSnapshot is Available",
44      "delay" : 60,
45      "maxAttempts" : 120,
46      "operation" : "GetGraphSnapshot",
47      "acceptors" : [ {
48        "matcher" : "path",
49        "argument" : "status",
50        "state" : "failure",
51        "expected" : "DELETING"
52      }, {
53        "matcher" : "path",
54        "argument" : "status",
55        "state" : "failure",
56        "expected" : "FAILED"
57      }, {
58        "matcher" : "path",
59        "argument" : "status",
60        "state" : "success",
61        "expected" : "AVAILABLE"
62      } ]
63    },
64    "GraphSnapshotDeleted" : {
65      "description" : "Wait until GraphSnapshot is Deleted",
66      "delay" : 60,
67      "maxAttempts" : 60,
68      "operation" : "GetGraphSnapshot",
69      "acceptors" : [ {
70        "matcher" : "path",
71        "argument" : "status != 'DELETING'",
72        "state" : "failure",
73        "expected" : true
74      }, {
75        "matcher" : "error",
76        "state" : "success",
77        "expected" : "ResourceNotFoundException"
78      } ]
79    },
80    "ImportTaskCancelled" : {
81      "description" : "Wait until Import Task is Cancelled",
82      "delay" : 60,
83      "maxAttempts" : 60,
84      "operation" : "GetImportTask",
85      "acceptors" : [ {
86        "matcher" : "path",
87        "argument" : "status != 'CANCELLING'",
88        "state" : "failure",
89        "expected" : true
90      }, {
91        "matcher" : "path",
92        "argument" : "status",
93        "state" : "success",
94        "expected" : "CANCELLED"
95      } ]
96    },
97    "ImportTaskSuccessful" : {
98      "description" : "Wait until Import Task is Successful",
99      "delay" : 60,
100      "maxAttempts" : 480,
101      "operation" : "GetImportTask",
102      "acceptors" : [ {
103        "matcher" : "path",
104        "argument" : "status",
105        "state" : "failure",
106        "expected" : "CANCELLING"
107      }, {
108        "matcher" : "path",
109        "argument" : "status",
110        "state" : "failure",
111        "expected" : "CANCELLED"
112      }, {
113        "matcher" : "path",
114        "argument" : "status",
115        "state" : "failure",
116        "expected" : "ROLLING_BACK"
117      }, {
118        "matcher" : "path",
119        "argument" : "status",
120        "state" : "failure",
121        "expected" : "FAILED"
122      }, {
123        "matcher" : "path",
124        "argument" : "status",
125        "state" : "success",
126        "expected" : "SUCCEEDED"
127      } ]
128    },
129    "PrivateGraphEndpointAvailable" : {
130      "description" : "Wait until PrivateGraphEndpoint is Available",
131      "delay" : 10,
132      "maxAttempts" : 180,
133      "operation" : "GetPrivateGraphEndpoint",
134      "acceptors" : [ {
135        "matcher" : "path",
136        "argument" : "status",
137        "state" : "failure",
138        "expected" : "DELETING"
139      }, {
140        "matcher" : "path",
141        "argument" : "status",
142        "state" : "failure",
143        "expected" : "FAILED"
144      }, {
145        "matcher" : "path",
146        "argument" : "status",
147        "state" : "success",
148        "expected" : "AVAILABLE"
149      } ]
150    },
151    "PrivateGraphEndpointDeleted" : {
152      "description" : "Wait until PrivateGraphEndpoint is Deleted",
153      "delay" : 10,
154      "maxAttempts" : 180,
155      "operation" : "GetPrivateGraphEndpoint",
156      "acceptors" : [ {
157        "matcher" : "path",
158        "argument" : "status != 'DELETING'",
159        "state" : "failure",
160        "expected" : true
161      }, {
162        "matcher" : "error",
163        "state" : "success",
164        "expected" : "ResourceNotFoundException"
165      } ]
166    }
167  }
168}