aws-sdk-eks 1.27.0 → 1.28.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.
@@ -108,5 +108,92 @@ module Aws::EKS
108
108
  attr_reader :waiter
109
109
 
110
110
  end
111
+
112
+ class NodegroupActive
113
+
114
+ # @param [Hash] options
115
+ # @option options [required, Client] :client
116
+ # @option options [Integer] :max_attempts (80)
117
+ # @option options [Integer] :delay (30)
118
+ # @option options [Proc] :before_attempt
119
+ # @option options [Proc] :before_wait
120
+ def initialize(options)
121
+ @client = options.fetch(:client)
122
+ @waiter = Aws::Waiters::Waiter.new({
123
+ max_attempts: 80,
124
+ delay: 30,
125
+ poller: Aws::Waiters::Poller.new(
126
+ operation_name: :describe_nodegroup,
127
+ acceptors: [
128
+ {
129
+ "expected" => "CREATE_FAILED",
130
+ "matcher" => "path",
131
+ "state" => "failure",
132
+ "argument" => "nodegroup.status"
133
+ },
134
+ {
135
+ "expected" => "ACTIVE",
136
+ "matcher" => "path",
137
+ "state" => "success",
138
+ "argument" => "nodegroup.status"
139
+ }
140
+ ]
141
+ )
142
+ }.merge(options))
143
+ end
144
+
145
+ # @option (see Client#describe_nodegroup)
146
+ # @return (see Client#describe_nodegroup)
147
+ def wait(params = {})
148
+ @waiter.wait(client: @client, params: params)
149
+ end
150
+
151
+ # @api private
152
+ attr_reader :waiter
153
+
154
+ end
155
+
156
+ class NodegroupDeleted
157
+
158
+ # @param [Hash] options
159
+ # @option options [required, Client] :client
160
+ # @option options [Integer] :max_attempts (40)
161
+ # @option options [Integer] :delay (30)
162
+ # @option options [Proc] :before_attempt
163
+ # @option options [Proc] :before_wait
164
+ def initialize(options)
165
+ @client = options.fetch(:client)
166
+ @waiter = Aws::Waiters::Waiter.new({
167
+ max_attempts: 40,
168
+ delay: 30,
169
+ poller: Aws::Waiters::Poller.new(
170
+ operation_name: :describe_nodegroup,
171
+ acceptors: [
172
+ {
173
+ "expected" => "DELETE_FAILED",
174
+ "matcher" => "path",
175
+ "state" => "failure",
176
+ "argument" => "nodegroup.status"
177
+ },
178
+ {
179
+ "expected" => "ResourceNotFoundException",
180
+ "matcher" => "error",
181
+ "state" => "success"
182
+ }
183
+ ]
184
+ )
185
+ }.merge(options))
186
+ end
187
+
188
+ # @option (see Client#describe_nodegroup)
189
+ # @return (see Client#describe_nodegroup)
190
+ def wait(params = {})
191
+ @waiter.wait(client: @client, params: params)
192
+ end
193
+
194
+ # @api private
195
+ attr_reader :waiter
196
+
197
+ end
111
198
  end
112
199
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-eks
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-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core