xref: /aosp_15_r20/external/aws-sdk-java-v2/services/proton/src/main/resources/codegen-resources/waiters-2.json (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1{
2  "version" : 2,
3  "waiters" : {
4    "ComponentDeleted" : {
5      "description" : "Wait until a Component is deleted. Use this after invoking DeleteComponent",
6      "delay" : 5,
7      "maxAttempts" : 999,
8      "operation" : "GetComponent",
9      "acceptors" : [ {
10        "matcher" : "error",
11        "state" : "success",
12        "expected" : "ResourceNotFoundException"
13      }, {
14        "matcher" : "path",
15        "argument" : "component.deploymentStatus",
16        "state" : "failure",
17        "expected" : "DELETE_FAILED"
18      } ]
19    },
20    "ComponentDeployed" : {
21      "description" : "Wait until a Component is deployed. Use this after invoking CreateComponent or UpdateComponent",
22      "delay" : 5,
23      "maxAttempts" : 999,
24      "operation" : "GetComponent",
25      "acceptors" : [ {
26        "matcher" : "path",
27        "argument" : "component.deploymentStatus",
28        "state" : "success",
29        "expected" : "SUCCEEDED"
30      }, {
31        "matcher" : "path",
32        "argument" : "component.deploymentStatus",
33        "state" : "failure",
34        "expected" : "FAILED"
35      } ]
36    },
37    "EnvironmentDeployed" : {
38      "description" : "Wait until an Environment is deployed. Use this after invoking CreateEnvironment or UpdateEnvironment",
39      "delay" : 5,
40      "maxAttempts" : 999,
41      "operation" : "GetEnvironment",
42      "acceptors" : [ {
43        "matcher" : "path",
44        "argument" : "environment.deploymentStatus",
45        "state" : "success",
46        "expected" : "SUCCEEDED"
47      }, {
48        "matcher" : "path",
49        "argument" : "environment.deploymentStatus",
50        "state" : "failure",
51        "expected" : "FAILED"
52      } ]
53    },
54    "EnvironmentTemplateVersionRegistered" : {
55      "description" : "Wait until an EnvironmentTemplateVersion is registered. Use this after invoking CreateEnvironmentTemplateVersion",
56      "delay" : 2,
57      "maxAttempts" : 150,
58      "operation" : "GetEnvironmentTemplateVersion",
59      "acceptors" : [ {
60        "matcher" : "path",
61        "argument" : "environmentTemplateVersion.status",
62        "state" : "success",
63        "expected" : "DRAFT"
64      }, {
65        "matcher" : "path",
66        "argument" : "environmentTemplateVersion.status",
67        "state" : "success",
68        "expected" : "PUBLISHED"
69      }, {
70        "matcher" : "path",
71        "argument" : "environmentTemplateVersion.status",
72        "state" : "failure",
73        "expected" : "REGISTRATION_FAILED"
74      } ]
75    },
76    "ServiceCreated" : {
77      "description" : "Wait until an Service has deployed its instances and possibly pipeline. Use this after invoking CreateService",
78      "delay" : 5,
79      "maxAttempts" : 999,
80      "operation" : "GetService",
81      "acceptors" : [ {
82        "matcher" : "path",
83        "argument" : "service.status",
84        "state" : "success",
85        "expected" : "ACTIVE"
86      }, {
87        "matcher" : "path",
88        "argument" : "service.status",
89        "state" : "failure",
90        "expected" : "CREATE_FAILED_CLEANUP_COMPLETE"
91      }, {
92        "matcher" : "path",
93        "argument" : "service.status",
94        "state" : "failure",
95        "expected" : "CREATE_FAILED_CLEANUP_FAILED"
96      }, {
97        "matcher" : "path",
98        "argument" : "service.status",
99        "state" : "failure",
100        "expected" : "CREATE_FAILED"
101      } ]
102    },
103    "ServiceDeleted" : {
104      "description" : "Wait until a Service, its instances, and possibly pipeline have been deleted after DeleteService is invoked",
105      "delay" : 5,
106      "maxAttempts" : 999,
107      "operation" : "GetService",
108      "acceptors" : [ {
109        "matcher" : "error",
110        "state" : "success",
111        "expected" : "ResourceNotFoundException"
112      }, {
113        "matcher" : "path",
114        "argument" : "service.status",
115        "state" : "failure",
116        "expected" : "DELETE_FAILED"
117      } ]
118    },
119    "ServiceInstanceDeployed" : {
120      "description" : "Wait until a ServiceInstance is deployed. Use this after invoking CreateService or UpdateServiceInstance",
121      "delay" : 5,
122      "maxAttempts" : 999,
123      "operation" : "GetServiceInstance",
124      "acceptors" : [ {
125        "matcher" : "path",
126        "argument" : "serviceInstance.deploymentStatus",
127        "state" : "success",
128        "expected" : "SUCCEEDED"
129      }, {
130        "matcher" : "path",
131        "argument" : "serviceInstance.deploymentStatus",
132        "state" : "failure",
133        "expected" : "FAILED"
134      } ]
135    },
136    "ServicePipelineDeployed" : {
137      "description" : "Wait until an ServicePipeline is deployed. Use this after invoking CreateService or UpdateServicePipeline",
138      "delay" : 10,
139      "maxAttempts" : 360,
140      "operation" : "GetService",
141      "acceptors" : [ {
142        "matcher" : "path",
143        "argument" : "service.pipeline.deploymentStatus",
144        "state" : "success",
145        "expected" : "SUCCEEDED"
146      }, {
147        "matcher" : "path",
148        "argument" : "service.pipeline.deploymentStatus",
149        "state" : "failure",
150        "expected" : "FAILED"
151      } ]
152    },
153    "ServiceTemplateVersionRegistered" : {
154      "description" : "Wait until a ServiceTemplateVersion is registered. Use this after invoking CreateServiceTemplateVersion",
155      "delay" : 2,
156      "maxAttempts" : 150,
157      "operation" : "GetServiceTemplateVersion",
158      "acceptors" : [ {
159        "matcher" : "path",
160        "argument" : "serviceTemplateVersion.status",
161        "state" : "success",
162        "expected" : "DRAFT"
163      }, {
164        "matcher" : "path",
165        "argument" : "serviceTemplateVersion.status",
166        "state" : "success",
167        "expected" : "PUBLISHED"
168      }, {
169        "matcher" : "path",
170        "argument" : "serviceTemplateVersion.status",
171        "state" : "failure",
172        "expected" : "REGISTRATION_FAILED"
173      } ]
174    },
175    "ServiceUpdated" : {
176      "description" : "Wait until a Service, its instances, and possibly pipeline have been deployed after UpdateService is invoked",
177      "delay" : 5,
178      "maxAttempts" : 999,
179      "operation" : "GetService",
180      "acceptors" : [ {
181        "matcher" : "path",
182        "argument" : "service.status",
183        "state" : "success",
184        "expected" : "ACTIVE"
185      }, {
186        "matcher" : "path",
187        "argument" : "service.status",
188        "state" : "failure",
189        "expected" : "UPDATE_FAILED_CLEANUP_COMPLETE"
190      }, {
191        "matcher" : "path",
192        "argument" : "service.status",
193        "state" : "failure",
194        "expected" : "UPDATE_FAILED_CLEANUP_FAILED"
195      }, {
196        "matcher" : "path",
197        "argument" : "service.status",
198        "state" : "failure",
199        "expected" : "UPDATE_FAILED"
200      }, {
201        "matcher" : "path",
202        "argument" : "service.status",
203        "state" : "failure",
204        "expected" : "UPDATE_COMPLETE_CLEANUP_FAILED"
205      } ]
206    }
207  }
208}