xref: /aosp_15_r20/external/aws-sdk-java-v2/services/emr/src/main/resources/codegen-resources/waiters-2.json (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1{
2  "version": 2,
3  "waiters": {
4    "ClusterRunning": {
5      "delay": 30,
6      "operation": "DescribeCluster",
7      "maxAttempts": 60,
8      "acceptors": [
9        {
10          "state": "success",
11          "matcher": "path",
12          "argument": "Cluster.Status.State",
13          "expected": "RUNNING"
14        },
15        {
16          "state": "success",
17          "matcher": "path",
18          "argument": "Cluster.Status.State",
19          "expected": "WAITING"
20        },
21        {
22          "state": "failure",
23          "matcher": "path",
24          "argument": "Cluster.Status.State",
25          "expected": "TERMINATING"
26        },
27        {
28          "state": "failure",
29          "matcher": "path",
30          "argument": "Cluster.Status.State",
31          "expected": "TERMINATED"
32        },
33        {
34          "state": "failure",
35          "matcher": "path",
36          "argument": "Cluster.Status.State",
37          "expected": "TERMINATED_WITH_ERRORS"
38        }
39      ]
40    },
41    "StepComplete": {
42      "delay": 30,
43      "operation": "DescribeStep",
44      "maxAttempts": 60,
45      "acceptors": [
46        {
47          "state": "success",
48          "matcher": "path",
49          "argument": "Step.Status.State",
50          "expected": "COMPLETED"
51        },
52        {
53          "state": "failure",
54          "matcher": "path",
55          "argument": "Step.Status.State",
56          "expected": "FAILED"
57        },
58        {
59          "state": "failure",
60          "matcher": "path",
61          "argument": "Step.Status.State",
62          "expected": "CANCELLED"
63        }
64      ]
65    },
66    "ClusterTerminated": {
67      "delay": 30,
68      "operation": "DescribeCluster",
69      "maxAttempts": 60,
70      "acceptors": [
71        {
72          "state": "success",
73          "matcher": "path",
74          "argument": "Cluster.Status.State",
75          "expected": "TERMINATED"
76        },
77        {
78          "state": "failure",
79          "matcher": "path",
80          "argument": "Cluster.Status.State",
81          "expected": "TERMINATED_WITH_ERRORS"
82        }
83      ]
84    }
85  }
86}
87