aws-sdk-cloudformation 1.34.0 → 1.39.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 +4 -4
- data/lib/aws-sdk-cloudformation.rb +3 -1
- data/lib/aws-sdk-cloudformation/client.rb +33 -8
- data/lib/aws-sdk-cloudformation/client_api.rb +39 -0
- data/lib/aws-sdk-cloudformation/customizations.rb +1 -0
- data/lib/aws-sdk-cloudformation/errors.rb +2 -0
- data/lib/aws-sdk-cloudformation/event.rb +2 -0
- data/lib/aws-sdk-cloudformation/resource.rb +3 -1
- data/lib/aws-sdk-cloudformation/stack.rb +2 -0
- data/lib/aws-sdk-cloudformation/stack_resource.rb +2 -0
- data/lib/aws-sdk-cloudformation/stack_resource_summary.rb +2 -0
- data/lib/aws-sdk-cloudformation/types.rb +195 -12
- data/lib/aws-sdk-cloudformation/waiters.rb +65 -0
- metadata +4 -4
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -72,6 +74,7 @@ module Aws::CloudFormation
|
|
72
74
|
# | stack_delete_complete | {Client#describe_stacks} | 30 | 120 |
|
73
75
|
# | stack_exists | {Client#describe_stacks} | 5 | 20 |
|
74
76
|
# | stack_import_complete | {Client#describe_stacks} | 30 | 120 |
|
77
|
+
# | stack_rollback_complete | {Client#describe_stacks} | 30 | 120 |
|
75
78
|
# | stack_update_complete | {Client#describe_stacks} | 30 | 120 |
|
76
79
|
# | type_registration_complete | {Client#describe_type_registration} | 30 | 120 |
|
77
80
|
#
|
@@ -397,6 +400,68 @@ module Aws::CloudFormation
|
|
397
400
|
|
398
401
|
end
|
399
402
|
|
403
|
+
# Wait until stack status is UPDATE_ROLLBACK_COMPLETE.
|
404
|
+
class StackRollbackComplete
|
405
|
+
|
406
|
+
# @param [Hash] options
|
407
|
+
# @option options [required, Client] :client
|
408
|
+
# @option options [Integer] :max_attempts (120)
|
409
|
+
# @option options [Integer] :delay (30)
|
410
|
+
# @option options [Proc] :before_attempt
|
411
|
+
# @option options [Proc] :before_wait
|
412
|
+
def initialize(options)
|
413
|
+
@client = options.fetch(:client)
|
414
|
+
@waiter = Aws::Waiters::Waiter.new({
|
415
|
+
max_attempts: 120,
|
416
|
+
delay: 30,
|
417
|
+
poller: Aws::Waiters::Poller.new(
|
418
|
+
operation_name: :describe_stacks,
|
419
|
+
acceptors: [
|
420
|
+
{
|
421
|
+
"argument" => "stacks[].stack_status",
|
422
|
+
"expected" => "UPDATE_ROLLBACK_COMPLETE",
|
423
|
+
"matcher" => "pathAll",
|
424
|
+
"state" => "success"
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"argument" => "stacks[].stack_status",
|
428
|
+
"expected" => "UPDATE_FAILED",
|
429
|
+
"matcher" => "pathAny",
|
430
|
+
"state" => "failure"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"argument" => "stacks[].stack_status",
|
434
|
+
"expected" => "UPDATE_ROLLBACK_FAILED",
|
435
|
+
"matcher" => "pathAny",
|
436
|
+
"state" => "failure"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"argument" => "stacks[].stack_status",
|
440
|
+
"expected" => "DELETE_FAILED",
|
441
|
+
"matcher" => "pathAny",
|
442
|
+
"state" => "failure"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"expected" => "ValidationError",
|
446
|
+
"matcher" => "error",
|
447
|
+
"state" => "failure"
|
448
|
+
}
|
449
|
+
]
|
450
|
+
)
|
451
|
+
}.merge(options))
|
452
|
+
end
|
453
|
+
|
454
|
+
# @option (see Client#describe_stacks)
|
455
|
+
# @return (see Client#describe_stacks)
|
456
|
+
def wait(params = {})
|
457
|
+
@waiter.wait(client: @client, params: params)
|
458
|
+
end
|
459
|
+
|
460
|
+
# @api private
|
461
|
+
attr_reader :waiter
|
462
|
+
|
463
|
+
end
|
464
|
+
|
400
465
|
# Wait until stack status is UPDATE_COMPLETE.
|
401
466
|
class StackUpdateComplete
|
402
467
|
|
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.
|
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: 2020-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|