aws-sdk-cloudformation 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,266 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ require 'aws-sdk-core/waiters'
9
+
10
+ module Aws
11
+ module CloudFormation
12
+ module Waiters
13
+ class StackExists
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (20)
18
+ # @option options [Integer] :delay (5)
19
+ # @option options [Proc] :before_attempt
20
+ # @option options [Proc] :before_wait
21
+ def initialize(options)
22
+ @client = options.fetch(:client)
23
+ @waiter = Aws::Waiters::Waiter.new({
24
+ max_attempts: 20,
25
+ delay: 5,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :describe_stacks,
28
+ acceptors: [
29
+ {
30
+ "matcher" => "status",
31
+ "expected" => 200,
32
+ "state" => "success"
33
+ },
34
+ {
35
+ "matcher" => "error",
36
+ "expected" => "ValidationError",
37
+ "state" => "retry"
38
+ }
39
+ ]
40
+ )
41
+ }.merge(options))
42
+ end
43
+
44
+ # @option (see Client#describe_stacks)
45
+ # @return (see Client#describe_stacks)
46
+ def wait(params = {})
47
+ @waiter.wait(client: @client, params: params)
48
+ end
49
+
50
+ # @api private
51
+ attr_reader :waiter
52
+
53
+ end
54
+
55
+ class StackCreateComplete
56
+
57
+ # @param [Hash] options
58
+ # @option options [required, Client] :client
59
+ # @option options [Integer] :max_attempts (120)
60
+ # @option options [Integer] :delay (30)
61
+ # @option options [Proc] :before_attempt
62
+ # @option options [Proc] :before_wait
63
+ def initialize(options)
64
+ @client = options.fetch(:client)
65
+ @waiter = Aws::Waiters::Waiter.new({
66
+ max_attempts: 120,
67
+ delay: 30,
68
+ poller: Aws::Waiters::Poller.new(
69
+ "description" => "Wait until stack status is CREATE_COMPLETE.",
70
+ operation_name: :describe_stacks,
71
+ acceptors: [
72
+ {
73
+ "argument" => "stacks[].stack_status",
74
+ "expected" => "CREATE_COMPLETE",
75
+ "matcher" => "pathAll",
76
+ "state" => "success"
77
+ },
78
+ {
79
+ "argument" => "stacks[].stack_status",
80
+ "expected" => "CREATE_FAILED",
81
+ "matcher" => "pathAny",
82
+ "state" => "failure"
83
+ },
84
+ {
85
+ "argument" => "stacks[].stack_status",
86
+ "expected" => "DELETE_COMPLETE",
87
+ "matcher" => "pathAny",
88
+ "state" => "failure"
89
+ },
90
+ {
91
+ "argument" => "stacks[].stack_status",
92
+ "expected" => "DELETE_FAILED",
93
+ "matcher" => "pathAny",
94
+ "state" => "failure"
95
+ },
96
+ {
97
+ "argument" => "stacks[].stack_status",
98
+ "expected" => "ROLLBACK_FAILED",
99
+ "matcher" => "pathAny",
100
+ "state" => "failure"
101
+ },
102
+ {
103
+ "argument" => "stacks[].stack_status",
104
+ "expected" => "ROLLBACK_COMPLETE",
105
+ "matcher" => "pathAny",
106
+ "state" => "failure"
107
+ },
108
+ {
109
+ "expected" => "ValidationError",
110
+ "matcher" => "error",
111
+ "state" => "failure"
112
+ }
113
+ ]
114
+ )
115
+ }.merge(options))
116
+ end
117
+
118
+ # @option (see Client#describe_stacks)
119
+ # @return (see Client#describe_stacks)
120
+ def wait(params = {})
121
+ @waiter.wait(client: @client, params: params)
122
+ end
123
+
124
+ # @api private
125
+ attr_reader :waiter
126
+
127
+ end
128
+
129
+ class StackDeleteComplete
130
+
131
+ # @param [Hash] options
132
+ # @option options [required, Client] :client
133
+ # @option options [Integer] :max_attempts (120)
134
+ # @option options [Integer] :delay (30)
135
+ # @option options [Proc] :before_attempt
136
+ # @option options [Proc] :before_wait
137
+ def initialize(options)
138
+ @client = options.fetch(:client)
139
+ @waiter = Aws::Waiters::Waiter.new({
140
+ max_attempts: 120,
141
+ delay: 30,
142
+ poller: Aws::Waiters::Poller.new(
143
+ "description" => "Wait until stack status is DELETE_COMPLETE.",
144
+ operation_name: :describe_stacks,
145
+ acceptors: [
146
+ {
147
+ "argument" => "stacks[].stack_status",
148
+ "expected" => "DELETE_COMPLETE",
149
+ "matcher" => "pathAll",
150
+ "state" => "success"
151
+ },
152
+ {
153
+ "expected" => "ValidationError",
154
+ "matcher" => "error",
155
+ "state" => "success"
156
+ },
157
+ {
158
+ "argument" => "stacks[].stack_status",
159
+ "expected" => "DELETE_FAILED",
160
+ "matcher" => "pathAny",
161
+ "state" => "failure"
162
+ },
163
+ {
164
+ "argument" => "stacks[].stack_status",
165
+ "expected" => "CREATE_FAILED",
166
+ "matcher" => "pathAny",
167
+ "state" => "failure"
168
+ },
169
+ {
170
+ "argument" => "stacks[].stack_status",
171
+ "expected" => "ROLLBACK_FAILED",
172
+ "matcher" => "pathAny",
173
+ "state" => "failure"
174
+ },
175
+ {
176
+ "argument" => "stacks[].stack_status",
177
+ "expected" => "UPDATE_ROLLBACK_FAILED",
178
+ "matcher" => "pathAny",
179
+ "state" => "failure"
180
+ },
181
+ {
182
+ "argument" => "stacks[].stack_status",
183
+ "expected" => "UPDATE_ROLLBACK_IN_PROGRESS",
184
+ "matcher" => "pathAny",
185
+ "state" => "failure"
186
+ }
187
+ ]
188
+ )
189
+ }.merge(options))
190
+ end
191
+
192
+ # @option (see Client#describe_stacks)
193
+ # @return (see Client#describe_stacks)
194
+ def wait(params = {})
195
+ @waiter.wait(client: @client, params: params)
196
+ end
197
+
198
+ # @api private
199
+ attr_reader :waiter
200
+
201
+ end
202
+
203
+ class StackUpdateComplete
204
+
205
+ # @param [Hash] options
206
+ # @option options [required, Client] :client
207
+ # @option options [Integer] :max_attempts (120)
208
+ # @option options [Integer] :delay (30)
209
+ # @option options [Proc] :before_attempt
210
+ # @option options [Proc] :before_wait
211
+ def initialize(options)
212
+ @client = options.fetch(:client)
213
+ @waiter = Aws::Waiters::Waiter.new({
214
+ max_attempts: 120,
215
+ delay: 30,
216
+ poller: Aws::Waiters::Poller.new(
217
+ "description" => "Wait until stack status is UPDATE_COMPLETE.",
218
+ operation_name: :describe_stacks,
219
+ acceptors: [
220
+ {
221
+ "argument" => "stacks[].stack_status",
222
+ "expected" => "UPDATE_COMPLETE",
223
+ "matcher" => "pathAll",
224
+ "state" => "success"
225
+ },
226
+ {
227
+ "expected" => "UPDATE_FAILED",
228
+ "matcher" => "pathAny",
229
+ "state" => "failure",
230
+ "argument" => "stacks[].stack_status"
231
+ },
232
+ {
233
+ "argument" => "stacks[].stack_status",
234
+ "expected" => "UPDATE_ROLLBACK_FAILED",
235
+ "matcher" => "pathAny",
236
+ "state" => "failure"
237
+ },
238
+ {
239
+ "expected" => "UPDATE_ROLLBACK_COMPLETE",
240
+ "matcher" => "pathAny",
241
+ "state" => "failure",
242
+ "argument" => "stacks[].stack_status"
243
+ },
244
+ {
245
+ "expected" => "ValidationError",
246
+ "matcher" => "error",
247
+ "state" => "failure"
248
+ }
249
+ ]
250
+ )
251
+ }.merge(options))
252
+ end
253
+
254
+ # @option (see Client#describe_stacks)
255
+ # @return (see Client#describe_stacks)
256
+ def wait(params = {})
257
+ @waiter.wait(client: @client, params: params)
258
+ end
259
+
260
+ # @api private
261
+ attr_reader :waiter
262
+
263
+ end
264
+ end
265
+ end
266
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-cloudformation
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.rc1
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0.rc1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0.rc1
27
+ - !ruby/object:Gem::Dependency
28
+ name: aws-sigv4
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ description: Official AWS Ruby gem for AWS CloudFormation. This gem is part of the
42
+ AWS SDK for Ruby.
43
+ email:
44
+ - trevrowe@amazon.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - lib/aws-sdk-cloudformation.rb
50
+ - lib/aws-sdk-cloudformation/client.rb
51
+ - lib/aws-sdk-cloudformation/client_api.rb
52
+ - lib/aws-sdk-cloudformation/customizations.rb
53
+ - lib/aws-sdk-cloudformation/errors.rb
54
+ - lib/aws-sdk-cloudformation/event.rb
55
+ - lib/aws-sdk-cloudformation/resource.rb
56
+ - lib/aws-sdk-cloudformation/stack.rb
57
+ - lib/aws-sdk-cloudformation/stack_resource.rb
58
+ - lib/aws-sdk-cloudformation/stack_resource_summary.rb
59
+ - lib/aws-sdk-cloudformation/types.rb
60
+ - lib/aws-sdk-cloudformation/waiters.rb
61
+ homepage: http://github.com/aws/aws-sdk-ruby
62
+ licenses:
63
+ - Apache-2.0
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">"
77
+ - !ruby/object:Gem::Version
78
+ version: 1.3.1
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.5.1
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: AWS SDK for Ruby - AWS CloudFormation
85
+ test_files: []