aws-sdk-opsworks 1.0.0.rc1 → 1.0.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,454 +1,453 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
- module Aws
11
- module OpsWorks
12
- module Waiters
13
- class AppExists
14
-
15
- # @param [Hash] options
16
- # @option options [required, Client] :client
17
- # @option options [Integer] :max_attempts (40)
18
- # @option options [Integer] :delay (1)
19
- # @option options [Proc] :before_attempt
20
- # @option options [Proc] :before_wait
21
- def initialize(options)
22
- @client = options.fetch(:client)
23
- @waiter = Aws::Waiters::Waiter.new({
24
- max_attempts: 40,
25
- delay: 1,
26
- poller: Aws::Waiters::Poller.new(
27
- operation_name: :describe_apps,
28
- acceptors: [
29
- {
30
- "expected" => 200,
31
- "matcher" => "status",
32
- "state" => "success"
33
- },
34
- {
35
- "matcher" => "status",
36
- "expected" => 400,
37
- "state" => "failure"
38
- }
39
- ]
40
- )
41
- }.merge(options))
42
- end
43
-
44
- # @option (see Client#describe_apps)
45
- # @return (see Client#describe_apps)
46
- def wait(params = {})
47
- @waiter.wait(client: @client, params: params)
48
- end
49
-
50
- # @api private
51
- attr_reader :waiter
10
+ module Aws::OpsWorks
11
+ module Waiters
52
12
 
13
+ class AppExists
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (40)
18
+ # @option options [Integer] :delay (1)
19
+ # @option options [Proc] :before_attempt
20
+ # @option options [Proc] :before_wait
21
+ def initialize(options)
22
+ @client = options.fetch(:client)
23
+ @waiter = Aws::Waiters::Waiter.new({
24
+ max_attempts: 40,
25
+ delay: 1,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_apps,
28
+ acceptors: [
29
+ {
30
+ "expected" => 200,
31
+ "matcher" => "status",
32
+ "state" => "success"
33
+ },
34
+ {
35
+ "matcher" => "status",
36
+ "expected" => 400,
37
+ "state" => "failure"
38
+ }
39
+ ]
40
+ )
41
+ }.merge(options))
42
+ end
43
+
44
+ # @option (see Client#describe_apps)
45
+ # @return (see Client#describe_apps)
46
+ def wait(params = {})
47
+ @waiter.wait(client: @client, params: params)
53
48
  end
54
49
 
55
- class DeploymentSuccessful
56
-
57
- # @param [Hash] options
58
- # @option options [required, Client] :client
59
- # @option options [Integer] :max_attempts (40)
60
- # @option options [Integer] :delay (15)
61
- # @option options [Proc] :before_attempt
62
- # @option options [Proc] :before_wait
63
- def initialize(options)
64
- @client = options.fetch(:client)
65
- @waiter = Aws::Waiters::Waiter.new({
66
- max_attempts: 40,
67
- delay: 15,
68
- poller: Aws::Waiters::Poller.new(
69
- "description" => "Wait until a deployment has completed successfully",
70
- operation_name: :describe_deployments,
71
- acceptors: [
72
- {
73
- "expected" => "successful",
74
- "matcher" => "pathAll",
75
- "state" => "success",
76
- "argument" => "deployments[].status"
77
- },
78
- {
79
- "expected" => "failed",
80
- "matcher" => "pathAny",
81
- "state" => "failure",
82
- "argument" => "deployments[].status"
83
- }
84
- ]
85
- )
86
- }.merge(options))
87
- end
88
-
89
- # @option (see Client#describe_deployments)
90
- # @return (see Client#describe_deployments)
91
- def wait(params = {})
92
- @waiter.wait(client: @client, params: params)
93
- end
94
-
95
- # @api private
96
- attr_reader :waiter
50
+ # @api private
51
+ attr_reader :waiter
52
+
53
+ end
54
+
55
+ # Wait until a deployment has completed successfully
56
+ class DeploymentSuccessful
57
+
58
+ # @param [Hash] options
59
+ # @option options [required, Client] :client
60
+ # @option options [Integer] :max_attempts (40)
61
+ # @option options [Integer] :delay (15)
62
+ # @option options [Proc] :before_attempt
63
+ # @option options [Proc] :before_wait
64
+ def initialize(options)
65
+ @client = options.fetch(:client)
66
+ @waiter = Aws::Waiters::Waiter.new({
67
+ max_attempts: 40,
68
+ delay: 15,
69
+ poller: Aws::Waiters::Poller.new(
70
+ operation_name: :describe_deployments,
71
+ acceptors: [
72
+ {
73
+ "expected" => "successful",
74
+ "matcher" => "pathAll",
75
+ "state" => "success",
76
+ "argument" => "deployments[].status"
77
+ },
78
+ {
79
+ "expected" => "failed",
80
+ "matcher" => "pathAny",
81
+ "state" => "failure",
82
+ "argument" => "deployments[].status"
83
+ }
84
+ ]
85
+ )
86
+ }.merge(options))
87
+ end
97
88
 
