aws-sdk-cloudformation 1.32.0 → 1.37.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudformation.rb +1 -1
- data/lib/aws-sdk-cloudformation/client.rb +24 -4
- data/lib/aws-sdk-cloudformation/client_api.rb +37 -0
- data/lib/aws-sdk-cloudformation/resource.rb +1 -1
- data/lib/aws-sdk-cloudformation/stack.rb +2 -2
- data/lib/aws-sdk-cloudformation/types.rb +10 -0
- data/lib/aws-sdk-cloudformation/waiters.rb +63 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c07ec41aa409abea78e002059557f132e531d7e4efdafa6f6ce3233c8f66093
|
4
|
+
data.tar.gz: 3198013d817c13db892d809680d2a087acd2b74e328dd86e8c41d6f1d0ebdb32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba88b99849ae9df0a4133b01595591281591ad8aad23cd41adb190a368f65f63b2b2f2138406e919db4451b5958b59918753c66cb220a95c7a88f85f7f7ece88
|
7
|
+
data.tar.gz: 37bec8bbb7d166e630023891a51d188e0fc4c1bc5a2360ee88d242aaef16cd59c513e10ffc28ee8f26f79c0f1c902f3a2a09b97995ff0d5b3a59c41e3a626175
|
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
29
30
|
|
@@ -69,6 +70,7 @@ module Aws::CloudFormation
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::Query)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::CloudFormation
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::CloudFormation
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::CloudFormation
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -1742,6 +1744,8 @@ module Aws::CloudFormation
|
|
1742
1744
|
# * {Types::DescribeAccountLimitsOutput#account_limits #account_limits} => Array<Types::AccountLimit>
|
1743
1745
|
# * {Types::DescribeAccountLimitsOutput#next_token #next_token} => String
|
1744
1746
|
#
|
1747
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1748
|
+
#
|
1745
1749
|
# @example Request syntax with placeholder values
|
1746
1750
|
#
|
1747
1751
|
# resp = client.describe_account_limits({
|
@@ -2509,6 +2513,7 @@ module Aws::CloudFormation
|
|
2509
2513
|
# * stack_delete_complete
|
2510
2514
|
# * stack_exists
|
2511
2515
|
# * stack_import_complete
|
2516
|
+
# * stack_rollback_complete
|
2512
2517
|
# * stack_update_complete
|
2513
2518
|
#
|
2514
2519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStacks AWS API Documentation
|
@@ -2558,6 +2563,7 @@ module Aws::CloudFormation
|
|
2558
2563
|
# * {Types::DescribeTypeOutput#type #type} => String
|
2559
2564
|
# * {Types::DescribeTypeOutput#type_name #type_name} => String
|
2560
2565
|
# * {Types::DescribeTypeOutput#default_version_id #default_version_id} => String
|
2566
|
+
# * {Types::DescribeTypeOutput#is_default_version #is_default_version} => Boolean
|
2561
2567
|
# * {Types::DescribeTypeOutput#description #description} => String
|
2562
2568
|
# * {Types::DescribeTypeOutput#schema #schema} => String
|
2563
2569
|
# * {Types::DescribeTypeOutput#provisioning_type #provisioning_type} => String
|
@@ -2585,6 +2591,7 @@ module Aws::CloudFormation
|
|
2585
2591
|
# resp.type #=> String, one of "RESOURCE"
|
2586
2592
|
# resp.type_name #=> String
|
2587
2593
|
# resp.default_version_id #=> String
|
2594
|
+
# resp.is_default_version #=> Boolean
|
2588
2595
|
# resp.description #=> String
|
2589
2596
|
# resp.schema #=> String
|
2590
2597
|
# resp.provisioning_type #=> String, one of "NON_PROVISIONABLE", "IMMUTABLE", "FULLY_MUTABLE"
|
@@ -3218,6 +3225,8 @@ module Aws::CloudFormation
|
|
3218
3225
|
# * {Types::ListChangeSetsOutput#summaries #summaries} => Array<Types::ChangeSetSummary>
|
3219
3226
|
# * {Types::ListChangeSetsOutput#next_token #next_token} => String
|
3220
3227
|
#
|
3228
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3229
|
+
#
|
3221
3230
|
# @example Request syntax with placeholder values
|
3222
3231
|
#
|
3223
3232
|
# resp = client.list_change_sets({
|
@@ -3378,6 +3387,8 @@ module Aws::CloudFormation
|
|
3378
3387
|
# * {Types::ListStackInstancesOutput#summaries #summaries} => Array<Types::StackInstanceSummary>
|
3379
3388
|
# * {Types::ListStackInstancesOutput#next_token #next_token} => String
|
3380
3389
|
#
|
3390
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3391
|
+
#
|
3381
3392
|
# @example Request syntax with placeholder values
|
3382
3393
|
#
|
3383
3394
|
# resp = client.list_stack_instances({
|
@@ -3497,6 +3508,8 @@ module Aws::CloudFormation
|
|
3497
3508
|
# * {Types::ListStackSetOperationResultsOutput#summaries #summaries} => Array<Types::StackSetOperationResultSummary>
|
3498
3509
|
# * {Types::ListStackSetOperationResultsOutput#next_token #next_token} => String
|
3499
3510
|
#
|
3511
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3512
|
+
#
|
3500
3513
|
# @example Request syntax with placeholder values
|
3501
3514
|
#
|
3502
3515
|
# resp = client.list_stack_set_operation_results({
|
@@ -3553,6 +3566,8 @@ module Aws::CloudFormation
|
|
3553
3566
|
# * {Types::ListStackSetOperationsOutput#summaries #summaries} => Array<Types::StackSetOperationSummary>
|
3554
3567
|
# * {Types::ListStackSetOperationsOutput#next_token #next_token} => String
|
3555
3568
|
#
|
3569
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3570
|
+
#
|
3556
3571
|
# @example Request syntax with placeholder values
|
3557
3572
|
#
|
3558
3573
|
# resp = client.list_stack_set_operations({
|
@@ -3606,6 +3621,8 @@ module Aws::CloudFormation
|
|
3606
3621
|
# * {Types::ListStackSetsOutput#summaries #summaries} => Array<Types::StackSetSummary>
|
3607
3622
|
# * {Types::ListStackSetsOutput#next_token #next_token} => String
|
3608
3623
|
#
|
3624
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3625
|
+
#
|
3609
3626
|
# @example Request syntax with placeholder values
|
3610
3627
|
#
|
3611
3628
|
# resp = client.list_stack_sets({
|
@@ -3838,6 +3855,7 @@ module Aws::CloudFormation
|
|
3838
3855
|
# resp.type_version_summaries[0].type #=> String, one of "RESOURCE"
|
3839
3856
|
# resp.type_version_summaries[0].type_name #=> String
|
3840
3857
|
# resp.type_version_summaries[0].version_id #=> String
|
3858
|
+
# resp.type_version_summaries[0].is_default_version #=> Boolean
|
3841
3859
|
# resp.type_version_summaries[0].arn #=> String
|
3842
3860
|
# resp.type_version_summaries[0].time_created #=> Time
|
3843
3861
|
# resp.type_version_summaries[0].description #=> String
|
@@ -5282,7 +5300,7 @@ module Aws::CloudFormation
|
|
5282
5300
|
params: params,
|
5283
5301
|
config: config)
|
5284
5302
|
context[:gem_name] = 'aws-sdk-cloudformation'
|
5285
|
-
context[:gem_version] = '1.
|
5303
|
+
context[:gem_version] = '1.37.1'
|
5286
5304
|
Seahorse::Client::Request.new(handlers, context)
|
5287
5305
|
end
|
5288
5306
|
|
@@ -5355,6 +5373,7 @@ module Aws::CloudFormation
|
|
5355
5373
|
# | stack_delete_complete | {Client#describe_stacks} | 30 | 120 |
|
5356
5374
|
# | stack_exists | {Client#describe_stacks} | 5 | 20 |
|
5357
5375
|
# | stack_import_complete | {Client#describe_stacks} | 30 | 120 |
|
5376
|
+
# | stack_rollback_complete | {Client#describe_stacks} | 30 | 120 |
|
5358
5377
|
# | stack_update_complete | {Client#describe_stacks} | 30 | 120 |
|
5359
5378
|
# | type_registration_complete | {Client#describe_type_registration} | 30 | 120 |
|
5360
5379
|
#
|
@@ -5412,6 +5431,7 @@ module Aws::CloudFormation
|
|
5412
5431
|
stack_delete_complete: Waiters::StackDeleteComplete,
|
5413
5432
|
stack_exists: Waiters::StackExists,
|
5414
5433
|
stack_import_complete: Waiters::StackImportComplete,
|
5434
|
+
stack_rollback_complete: Waiters::StackRollbackComplete,
|
5415
5435
|
stack_update_complete: Waiters::StackUpdateComplete,
|
5416
5436
|
type_registration_complete: Waiters::TypeRegistrationComplete
|
5417
5437
|
}
|
@@ -139,6 +139,7 @@ module Aws::CloudFormation
|
|
139
139
|
InvalidChangeSetStatusException = Shapes::StructureShape.new(name: 'InvalidChangeSetStatusException')
|
140
140
|
InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
|
141
141
|
InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
|
142
|
+
IsDefaultVersion = Shapes::BooleanShape.new(name: 'IsDefaultVersion')
|
142
143
|
Key = Shapes::StringShape.new(name: 'Key')
|
143
144
|
LastUpdatedTime = Shapes::TimestampShape.new(name: 'LastUpdatedTime')
|
144
145
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
@@ -663,6 +664,7 @@ module Aws::CloudFormation
|
|
663
664
|
DescribeTypeOutput.add_member(:type, Shapes::ShapeRef.new(shape: RegistryType, location_name: "Type"))
|
664
665
|
DescribeTypeOutput.add_member(:type_name, Shapes::ShapeRef.new(shape: TypeName, location_name: "TypeName"))
|
665
666
|
DescribeTypeOutput.add_member(:default_version_id, Shapes::ShapeRef.new(shape: TypeVersionId, location_name: "DefaultVersionId"))
|
667
|
+
DescribeTypeOutput.add_member(:is_default_version, Shapes::ShapeRef.new(shape: IsDefaultVersion, location_name: "IsDefaultVersion"))
|
666
668
|
DescribeTypeOutput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
667
669
|
DescribeTypeOutput.add_member(:schema, Shapes::ShapeRef.new(shape: TypeSchema, location_name: "Schema"))
|
668
670
|
DescribeTypeOutput.add_member(:provisioning_type, Shapes::ShapeRef.new(shape: ProvisioningType, location_name: "ProvisioningType"))
|
@@ -1336,6 +1338,7 @@ module Aws::CloudFormation
|
|
1336
1338
|
TypeVersionSummary.add_member(:type, Shapes::ShapeRef.new(shape: RegistryType, location_name: "Type"))
|
1337
1339
|
TypeVersionSummary.add_member(:type_name, Shapes::ShapeRef.new(shape: TypeName, location_name: "TypeName"))
|
1338
1340
|
TypeVersionSummary.add_member(:version_id, Shapes::ShapeRef.new(shape: TypeVersionId, location_name: "VersionId"))
|
1341
|
+
TypeVersionSummary.add_member(:is_default_version, Shapes::ShapeRef.new(shape: IsDefaultVersion, location_name: "IsDefaultVersion"))
|
1339
1342
|
TypeVersionSummary.add_member(:arn, Shapes::ShapeRef.new(shape: TypeArn, location_name: "Arn"))
|
1340
1343
|
TypeVersionSummary.add_member(:time_created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "TimeCreated"))
|
1341
1344
|
TypeVersionSummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
@@ -1554,6 +1557,11 @@ module Aws::CloudFormation
|
|
1554
1557
|
o.http_request_uri = "/"
|
1555
1558
|
o.input = Shapes::ShapeRef.new(shape: DescribeAccountLimitsInput)
|
1556
1559
|
o.output = Shapes::ShapeRef.new(shape: DescribeAccountLimitsOutput)
|
1560
|
+
o[:pager] = Aws::Pager.new(
|
1561
|
+
tokens: {
|
1562
|
+
"next_token" => "next_token"
|
1563
|
+
}
|
1564
|
+
)
|
1557
1565
|
end)
|
1558
1566
|
|
1559
1567
|
api.add_operation(:describe_change_set, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1756,6 +1764,11 @@ module Aws::CloudFormation
|
|
1756
1764
|
o.http_request_uri = "/"
|
1757
1765
|
o.input = Shapes::ShapeRef.new(shape: ListChangeSetsInput)
|
1758
1766
|
o.output = Shapes::ShapeRef.new(shape: ListChangeSetsOutput)
|
1767
|
+
o[:pager] = Aws::Pager.new(
|
1768
|
+
tokens: {
|
1769
|
+
"next_token" => "next_token"
|
1770
|
+
}
|
1771
|
+
)
|
1759
1772
|
end)
|
1760
1773
|
|
1761
1774
|
api.add_operation(:list_exports, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1791,6 +1804,12 @@ module Aws::CloudFormation
|
|
1791
1804
|
o.input = Shapes::ShapeRef.new(shape: ListStackInstancesInput)
|
1792
1805
|
o.output = Shapes::ShapeRef.new(shape: ListStackInstancesOutput)
|
1793
1806
|
o.errors << Shapes::ShapeRef.new(shape: StackSetNotFoundException)
|
1807
|
+
o[:pager] = Aws::Pager.new(
|
1808
|
+
limit_key: "max_results",
|
1809
|
+
tokens: {
|
1810
|
+
"next_token" => "next_token"
|
1811
|
+
}
|
1812
|
+
)
|
1794
1813
|
end)
|
1795
1814
|
|
1796
1815
|
api.add_operation(:list_stack_resources, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1814,6 +1833,12 @@ module Aws::CloudFormation
|
|
1814
1833
|
o.output = Shapes::ShapeRef.new(shape: ListStackSetOperationResultsOutput)
|
1815
1834
|
o.errors << Shapes::ShapeRef.new(shape: StackSetNotFoundException)
|
1816
1835
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotFoundException)
|
1836
|
+
o[:pager] = Aws::Pager.new(
|
1837
|
+
limit_key: "max_results",
|
1838
|
+
tokens: {
|
1839
|
+
"next_token" => "next_token"
|
1840
|
+
}
|
1841
|
+
)
|
1817
1842
|
end)
|
1818
1843
|
|
1819
1844
|
api.add_operation(:list_stack_set_operations, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1823,6 +1848,12 @@ module Aws::CloudFormation
|
|
1823
1848
|
o.input = Shapes::ShapeRef.new(shape: ListStackSetOperationsInput)
|
1824
1849
|
o.output = Shapes::ShapeRef.new(shape: ListStackSetOperationsOutput)
|
1825
1850
|
o.errors << Shapes::ShapeRef.new(shape: StackSetNotFoundException)
|
1851
|
+
o[:pager] = Aws::Pager.new(
|
1852
|
+
limit_key: "max_results",
|
1853
|
+
tokens: {
|
1854
|
+
"next_token" => "next_token"
|
1855
|
+
}
|
1856
|
+
)
|
1826
1857
|
end)
|
1827
1858
|
|
1828
1859
|
api.add_operation(:list_stack_sets, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1831,6 +1862,12 @@ module Aws::CloudFormation
|
|
1831
1862
|
o.http_request_uri = "/"
|
1832
1863
|
o.input = Shapes::ShapeRef.new(shape: ListStackSetsInput)
|
1833
1864
|
o.output = Shapes::ShapeRef.new(shape: ListStackSetsOutput)
|
1865
|
+
o[:pager] = Aws::Pager.new(
|
1866
|
+
limit_key: "max_results",
|
1867
|
+
tokens: {
|
1868
|
+
"next_token" => "next_token"
|
1869
|
+
}
|
1870
|
+
)
|
1834
1871
|
end)
|
1835
1872
|
|
1836
1873
|
api.add_operation(:list_stacks, Seahorse::Model::Operation.new.tap do |o|
|
@@ -316,7 +316,7 @@ module Aws::CloudFormation
|
|
316
316
|
# [2]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html
|
317
317
|
# @return [Stack]
|
318
318
|
def create_stack(options = {})
|
319
|
-
|
319
|
+
@client.create_stack(options)
|
320
320
|
Stack.new(
|
321
321
|
name: options[:stack_name],
|
322
322
|
client: @client
|
@@ -1080,8 +1080,8 @@ module Aws::CloudFormation
|
|
1080
1080
|
|
1081
1081
|
def yield_waiter_and_warn(waiter, &block)
|
1082
1082
|
if !@waiter_block_warned
|
1083
|
-
msg = "pass options to configure the waiter; "
|
1084
|
-
|
1083
|
+
msg = "pass options to configure the waiter; "\
|
1084
|
+
"yielding the waiter is deprecated"
|
1085
1085
|
warn(msg)
|
1086
1086
|
@waiter_block_warned = true
|
1087
1087
|
end
|
@@ -2584,6 +2584,10 @@ module Aws::CloudFormation
|
|
2584
2584
|
# To set the default version of a type, use ` SetTypeDefaultVersion `.
|
2585
2585
|
# @return [String]
|
2586
2586
|
#
|
2587
|
+
# @!attribute [rw] is_default_version
|
2588
|
+
# Whether the specified type version is set as the default version.
|
2589
|
+
# @return [Boolean]
|
2590
|
+
#
|
2587
2591
|
# @!attribute [rw] description
|
2588
2592
|
# The description of the registered type.
|
2589
2593
|
# @return [String]
|
@@ -2688,6 +2692,7 @@ module Aws::CloudFormation
|
|
2688
2692
|
:type,
|
2689
2693
|
:type_name,
|
2690
2694
|
:default_version_id,
|
2695
|
+
:is_default_version,
|
2691
2696
|
:description,
|
2692
2697
|
:schema,
|
2693
2698
|
:provisioning_type,
|
@@ -7047,6 +7052,10 @@ module Aws::CloudFormation
|
|
7047
7052
|
# type version when it is registered.
|
7048
7053
|
# @return [String]
|
7049
7054
|
#
|
7055
|
+
# @!attribute [rw] is_default_version
|
7056
|
+
# Whether the specified type version is set as the default version.
|
7057
|
+
# @return [Boolean]
|
7058
|
+
#
|
7050
7059
|
# @!attribute [rw] arn
|
7051
7060
|
# The Amazon Resource Name (ARN) of the type version.
|
7052
7061
|
# @return [String]
|
@@ -7065,6 +7074,7 @@ module Aws::CloudFormation
|
|
7065
7074
|
:type,
|
7066
7075
|
:type_name,
|
7067
7076
|
:version_id,
|
7077
|
+
:is_default_version,
|
7068
7078
|
:arn,
|
7069
7079
|
:time_created,
|
7070
7080
|
:description)
|
@@ -72,6 +72,7 @@ module Aws::CloudFormation
|
|
72
72
|
# | stack_delete_complete | {Client#describe_stacks} | 30 | 120 |
|
73
73
|
# | stack_exists | {Client#describe_stacks} | 5 | 20 |
|
74
74
|
# | stack_import_complete | {Client#describe_stacks} | 30 | 120 |
|
75
|
+
# | stack_rollback_complete | {Client#describe_stacks} | 30 | 120 |
|
75
76
|
# | stack_update_complete | {Client#describe_stacks} | 30 | 120 |
|
76
77
|
# | type_registration_complete | {Client#describe_type_registration} | 30 | 120 |
|
77
78
|
#
|
@@ -397,6 +398,68 @@ module Aws::CloudFormation
|
|
397
398
|
|
398
399
|
end
|
399
400
|
|
401
|
+
# Wait until stack status is UPDATE_ROLLBACK_COMPLETE.
|
402
|
+
class StackRollbackComplete
|
403
|
+
|
404
|
+
# @param [Hash] options
|
405
|
+
# @option options [required, Client] :client
|
406
|
+
# @option options [Integer] :max_attempts (120)
|
407
|
+
# @option options [Integer] :delay (30)
|
408
|
+
# @option options [Proc] :before_attempt
|
409
|
+
# @option options [Proc] :before_wait
|
410
|
+
def initialize(options)
|
411
|
+
@client = options.fetch(:client)
|
412
|
+
@waiter = Aws::Waiters::Waiter.new({
|
413
|
+
max_attempts: 120,
|
414
|
+
delay: 30,
|
415
|
+
poller: Aws::Waiters::Poller.new(
|
416
|
+
operation_name: :describe_stacks,
|
417
|
+
acceptors: [
|
418
|
+
{
|
419
|
+
"argument" => "stacks[].stack_status",
|
420
|
+
"expected" => "UPDATE_ROLLBACK_COMPLETE",
|
421
|
+
"matcher" => "pathAll",
|
422
|
+
"state" => "success"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"argument" => "stacks[].stack_status",
|
426
|
+
"expected" => "UPDATE_FAILED",
|
427
|
+
"matcher" => "pathAny",
|
428
|
+
"state" => "failure"
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"argument" => "stacks[].stack_status",
|
432
|
+
"expected" => "UPDATE_ROLLBACK_FAILED",
|
433
|
+
"matcher" => "pathAny",
|
434
|
+
"state" => "failure"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"argument" => "stacks[].stack_status",
|
438
|
+
"expected" => "DELETE_FAILED",
|
439
|
+
"matcher" => "pathAny",
|
440
|
+
"state" => "failure"
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"expected" => "ValidationError",
|
444
|
+
"matcher" => "error",
|
445
|
+
"state" => "failure"
|
446
|
+
}
|
447
|
+
]
|
448
|
+
)
|
449
|
+
}.merge(options))
|
450
|
+
end
|
451
|
+
|
452
|
+
# @option (see Client#describe_stacks)
|
453
|
+
# @return (see Client#describe_stacks)
|
454
|
+
def wait(params = {})
|
455
|
+
@waiter.wait(client: @client, params: params)
|
456
|
+
end
|
457
|
+
|
458
|
+
# @api private
|
459
|
+
attr_reader :waiter
|
460
|
+
|
461
|
+
end
|
462
|
+
|
400
463
|
# Wait until stack status is UPDATE_COMPLETE.
|
401
464
|
class StackUpdateComplete
|
402
465
|
|
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.37.1
|
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-11 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
|