aws-sdk-omics 1.0.0
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/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-omics/client.rb +3833 -0
- data/lib/aws-sdk-omics/client_api.rb +2932 -0
- data/lib/aws-sdk-omics/customizations.rb +0 -0
- data/lib/aws-sdk-omics/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-omics/endpoint_provider.rb +110 -0
- data/lib/aws-sdk-omics/endpoints.rb +939 -0
- data/lib/aws-sdk-omics/errors.rb +198 -0
- data/lib/aws-sdk-omics/plugins/endpoints.rb +200 -0
- data/lib/aws-sdk-omics/resource.rb +26 -0
- data/lib/aws-sdk-omics/types.rb +6190 -0
- data/lib/aws-sdk-omics/waiters.rb +1051 -0
- data/lib/aws-sdk-omics.rb +58 -0
- metadata +95 -0
@@ -0,0 +1,1051 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::Omics
|
13
|
+
# Waiters are utility methods that poll for a particular state to occur
|
14
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
15
|
+
# interval defined for the service client.
|
16
|
+
#
|
17
|
+
# For a list of operations that can be waited for and the
|
18
|
+
# client methods called for each operation, see the table below or the
|
19
|
+
# {Client#wait_until} field documentation for the {Client}.
|
20
|
+
#
|
21
|
+
# # Invoking a Waiter
|
22
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
23
|
+
# is the waiter name, which is specific to the service client and indicates
|
24
|
+
# which operation is being waited for. The second parameter is a hash of
|
25
|
+
# parameters that are passed to the client method called by the waiter,
|
26
|
+
# which varies according to the waiter name.
|
27
|
+
#
|
28
|
+
# # Wait Failures
|
29
|
+
# To catch errors in a waiter, use WaiterFailed,
|
30
|
+
# as shown in the following example.
|
31
|
+
#
|
32
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
33
|
+
# puts "failed waiting for instance running: #{error.message}
|
34
|
+
# end
|
35
|
+
#
|
36
|
+
# # Configuring a Waiter
|
37
|
+
# Each waiter has a default polling interval and a maximum number of
|
38
|
+
# attempts it will make before returning control to your program.
|
39
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
40
|
+
# in your `#wait_until` call.
|
41
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
42
|
+
#
|
43
|
+
# client.wait_until(...) do |w|
|
44
|
+
# w.max_attempts = 5
|
45
|
+
# w.delay = 5
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# To disable wait failures, set the value of either of these parameters
|
49
|
+
# to `nil`.
|
50
|
+
#
|
51
|
+
# # Extending a Waiter
|
52
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
53
|
+
# triggered before each polling attempt and before waiting.
|
54
|
+
#
|
55
|
+
# The following example implements an exponential backoff in a waiter
|
56
|
+
# by doubling the amount of time to wait on every attempt.
|
57
|
+
#
|
58
|
+
# client.wait_until(...) do |w|
|
59
|
+
# w.interval = 0 # disable normal sleep
|
60
|
+
# w.before_wait do |n, resp|
|
61
|
+
# sleep(n ** 2)
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
# # Available Waiters
|
66
|
+
#
|
67
|
+
# The following table lists the valid waiter names, the operations they call,
|
68
|
+
# and the default `:delay` and `:max_attempts` values.
|
69
|
+
#
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | --------------------------------- | ------------------------------------ | -------- | ------------- |
|
72
|
+
# | annotation_import_job_created | {Client#get_annotation_import_job} | 30 | 20 |
|
73
|
+
# | annotation_store_created | {Client#get_annotation_store} | 30 | 20 |
|
74
|
+
# | annotation_store_deleted | {Client#get_annotation_store} | 30 | 20 |
|
75
|
+
# | read_set_activation_job_completed | {Client#get_read_set_activation_job} | 30 | 20 |
|
76
|
+
# | read_set_export_job_completed | {Client#get_read_set_export_job} | 30 | 20 |
|
77
|
+
# | read_set_import_job_completed | {Client#get_read_set_import_job} | 30 | 20 |
|
78
|
+
# | reference_import_job_completed | {Client#get_reference_import_job} | 30 | 20 |
|
79
|
+
# | run_completed | {Client#get_run} | 30 | 20 |
|
80
|
+
# | run_running | {Client#get_run} | 30 | 20 |
|
81
|
+
# | task_completed | {Client#get_run_task} | 30 | 20 |
|
82
|
+
# | task_running | {Client#get_run_task} | 30 | 20 |
|
83
|
+
# | variant_import_job_created | {Client#get_variant_import_job} | 30 | 20 |
|
84
|
+
# | variant_store_created | {Client#get_variant_store} | 30 | 20 |
|
85
|
+
# | variant_store_deleted | {Client#get_variant_store} | 30 | 20 |
|
86
|
+
# | workflow_active | {Client#get_workflow} | 3 | 10 |
|
87
|
+
#
|
88
|
+
module Waiters
|
89
|
+
|
90
|
+
# Wait until an annotation import is completed
|
91
|
+
class AnnotationImportJobCreated
|
92
|
+
|
93
|
+
# @param [Hash] options
|
94
|
+
# @option options [required, Client] :client
|
95
|
+
# @option options [Integer] :max_attempts (20)
|
96
|
+
# @option options [Integer] :delay (30)
|
97
|
+
# @option options [Proc] :before_attempt
|
98
|
+
# @option options [Proc] :before_wait
|
99
|
+
def initialize(options)
|
100
|
+
@client = options.fetch(:client)
|
101
|
+
@waiter = Aws::Waiters::Waiter.new({
|
102
|
+
max_attempts: 20,
|
103
|
+
delay: 30,
|
104
|
+
poller: Aws::Waiters::Poller.new(
|
105
|
+
operation_name: :get_annotation_import_job,
|
106
|
+
acceptors: [
|
107
|
+
{
|
108
|
+
"matcher" => "path",
|
109
|
+
"argument" => "status",
|
110
|
+
"state" => "retry",
|
111
|
+
"expected" => "SUBMITTED"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"matcher" => "path",
|
115
|
+
"argument" => "status",
|
116
|
+
"state" => "retry",
|
117
|
+
"expected" => "IN_PROGRESS"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"matcher" => "path",
|
121
|
+
"argument" => "status",
|
122
|
+
"state" => "failure",
|
123
|
+
"expected" => "FAILED"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"matcher" => "path",
|
127
|
+
"argument" => "status",
|
128
|
+
"state" => "success",
|
129
|
+
"expected" => "CANCELLED"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"matcher" => "path",
|
133
|
+
"argument" => "status",
|
134
|
+
"state" => "success",
|
135
|
+
"expected" => "COMPLETED"
|
136
|
+
}
|
137
|
+
]
|
138
|
+
)
|
139
|
+
}.merge(options))
|
140
|
+
end
|
141
|
+
|
142
|
+
# @option (see Client#get_annotation_import_job)
|
143
|
+
# @return (see Client#get_annotation_import_job)
|
144
|
+
def wait(params = {})
|
145
|
+
@waiter.wait(client: @client, params: params)
|
146
|
+
end
|
147
|
+
|
148
|
+
# @api private
|
149
|
+
attr_reader :waiter
|
150
|
+
|
151
|
+
end
|
152
|
+
|
153
|
+
# Wait until an annotation store is created
|
154
|
+
class AnnotationStoreCreated
|
155
|
+
|
156
|
+
# @param [Hash] options
|
157
|
+
# @option options [required, Client] :client
|
158
|
+
# @option options [Integer] :max_attempts (20)
|
159
|
+
# @option options [Integer] :delay (30)
|
160
|
+
# @option options [Proc] :before_attempt
|
161
|
+
# @option options [Proc] :before_wait
|
162
|
+
def initialize(options)
|
163
|
+
@client = options.fetch(:client)
|
164
|
+
@waiter = Aws::Waiters::Waiter.new({
|
165
|
+
max_attempts: 20,
|
166
|
+
delay: 30,
|
167
|
+
poller: Aws::Waiters::Poller.new(
|
168
|
+
operation_name: :get_annotation_store,
|
169
|
+
acceptors: [
|
170
|
+
{
|
171
|
+
"matcher" => "path",
|
172
|
+
"argument" => "status",
|
173
|
+
"state" => "success",
|
174
|
+
"expected" => "ACTIVE"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"matcher" => "path",
|
178
|
+
"argument" => "status",
|
179
|
+
"state" => "retry",
|
180
|
+
"expected" => "CREATING"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"matcher" => "path",
|
184
|
+
"argument" => "status",
|
185
|
+
"state" => "retry",
|
186
|
+
"expected" => "UPDATING"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"matcher" => "path",
|
190
|
+
"argument" => "status",
|
191
|
+
"state" => "failure",
|
192
|
+
"expected" => "FAILED"
|
193
|
+
}
|
194
|
+
]
|
195
|
+
)
|
196
|
+
}.merge(options))
|
197
|
+
end
|
198
|
+
|
199
|
+
# @option (see Client#get_annotation_store)
|
200
|
+
# @return (see Client#get_annotation_store)
|
201
|
+
def wait(params = {})
|
202
|
+
@waiter.wait(client: @client, params: params)
|
203
|
+
end
|
204
|
+
|
205
|
+
# @api private
|
206
|
+
attr_reader :waiter
|
207
|
+
|
208
|
+
end
|
209
|
+
|
210
|
+
# Wait until an annotation store is deleted.
|
211
|
+
class AnnotationStoreDeleted
|
212
|
+
|
213
|
+
# @param [Hash] options
|
214
|
+
# @option options [required, Client] :client
|
215
|
+
# @option options [Integer] :max_attempts (20)
|
216
|
+
# @option options [Integer] :delay (30)
|
217
|
+
# @option options [Proc] :before_attempt
|
218
|
+
# @option options [Proc] :before_wait
|
219
|
+
def initialize(options)
|
220
|
+
@client = options.fetch(:client)
|
221
|
+
@waiter = Aws::Waiters::Waiter.new({
|
222
|
+
max_attempts: 20,
|
223
|
+
delay: 30,
|
224
|
+
poller: Aws::Waiters::Poller.new(
|
225
|
+
operation_name: :get_annotation_store,
|
226
|
+
acceptors: [
|
227
|
+
{
|
228
|
+
"matcher" => "path",
|
229
|
+
"argument" => "status",
|
230
|
+
"state" => "success",
|
231
|
+
"expected" => "DELETED"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"matcher" => "error",
|
235
|
+
"state" => "success",
|
236
|
+
"expected" => "ResourceNotFoundException"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"matcher" => "path",
|
240
|
+
"argument" => "status",
|
241
|
+
"state" => "retry",
|
242
|
+
"expected" => "DELETING"
|
243
|
+
}
|
244
|
+
]
|
245
|
+
)
|
246
|
+
}.merge(options))
|
247
|
+
end
|
248
|
+
|
249
|
+
# @option (see Client#get_annotation_store)
|
250
|
+
# @return (see Client#get_annotation_store)
|
251
|
+
def wait(params = {})
|
252
|
+
@waiter.wait(client: @client, params: params)
|
253
|
+
end
|
254
|
+
|
255
|
+
# @api private
|
256
|
+
attr_reader :waiter
|
257
|
+
|
258
|
+
end
|
259
|
+
|
260
|
+
# Wait until a job is completed.
|
261
|
+
class ReadSetActivationJobCompleted
|
262
|
+
|
263
|
+
# @param [Hash] options
|
264
|
+
# @option options [required, Client] :client
|
265
|
+
# @option options [Integer] :max_attempts (20)
|
266
|
+
# @option options [Integer] :delay (30)
|
267
|
+
# @option options [Proc] :before_attempt
|
268
|
+
# @option options [Proc] :before_wait
|
269
|
+
def initialize(options)
|
270
|
+
@client = options.fetch(:client)
|
271
|
+
@waiter = Aws::Waiters::Waiter.new({
|
272
|
+
max_attempts: 20,
|
273
|
+
delay: 30,
|
274
|
+
poller: Aws::Waiters::Poller.new(
|
275
|
+
operation_name: :get_read_set_activation_job,
|
276
|
+
acceptors: [
|
277
|
+
{
|
278
|
+
"matcher" => "path",
|
279
|
+
"argument" => "status",
|
280
|
+
"state" => "success",
|
281
|
+
"expected" => "COMPLETED"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"matcher" => "path",
|
285
|
+
"argument" => "status",
|
286
|
+
"state" => "retry",
|
287
|
+
"expected" => "SUBMITTED"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"matcher" => "path",
|
291
|
+
"argument" => "status",
|
292
|
+
"state" => "retry",
|
293
|
+
"expected" => "IN_PROGRESS"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"matcher" => "path",
|
297
|
+
"argument" => "status",
|
298
|
+
"state" => "retry",
|
299
|
+
"expected" => "CANCELLING"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"matcher" => "path",
|
303
|
+
"argument" => "status",
|
304
|
+
"state" => "failure",
|
305
|
+
"expected" => "CANCELLED"
|
306
|
+
},
|
307
|
+
{
|
308
|
+
"matcher" => "path",
|
309
|
+
"argument" => "status",
|
310
|
+
"state" => "failure",
|
311
|
+
"expected" => "FAILED"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"matcher" => "path",
|
315
|
+
"argument" => "status",
|
316
|
+
"state" => "failure",
|
317
|
+
"expected" => "COMPLETED_WITH_FAILURES"
|
318
|
+
}
|
319
|
+
]
|
320
|
+
)
|
321
|
+
}.merge(options))
|
322
|
+
end
|
323
|
+
|
324
|
+
# @option (see Client#get_read_set_activation_job)
|
325
|
+
# @return (see Client#get_read_set_activation_job)
|
326
|
+
def wait(params = {})
|
327
|
+
@waiter.wait(client: @client, params: params)
|
328
|
+
end
|
329
|
+
|
330
|
+
# @api private
|
331
|
+
attr_reader :waiter
|
332
|
+
|
333
|
+
end
|
334
|
+
|
335
|
+
# Wait until a job is completed.
|
336
|
+
class ReadSetExportJobCompleted
|
337
|
+
|
338
|
+
# @param [Hash] options
|
339
|
+
# @option options [required, Client] :client
|
340
|
+
# @option options [Integer] :max_attempts (20)
|
341
|
+
# @option options [Integer] :delay (30)
|
342
|
+
# @option options [Proc] :before_attempt
|
343
|
+
# @option options [Proc] :before_wait
|
344
|
+
def initialize(options)
|
345
|
+
@client = options.fetch(:client)
|
346
|
+
@waiter = Aws::Waiters::Waiter.new({
|
347
|
+
max_attempts: 20,
|
348
|
+
delay: 30,
|
349
|
+
poller: Aws::Waiters::Poller.new(
|
350
|
+
operation_name: :get_read_set_export_job,
|
351
|
+
acceptors: [
|
352
|
+
{
|
353
|
+
"matcher" => "path",
|
354
|
+
"argument" => "status",
|
355
|
+
"state" => "success",
|
356
|
+
"expected" => "COMPLETED"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"matcher" => "path",
|
360
|
+
"argument" => "status",
|
361
|
+
"state" => "retry",
|
362
|
+
"expected" => "SUBMITTED"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"matcher" => "path",
|
366
|
+
"argument" => "status",
|
367
|
+
"state" => "retry",
|
368
|
+
"expected" => "IN_PROGRESS"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"matcher" => "path",
|
372
|
+
"argument" => "status",
|
373
|
+
"state" => "retry",
|
374
|
+
"expected" => "CANCELLING"
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"matcher" => "path",
|
378
|
+
"argument" => "status",
|
379
|
+
"state" => "failure",
|
380
|
+
"expected" => "CANCELLED"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"matcher" => "path",
|
384
|
+
"argument" => "status",
|
385
|
+
"state" => "failure",
|
386
|
+
"expected" => "FAILED"
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"matcher" => "path",
|
390
|
+
"argument" => "status",
|
391
|
+
"state" => "failure",
|
392
|
+
"expected" => "COMPLETED_WITH_FAILURES"
|
393
|
+
}
|
394
|
+
]
|
395
|
+
)
|
396
|
+
}.merge(options))
|
397
|
+
end
|
398
|
+
|
399
|
+
# @option (see Client#get_read_set_export_job)
|
400
|
+
# @return (see Client#get_read_set_export_job)
|
401
|
+
def wait(params = {})
|
402
|
+
@waiter.wait(client: @client, params: params)
|
403
|
+
end
|
404
|
+
|
405
|
+
# @api private
|
406
|
+
attr_reader :waiter
|
407
|
+
|
408
|
+
end
|
409
|
+
|
410
|
+
# Wait until a job is completed.
|
411
|
+
class ReadSetImportJobCompleted
|
412
|
+
|
413
|
+
# @param [Hash] options
|
414
|
+
# @option options [required, Client] :client
|
415
|
+
# @option options [Integer] :max_attempts (20)
|
416
|
+
# @option options [Integer] :delay (30)
|
417
|
+
# @option options [Proc] :before_attempt
|
418
|
+
# @option options [Proc] :before_wait
|
419
|
+
def initialize(options)
|
420
|
+
@client = options.fetch(:client)
|
421
|
+
@waiter = Aws::Waiters::Waiter.new({
|
422
|
+
max_attempts: 20,
|
423
|
+
delay: 30,
|
424
|
+
poller: Aws::Waiters::Poller.new(
|
425
|
+
operation_name: :get_read_set_import_job,
|
426
|
+
acceptors: [
|
427
|
+
{
|
428
|
+
"matcher" => "path",
|
429
|
+
"argument" => "status",
|
430
|
+
"state" => "success",
|
431
|
+
"expected" => "COMPLETED"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"matcher" => "path",
|
435
|
+
"argument" => "status",
|
436
|
+
"state" => "retry",
|
437
|
+
"expected" => "SUBMITTED"
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"matcher" => "path",
|
441
|
+
"argument" => "status",
|
442
|
+
"state" => "retry",
|
443
|
+
"expected" => "IN_PROGRESS"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"matcher" => "path",
|
447
|
+
"argument" => "status",
|
448
|
+
"state" => "retry",
|
449
|
+
"expected" => "CANCELLING"
|
450
|
+
},
|
451
|
+
{
|
452
|
+
"matcher" => "path",
|
453
|
+
"argument" => "status",
|
454
|
+
"state" => "failure",
|
455
|
+
"expected" => "CANCELLED"
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"matcher" => "path",
|
459
|
+
"argument" => "status",
|
460
|
+
"state" => "failure",
|
461
|
+
"expected" => "FAILED"
|
462
|
+
},
|
463
|
+
{
|
464
|
+
"matcher" => "path",
|
465
|
+
"argument" => "status",
|
466
|
+
"state" => "failure",
|
467
|
+
"expected" => "COMPLETED_WITH_FAILURES"
|
468
|
+
}
|
469
|
+
]
|
470
|
+
)
|
471
|
+
}.merge(options))
|
472
|
+
end
|
473
|
+
|
474
|
+
# @option (see Client#get_read_set_import_job)
|
475
|
+
# @return (see Client#get_read_set_import_job)
|
476
|
+
def wait(params = {})
|
477
|
+
@waiter.wait(client: @client, params: params)
|
478
|
+
end
|
479
|
+
|
480
|
+
# @api private
|
481
|
+
attr_reader :waiter
|
482
|
+
|
483
|
+
end
|
484
|
+
|
485
|
+
# Wait until a job is completed.
|
486
|
+
class ReferenceImportJobCompleted
|
487
|
+
|
488
|
+
# @param [Hash] options
|
489
|
+
# @option options [required, Client] :client
|
490
|
+
# @option options [Integer] :max_attempts (20)
|
491
|
+
# @option options [Integer] :delay (30)
|
492
|
+
# @option options [Proc] :before_attempt
|
493
|
+
# @option options [Proc] :before_wait
|
494
|
+
def initialize(options)
|
495
|
+
@client = options.fetch(:client)
|
496
|
+
@waiter = Aws::Waiters::Waiter.new({
|
497
|
+
max_attempts: 20,
|
498
|
+
delay: 30,
|
499
|
+
poller: Aws::Waiters::Poller.new(
|
500
|
+
operation_name: :get_reference_import_job,
|
501
|
+
acceptors: [
|
502
|
+
{
|
503
|
+
"matcher" => "path",
|
504
|
+
"argument" => "status",
|
505
|
+
"state" => "success",
|
506
|
+
"expected" => "COMPLETED"
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"matcher" => "path",
|
510
|
+
"argument" => "status",
|
511
|
+
"state" => "retry",
|
512
|
+
"expected" => "SUBMITTED"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"matcher" => "path",
|
516
|
+
"argument" => "status",
|
517
|
+
"state" => "retry",
|
518
|
+
"expected" => "IN_PROGRESS"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"matcher" => "path",
|
522
|
+
"argument" => "status",
|
523
|
+
"state" => "retry",
|
524
|
+
"expected" => "CANCELLING"
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"matcher" => "path",
|
528
|
+
"argument" => "status",
|
529
|
+
"state" => "failure",
|
530
|
+
"expected" => "CANCELLED"
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"matcher" => "path",
|
534
|
+
"argument" => "status",
|
535
|
+
"state" => "failure",
|
536
|
+
"expected" => "FAILED"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"matcher" => "path",
|
540
|
+
"argument" => "status",
|
541
|
+
"state" => "failure",
|
542
|
+
"expected" => "COMPLETED_WITH_FAILURES"
|
543
|
+
}
|
544
|
+
]
|
545
|
+
)
|
546
|
+
}.merge(options))
|
547
|
+
end
|
548
|
+
|
549
|
+
# @option (see Client#get_reference_import_job)
|
550
|
+
# @return (see Client#get_reference_import_job)
|
551
|
+
def wait(params = {})
|
552
|
+
@waiter.wait(client: @client, params: params)
|
553
|
+
end
|
554
|
+
|
555
|
+
# @api private
|
556
|
+
attr_reader :waiter
|
557
|
+
|
558
|
+
end
|
559
|
+
|
560
|
+
# Wait until a run is completed.
|
561
|
+
class RunCompleted
|
562
|
+
|
563
|
+
# @param [Hash] options
|
564
|
+
# @option options [required, Client] :client
|
565
|
+
# @option options [Integer] :max_attempts (20)
|
566
|
+
# @option options [Integer] :delay (30)
|
567
|
+
# @option options [Proc] :before_attempt
|
568
|
+
# @option options [Proc] :before_wait
|
569
|
+
def initialize(options)
|
570
|
+
@client = options.fetch(:client)
|
571
|
+
@waiter = Aws::Waiters::Waiter.new({
|
572
|
+
max_attempts: 20,
|
573
|
+
delay: 30,
|
574
|
+
poller: Aws::Waiters::Poller.new(
|
575
|
+
operation_name: :get_run,
|
576
|
+
acceptors: [
|
577
|
+
{
|
578
|
+
"matcher" => "path",
|
579
|
+
"argument" => "status",
|
580
|
+
"state" => "success",
|
581
|
+
"expected" => "COMPLETED"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"matcher" => "path",
|
585
|
+
"argument" => "status",
|
586
|
+
"state" => "retry",
|
587
|
+
"expected" => "PENDING"
|
588
|
+
},
|
589
|
+
{
|
590
|
+
"matcher" => "path",
|
591
|
+
"argument" => "status",
|
592
|
+
"state" => "retry",
|
593
|
+
"expected" => "STARTING"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"matcher" => "path",
|
597
|
+
"argument" => "status",
|
598
|
+
"state" => "retry",
|
599
|
+
"expected" => "RUNNING"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"matcher" => "path",
|
603
|
+
"argument" => "status",
|
604
|
+
"state" => "retry",
|
605
|
+
"expected" => "STOPPING"
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"matcher" => "path",
|
609
|
+
"argument" => "status",
|
610
|
+
"state" => "failure",
|
611
|
+
"expected" => "FAILED"
|
612
|
+
}
|
613
|
+
]
|
614
|
+
)
|
615
|
+
}.merge(options))
|
616
|
+
end
|
617
|
+
|
618
|
+
# @option (see Client#get_run)
|
619
|
+
# @return (see Client#get_run)
|
620
|
+
def wait(params = {})
|
621
|
+
@waiter.wait(client: @client, params: params)
|
622
|
+
end
|
623
|
+
|
624
|
+
# @api private
|
625
|
+
attr_reader :waiter
|
626
|
+
|
627
|
+
end
|
628
|
+
|
629
|
+
# Wait until a run is running.
|
630
|
+
class RunRunning
|
631
|
+
|
632
|
+
# @param [Hash] options
|
633
|
+
# @option options [required, Client] :client
|
634
|
+
# @option options [Integer] :max_attempts (20)
|
635
|
+
# @option options [Integer] :delay (30)
|
636
|
+
# @option options [Proc] :before_attempt
|
637
|
+
# @option options [Proc] :before_wait
|
638
|
+
def initialize(options)
|
639
|
+
@client = options.fetch(:client)
|
640
|
+
@waiter = Aws::Waiters::Waiter.new({
|
641
|
+
max_attempts: 20,
|
642
|
+
delay: 30,
|
643
|
+
poller: Aws::Waiters::Poller.new(
|
644
|
+
operation_name: :get_run,
|
645
|
+
acceptors: [
|
646
|
+
{
|
647
|
+
"matcher" => "path",
|
648
|
+
"argument" => "status",
|
649
|
+
"state" => "success",
|
650
|
+
"expected" => "RUNNING"
|
651
|
+
},
|
652
|
+
{
|
653
|
+
"matcher" => "path",
|
654
|
+
"argument" => "status",
|
655
|
+
"state" => "retry",
|
656
|
+
"expected" => "PENDING"
|
657
|
+
},
|
658
|
+
{
|
659
|
+
"matcher" => "path",
|
660
|
+
"argument" => "status",
|
661
|
+
"state" => "retry",
|
662
|
+
"expected" => "STARTING"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"matcher" => "path",
|
666
|
+
"argument" => "status",
|
667
|
+
"state" => "failure",
|
668
|
+
"expected" => "FAILED"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"matcher" => "path",
|
672
|
+
"argument" => "status",
|
673
|
+
"state" => "failure",
|
674
|
+
"expected" => "CANCELLED"
|
675
|
+
}
|
676
|
+
]
|
677
|
+
)
|
678
|
+
}.merge(options))
|
679
|
+
end
|
680
|
+
|
681
|
+
# @option (see Client#get_run)
|
682
|
+
# @return (see Client#get_run)
|
683
|
+
def wait(params = {})
|
684
|
+
@waiter.wait(client: @client, params: params)
|
685
|
+
end
|
686
|
+
|
687
|
+
# @api private
|
688
|
+
attr_reader :waiter
|
689
|
+
|
690
|
+
end
|
691
|
+
|
692
|
+
# Wait until a task is completed.
|
693
|
+
class TaskCompleted
|
694
|
+
|
695
|
+
# @param [Hash] options
|
696
|
+
# @option options [required, Client] :client
|
697
|
+
# @option options [Integer] :max_attempts (20)
|
698
|
+
# @option options [Integer] :delay (30)
|
699
|
+
# @option options [Proc] :before_attempt
|
700
|
+
# @option options [Proc] :before_wait
|
701
|
+
def initialize(options)
|
702
|
+
@client = options.fetch(:client)
|
703
|
+
@waiter = Aws::Waiters::Waiter.new({
|
704
|
+
max_attempts: 20,
|
705
|
+
delay: 30,
|
706
|
+
poller: Aws::Waiters::Poller.new(
|
707
|
+
operation_name: :get_run_task,
|
708
|
+
acceptors: [
|
709
|
+
{
|
710
|
+
"matcher" => "path",
|
711
|
+
"argument" => "status",
|
712
|
+
"state" => "success",
|
713
|
+
"expected" => "COMPLETED"
|
714
|
+
},
|
715
|
+
{
|
716
|
+
"matcher" => "path",
|
717
|
+
"argument" => "status",
|
718
|
+
"state" => "retry",
|
719
|
+
"expected" => "PENDING"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"matcher" => "path",
|
723
|
+
"argument" => "status",
|
724
|
+
"state" => "retry",
|
725
|
+
"expected" => "STARTING"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"matcher" => "path",
|
729
|
+
"argument" => "status",
|
730
|
+
"state" => "retry",
|
731
|
+
"expected" => "RUNNING"
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"matcher" => "path",
|
735
|
+
"argument" => "status",
|
736
|
+
"state" => "retry",
|
737
|
+
"expected" => "STOPPING"
|
738
|
+
},
|
739
|
+
{
|
740
|
+
"matcher" => "path",
|
741
|
+
"argument" => "status",
|
742
|
+
"state" => "failure",
|
743
|
+
"expected" => "FAILED"
|
744
|
+
}
|
745
|
+
]
|
746
|
+
)
|
747
|
+
}.merge(options))
|
748
|
+
end
|
749
|
+
|
750
|
+
# @option (see Client#get_run_task)
|
751
|
+
# @return (see Client#get_run_task)
|
752
|
+
def wait(params = {})
|
753
|
+
@waiter.wait(client: @client, params: params)
|
754
|
+
end
|
755
|
+
|
756
|
+
# @api private
|
757
|
+
attr_reader :waiter
|
758
|
+
|
759
|
+
end
|
760
|
+
|
761
|
+
# Wait until a task is running.
|
762
|
+
class TaskRunning
|
763
|
+
|
764
|
+
# @param [Hash] options
|
765
|
+
# @option options [required, Client] :client
|
766
|
+
# @option options [Integer] :max_attempts (20)
|
767
|
+
# @option options [Integer] :delay (30)
|
768
|
+
# @option options [Proc] :before_attempt
|
769
|
+
# @option options [Proc] :before_wait
|
770
|
+
def initialize(options)
|
771
|
+
@client = options.fetch(:client)
|
772
|
+
@waiter = Aws::Waiters::Waiter.new({
|
773
|
+
max_attempts: 20,
|
774
|
+
delay: 30,
|
775
|
+
poller: Aws::Waiters::Poller.new(
|
776
|
+
operation_name: :get_run_task,
|
777
|
+
acceptors: [
|
778
|
+
{
|
779
|
+
"matcher" => "path",
|
780
|
+
"argument" => "status",
|
781
|
+
"state" => "success",
|
782
|
+
"expected" => "RUNNING"
|
783
|
+
},
|
784
|
+
{
|
785
|
+
"matcher" => "path",
|
786
|
+
"argument" => "status",
|
787
|
+
"state" => "retry",
|
788
|
+
"expected" => "PENDING"
|
789
|
+
},
|
790
|
+
{
|
791
|
+
"matcher" => "path",
|
792
|
+
"argument" => "status",
|
793
|
+
"state" => "retry",
|
794
|
+
"expected" => "STARTING"
|
795
|
+
},
|
796
|
+
{
|
797
|
+
"matcher" => "path",
|
798
|
+
"argument" => "status",
|
799
|
+
"state" => "failure",
|
800
|
+
"expected" => "FAILED"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"matcher" => "path",
|
804
|
+
"argument" => "status",
|
805
|
+
"state" => "failure",
|
806
|
+
"expected" => "CANCELLED"
|
807
|
+
}
|
808
|
+
]
|
809
|
+
)
|
810
|
+
}.merge(options))
|
811
|
+
end
|
812
|
+
|
813
|
+
# @option (see Client#get_run_task)
|
814
|
+
# @return (see Client#get_run_task)
|
815
|
+
def wait(params = {})
|
816
|
+
@waiter.wait(client: @client, params: params)
|
817
|
+
end
|
818
|
+
|
819
|
+
# @api private
|
820
|
+
attr_reader :waiter
|
821
|
+
|
822
|
+
end
|
823
|
+
|
824
|
+
# Wait until variant import is completed
|
825
|
+
class VariantImportJobCreated
|
826
|
+
|
827
|
+
# @param [Hash] options
|
828
|
+
# @option options [required, Client] :client
|
829
|
+
# @option options [Integer] :max_attempts (20)
|
830
|
+
# @option options [Integer] :delay (30)
|
831
|
+
# @option options [Proc] :before_attempt
|
832
|
+
# @option options [Proc] :before_wait
|
833
|
+
def initialize(options)
|
834
|
+
@client = options.fetch(:client)
|
835
|
+
@waiter = Aws::Waiters::Waiter.new({
|
836
|
+
max_attempts: 20,
|
837
|
+
delay: 30,
|
838
|
+
poller: Aws::Waiters::Poller.new(
|
839
|
+
operation_name: :get_variant_import_job,
|
840
|
+
acceptors: [
|
841
|
+
{
|
842
|
+
"matcher" => "path",
|
843
|
+
"argument" => "status",
|
844
|
+
"state" => "retry",
|
845
|
+
"expected" => "SUBMITTED"
|
846
|
+
},
|
847
|
+
{
|
848
|
+
"matcher" => "path",
|
849
|
+
"argument" => "status",
|
850
|
+
"state" => "retry",
|
851
|
+
"expected" => "IN_PROGRESS"
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"matcher" => "path",
|
855
|
+
"argument" => "status",
|
856
|
+
"state" => "failure",
|
857
|
+
"expected" => "FAILED"
|
858
|
+
},
|
859
|
+
{
|
860
|
+
"matcher" => "path",
|
861
|
+
"argument" => "status",
|
862
|
+
"state" => "success",
|
863
|
+
"expected" => "CANCELLED"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"matcher" => "path",
|
867
|
+
"argument" => "status",
|
868
|
+
"state" => "success",
|
869
|
+
"expected" => "COMPLETED"
|
870
|
+
}
|
871
|
+
]
|
872
|
+
)
|
873
|
+
}.merge(options))
|
874
|
+
end
|
875
|
+
|
876
|
+
# @option (see Client#get_variant_import_job)
|
877
|
+
# @return (see Client#get_variant_import_job)
|
878
|
+
def wait(params = {})
|
879
|
+
@waiter.wait(client: @client, params: params)
|
880
|
+
end
|
881
|
+
|
882
|
+
# @api private
|
883
|
+
attr_reader :waiter
|
884
|
+
|
885
|
+
end
|
886
|
+
|
887
|
+
# Wait until a variant store is created
|
888
|
+
class VariantStoreCreated
|
889
|
+
|
890
|
+
# @param [Hash] options
|
891
|
+
# @option options [required, Client] :client
|
892
|
+
# @option options [Integer] :max_attempts (20)
|
893
|
+
# @option options [Integer] :delay (30)
|
894
|
+
# @option options [Proc] :before_attempt
|
895
|
+
# @option options [Proc] :before_wait
|
896
|
+
def initialize(options)
|
897
|
+
@client = options.fetch(:client)
|
898
|
+
@waiter = Aws::Waiters::Waiter.new({
|
899
|
+
max_attempts: 20,
|
900
|
+
delay: 30,
|
901
|
+
poller: Aws::Waiters::Poller.new(
|
902
|
+
operation_name: :get_variant_store,
|
903
|
+
acceptors: [
|
904
|
+
{
|
905
|
+
"matcher" => "path",
|
906
|
+
"argument" => "status",
|
907
|
+
"state" => "success",
|
908
|
+
"expected" => "ACTIVE"
|
909
|
+
},
|
910
|
+
{
|
911
|
+
"matcher" => "path",
|
912
|
+
"argument" => "status",
|
913
|
+
"state" => "retry",
|
914
|
+
"expected" => "CREATING"
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"matcher" => "path",
|
918
|
+
"argument" => "status",
|
919
|
+
"state" => "retry",
|
920
|
+
"expected" => "UPDATING"
|
921
|
+
},
|
922
|
+
{
|
923
|
+
"matcher" => "path",
|
924
|
+
"argument" => "status",
|
925
|
+
"state" => "failure",
|
926
|
+
"expected" => "FAILED"
|
927
|
+
}
|
928
|
+
]
|
929
|
+
)
|
930
|
+
}.merge(options))
|
931
|
+
end
|
932
|
+
|
933
|
+
# @option (see Client#get_variant_store)
|
934
|
+
# @return (see Client#get_variant_store)
|
935
|
+
def wait(params = {})
|
936
|
+
@waiter.wait(client: @client, params: params)
|
937
|
+
end
|
938
|
+
|
939
|
+
# @api private
|
940
|
+
attr_reader :waiter
|
941
|
+
|
942
|
+
end
|
943
|
+
|
944
|
+
# Wait until a variant store is deleted.
|
945
|
+
class VariantStoreDeleted
|
946
|
+
|
947
|
+
# @param [Hash] options
|
948
|
+
# @option options [required, Client] :client
|
949
|
+
# @option options [Integer] :max_attempts (20)
|
950
|
+
# @option options [Integer] :delay (30)
|
951
|
+
# @option options [Proc] :before_attempt
|
952
|
+
# @option options [Proc] :before_wait
|
953
|
+
def initialize(options)
|
954
|
+
@client = options.fetch(:client)
|
955
|
+
@waiter = Aws::Waiters::Waiter.new({
|
956
|
+
max_attempts: 20,
|
957
|
+
delay: 30,
|
958
|
+
poller: Aws::Waiters::Poller.new(
|
959
|
+
operation_name: :get_variant_store,
|
960
|
+
acceptors: [
|
961
|
+
{
|
962
|
+
"matcher" => "path",
|
963
|
+
"argument" => "status",
|
964
|
+
"state" => "success",
|
965
|
+
"expected" => "DELETED"
|
966
|
+
},
|
967
|
+
{
|
968
|
+
"matcher" => "error",
|
969
|
+
"state" => "success",
|
970
|
+
"expected" => "ResourceNotFoundException"
|
971
|
+
},
|
972
|
+
{
|
973
|
+
"matcher" => "path",
|
974
|
+
"argument" => "status",
|
975
|
+
"state" => "retry",
|
976
|
+
"expected" => "DELETING"
|
977
|
+
}
|
978
|
+
]
|
979
|
+
)
|
980
|
+
}.merge(options))
|
981
|
+
end
|
982
|
+
|
983
|
+
# @option (see Client#get_variant_store)
|
984
|
+
# @return (see Client#get_variant_store)
|
985
|
+
def wait(params = {})
|
986
|
+
@waiter.wait(client: @client, params: params)
|
987
|
+
end
|
988
|
+
|
989
|
+
# @api private
|
990
|
+
attr_reader :waiter
|
991
|
+
|
992
|
+
end
|
993
|
+
|
994
|
+
# Wait until a workflow is active.
|
995
|
+
class WorkflowActive
|
996
|
+
|
997
|
+
# @param [Hash] options
|
998
|
+
# @option options [required, Client] :client
|
999
|
+
# @option options [Integer] :max_attempts (10)
|
1000
|
+
# @option options [Integer] :delay (3)
|
1001
|
+
# @option options [Proc] :before_attempt
|
1002
|
+
# @option options [Proc] :before_wait
|
1003
|
+
def initialize(options)
|
1004
|
+
@client = options.fetch(:client)
|
1005
|
+
@waiter = Aws::Waiters::Waiter.new({
|
1006
|
+
max_attempts: 10,
|
1007
|
+
delay: 3,
|
1008
|
+
poller: Aws::Waiters::Poller.new(
|
1009
|
+
operation_name: :get_workflow,
|
1010
|
+
acceptors: [
|
1011
|
+
{
|
1012
|
+
"matcher" => "path",
|
1013
|
+
"argument" => "status",
|
1014
|
+
"state" => "success",
|
1015
|
+
"expected" => "ACTIVE"
|
1016
|
+
},
|
1017
|
+
{
|
1018
|
+
"matcher" => "path",
|
1019
|
+
"argument" => "status",
|
1020
|
+
"state" => "retry",
|
1021
|
+
"expected" => "CREATING"
|
1022
|
+
},
|
1023
|
+
{
|
1024
|
+
"matcher" => "path",
|
1025
|
+
"argument" => "status",
|
1026
|
+
"state" => "retry",
|
1027
|
+
"expected" => "UPDATING"
|
1028
|
+
},
|
1029
|
+
{
|
1030
|
+
"matcher" => "path",
|
1031
|
+
"argument" => "status",
|
1032
|
+
"state" => "failure",
|
1033
|
+
"expected" => "FAILED"
|
1034
|
+
}
|
1035
|
+
]
|
1036
|
+
)
|
1037
|
+
}.merge(options))
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# @option (see Client#get_workflow)
|
1041
|
+
# @return (see Client#get_workflow)
|
1042
|
+
def wait(params = {})
|
1043
|
+
@waiter.wait(client: @client, params: params)
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# @api private
|
1047
|
+
attr_reader :waiter
|
1048
|
+
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
end
|