89
+ # @option (see Client#describe_deployments)
90
+ # @return (see Client#describe_deployments)
91
+ def wait(params = {})
92
+ @waiter.wait(client: @client, params: params)
98
93
  end
99
94
 
100
- class InstanceOnline
101
-
102
- # @param [Hash] options
103
- # @option options [required, Client] :client
104
- # @option options [Integer] :max_attempts (40)
105
- # @option options [Integer] :delay (15)
106
- # @option options [Proc] :before_attempt
107
- # @option options [Proc] :before_wait
108
- def initialize(options)
109
- @client = options.fetch(:client)
110
- @waiter = Aws::Waiters::Waiter.new({
111
- max_attempts: 40,
112
- delay: 15,
113
- poller: Aws::Waiters::Poller.new(
114
- "description" => "Wait until OpsWorks instance is online.",
115
- operation_name: :describe_instances,
116
- acceptors: [
117
- {
118
- "expected" => "online",
119
- "matcher" => "pathAll",
120
- "state" => "success",
121
- "argument" => "instances[].status"
122
- },
123
- {
124
- "expected" => "setup_failed",
125
- "matcher" => "pathAny",
126
- "state" => "failure",
127
- "argument" => "instances[].status"
128
- },
129
- {
130
- "expected" => "shutting_down",
131
- "matcher" => "pathAny",
132
- "state" => "failure",
133
- "argument" => "instances[].status"
134
- },
135
- {
136
- "expected" => "start_failed",
137
- "matcher" => "pathAny",
138
- "state" => "failure",
139
- "argument" => "instances[].status"
140
- },
141
- {
142
- "expected" => "stopped",
143
- "matcher" => "pathAny",
144
- "state" => "failure",
145
- "argument" => "instances[].status"
146
- },
147
- {
148
- "expected" => "stopping",
149
- "matcher" => "pathAny",
150
- "state" => "failure",
151
- "argument" => "instances[].status"
152
- },
153
- {
154
- "expected" => "terminating",
155
- "matcher" => "pathAny",
156
- "state" => "failure",
157
- "argument" => "instances[].status"
158
- },
159
- {
160
- "expected" => "terminated",
161
- "matcher" => "pathAny",
162
- "state" => "failure",
163
- "argument" => "instances[].status"
164
- },
165
- {
166
- "expected" => "stop_failed",
167
- "matcher" => "pathAny",
168
- "state" => "failure",
169
- "argument" => "instances[].status"
170
- }
171
- ]
172
- )
173
- }.merge(options))
174
- end
175
-
176
- # @option (see Client#describe_instances)
177
- # @return (see Client#describe_instances)
178
- def wait(params = {})
179
- @waiter.wait(client: @client, params: params)
180
- end
181
-
182
- # @api private
183
- attr_reader :waiter
95
+ # @api private
96
+ attr_reader :waiter
184
97
 
