aws-sdk-rds 1.5.0 → 1.6.0
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-rds.rb +1 -1
- data/lib/aws-sdk-rds/client.rb +6 -2
- data/lib/aws-sdk-rds/waiters.rb +135 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c9a7b6cc0eec4c37668ea6db41ac40fcc3f5c9
|
4
|
+
data.tar.gz: a8dd73ede23afe02ed7a39936caec7fdf869c5cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 037c78818947845d0e6efd88885e3d29f2e22413cf693769a5a0747de80911199888a9266f9f2a0d10eed4ffbac624e232ee440de701e8a232c72dea182da109
|
7
|
+
data.tar.gz: f8532a3e22d76e19d7b1b822a4957606dd2b6760007cbeda6f116e6436e165fd91e99315eda9f141d5a7a8e32ccbd76485a7024788f540059c881ed2076f39b3
|
data/lib/aws-sdk-rds.rb
CHANGED
data/lib/aws-sdk-rds/client.rb
CHANGED
@@ -12769,7 +12769,7 @@ module Aws::RDS
|
|
12769
12769
|
params: params,
|
12770
12770
|
config: config)
|
12771
12771
|
context[:gem_name] = 'aws-sdk-rds'
|
12772
|
-
context[:gem_version] = '1.
|
12772
|
+
context[:gem_version] = '1.6.0'
|
12773
12773
|
Seahorse::Client::Request.new(handlers, context)
|
12774
12774
|
end
|
12775
12775
|
|
@@ -12839,6 +12839,8 @@ module Aws::RDS
|
|
12839
12839
|
# | --------------------- | ------------------------ | -------- | ------------- |
|
12840
12840
|
# | db_instance_available | {#describe_db_instances} | 30 | 60 |
|
12841
12841
|
# | db_instance_deleted | {#describe_db_instances} | 30 | 60 |
|
12842
|
+
# | db_snapshot_available | {#describe_db_snapshots} | 30 | 60 |
|
12843
|
+
# | db_snapshot_deleted | {#describe_db_snapshots} | 30 | 60 |
|
12842
12844
|
#
|
12843
12845
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
12844
12846
|
# because the waiter has entered a state that it will not transition
|
@@ -12890,7 +12892,9 @@ module Aws::RDS
|
|
12890
12892
|
def waiters
|
12891
12893
|
{
|
12892
12894
|
db_instance_available: Waiters::DBInstanceAvailable,
|
12893
|
-
db_instance_deleted: Waiters::DBInstanceDeleted
|
12895
|
+
db_instance_deleted: Waiters::DBInstanceDeleted,
|
12896
|
+
db_snapshot_available: Waiters::DBSnapshotAvailable,
|
12897
|
+
db_snapshot_deleted: Waiters::DBSnapshotDeleted
|
12894
12898
|
}
|
12895
12899
|
end
|
12896
12900
|
|
data/lib/aws-sdk-rds/waiters.rb
CHANGED
@@ -144,5 +144,140 @@ module Aws::RDS
|
|
144
144
|
attr_reader :waiter
|
145
145
|
|
146
146
|
end
|
147
|
+
|
148
|
+
class DBSnapshotAvailable
|
149
|
+
|
150
|
+
# @param [Hash] options
|
151
|
+
# @option options [required, Client] :client
|
152
|
+
# @option options [Integer] :max_attempts (60)
|
153
|
+
# @option options [Integer] :delay (30)
|
154
|
+
# @option options [Proc] :before_attempt
|
155
|
+
# @option options [Proc] :before_wait
|
156
|
+
def initialize(options)
|
157
|
+
@client = options.fetch(:client)
|
158
|
+
@waiter = Aws::Waiters::Waiter.new({
|
159
|
+
max_attempts: 60,
|
160
|
+
delay: 30,
|
161
|
+
poller: Aws::Waiters::Poller.new(
|
162
|
+
operation_name: :describe_db_snapshots,
|
163
|
+
acceptors: [
|
164
|
+
{
|
165
|
+
"expected" => "available",
|
166
|
+
"matcher" => "pathAll",
|
167
|
+
"state" => "success",
|
168
|
+
"argument" => "db_snapshots[].status"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"expected" => "deleted",
|
172
|
+
"matcher" => "pathAny",
|
173
|
+
"state" => "failure",
|
174
|
+
"argument" => "db_snapshots[].status"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"expected" => "deleting",
|
178
|
+
"matcher" => "pathAny",
|
179
|
+
"state" => "failure",
|
180
|
+
"argument" => "db_snapshots[].status"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"expected" => "failed",
|
184
|
+
"matcher" => "pathAny",
|
185
|
+
"state" => "failure",
|
186
|
+
"argument" => "db_snapshots[].status"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"expected" => "incompatible-restore",
|
190
|
+
"matcher" => "pathAny",
|
191
|
+
"state" => "failure",
|
192
|
+
"argument" => "db_snapshots[].status"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"expected" => "incompatible-parameters",
|
196
|
+
"matcher" => "pathAny",
|
197
|
+
"state" => "failure",
|
198
|
+
"argument" => "db_snapshots[].status"
|
199
|
+
}
|
200
|
+
]
|
201
|
+
)
|
202
|
+
}.merge(options))
|
203
|
+
end
|
204
|
+
|
205
|
+
# @option (see Client#describe_db_snapshots)
|
206
|
+
# @return (see Client#describe_db_snapshots)
|
207
|
+
def wait(params = {})
|
208
|
+
@waiter.wait(client: @client, params: params)
|
209
|
+
end
|
210
|
+
|
211
|
+
# @api private
|
212
|
+
attr_reader :waiter
|
213
|
+
|
214
|
+
end
|
215
|
+
|
216
|
+
class DBSnapshotDeleted
|
217
|
+
|
218
|
+
# @param [Hash] options
|
219
|
+
# @option options [required, Client] :client
|
220
|
+
# @option options [Integer] :max_attempts (60)
|
221
|
+
# @option options [Integer] :delay (30)
|
222
|
+
# @option options [Proc] :before_attempt
|
223
|
+
# @option options [Proc] :before_wait
|
224
|
+
def initialize(options)
|
225
|
+
@client = options.fetch(:client)
|
226
|
+
@waiter = Aws::Waiters::Waiter.new({
|
227
|
+
max_attempts: 60,
|
228
|
+
delay: 30,
|
229
|
+
poller: Aws::Waiters::Poller.new(
|
230
|
+
operation_name: :describe_db_snapshots,
|
231
|
+
acceptors: [
|
232
|
+
{
|
233
|
+
"expected" => "deleted",
|
234
|
+
"matcher" => "pathAll",
|
235
|
+
"state" => "success",
|
236
|
+
"argument" => "db_snapshots[].status"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"expected" => "DBSnapshotNotFound",
|
240
|
+
"matcher" => "error",
|
241
|
+
"state" => "success"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"expected" => "creating",
|
245
|
+
"matcher" => "pathAny",
|
246
|
+
"state" => "failure",
|
247
|
+
"argument" => "db_snapshots[].status"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"expected" => "modifying",
|
251
|
+
"matcher" => "pathAny",
|
252
|
+
"state" => "failure",
|
253
|
+
"argument" => "db_snapshots[].status"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"expected" => "rebooting",
|
257
|
+
"matcher" => "pathAny",
|
258
|
+
"state" => "failure",
|
259
|
+
"argument" => "db_snapshots[].status"
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"expected" => "resetting-master-credentials",
|
263
|
+
"matcher" => "pathAny",
|
264
|
+
"state" => "failure",
|
265
|
+
"argument" => "db_snapshots[].status"
|
266
|
+
}
|
267
|
+
]
|
268
|
+
)
|
269
|
+
}.merge(options))
|
270
|
+
end
|
271
|
+
|
272
|
+
# @option (see Client#describe_db_snapshots)
|
273
|
+
# @return (see Client#describe_db_snapshots)
|
274
|
+
def wait(params = {})
|
275
|
+
@waiter.wait(client: @client, params: params)
|
276
|
+
end
|
277
|
+
|
278
|
+
# @api private
|
279
|
+
attr_reader :waiter
|
280
|
+
|
281
|
+
end
|
147
282
|
end
|
148
283
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.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: 2017-10-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|