aws-sdk-medialive 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -215,5 +215,211 @@ module Aws::MediaLive
215
215
  attr_reader :waiter
216
216
 
217
217
  end
218
+
219
+ # Wait until a multiplex has been created
220
+ class MultiplexCreated
221
+
222
+ # @param [Hash] options
223
+ # @option options [required, Client] :client
224
+ # @option options [Integer] :max_attempts (5)
225
+ # @option options [Integer] :delay (3)
226
+ # @option options [Proc] :before_attempt
227
+ # @option options [Proc] :before_wait
228
+ def initialize(options)
229
+ @client = options.fetch(:client)
230
+ @waiter = Aws::Waiters::Waiter.new({
231
+ max_attempts: 5,
232
+ delay: 3,
233
+ poller: Aws::Waiters::Poller.new(
234
+ operation_name: :describe_multiplex,
235
+ acceptors: [
236
+ {
237
+ "state" => "success",
238
+ "matcher" => "path",
239
+ "argument" => "state",
240
+ "expected" => "IDLE"
241
+ },
242
+ {
243
+ "state" => "retry",
244
+ "matcher" => "path",
245
+ "argument" => "state",
246
+ "expected" => "CREATING"
247
+ },
248
+ {
249
+ "state" => "retry",
250
+ "matcher" => "status",
251
+ "expected" => 500
252
+ },
253
+ {
254
+ "state" => "failure",
255
+ "matcher" => "path",
256
+ "argument" => "state",
257
+ "expected" => "CREATE_FAILED"
258
+ }
259
+ ]
260
+ )
261
+ }.merge(options))
262
+ end
263
+
264
+ # @option (see Client#describe_multiplex)
265
+ # @return (see Client#describe_multiplex)
266
+ def wait(params = {})
267
+ @waiter.wait(client: @client, params: params)
268
+ end
269
+
270
+ # @api private
271
+ attr_reader :waiter
272
+
273
+ end
274
+
275
+ # Wait until a multiplex has been deleted
276
+ class MultiplexDeleted
277
+
278
+ # @param [Hash] options
279
+ # @option options [required, Client] :client
280
+ # @option options [Integer] :max_attempts (20)
281
+ # @option options [Integer] :delay (5)
282
+ # @option options [Proc] :before_attempt
283
+ # @option options [Proc] :before_wait
284
+ def initialize(options)
285
+ @client = options.fetch(:client)
286
+ @waiter = Aws::Waiters::Waiter.new({
287
+ max_attempts: 20,
288
+ delay: 5,
289
+ poller: Aws::Waiters::Poller.new(
290
+ operation_name: :describe_multiplex,
291
+ acceptors: [
292
+ {
293
+ "state" => "success",
294
+ "matcher" => "path",
295
+ "argument" => "state",
296
+ "expected" => "DELETED"
297
+ },
298
+ {
299
+ "state" => "retry",
300
+ "matcher" => "path",
301
+ "argument" => "state",
302
+ "expected" => "DELETING"
303
+ },
304
+ {
305
+ "state" => "retry",
306
+ "matcher" => "status",
307
+ "expected" => 500
308
+ }
309
+ ]
310
+ )
311
+ }.merge(options))
312
+ end
313
+
314
+ # @option (see Client#describe_multiplex)
315
+ # @return (see Client#describe_multiplex)
316
+ def wait(params = {})
317
+ @waiter.wait(client: @client, params: params)
318
+ end
319
+
320
+ # @api private
321
+ attr_reader :waiter
322
+
323
+ end
324
+
325
+ # Wait until a multiplex is running
326
+ class MultiplexRunning
327
+
328
+ # @param [Hash] options
329
+ # @option options [required, Client] :client
330
+ # @option options [Integer] :max_attempts (120)
331
+ # @option options [Integer] :delay (5)
332
+ # @option options [Proc] :before_attempt
333
+ # @option options [Proc] :before_wait
334
+ def initialize(options)
335
+ @client = options.fetch(:client)
336
+ @waiter = Aws::Waiters::Waiter.new({
337
+ max_attempts: 120,
338
+ delay: 5,
339
+ poller: Aws::Waiters::Poller.new(
340
+ operation_name: :describe_multiplex,
341
+ acceptors: [
342
+ {
343
+ "state" => "success",
344
+ "matcher" => "path",
345
+ "argument" => "state",
346
+ "expected" => "RUNNING"
347
+ },
348
+ {
349
+ "state" => "retry",
350
+ "matcher" => "path",
351
+ "argument" => "state",
352
+ "expected" => "STARTING"
353
+ },
354
+ {
355
+ "state" => "retry",
356
+ "matcher" => "status",
357
+ "expected" => 500
358
+ }
359
+ ]
360
+ )
361
+ }.merge(options))
362
+ end
363
+
364
+ # @option (see Client#describe_multiplex)
365
+ # @return (see Client#describe_multiplex)
366
+ def wait(params = {})
367
+ @waiter.wait(client: @client, params: params)
368
+ end
369
+
370
+ # @api private
371
+ attr_reader :waiter
372
+
373
+ end
374
+
375
+ # Wait until a multiplex has is stopped
376
+ class MultiplexStopped
377
+
378
+ # @param [Hash] options
379
+ # @option options [required, Client] :client
380
+ # @option options [Integer] :max_attempts (28)
381
+ # @option options [Integer] :delay (5)
382
+ # @option options [Proc] :before_attempt
383
+ # @option options [Proc] :before_wait
384
+ def initialize(options)
385
+ @client = options.fetch(:client)
386
+ @waiter = Aws::Waiters::Waiter.new({
387
+ max_attempts: 28,
388
+ delay: 5,
389
+ poller: Aws::Waiters::Poller.new(
390
+ operation_name: :describe_multiplex,
391
+ acceptors: [
392
+ {
393
+ "state" => "success",
394
+ "matcher" => "path",
395
+ "argument" => "state",
396
+ "expected" => "IDLE"
397
+ },
398
+ {
399
+ "state" => "retry",
400
+ "matcher" => "path",
401
+ "argument" => "state",
402
+ "expected" => "STOPPING"
403
+ },
404
+ {
405
+ "state" => "retry",
406
+ "matcher" => "status",
407
+ "expected" => 500
408
+ }
409
+ ]
410
+ )
411
+ }.merge(options))
412
+ end
413
+
414
+ # @option (see Client#describe_multiplex)
415
+ # @return (see Client#describe_multiplex)
416
+ def wait(params = {})
417
+ @waiter.wait(client: @client, params: params)
418
+ end
419
+
420
+ # @api private
421
+ attr_reader :waiter
422
+
423
+ end
218
424
  end
219
425
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-medialive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core