98
+ end
99
+
100
+ # Wait until OpsWorks instance is online.
101
+ class InstanceOnline
102
+
103
+ # @param [Hash] options
104
+ # @option options [required, Client] :client
105
+ # @option options [Integer] :max_attempts (40)
106
+ # @option options [Integer] :delay (15)
107
+ # @option options [Proc] :before_attempt
108
+ # @option options [Proc] :before_wait
109
+ def initialize(options)
110
+ @client = options.fetch(:client)
111
+ @waiter = Aws::Waiters::Waiter.new({
112
+ max_attempts: 40,
113
+ delay: 15,
114
+ poller: Aws::Waiters::Poller.new(
115
+ operation_name: :describe_instances,
116
+ acceptors: [
117
+ {
118
+ "expected" => "online",
119
+ "matcher" => "pathAll",
120
+ "state" => "success",
121
+ "argument" => "instances[].status"
122
+ },
123
+ {
124
+ "expected" => "setup_failed",
125
+ "matcher" => "pathAny",
126
+ "state" => "failure",
127
+ "argument" => "instances[].status"
128
+ },
129
+ {
130
+ "expected" => "shutting_down",
131
+ "matcher" => "pathAny",
132
+ "state" => "failure",
133
+ "argument" => "instances[].status"
134
+ },
135
+ {
136
+ "expected" => "start_failed",
137
+ "matcher" => "pathAny",
138
+ "state" => "failure",
139
+ "argument" => "instances[].status"
140
+ },
141
+ {
142
+ "expected" => "stopped",
143
+ "matcher" => "pathAny",
144
+ "state" => "failure",
145
+ "argument" => "instances[].status"
146
+ },
147
+ {
148
+ "expected" => "stopping",
149
+ "matcher" => "pathAny",
150
+ "state" => "failure",
151
+ "argument" => "instances[].status"
152
+ },
153
+ {
154
+ "expected" => "terminating",
155
+ "matcher" => "pathAny",
156
+ "state" => "failure",
157
+ "argument" => "instances[].status"
158
+ },
159
+ {
160
+ "expected" => "terminated",
161
+ "matcher" => "pathAny",
162
+ "state" => "failure",
163
+ "argument" => "instances[].status"
164
+ },
165
+ {
166
+ "expected" => "stop_failed",
167
+ "matcher" => "pathAny",
168
+ "state" => "failure",
169
+ "argument" => "instances[].status"
170
+ }
171
+ ]
172
+ )
173
+ }.merge(options))
185
174
  end
186
175
 
