aws-sdk-cloudformation 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -391,5 +391,50 @@ module Aws::CloudFormation
391
391
  attr_reader :waiter
392
392
 
393
393
  end
394
+
395
+ # Wait until type registration is COMPLETE.
396
+ class TypeRegistrationComplete
397
+
398
+ # @param [Hash] options
399
+ # @option options [required, Client] :client
400
+ # @option options [Integer] :max_attempts (120)
401
+ # @option options [Integer] :delay (30)
402
+ # @option options [Proc] :before_attempt
403
+ # @option options [Proc] :before_wait
404
+ def initialize(options)
405
+ @client = options.fetch(:client)
406
+ @waiter = Aws::Waiters::Waiter.new({
407
+ max_attempts: 120,
408
+ delay: 30,
409
+ poller: Aws::Waiters::Poller.new(
410
+ operation_name: :describe_type_registration,
411
+ acceptors: [
412
+ {
413
+ "argument" => "progress_status",
414
+ "expected" => "COMPLETE",
415
+ "matcher" => "path",
416
+ "state" => "success"
417
+ },
418
+ {
419
+ "argument" => "progress_status",
420
+ "expected" => "FAILED",
421
+ "matcher" => "path",
422
+ "state" => "failure"
423
+ }
424
+ ]
425
+ )
426
+ }.merge(options))
427
+ end
428
+
429
+ # @option (see Client#describe_type_registration)
430
+ # @return (see Client#describe_type_registration)
431
+ def wait(params = {})
432
+ @waiter.wait(client: @client, params: params)
433
+ end
434
+
435
+ # @api private
436
+ attr_reader :waiter
437
+
438
+ end
394
439
  end
395
440
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.28.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-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core