aws-sdk-ec2 1.0.0.rc1
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.
- checksums.yaml +7 -0
- data/lib/aws-sdk-ec2.rb +70 -0
- data/lib/aws-sdk-ec2/classic_address.rb +227 -0
- data/lib/aws-sdk-ec2/client.rb +14254 -0
- data/lib/aws-sdk-ec2/client_api.rb +6182 -0
- data/lib/aws-sdk-ec2/customizations.rb +21 -0
- data/lib/aws-sdk-ec2/customizations/instance.rb +29 -0
- data/lib/aws-sdk-ec2/customizations/resource.rb +18 -0
- data/lib/aws-sdk-ec2/dhcp_options.rb +183 -0
- data/lib/aws-sdk-ec2/errors.rb +23 -0
- data/lib/aws-sdk-ec2/image.rb +462 -0
- data/lib/aws-sdk-ec2/instance.rb +1570 -0
- data/lib/aws-sdk-ec2/internet_gateway.rb +204 -0
- data/lib/aws-sdk-ec2/key_pair.rb +120 -0
- data/lib/aws-sdk-ec2/key_pair_info.rb +122 -0
- data/lib/aws-sdk-ec2/network_acl.rb +341 -0
- data/lib/aws-sdk-ec2/network_interface.rb +474 -0
- data/lib/aws-sdk-ec2/network_interface_association.rb +151 -0
- data/lib/aws-sdk-ec2/placement_group.rb +426 -0
- data/lib/aws-sdk-ec2/plugins/copy_encrypted_snapshot.rb +59 -0
- data/lib/aws-sdk-ec2/plugins/region_validation.rb +19 -0
- data/lib/aws-sdk-ec2/resource.rb +2684 -0
- data/lib/aws-sdk-ec2/route.rb +243 -0
- data/lib/aws-sdk-ec2/route_table.rb +277 -0
- data/lib/aws-sdk-ec2/route_table_association.rb +177 -0
- data/lib/aws-sdk-ec2/security_group.rb +530 -0
- data/lib/aws-sdk-ec2/snapshot.rb +478 -0
- data/lib/aws-sdk-ec2/subnet.rb +972 -0
- data/lib/aws-sdk-ec2/tag.rb +223 -0
- data/lib/aws-sdk-ec2/types.rb +20124 -0
- data/lib/aws-sdk-ec2/volume.rb +555 -0
- data/lib/aws-sdk-ec2/vpc.rb +1698 -0
- data/lib/aws-sdk-ec2/vpc_address.rb +219 -0
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +265 -0
- data/lib/aws-sdk-ec2/waiters.rb +1334 -0
- metadata +107 -0
@@ -0,0 +1,1334 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core/waiters'
|
9
|
+
|
10
|
+
module Aws
|
11
|
+
module EC2
|
12
|
+
module Waiters
|
13
|
+
class InstanceExists
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (40)
|
18
|
+
# @option options [Integer] :delay (5)
|
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: 5,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_instances,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"matcher" => "path",
|
31
|
+
"expected" => true,
|
32
|
+
"argument" => "length(reservations[]) > `0`",
|
33
|
+
"state" => "success"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"matcher" => "error",
|
37
|
+
"expected" => "InvalidInstanceID.NotFound",
|
38
|
+
"state" => "retry"
|
39
|
+
}
|
40
|
+
]
|
41
|
+
)
|
42
|
+
}.merge(options))
|
43
|
+
end
|
44
|
+
|
45
|
+
# @option (see Client#describe_instances)
|
46
|
+
# @return (see Client#describe_instances)
|
47
|
+
def wait(params = {})
|
48
|
+
@waiter.wait(client: @client, params: params)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @api private
|
52
|
+
attr_reader :waiter
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
class BundleTaskComplete
|
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_bundle_tasks,
|
71
|
+
acceptors: [
|
72
|
+
{
|
73
|
+
"expected" => "complete",
|
74
|
+
"matcher" => "pathAll",
|
75
|
+
"state" => "success",
|
76
|
+
"argument" => "bundle_tasks[].state"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"expected" => "failed",
|
80
|
+
"matcher" => "pathAny",
|
81
|
+
"state" => "failure",
|
82
|
+
"argument" => "bundle_tasks[].state"
|
83
|
+
}
|
84
|
+
]
|
85
|
+
)
|
86
|
+
}.merge(options))
|
87
|
+
end
|
88
|
+
|
89
|
+
# @option (see Client#describe_bundle_tasks)
|
90
|
+
# @return (see Client#describe_bundle_tasks)
|
91
|
+
def wait(params = {})
|
92
|
+
@waiter.wait(client: @client, params: params)
|
93
|
+
end
|
94
|
+
|
95
|
+
# @api private
|
96
|
+
attr_reader :waiter
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
class ConversionTaskCancelled
|
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
|
+
operation_name: :describe_conversion_tasks,
|
115
|
+
acceptors: [{
|
116
|
+
"expected" => "cancelled",
|
117
|
+
"matcher" => "pathAll",
|
118
|
+
"state" => "success",
|
119
|
+
"argument" => "conversion_tasks[].state"
|
120
|
+
}]
|
121
|
+
)
|
122
|
+
}.merge(options))
|
123
|
+
end
|
124
|
+
|
125
|
+
# @option (see Client#describe_conversion_tasks)
|
126
|
+
# @return (see Client#describe_conversion_tasks)
|
127
|
+
def wait(params = {})
|
128
|
+
@waiter.wait(client: @client, params: params)
|
129
|
+
end
|
130
|
+
|
131
|
+
# @api private
|
132
|
+
attr_reader :waiter
|
133
|
+
|
134
|
+
end
|
135
|
+
|
136
|
+
class ConversionTaskCompleted
|
137
|
+
|
138
|
+
# @param [Hash] options
|
139
|
+
# @option options [required, Client] :client
|
140
|
+
# @option options [Integer] :max_attempts (40)
|
141
|
+
# @option options [Integer] :delay (15)
|
142
|
+
# @option options [Proc] :before_attempt
|
143
|
+
# @option options [Proc] :before_wait
|
144
|
+
def initialize(options)
|
145
|
+
@client = options.fetch(:client)
|
146
|
+
@waiter = Aws::Waiters::Waiter.new({
|
147
|
+
max_attempts: 40,
|
148
|
+
delay: 15,
|
149
|
+
poller: Aws::Waiters::Poller.new(
|
150
|
+
operation_name: :describe_conversion_tasks,
|
151
|
+
acceptors: [
|
152
|
+
{
|
153
|
+
"expected" => "completed",
|
154
|
+
"matcher" => "pathAll",
|
155
|
+
"state" => "success",
|
156
|
+
"argument" => "conversion_tasks[].state"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"expected" => "cancelled",
|
160
|
+
"matcher" => "pathAny",
|
161
|
+
"state" => "failure",
|
162
|
+
"argument" => "conversion_tasks[].state"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"expected" => "cancelling",
|
166
|
+
"matcher" => "pathAny",
|
167
|
+
"state" => "failure",
|
168
|
+
"argument" => "conversion_tasks[].state"
|
169
|
+
}
|
170
|
+
]
|
171
|
+
)
|
172
|
+
}.merge(options))
|
173
|
+
end
|
174
|
+
|
175
|
+
# @option (see Client#describe_conversion_tasks)
|
176
|
+
# @return (see Client#describe_conversion_tasks)
|
177
|
+
def wait(params = {})
|
178
|
+
@waiter.wait(client: @client, params: params)
|
179
|
+
end
|
180
|
+
|
181
|
+
# @api private
|
182
|
+
attr_reader :waiter
|
183
|
+
|
184
|
+
end
|
185
|
+
|
186
|
+
class ConversionTaskDeleted
|
187
|
+
|
188
|
+
# @param [Hash] options
|
189
|
+
# @option options [required, Client] :client
|
190
|
+
# @option options [Integer] :max_attempts (40)
|
191
|
+
# @option options [Integer] :delay (15)
|
192
|
+
# @option options [Proc] :before_attempt
|
193
|
+
# @option options [Proc] :before_wait
|
194
|
+
def initialize(options)
|
195
|
+
@client = options.fetch(:client)
|
196
|
+
@waiter = Aws::Waiters::Waiter.new({
|
197
|
+
max_attempts: 40,
|
198
|
+
delay: 15,
|
199
|
+
poller: Aws::Waiters::Poller.new(
|
200
|
+
operation_name: :describe_conversion_tasks,
|
201
|
+
acceptors: [{
|
202
|
+
"expected" => "deleted",
|
203
|
+
"matcher" => "pathAll",
|
204
|
+
"state" => "success",
|
205
|
+
"argument" => "conversion_tasks[].state"
|
206
|
+
}]
|
207
|
+
)
|
208
|
+
}.merge(options))
|
209
|
+
end
|
210
|
+
|
211
|
+
# @option (see Client#describe_conversion_tasks)
|
212
|
+
# @return (see Client#describe_conversion_tasks)
|
213
|
+
def wait(params = {})
|
214
|
+
@waiter.wait(client: @client, params: params)
|
215
|
+
end
|
216
|
+
|
217
|
+
# @api private
|
218
|
+
attr_reader :waiter
|
219
|
+
|
220
|
+
end
|
221
|
+
|
222
|
+
class CustomerGatewayAvailable
|
223
|
+
|
224
|
+
# @param [Hash] options
|
225
|
+
# @option options [required, Client] :client
|
226
|
+
# @option options [Integer] :max_attempts (40)
|
227
|
+
# @option options [Integer] :delay (15)
|
228
|
+
# @option options [Proc] :before_attempt
|
229
|
+
# @option options [Proc] :before_wait
|
230
|
+
def initialize(options)
|
231
|
+
@client = options.fetch(:client)
|
232
|
+
@waiter = Aws::Waiters::Waiter.new({
|
233
|
+
max_attempts: 40,
|
234
|
+
delay: 15,
|
235
|
+
poller: Aws::Waiters::Poller.new(
|
236
|
+
operation_name: :describe_customer_gateways,
|
237
|
+
acceptors: [
|
238
|
+
{
|
239
|
+
"expected" => "available",
|
240
|
+
"matcher" => "pathAll",
|
241
|
+
"state" => "success",
|
242
|
+
"argument" => "customer_gateways[].state"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"expected" => "deleted",
|
246
|
+
"matcher" => "pathAny",
|
247
|
+
"state" => "failure",
|
248
|
+
"argument" => "customer_gateways[].state"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"expected" => "deleting",
|
252
|
+
"matcher" => "pathAny",
|
253
|
+
"state" => "failure",
|
254
|
+
"argument" => "customer_gateways[].state"
|
255
|
+
}
|
256
|
+
]
|
257
|
+
)
|
258
|
+
}.merge(options))
|
259
|
+
end
|
260
|
+
|
261
|
+
# @option (see Client#describe_customer_gateways)
|
262
|
+
# @return (see Client#describe_customer_gateways)
|
263
|
+
def wait(params = {})
|
264
|
+
@waiter.wait(client: @client, params: params)
|
265
|
+
end
|
266
|
+
|
267
|
+
# @api private
|
268
|
+
attr_reader :waiter
|
269
|
+
|
270
|
+
end
|
271
|
+
|
272
|
+
class ExportTaskCancelled
|
273
|
+
|
274
|
+
# @param [Hash] options
|
275
|
+
# @option options [required, Client] :client
|
276
|
+
# @option options [Integer] :max_attempts (40)
|
277
|
+
# @option options [Integer] :delay (15)
|
278
|
+
# @option options [Proc] :before_attempt
|
279
|
+
# @option options [Proc] :before_wait
|
280
|
+
def initialize(options)
|
281
|
+
@client = options.fetch(:client)
|
282
|
+
@waiter = Aws::Waiters::Waiter.new({
|
283
|
+
max_attempts: 40,
|
284
|
+
delay: 15,
|
285
|
+
poller: Aws::Waiters::Poller.new(
|
286
|
+
operation_name: :describe_export_tasks,
|
287
|
+
acceptors: [{
|
288
|
+
"expected" => "cancelled",
|
289
|
+
"matcher" => "pathAll",
|
290
|
+
"state" => "success",
|
291
|
+
"argument" => "export_tasks[].state"
|
292
|
+
}]
|
293
|
+
)
|
294
|
+
}.merge(options))
|
295
|
+
end
|
296
|
+
|
297
|
+
# @option (see Client#describe_export_tasks)
|
298
|
+
# @return (see Client#describe_export_tasks)
|
299
|
+
def wait(params = {})
|
300
|
+
@waiter.wait(client: @client, params: params)
|
301
|
+
end
|
302
|
+
|
303
|
+
# @api private
|
304
|
+
attr_reader :waiter
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
class ExportTaskCompleted
|
309
|
+
|
310
|
+
# @param [Hash] options
|
311
|
+
# @option options [required, Client] :client
|
312
|
+
# @option options [Integer] :max_attempts (40)
|
313
|
+
# @option options [Integer] :delay (15)
|
314
|
+
# @option options [Proc] :before_attempt
|
315
|
+
# @option options [Proc] :before_wait
|
316
|
+
def initialize(options)
|
317
|
+
@client = options.fetch(:client)
|
318
|
+
@waiter = Aws::Waiters::Waiter.new({
|
319
|
+
max_attempts: 40,
|
320
|
+
delay: 15,
|
321
|
+
poller: Aws::Waiters::Poller.new(
|
322
|
+
operation_name: :describe_export_tasks,
|
323
|
+
acceptors: [{
|
324
|
+
"expected" => "completed",
|
325
|
+
"matcher" => "pathAll",
|
326
|
+
"state" => "success",
|
327
|
+
"argument" => "export_tasks[].state"
|
328
|
+
}]
|
329
|
+
)
|
330
|
+
}.merge(options))
|
331
|
+
end
|
332
|
+
|
333
|
+
# @option (see Client#describe_export_tasks)
|
334
|
+
# @return (see Client#describe_export_tasks)
|
335
|
+
def wait(params = {})
|
336
|
+
@waiter.wait(client: @client, params: params)
|
337
|
+
end
|
338
|
+
|
339
|
+
# @api private
|
340
|
+
attr_reader :waiter
|
341
|
+
|
342
|
+
end
|
343
|
+
|
344
|
+
class ImageExists
|
345
|
+
|
346
|
+
# @param [Hash] options
|
347
|
+
# @option options [required, Client] :client
|
348
|
+
# @option options [Integer] :max_attempts (40)
|
349
|
+
# @option options [Integer] :delay (15)
|
350
|
+
# @option options [Proc] :before_attempt
|
351
|
+
# @option options [Proc] :before_wait
|
352
|
+
def initialize(options)
|
353
|
+
@client = options.fetch(:client)
|
354
|
+
@waiter = Aws::Waiters::Waiter.new({
|
355
|
+
max_attempts: 40,
|
356
|
+
delay: 15,
|
357
|
+
poller: Aws::Waiters::Poller.new(
|
358
|
+
operation_name: :describe_images,
|
359
|
+
acceptors: [
|
360
|
+
{
|
361
|
+
"matcher" => "path",
|
362
|
+
"expected" => true,
|
363
|
+
"argument" => "length(images[]) > `0`",
|
364
|
+
"state" => "success"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"matcher" => "error",
|
368
|
+
"expected" => "InvalidAMIID.NotFound",
|
369
|
+
"state" => "retry"
|
370
|
+
}
|
371
|
+
]
|
372
|
+
)
|
373
|
+
}.merge(options))
|
374
|
+
end
|
375
|
+
|
376
|
+
# @option (see Client#describe_images)
|
377
|
+
# @return (see Client#describe_images)
|
378
|
+
def wait(params = {})
|
379
|
+
@waiter.wait(client: @client, params: params)
|
380
|
+
end
|
381
|
+
|
382
|
+
# @api private
|
383
|
+
attr_reader :waiter
|
384
|
+
|
385
|
+
end
|
386
|
+
|
387
|
+
class ImageAvailable
|
388
|
+
|
389
|
+
# @param [Hash] options
|
390
|
+
# @option options [required, Client] :client
|
391
|
+
# @option options [Integer] :max_attempts (40)
|
392
|
+
# @option options [Integer] :delay (15)
|
393
|
+
# @option options [Proc] :before_attempt
|
394
|
+
# @option options [Proc] :before_wait
|
395
|
+
def initialize(options)
|
396
|
+
@client = options.fetch(:client)
|
397
|
+
@waiter = Aws::Waiters::Waiter.new({
|
398
|
+
max_attempts: 40,
|
399
|
+
delay: 15,
|
400
|
+
poller: Aws::Waiters::Poller.new(
|
401
|
+
operation_name: :describe_images,
|
402
|
+
acceptors: [
|
403
|
+
{
|
404
|
+
"state" => "success",
|
405
|
+
"matcher" => "pathAll",
|
406
|
+
"argument" => "images[].state",
|
407
|
+
"expected" => "available"
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"state" => "failure",
|
411
|
+
"matcher" => "pathAny",
|
412
|
+
"argument" => "images[].state",
|
413
|
+
"expected" => "failed"
|
414
|
+
}
|
415
|
+
]
|
416
|
+
)
|
417
|
+
}.merge(options))
|
418
|
+
end
|
419
|
+
|
420
|
+
# @option (see Client#describe_images)
|
421
|
+
# @return (see Client#describe_images)
|
422
|
+
def wait(params = {})
|
423
|
+
@waiter.wait(client: @client, params: params)
|
424
|
+
end
|
425
|
+
|
426
|
+
# @api private
|
427
|
+
attr_reader :waiter
|
428
|
+
|
429
|
+
end
|
430
|
+
|
431
|
+
class InstanceRunning
|
432
|
+
|
433
|
+
# @param [Hash] options
|
434
|
+
# @option options [required, Client] :client
|
435
|
+
# @option options [Integer] :max_attempts (40)
|
436
|
+
# @option options [Integer] :delay (15)
|
437
|
+
# @option options [Proc] :before_attempt
|
438
|
+
# @option options [Proc] :before_wait
|
439
|
+
def initialize(options)
|
440
|
+
@client = options.fetch(:client)
|
441
|
+
@waiter = Aws::Waiters::Waiter.new({
|
442
|
+
max_attempts: 40,
|
443
|
+
delay: 15,
|
444
|
+
poller: Aws::Waiters::Poller.new(
|
445
|
+
operation_name: :describe_instances,
|
446
|
+
acceptors: [
|
447
|
+
{
|
448
|
+
"expected" => "running",
|
449
|
+
"matcher" => "pathAll",
|
450
|
+
"state" => "success",
|
451
|
+
"argument" => "reservations[].instances[].state.name"
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"expected" => "shutting-down",
|
455
|
+
"matcher" => "pathAny",
|
456
|
+
"state" => "failure",
|
457
|
+
"argument" => "reservations[].instances[].state.name"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"expected" => "terminated",
|
461
|
+
"matcher" => "pathAny",
|
462
|
+
"state" => "failure",
|
463
|
+
"argument" => "reservations[].instances[].state.name"
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"expected" => "stopping",
|
467
|
+
"matcher" => "pathAny",
|
468
|
+
"state" => "failure",
|
469
|
+
"argument" => "reservations[].instances[].state.name"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"matcher" => "error",
|
473
|
+
"expected" => "InvalidInstanceID.NotFound",
|
474
|
+
"state" => "retry"
|
475
|
+
}
|
476
|
+
]
|
477
|
+
)
|
478
|
+
}.merge(options))
|
479
|
+
end
|
480
|
+
|
481
|
+
# @option (see Client#describe_instances)
|
482
|
+
# @return (see Client#describe_instances)
|
483
|
+
def wait(params = {})
|
484
|
+
@waiter.wait(client: @client, params: params)
|
485
|
+
end
|
486
|
+
|
487
|
+
# @api private
|
488
|
+
attr_reader :waiter
|
489
|
+
|
490
|
+
end
|
491
|
+
|
492
|
+
class InstanceStatusOk
|
493
|
+
|
494
|
+
# @param [Hash] options
|
495
|
+
# @option options [required, Client] :client
|
496
|
+
# @option options [Integer] :max_attempts (40)
|
497
|
+
# @option options [Integer] :delay (15)
|
498
|
+
# @option options [Proc] :before_attempt
|
499
|
+
# @option options [Proc] :before_wait
|
500
|
+
def initialize(options)
|
501
|
+
@client = options.fetch(:client)
|
502
|
+
@waiter = Aws::Waiters::Waiter.new({
|
503
|
+
max_attempts: 40,
|
504
|
+
delay: 15,
|
505
|
+
poller: Aws::Waiters::Poller.new(
|
506
|
+
operation_name: :describe_instance_status,
|
507
|
+
acceptors: [
|
508
|
+
{
|
509
|
+
"state" => "success",
|
510
|
+
"matcher" => "pathAll",
|
511
|
+
"argument" => "instance_statuses[].instance_status.status",
|
512
|
+
"expected" => "ok"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"matcher" => "error",
|
516
|
+
"expected" => "InvalidInstanceID.NotFound",
|
517
|
+
"state" => "retry"
|
518
|
+
}
|
519
|
+
]
|
520
|
+
)
|
521
|
+
}.merge(options))
|
522
|
+
end
|
523
|
+
|
524
|
+
# @option (see Client#describe_instance_status)
|
525
|
+
# @return (see Client#describe_instance_status)
|
526
|
+
def wait(params = {})
|
527
|
+
@waiter.wait(client: @client, params: params)
|
528
|
+
end
|
529
|
+
|
530
|
+
# @api private
|
531
|
+
attr_reader :waiter
|
532
|
+
|
533
|
+
end
|
534
|
+
|
535
|
+
class InstanceStopped
|
536
|
+
|
537
|
+
# @param [Hash] options
|
538
|
+
# @option options [required, Client] :client
|
539
|
+
# @option options [Integer] :max_attempts (40)
|
540
|
+
# @option options [Integer] :delay (15)
|
541
|
+
# @option options [Proc] :before_attempt
|
542
|
+
# @option options [Proc] :before_wait
|
543
|
+
def initialize(options)
|
544
|
+
@client = options.fetch(:client)
|
545
|
+
@waiter = Aws::Waiters::Waiter.new({
|
546
|
+
max_attempts: 40,
|
547
|
+
delay: 15,
|
548
|
+
poller: Aws::Waiters::Poller.new(
|
549
|
+
operation_name: :describe_instances,
|
550
|
+
acceptors: [
|
551
|
+
{
|
552
|
+
"expected" => "stopped",
|
553
|
+
"matcher" => "pathAll",
|
554
|
+
"state" => "success",
|
555
|
+
"argument" => "reservations[].instances[].state.name"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"expected" => "pending",
|
559
|
+
"matcher" => "pathAny",
|
560
|
+
"state" => "failure",
|
561
|
+
"argument" => "reservations[].instances[].state.name"
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"expected" => "terminated",
|
565
|
+
"matcher" => "pathAny",
|
566
|
+
"state" => "failure",
|
567
|
+
"argument" => "reservations[].instances[].state.name"
|
568
|
+
}
|
569
|
+
]
|
570
|
+
)
|
571
|
+
}.merge(options))
|
572
|
+
end
|
573
|
+
|
574
|
+
# @option (see Client#describe_instances)
|
575
|
+
# @return (see Client#describe_instances)
|
576
|
+
def wait(params = {})
|
577
|
+
@waiter.wait(client: @client, params: params)
|
578
|
+
end
|
579
|
+
|
580
|
+
# @api private
|
581
|
+
attr_reader :waiter
|
582
|
+
|
583
|
+
end
|
584
|
+
|
585
|
+
class InstanceTerminated
|
586
|
+
|
587
|
+
# @param [Hash] options
|
588
|
+
# @option options [required, Client] :client
|
589
|
+
# @option options [Integer] :max_attempts (40)
|
590
|
+
# @option options [Integer] :delay (15)
|
591
|
+
# @option options [Proc] :before_attempt
|
592
|
+
# @option options [Proc] :before_wait
|
593
|
+
def initialize(options)
|
594
|
+
@client = options.fetch(:client)
|
595
|
+
@waiter = Aws::Waiters::Waiter.new({
|
596
|
+
max_attempts: 40,
|
597
|
+
delay: 15,
|
598
|
+
poller: Aws::Waiters::Poller.new(
|
599
|
+
operation_name: :describe_instances,
|
600
|
+
acceptors: [
|
601
|
+
{
|
602
|
+
"expected" => "terminated",
|
603
|
+
"matcher" => "pathAll",
|
604
|
+
"state" => "success",
|
605
|
+
"argument" => "reservations[].instances[].state.name"
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"expected" => "pending",
|
609
|
+
"matcher" => "pathAny",
|
610
|
+
"state" => "failure",
|
611
|
+
"argument" => "reservations[].instances[].state.name"
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"expected" => "stopping",
|
615
|
+
"matcher" => "pathAny",
|
616
|
+
"state" => "failure",
|
617
|
+
"argument" => "reservations[].instances[].state.name"
|
618
|
+
}
|
619
|
+
]
|
620
|
+
)
|
621
|
+
}.merge(options))
|
622
|
+
end
|
623
|
+
|
624
|
+
# @option (see Client#describe_instances)
|
625
|
+
# @return (see Client#describe_instances)
|
626
|
+
def wait(params = {})
|
627
|
+
@waiter.wait(client: @client, params: params)
|
628
|
+
end
|
629
|
+
|
630
|
+
# @api private
|
631
|
+
attr_reader :waiter
|
632
|
+
|
633
|
+
end
|
634
|
+
|
635
|
+
class KeyPairExists
|
636
|
+
|
637
|
+
# @param [Hash] options
|
638
|
+
# @option options [required, Client] :client
|
639
|
+
# @option options [Integer] :max_attempts (6)
|
640
|
+
# @option options [Integer] :delay (5)
|
641
|
+
# @option options [Proc] :before_attempt
|
642
|
+
# @option options [Proc] :before_wait
|
643
|
+
def initialize(options)
|
644
|
+
@client = options.fetch(:client)
|
645
|
+
@waiter = Aws::Waiters::Waiter.new({
|
646
|
+
max_attempts: 6,
|
647
|
+
delay: 5,
|
648
|
+
poller: Aws::Waiters::Poller.new(
|
649
|
+
operation_name: :describe_key_pairs,
|
650
|
+
acceptors: [
|
651
|
+
{
|
652
|
+
"expected" => true,
|
653
|
+
"matcher" => "pathAll",
|
654
|
+
"state" => "success",
|
655
|
+
"argument" => "length(key_pairs[].key_name) > `0`"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"expected" => "InvalidKeyPair.NotFound",
|
659
|
+
"matcher" => "error",
|
660
|
+
"state" => "retry"
|
661
|
+
}
|
662
|
+
]
|
663
|
+
)
|
664
|
+
}.merge(options))
|
665
|
+
end
|
666
|
+
|
667
|
+
# @option (see Client#describe_key_pairs)
|
668
|
+
# @return (see Client#describe_key_pairs)
|
669
|
+
def wait(params = {})
|
670
|
+
@waiter.wait(client: @client, params: params)
|
671
|
+
end
|
672
|
+
|
673
|
+
# @api private
|
674
|
+
attr_reader :waiter
|
675
|
+
|
676
|
+
end
|
677
|
+
|
678
|
+
class NatGatewayAvailable
|
679
|
+
|
680
|
+
# @param [Hash] options
|
681
|
+
# @option options [required, Client] :client
|
682
|
+
# @option options [Integer] :max_attempts (40)
|
683
|
+
# @option options [Integer] :delay (15)
|
684
|
+
# @option options [Proc] :before_attempt
|
685
|
+
# @option options [Proc] :before_wait
|
686
|
+
def initialize(options)
|
687
|
+
@client = options.fetch(:client)
|
688
|
+
@waiter = Aws::Waiters::Waiter.new({
|
689
|
+
max_attempts: 40,
|
690
|
+
delay: 15,
|
691
|
+
poller: Aws::Waiters::Poller.new(
|
692
|
+
operation_name: :describe_nat_gateways,
|
693
|
+
acceptors: [
|
694
|
+
{
|
695
|
+
"state" => "success",
|
696
|
+
"matcher" => "pathAll",
|
697
|
+
"argument" => "nat_gateways[].state",
|
698
|
+
"expected" => "available"
|
699
|
+
},
|
700
|
+
{
|
701
|
+
"state" => "failure",
|
702
|
+
"matcher" => "pathAny",
|
703
|
+
"argument" => "nat_gateways[].state",
|
704
|
+
"expected" => "failed"
|
705
|
+
},
|
706
|
+
{
|
707
|
+
"state" => "failure",
|
708
|
+
"matcher" => "pathAny",
|
709
|
+
"argument" => "nat_gateways[].state",
|
710
|
+
"expected" => "deleting"
|
711
|
+
},
|
712
|
+
{
|
713
|
+
"state" => "failure",
|
714
|
+
"matcher" => "pathAny",
|
715
|
+
"argument" => "nat_gateways[].state",
|
716
|
+
"expected" => "deleted"
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"state" => "retry",
|
720
|
+
"matcher" => "error",
|
721
|
+
"expected" => "NatGatewayNotFound"
|
722
|
+
}
|
723
|
+
]
|
724
|
+
)
|
725
|
+
}.merge(options))
|
726
|
+
end
|
727
|
+
|
728
|
+
# @option (see Client#describe_nat_gateways)
|
729
|
+
# @return (see Client#describe_nat_gateways)
|
730
|
+
def wait(params = {})
|
731
|
+
@waiter.wait(client: @client, params: params)
|
732
|
+
end
|
733
|
+
|
734
|
+
# @api private
|
735
|
+
attr_reader :waiter
|
736
|
+
|
737
|
+
end
|
738
|
+
|
739
|
+
class NetworkInterfaceAvailable
|
740
|
+
|
741
|
+
# @param [Hash] options
|
742
|
+
# @option options [required, Client] :client
|
743
|
+
# @option options [Integer] :max_attempts (10)
|
744
|
+
# @option options [Integer] :delay (20)
|
745
|
+
# @option options [Proc] :before_attempt
|
746
|
+
# @option options [Proc] :before_wait
|
747
|
+
def initialize(options)
|
748
|
+
@client = options.fetch(:client)
|
749
|
+
@waiter = Aws::Waiters::Waiter.new({
|
750
|
+
max_attempts: 10,
|
751
|
+
delay: 20,
|
752
|
+
poller: Aws::Waiters::Poller.new(
|
753
|
+
operation_name: :describe_network_interfaces,
|
754
|
+
acceptors: [
|
755
|
+
{
|
756
|
+
"expected" => "available",
|
757
|
+
"matcher" => "pathAll",
|
758
|
+
"state" => "success",
|
759
|
+
"argument" => "network_interfaces[].status"
|
760
|
+
},
|
761
|
+
{
|
762
|
+
"expected" => "InvalidNetworkInterfaceID.NotFound",
|
763
|
+
"matcher" => "error",
|
764
|
+
"state" => "failure"
|
765
|
+
}
|
766
|
+
]
|
767
|
+
)
|
768
|
+
}.merge(options))
|
769
|
+
end
|
770
|
+
|
771
|
+
# @option (see Client#describe_network_interfaces)
|
772
|
+
# @return (see Client#describe_network_interfaces)
|
773
|
+
def wait(params = {})
|
774
|
+
@waiter.wait(client: @client, params: params)
|
775
|
+
end
|
776
|
+
|
777
|
+
# @api private
|
778
|
+
attr_reader :waiter
|
779
|
+
|
780
|
+
end
|
781
|
+
|
782
|
+
class PasswordDataAvailable
|
783
|
+
|
784
|
+
# @param [Hash] options
|
785
|
+
# @option options [required, Client] :client
|
786
|
+
# @option options [Integer] :max_attempts (40)
|
787
|
+
# @option options [Integer] :delay (15)
|
788
|
+
# @option options [Proc] :before_attempt
|
789
|
+
# @option options [Proc] :before_wait
|
790
|
+
def initialize(options)
|
791
|
+
@client = options.fetch(:client)
|
792
|
+
@waiter = Aws::Waiters::Waiter.new({
|
793
|
+
max_attempts: 40,
|
794
|
+
delay: 15,
|
795
|
+
poller: Aws::Waiters::Poller.new(
|
796
|
+
operation_name: :get_password_data,
|
797
|
+
acceptors: [{
|
798
|
+
"state" => "success",
|
799
|
+
"matcher" => "path",
|
800
|
+
"argument" => "length(password_data) > `0`",
|
801
|
+
"expected" => true
|
802
|
+
}]
|
803
|
+
)
|
804
|
+
}.merge(options))
|
805
|
+
end
|
806
|
+
|
807
|
+
# @option (see Client#get_password_data)
|
808
|
+
# @return (see Client#get_password_data)
|
809
|
+
def wait(params = {})
|
810
|
+
@waiter.wait(client: @client, params: params)
|
811
|
+
end
|
812
|
+
|
813
|
+
# @api private
|
814
|
+
attr_reader :waiter
|
815
|
+
|
816
|
+
end
|
817
|
+
|
818
|
+
class SnapshotCompleted
|
819
|
+
|
820
|
+
# @param [Hash] options
|
821
|
+
# @option options [required, Client] :client
|
822
|
+
# @option options [Integer] :max_attempts (40)
|
823
|
+
# @option options [Integer] :delay (15)
|
824
|
+
# @option options [Proc] :before_attempt
|
825
|
+
# @option options [Proc] :before_wait
|
826
|
+
def initialize(options)
|
827
|
+
@client = options.fetch(:client)
|
828
|
+
@waiter = Aws::Waiters::Waiter.new({
|
829
|
+
max_attempts: 40,
|
830
|
+
delay: 15,
|
831
|
+
poller: Aws::Waiters::Poller.new(
|
832
|
+
operation_name: :describe_snapshots,
|
833
|
+
acceptors: [{
|
834
|
+
"expected" => "completed",
|
835
|
+
"matcher" => "pathAll",
|
836
|
+
"state" => "success",
|
837
|
+
"argument" => "snapshots[].state"
|
838
|
+
}]
|
839
|
+
)
|
840
|
+
}.merge(options))
|
841
|
+
end
|
842
|
+
|
843
|
+
# @option (see Client#describe_snapshots)
|
844
|
+
# @return (see Client#describe_snapshots)
|
845
|
+
def wait(params = {})
|
846
|
+
@waiter.wait(client: @client, params: params)
|
847
|
+
end
|
848
|
+
|
849
|
+
# @api private
|
850
|
+
attr_reader :waiter
|
851
|
+
|
852
|
+
end
|
853
|
+
|
854
|
+
class SpotInstanceRequestFulfilled
|
855
|
+
|
856
|
+
# @param [Hash] options
|
857
|
+
# @option options [required, Client] :client
|
858
|
+
# @option options [Integer] :max_attempts (40)
|
859
|
+
# @option options [Integer] :delay (15)
|
860
|
+
# @option options [Proc] :before_attempt
|
861
|
+
# @option options [Proc] :before_wait
|
862
|
+
def initialize(options)
|
863
|
+
@client = options.fetch(:client)
|
864
|
+
@waiter = Aws::Waiters::Waiter.new({
|
865
|
+
max_attempts: 40,
|
866
|
+
delay: 15,
|
867
|
+
poller: Aws::Waiters::Poller.new(
|
868
|
+
operation_name: :describe_spot_instance_requests,
|
869
|
+
acceptors: [
|
870
|
+
{
|
871
|
+
"state" => "success",
|
872
|
+
"matcher" => "pathAll",
|
873
|
+
"argument" => "spot_instance_requests[].status.code",
|
874
|
+
"expected" => "fulfilled"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"state" => "failure",
|
878
|
+
"matcher" => "pathAny",
|
879
|
+
"argument" => "spot_instance_requests[].status.code",
|
880
|
+
"expected" => "schedule-expired"
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"state" => "failure",
|
884
|
+
"matcher" => "pathAny",
|
885
|
+
"argument" => "spot_instance_requests[].status.code",
|
886
|
+
"expected" => "canceled-before-fulfillment"
|
887
|
+
},
|
888
|
+
{
|
889
|
+
"state" => "failure",
|
890
|
+
"matcher" => "pathAny",
|
891
|
+
"argument" => "spot_instance_requests[].status.code",
|
892
|
+
"expected" => "bad-parameters"
|
893
|
+
},
|
894
|
+
{
|
895
|
+
"state" => "failure",
|
896
|
+
"matcher" => "pathAny",
|
897
|
+
"argument" => "spot_instance_requests[].status.code",
|
898
|
+
"expected" => "system-error"
|
899
|
+
}
|
900
|
+
]
|
901
|
+
)
|
902
|
+
}.merge(options))
|
903
|
+
end
|
904
|
+
|
905
|
+
# @option (see Client#describe_spot_instance_requests)
|
906
|
+
# @return (see Client#describe_spot_instance_requests)
|
907
|
+
def wait(params = {})
|
908
|
+
@waiter.wait(client: @client, params: params)
|
909
|
+
end
|
910
|
+
|
911
|
+
# @api private
|
912
|
+
attr_reader :waiter
|
913
|
+
|
914
|
+
end
|
915
|
+
|
916
|
+
class SubnetAvailable
|
917
|
+
|
918
|
+
# @param [Hash] options
|
919
|
+
# @option options [required, Client] :client
|
920
|
+
# @option options [Integer] :max_attempts (40)
|
921
|
+
# @option options [Integer] :delay (15)
|
922
|
+
# @option options [Proc] :before_attempt
|
923
|
+
# @option options [Proc] :before_wait
|
924
|
+
def initialize(options)
|
925
|
+
@client = options.fetch(:client)
|
926
|
+
@waiter = Aws::Waiters::Waiter.new({
|
927
|
+
max_attempts: 40,
|
928
|
+
delay: 15,
|
929
|
+
poller: Aws::Waiters::Poller.new(
|
930
|
+
operation_name: :describe_subnets,
|
931
|
+
acceptors: [{
|
932
|
+
"expected" => "available",
|
933
|
+
"matcher" => "pathAll",
|
934
|
+
"state" => "success",
|
935
|
+
"argument" => "subnets[].state"
|
936
|
+
}]
|
937
|
+
)
|
938
|
+
}.merge(options))
|
939
|
+
end
|
940
|
+
|
941
|
+
# @option (see Client#describe_subnets)
|
942
|
+
# @return (see Client#describe_subnets)
|
943
|
+
def wait(params = {})
|
944
|
+
@waiter.wait(client: @client, params: params)
|
945
|
+
end
|
946
|
+
|
947
|
+
# @api private
|
948
|
+
attr_reader :waiter
|
949
|
+
|
950
|
+
end
|
951
|
+
|
952
|
+
class SystemStatusOk
|
953
|
+
|
954
|
+
# @param [Hash] options
|
955
|
+
# @option options [required, Client] :client
|
956
|
+
# @option options [Integer] :max_attempts (40)
|
957
|
+
# @option options [Integer] :delay (15)
|
958
|
+
# @option options [Proc] :before_attempt
|
959
|
+
# @option options [Proc] :before_wait
|
960
|
+
def initialize(options)
|
961
|
+
@client = options.fetch(:client)
|
962
|
+
@waiter = Aws::Waiters::Waiter.new({
|
963
|
+
max_attempts: 40,
|
964
|
+
delay: 15,
|
965
|
+
poller: Aws::Waiters::Poller.new(
|
966
|
+
operation_name: :describe_instance_status,
|
967
|
+
acceptors: [{
|
968
|
+
"state" => "success",
|
969
|
+
"matcher" => "pathAll",
|
970
|
+
"argument" => "instance_statuses[].system_status.status",
|
971
|
+
"expected" => "ok"
|
972
|
+
}]
|
973
|
+
)
|
974
|
+
}.merge(options))
|
975
|
+
end
|
976
|
+
|
977
|
+
# @option (see Client#describe_instance_status)
|
978
|
+
# @return (see Client#describe_instance_status)
|
979
|
+
def wait(params = {})
|
980
|
+
@waiter.wait(client: @client, params: params)
|
981
|
+
end
|
982
|
+
|
983
|
+
# @api private
|
984
|
+
attr_reader :waiter
|
985
|
+
|
986
|
+
end
|
987
|
+
|
988
|
+
class VolumeAvailable
|
989
|
+
|
990
|
+
# @param [Hash] options
|
991
|
+
# @option options [required, Client] :client
|
992
|
+
# @option options [Integer] :max_attempts (40)
|
993
|
+
# @option options [Integer] :delay (15)
|
994
|
+
# @option options [Proc] :before_attempt
|
995
|
+
# @option options [Proc] :before_wait
|
996
|
+
def initialize(options)
|
997
|
+
@client = options.fetch(:client)
|
998
|
+
@waiter = Aws::Waiters::Waiter.new({
|
999
|
+
max_attempts: 40,
|
1000
|
+
delay: 15,
|
1001
|
+
poller: Aws::Waiters::Poller.new(
|
1002
|
+
operation_name: :describe_volumes,
|
1003
|
+
acceptors: [
|
1004
|
+
{
|
1005
|
+
"expected" => "available",
|
1006
|
+
"matcher" => "pathAll",
|
1007
|
+
"state" => "success",
|
1008
|
+
"argument" => "volumes[].state"
|
1009
|
+
},
|
1010
|
+
{
|
1011
|
+
"expected" => "deleted",
|
1012
|
+
"matcher" => "pathAny",
|
1013
|
+
"state" => "failure",
|
1014
|
+
"argument" => "volumes[].state"
|
1015
|
+
}
|
1016
|
+
]
|
1017
|
+
)
|
1018
|
+
}.merge(options))
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# @option (see Client#describe_volumes)
|
1022
|
+
# @return (see Client#describe_volumes)
|
1023
|
+
def wait(params = {})
|
1024
|
+
@waiter.wait(client: @client, params: params)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# @api private
|
1028
|
+
attr_reader :waiter
|
1029
|
+
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
class VolumeDeleted
|
1033
|
+
|
1034
|
+
# @param [Hash] options
|
1035
|
+
# @option options [required, Client] :client
|
1036
|
+
# @option options [Integer] :max_attempts (40)
|
1037
|
+
# @option options [Integer] :delay (15)
|
1038
|
+
# @option options [Proc] :before_attempt
|
1039
|
+
# @option options [Proc] :before_wait
|
1040
|
+
def initialize(options)
|
1041
|
+
@client = options.fetch(:client)
|
1042
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1043
|
+
max_attempts: 40,
|
1044
|
+
delay: 15,
|
1045
|
+
poller: Aws::Waiters::Poller.new(
|
1046
|
+
operation_name: :describe_volumes,
|
1047
|
+
acceptors: [
|
1048
|
+
{
|
1049
|
+
"expected" => "deleted",
|
1050
|
+
"matcher" => "pathAll",
|
1051
|
+
"state" => "success",
|
1052
|
+
"argument" => "volumes[].state"
|
1053
|
+
},
|
1054
|
+
{
|
1055
|
+
"matcher" => "error",
|
1056
|
+
"expected" => "InvalidVolume.NotFound",
|
1057
|
+
"state" => "success"
|
1058
|
+
}
|
1059
|
+
]
|
1060
|
+
)
|
1061
|
+
}.merge(options))
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# @option (see Client#describe_volumes)
|
1065
|
+
# @return (see Client#describe_volumes)
|
1066
|
+
def wait(params = {})
|
1067
|
+
@waiter.wait(client: @client, params: params)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# @api private
|
1071
|
+
attr_reader :waiter
|
1072
|
+
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
class VolumeInUse
|
1076
|
+
|
1077
|
+
# @param [Hash] options
|
1078
|
+
# @option options [required, Client] :client
|
1079
|
+
# @option options [Integer] :max_attempts (40)
|
1080
|
+
# @option options [Integer] :delay (15)
|
1081
|
+
# @option options [Proc] :before_attempt
|
1082
|
+
# @option options [Proc] :before_wait
|
1083
|
+
def initialize(options)
|
1084
|
+
@client = options.fetch(:client)
|
1085
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1086
|
+
max_attempts: 40,
|
1087
|
+
delay: 15,
|
1088
|
+
poller: Aws::Waiters::Poller.new(
|
1089
|
+
operation_name: :describe_volumes,
|
1090
|
+
acceptors: [
|
1091
|
+
{
|
1092
|
+
"expected" => "in-use",
|
1093
|
+
"matcher" => "pathAll",
|
1094
|
+
"state" => "success",
|
1095
|
+
"argument" => "volumes[].state"
|
1096
|
+
},
|
1097
|
+
{
|
1098
|
+
"expected" => "deleted",
|
1099
|
+
"matcher" => "pathAny",
|
1100
|
+
"state" => "failure",
|
1101
|
+
"argument" => "volumes[].state"
|
1102
|
+
}
|
1103
|
+
]
|
1104
|
+
)
|
1105
|
+
}.merge(options))
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
# @option (see Client#describe_volumes)
|
1109
|
+
# @return (see Client#describe_volumes)
|
1110
|
+
def wait(params = {})
|
1111
|
+
@waiter.wait(client: @client, params: params)
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
# @api private
|
1115
|
+
attr_reader :waiter
|
1116
|
+
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
class VpcAvailable
|
1120
|
+
|
1121
|
+
# @param [Hash] options
|
1122
|
+
# @option options [required, Client] :client
|
1123
|
+
# @option options [Integer] :max_attempts (40)
|
1124
|
+
# @option options [Integer] :delay (15)
|
1125
|
+
# @option options [Proc] :before_attempt
|
1126
|
+
# @option options [Proc] :before_wait
|
1127
|
+
def initialize(options)
|
1128
|
+
@client = options.fetch(:client)
|
1129
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1130
|
+
max_attempts: 40,
|
1131
|
+
delay: 15,
|
1132
|
+
poller: Aws::Waiters::Poller.new(
|
1133
|
+
operation_name: :describe_vpcs,
|
1134
|
+
acceptors: [{
|
1135
|
+
"expected" => "available",
|
1136
|
+
"matcher" => "pathAll",
|
1137
|
+
"state" => "success",
|
1138
|
+
"argument" => "vpcs[].state"
|
1139
|
+
}]
|
1140
|
+
)
|
1141
|
+
}.merge(options))
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
# @option (see Client#describe_vpcs)
|
1145
|
+
# @return (see Client#describe_vpcs)
|
1146
|
+
def wait(params = {})
|
1147
|
+
@waiter.wait(client: @client, params: params)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# @api private
|
1151
|
+
attr_reader :waiter
|
1152
|
+
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
class VpcExists
|
1156
|
+
|
1157
|
+
# @param [Hash] options
|
1158
|
+
# @option options [required, Client] :client
|
1159
|
+
# @option options [Integer] :max_attempts (5)
|
1160
|
+
# @option options [Integer] :delay (1)
|
1161
|
+
# @option options [Proc] :before_attempt
|
1162
|
+
# @option options [Proc] :before_wait
|
1163
|
+
def initialize(options)
|
1164
|
+
@client = options.fetch(:client)
|
1165
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1166
|
+
max_attempts: 5,
|
1167
|
+
delay: 1,
|
1168
|
+
poller: Aws::Waiters::Poller.new(
|
1169
|
+
operation_name: :describe_vpcs,
|
1170
|
+
acceptors: [
|
1171
|
+
{
|
1172
|
+
"matcher" => "status",
|
1173
|
+
"expected" => 200,
|
1174
|
+
"state" => "success"
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"matcher" => "error",
|
1178
|
+
"expected" => "InvalidVpcID.NotFound",
|
1179
|
+
"state" => "retry"
|
1180
|
+
}
|
1181
|
+
]
|
1182
|
+
)
|
1183
|
+
}.merge(options))
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
# @option (see Client#describe_vpcs)
|
1187
|
+
# @return (see Client#describe_vpcs)
|
1188
|
+
def wait(params = {})
|
1189
|
+
@waiter.wait(client: @client, params: params)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# @api private
|
1193
|
+
attr_reader :waiter
|
1194
|
+
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
class VpnConnectionAvailable
|
1198
|
+
|
1199
|
+
# @param [Hash] options
|
1200
|
+
# @option options [required, Client] :client
|
1201
|
+
# @option options [Integer] :max_attempts (40)
|
1202
|
+
# @option options [Integer] :delay (15)
|
1203
|
+
# @option options [Proc] :before_attempt
|
1204
|
+
# @option options [Proc] :before_wait
|
1205
|
+
def initialize(options)
|
1206
|
+
@client = options.fetch(:client)
|
1207
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1208
|
+
max_attempts: 40,
|
1209
|
+
delay: 15,
|
1210
|
+
poller: Aws::Waiters::Poller.new(
|
1211
|
+
operation_name: :describe_vpn_connections,
|
1212
|
+
acceptors: [
|
1213
|
+
{
|
1214
|
+
"expected" => "available",
|
1215
|
+
"matcher" => "pathAll",
|
1216
|
+
"state" => "success",
|
1217
|
+
"argument" => "vpn_connections[].state"
|
1218
|
+
},
|
1219
|
+
{
|
1220
|
+
"expected" => "deleting",
|
1221
|
+
"matcher" => "pathAny",
|
1222
|
+
"state" => "failure",
|
1223
|
+
"argument" => "vpn_connections[].state"
|
1224
|
+
},
|
1225
|
+
{
|
1226
|
+
"expected" => "deleted",
|
1227
|
+
"matcher" => "pathAny",
|
1228
|
+
"state" => "failure",
|
1229
|
+
"argument" => "vpn_connections[].state"
|
1230
|
+
}
|
1231
|
+
]
|
1232
|
+
)
|
1233
|
+
}.merge(options))
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
# @option (see Client#describe_vpn_connections)
|
1237
|
+
# @return (see Client#describe_vpn_connections)
|
1238
|
+
def wait(params = {})
|
1239
|
+
@waiter.wait(client: @client, params: params)
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# @api private
|
1243
|
+
attr_reader :waiter
|
1244
|
+
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
class VpnConnectionDeleted
|
1248
|
+
|
1249
|
+
# @param [Hash] options
|
1250
|
+
# @option options [required, Client] :client
|
1251
|
+
# @option options [Integer] :max_attempts (40)
|
1252
|
+
# @option options [Integer] :delay (15)
|
1253
|
+
# @option options [Proc] :before_attempt
|
1254
|
+
# @option options [Proc] :before_wait
|
1255
|
+
def initialize(options)
|
1256
|
+
@client = options.fetch(:client)
|
1257
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1258
|
+
max_attempts: 40,
|
1259
|
+
delay: 15,
|
1260
|
+
poller: Aws::Waiters::Poller.new(
|
1261
|
+
operation_name: :describe_vpn_connections,
|
1262
|
+
acceptors: [
|
1263
|
+
{
|
1264
|
+
"expected" => "deleted",
|
1265
|
+
"matcher" => "pathAll",
|
1266
|
+
"state" => "success",
|
1267
|
+
"argument" => "vpn_connections[].state"
|
1268
|
+
},
|
1269
|
+
{
|
1270
|
+
"expected" => "pending",
|
1271
|
+
"matcher" => "pathAny",
|
1272
|
+
"state" => "failure",
|
1273
|
+
"argument" => "vpn_connections[].state"
|
1274
|
+
}
|
1275
|
+
]
|
1276
|
+
)
|
1277
|
+
}.merge(options))
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# @option (see Client#describe_vpn_connections)
|
1281
|
+
# @return (see Client#describe_vpn_connections)
|
1282
|
+
def wait(params = {})
|
1283
|
+
@waiter.wait(client: @client, params: params)
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
# @api private
|
1287
|
+
attr_reader :waiter
|
1288
|
+
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
class VpcPeeringConnectionExists
|
1292
|
+
|
1293
|
+
# @param [Hash] options
|
1294
|
+
# @option options [required, Client] :client
|
1295
|
+
# @option options [Integer] :max_attempts (40)
|
1296
|
+
# @option options [Integer] :delay (15)
|
1297
|
+
# @option options [Proc] :before_attempt
|
1298
|
+
# @option options [Proc] :before_wait
|
1299
|
+
def initialize(options)
|
1300
|
+
@client = options.fetch(:client)
|
1301
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1302
|
+
max_attempts: 40,
|
1303
|
+
delay: 15,
|
1304
|
+
poller: Aws::Waiters::Poller.new(
|
1305
|
+
operation_name: :describe_vpc_peering_connections,
|
1306
|
+
acceptors: [
|
1307
|
+
{
|
1308
|
+
"matcher" => "status",
|
1309
|
+
"expected" => 200,
|
1310
|
+
"state" => "success"
|
1311
|
+
},
|
1312
|
+
{
|
1313
|
+
"matcher" => "error",
|
1314
|
+
"expected" => "InvalidVpcPeeringConnectionID.NotFound",
|
1315
|
+
"state" => "retry"
|
1316
|
+
}
|
1317
|
+
]
|
1318
|
+
)
|
1319
|
+
}.merge(options))
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
# @option (see Client#describe_vpc_peering_connections)
|
1323
|
+
# @return (see Client#describe_vpc_peering_connections)
|
1324
|
+
def wait(params = {})
|
1325
|
+
@waiter.wait(client: @client, params: params)
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
# @api private
|
1329
|
+
attr_reader :waiter
|
1330
|
+
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
end
|
1334
|
+
end
|