187
- class InstanceRegistered
188
-
189
- # @param [Hash] options
190
- # @option options [required, Client] :client
191
- # @option options [Integer] :max_attempts (40)
192
- # @option options [Integer] :delay (15)
193
- # @option options [Proc] :before_attempt
194
- # @option options [Proc] :before_wait
195
- def initialize(options)
196
- @client = options.fetch(:client)
197
- @waiter = Aws::Waiters::Waiter.new({
198
- max_attempts: 40,
199
- delay: 15,
200
- poller: Aws::Waiters::Poller.new(
201
- "description" => "Wait until OpsWorks instance is registered.",
202
- operation_name: :describe_instances,
203
- acceptors: [
204
- {
205
- "expected" => "registered",
206
- "matcher" => "pathAll",
207
- "state" => "success",
208
- "argument" => "instances[].status"
209
- },
210
- {
211
- "expected" => "setup_failed",
212
- "matcher" => "pathAny",
213
- "state" => "failure",
214
- "argument" => "instances[].status"
215
- },
216
- {
217
- "expected" => "shutting_down",
218
- "matcher" => "pathAny",
219
- "state" => "failure",
220
- "argument" => "instances[].status"
221
- },
222
- {
223
- "expected" => "stopped",
224
- "matcher" => "pathAny",
225
- "state" => "failure",
226
- "argument" => "instances[].status"
227
- },
228
- {
229
- "expected" => "stopping",
230
- "matcher" => "pathAny",
231
- "state" => "failure",
232
- "argument" => "instances[].status"
233
- },
234
- {
235
- "expected" => "terminating",
236
- "matcher" => "pathAny",
237
- "state" => "failure",
238
- "argument" => "instances[].status"
239
- },
240
- {
241
- "expected" => "terminated",
242
- "matcher" => "pathAny",
243
- "state" => "failure",
244
- "argument" => "instances[].status"
245
- },
246
- {
247
- "expected" => "stop_failed",
248
- "matcher" => "pathAny",
249
- "state" => "failure",
250
- "argument" => "instances[].status"
251
- }
252
- ]
253
- )
254
- }.merge(options))
255
- end
256
-
257
- # @option (see Client#describe_instances)
258
- # @return (see Client#describe_instances)
259
- def wait(params = {})
260
- @waiter.wait(client: @client, params: params)
261
- end
262
-
263
- # @api private
264
- attr_reader :waiter
176
+ # @option (see Client#describe_instances)
177
+ # @return (see Client#describe_instances)
178
+ def wait(params = {})
179
+ @waiter.wait(client: @client, params: params)
180
+ end
181
+
182
+ # @api private
183
+ attr_reader :waiter
184
+
185
+ end
186
+
187
+ # Wait until OpsWorks instance is registered.
188
+ class InstanceRegistered
189
+
190
+ # @param [Hash] options
191
+ # @option options [required, Client] :client
192
+ # @option options [Integer] :max_attempts (40)
193
+ # @option options [Integer] :delay (15)
194
+ # @option options [Proc] :before_attempt
195
+ # @option options [Proc] :before_wait
196
+ def initialize(options)
197
+ @client = options.fetch(:client)
198
+ @waiter = Aws::Waiters::Waiter.new({
199
+ max_attempts: 40,
200
+ delay: 15,
201
+ poller: Aws::Waiters::Poller.new(
202
+ operation_name: :describe_instances,
203
+ acceptors: [
204
+ {
205
+ "expected" => "registered",
206
+ "matcher" => "pathAll",
207
+ "state" => "success",
208
+ "argument" => "instances[].status"
209
+ },
210
+ {
211
+ "expected" => "setup_failed",
212
+ "matcher" => "pathAny",
213
+ "state" => "failure",
214
+ "argument" => "instances[].status"
215
+ },
216
+ {
217
+ "expected" => "shutting_down",
218
+ "matcher" => "pathAny",
219
+ "state" => "failure",
220
+ "argument" => "instances[].status"
221
+ },
222
+ {
223
+ "expected" => "stopped",
224
+ "matcher" => "pathAny",
225
+ "state" => "failure",
226
+ "argument" => "instances[].status"
227
+ },
228
+ {
229
+ "expected" => "stopping",
230
+ "matcher" => "pathAny",
231
+ "state" => "failure",
232
+ "argument" => "instances[].status"
233
+ },
234
+ {
235
+ "expected" => "terminating",
236
+ "matcher" => "pathAny",
237
+ "state" => "failure",
238
+ "argument" => "instances[].status"
239
+ },
240
+ {
241
+ "expected" => "terminated",
242
+ "matcher" => "pathAny",
243
+ "state" => "failure",
244
+ "argument" => "instances[].status"
245
+ },
246
+ {
247
+ "expected" => "stop_failed",
248
+ "matcher" => "pathAny",
249
+ "state" => "failure",
250
+ "argument" => "instances[].status"
251
+ }
252
+ ]
253
+ )
254
+ }.merge(options))
255
+ end
265
256
 
257
+ # @option (see Client#describe_instances)
258
+ # @return (see Client#describe_instances)
259
+ def wait(params = {})
260
+ @waiter.wait(client: @client, params: params)
266
261
  end
267
262
 
268
- class InstanceStopped
269
-
270
- # @param [Hash] options
271
- # @option options [required, Client] :client
272
- # @option options [Integer] :max_attempts (40)
273
- # @option options [Integer] :delay (15)
274
- # @option options [Proc] :before_attempt
275
- # @option options [Proc] :before_wait
276
- def initialize(options)
277
- @client = options.fetch(:client)
278
- @waiter = Aws::Waiters::Waiter.new({
279
- max_attempts: 40,
280
- delay: 15,
281
- poller: Aws::Waiters::Poller.new(
282
- "description" => "Wait until OpsWorks instance is stopped.",
283
- operation_name: :describe_instances,
284
- acceptors: [
285
- {
286
- "expected" => "stopped",
287
- "matcher" => "pathAll",
288
- "state" => "success",
289
- "argument" => "instances[].status"
290
- },
291
- {
292
- "expected" => "booting",
293
- "matcher" => "pathAny",
294
- "state" => "failure",
295
- "argument" => "instances[].status"
296
- },
297
- {
298
- "expected" => "online",
299
- "matcher" => "pathAny",
300
- "state" => "failure",
301
- "argument" => "instances[].status"
302
- },
303
- {
304
- "expected" => "pending",
305
- "matcher" => "pathAny",
306
- "state" => "failure",
307
- "argument" => "instances[].status"
308
- },
309
- {
310
- "expected" => "rebooting",
311
- "matcher" => "pathAny",
312
- "state" => "failure",
313
- "argument" => "instances[].status"
314
- },
315
- {
316
- "expected" => "requested",
317
- "matcher" => "pathAny",
318
- "state" => "failure",
319
- "argument" => "instances[].status"
320
- },
321
- {
322
- "expected" => "running_setup",
323
- "matcher" => "pathAny",
324
- "state" => "failure",
325
- "argument" => "instances[].status"
326
- },
327
- {
328
- "expected" => "setup_failed",
329
- "matcher" => "pathAny",
330
- "state" => "failure",
331
- "argument" => "instances[].status"
332
- },
333
- {
334
- "expected" => "start_failed",
335
- "matcher" => "pathAny",
336
- "state" => "failure",
337
- "argument" => "instances[].status"
338
- },
339
- {
340
- "expected" => "stop_failed",
341
- "matcher" => "pathAny",
342
- "state" => "failure",
343
- "argument" => "instances[].status"
344
- }
345
- ]
346
- )
347
- }.merge(options))
348
- end
349
-
350
- # @option (see Client#describe_instances)
351
- # @return (see Client#describe_instances)
352
- def wait(params = {})
353
- @waiter.wait(client: @client, params: params)
354
- end
355
-
356
- # @api private
357
- attr_reader :waiter
263
+ # @api private
264
+ attr_reader :waiter
265
+
266
+ end
267
+
268
+ # Wait until OpsWorks instance is stopped.
269
+ class InstanceStopped
270
+
271
+ # @param [Hash] options
272
+ # @option options [required, Client] :client
273
+ # @option options [Integer] :max_attempts (40)
274
+ # @option options [Integer] :delay (15)
275
+ # @option options [Proc] :before_attempt
276
+ # @option options [Proc] :before_wait
277
+ def initialize(options)
278
+ @client = options.fetch(:client)
279
+ @waiter = Aws::Waiters::Waiter.new({
280
+ max_attempts: 40,
281
+ delay: 15,
282
+ poller: Aws::Waiters::Poller.new(
283
+ operation_name: :describe_instances,
284
+ acceptors: [
285
+ {
286
+ "expected" => "stopped",
287
+ "matcher" => "pathAll",
288
+ "state" => "success",
289
+ "argument" => "instances[].status"
290
+ },
291
+ {
292
+ "expected" => "booting",
293
+ "matcher" => "pathAny",
294
+ "state" => "failure",
295
+ "argument" => "instances[].status"
296
+ },
297
+ {
298
+ "expected" => "online",
299
+ "matcher" => "pathAny",
300
+ "state" => "failure",
301
+ "argument" => "instances[].status"
302
+ },
303
+ {
304
+ "expected" => "pending",
305
+ "matcher" => "pathAny",
306
+ "state" => "failure",
307
+ "argument" => "instances[].status"
308
+ },
309
+ {
310
+ "expected" => "rebooting",
311
+ "matcher" => "pathAny",
312
+ "state" => "failure",
313
+ "argument" => "instances[].status"
314
+ },
315
+ {
316
+ "expected" => "requested",
317
+ "matcher" => "pathAny",
318
+ "state" => "failure",
319
+ "argument" => "instances[].status"
320
+ },
321
+ {
322
+ "expected" => "running_setup",
323
+ "matcher" => "pathAny",
324
+ "state" => "failure",
325
+ "argument" => "instances[].status"
326
+ },
327
+ {
328
+ "expected" => "setup_failed",
329
+ "matcher" => "pathAny",
330
+ "state" => "failure",
331
+ "argument" => "instances[].status"
332
+ },
333
+ {
334
+ "expected" => "start_failed",
335
+ "matcher" => "pathAny",
336
+ "state" => "failure",
337
+ "argument" => "instances[].status"
338
+ },
339
+ {
340
+ "expected" => "stop_failed",
341
+ "matcher" => "pathAny",
342
+ "state" => "failure",
343
+ "argument" => "instances[].status"
344
+ }
345
+ ]
346
+ )
347
+ }.merge(options))
348
+ end
358
349
 
350
+ # @option (see Client#describe_instances)
351
+ # @return (see Client#describe_instances)
352
+ def wait(params = {})
353
+ @waiter.wait(client: @client, params: params)
359
354
  end
360
355
 
361
- class InstanceTerminated
362
-
363
- # @param [Hash] options
364
- # @option options [required, Client] :client
365
- # @option options [Integer] :max_attempts (40)
366
- # @option options [Integer] :delay (15)
367
- # @option options [Proc] :before_attempt
368
- # @option options [Proc] :before_wait
369
- def initialize(options)
370
- @client = options.fetch(:client)
371
- @waiter = Aws::Waiters::Waiter.new({
372
- max_attempts: 40,
373
- delay: 15,
374
- poller: Aws::Waiters::Poller.new(
375
- "description" => "Wait until OpsWorks instance is terminated.",
376
- operation_name: :describe_instances,
377
- acceptors: [
378
- {
379
- "expected" => "terminated",
380
- "matcher" => "pathAll",
381
- "state" => "success",
382
- "argument" => "instances[].status"
383
- },
384
- {
385
- "expected" => "ResourceNotFoundException",
386
- "matcher" => "error",
387
- "state" => "success"
388
- },
389
- {
390
- "expected" => "booting",
391
- "matcher" => "pathAny",
392
- "state" => "failure",
393
- "argument" => "instances[].status"
394
- },
395
- {
396
- "expected" => "online",
397
- "matcher" => "pathAny",
398
- "state" => "failure",
399
- "argument" => "instances[].status"
400
- },
401
- {
402
- "expected" => "pending",
403
- "matcher" => "pathAny",
404
- "state" => "failure",
405
- "argument" => "instances[].status"
406
- },
407
- {
408
- "expected" => "rebooting",
409
- "matcher" => "pathAny",
410
- "state" => "failure",
411
- "argument" => "instances[].status"
412
- },
413
- {
414
- "expected" => "requested",
415
- "matcher" => "pathAny",
416
- "state" => "failure",
417
- "argument" => "instances[].status"
418
- },
419
- {
420
- "expected" => "running_setup",
421
- "matcher" => "pathAny",
422
- "state" => "failure",
423
- "argument" => "instances[].status"
424
- },
425
- {
426
- "expected" => "setup_failed",
427
- "matcher" => "pathAny",
428
- "state" => "failure",
429
- "argument" => "instances[].status"
430
- },
431
- {
432
- "expected" => "start_failed",
433
- "matcher" => "pathAny",
434
- "state" => "failure",
435
- "argument" => "instances[].status"
436
- }
437
- ]
438
- )
439
- }.merge(options))
440
- end
441
-
442
- # @option (see Client#describe_instances)
443
- # @return (see Client#describe_instances)
444
- def wait(params = {})
445
- @waiter.wait(client: @client, params: params)
446
- end
447
-
448
- # @api private
449
- attr_reader :waiter
356
+ # @api private
357
+ attr_reader :waiter
450
358
 
359
+ end
360
+
361
+ # Wait until OpsWorks instance is terminated.
362
+ class InstanceTerminated
363
+
364
+ # @param [Hash] options
365
+ # @option options [required, Client] :client
366
+ # @option options [Integer] :max_attempts (40)
367
+ # @option options [Integer] :delay (15)
368
+ # @option options [Proc] :before_attempt
369
+ # @option options [Proc] :before_wait
370
+ def initialize(options)
371
+ @client = options.fetch(:client)
372
+ @waiter = Aws::Waiters::Waiter.new({
373
+ max_attempts: 40,
374
+ delay: 15,
375
+ poller: Aws::Waiters::Poller.new(
376
+ operation_name: :describe_instances,
377
+ acceptors: [
378
+ {
379
+ "expected" => "terminated",
380
+ "matcher" => "pathAll",
381
+ "state" => "success",
382
+ "argument" => "instances[].status"
383
+ },
384
+ {
385
+ "expected" => "ResourceNotFoundException",
386
+ "matcher" => "error",
387
+ "state" => "success"
388
+ },
389
+ {
390
+ "expected" => "booting",
391
+ "matcher" => "pathAny",
392
+ "state" => "failure",
393
+ "argument" => "instances[].status"
394
+ },
395
+ {
396
+ "expected" => "online",
397
+ "matcher" => "pathAny",
398
+ "state" => "failure",
399
+ "argument" => "instances[].status"
400
+ },
401
+ {
402
+ "expected" => "pending",
403
+ "matcher" => "pathAny",
404
+ "state" => "failure",
405
+ "argument" => "instances[].status"
406
+ },
407
+ {
408
+ "expected" => "rebooting",
409
+ "matcher" => "pathAny",
410
+ "state" => "failure",
411
+ "argument" => "instances[].status"
412
+ },
413
+ {
414
+ "expected" => "requested",
415
+ "matcher" => "pathAny",
416
+ "state" => "failure",
417
+ "argument" => "instances[].status"
418
+ },
419
+ {
420
+ "expected" => "running_setup",
421
+ "matcher" => "pathAny",
422
+ "state" => "failure",
423
+ "argument" => "instances[].status"
424
+ },
425
+ {
426
+ "expected" => "setup_failed",
427
+ "matcher" => "pathAny",
428
+ "state" => "failure",
429
+ "argument" => "instances[].status"
430
+ },
431
+ {
432
+ "expected" => "start_failed",
433
+ "matcher" => "pathAny",
434
+ "state" => "failure",
435
+ "argument" => "instances[].status"
436
+ }
437
+ ]
438
+ )
439
+ }.merge(options))
451
440
  end
441
+
442
+ # @option (see Client#describe_instances)
443
+ # @return (see Client#describe_instances)
444
+ def wait(params = {})
445
+ @waiter.wait(client: @client, params: params)
446
+ end
447
+
448
+ # @api private
449
+ attr_reader :waiter
450
+
452
451
  end
453
452
  end
454
453
  end