aws-sdk-core 2.0.18 → 2.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/CloudFormation.resources.json +55 -20
- data/apis/CloudFront.waiters.json +35 -17
- data/apis/DynamoDB.waiters.json +27 -17
- data/apis/EC2.api.json +5 -0
- data/apis/EC2.resources.json +449 -319
- data/apis/EC2.waiters.json +389 -139
- data/apis/{EMR.waiters2.json → EMR.waiters.json} +0 -0
- data/apis/ElasticTranscoder.api.json +34 -3
- data/apis/ElasticTranscoder.waiters.json +22 -8
- data/apis/Glacier.resources.json +215 -117
- data/apis/Glacier.waiters.json +31 -15
- data/apis/IAM.resources.json +380 -169
- data/apis/{Kinesis.waiters2.json → Kinesis.waiters.json} +0 -0
- data/apis/OpsWorks.resources.json +51 -17
- data/apis/RDS.waiters.json +87 -26
- data/apis/Redshift.waiters.json +54 -29
- data/apis/S3.resources.json +404 -143
- data/apis/S3.waiters.json +47 -16
- data/apis/SES.waiters.json +11 -7
- data/apis/SNS.resources.json +67 -33
- data/apis/SQS.resources.json +57 -30
- data/lib/aws-sdk-core.rb +1 -0
- data/lib/aws-sdk-core/api/documenter.rb +4 -3
- data/lib/aws-sdk-core/api/service_customizations.rb +0 -6
- data/lib/aws-sdk-core/client_waiters.rb +65 -50
- data/lib/aws-sdk-core/emr.rb +1 -0
- data/lib/aws-sdk-core/errors.rb +4 -0
- data/lib/aws-sdk-core/instance_profile_credentials.rb +1 -0
- data/lib/aws-sdk-core/kinesis.rb +1 -0
- data/lib/aws-sdk-core/paging/pager.rb +5 -1
- data/lib/aws-sdk-core/refreshing_credentials.rb +2 -0
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/aws-sdk-core/waiters/errors.rb +50 -12
- data/lib/aws-sdk-core/waiters/poller.rb +105 -0
- data/lib/aws-sdk-core/waiters/provider.rb +11 -30
- data/lib/aws-sdk-core/waiters/waiter.rb +42 -102
- metadata +5 -12
- data/apis/CloudFront.waiters2.json +0 -47
- data/apis/DynamoDB.waiters2.json +0 -35
- data/apis/EC2.waiters2.json +0 -341
- data/apis/ElasticTranscoder.waiters2.json +0 -30
- data/apis/RDS.waiters2.json +0 -97
- data/apis/Redshift.waiters2.json +0 -97
- data/apis/S3.waiters2.json +0 -63
- data/apis/SES.waiters2.json +0 -18
data/apis/EC2.waiters.json
CHANGED
@@ -1,185 +1,435 @@
|
|
1
1
|
{
|
2
|
+
"version": 2,
|
2
3
|
"waiters": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
4
|
+
"BundleTaskComplete": {
|
5
|
+
"delay": 15,
|
6
|
+
"operation": "DescribeBundleTasks",
|
7
|
+
"maxAttempts": 40,
|
8
|
+
"acceptors": [
|
9
|
+
{
|
10
|
+
"expected": "complete",
|
11
|
+
"matcher": "pathAll",
|
12
|
+
"state": "success",
|
13
|
+
"argument": "BundleTasks[].State"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"expected": "failed",
|
17
|
+
"matcher": "pathAny",
|
18
|
+
"state": "failure",
|
19
|
+
"argument": "BundleTasks[].State"
|
20
|
+
}
|
21
|
+
]
|
7
22
|
},
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
23
|
+
"ConversionTaskCancelled": {
|
24
|
+
"delay": 15,
|
25
|
+
"operation": "DescribeConversionTasks",
|
26
|
+
"maxAttempts": 40,
|
27
|
+
"acceptors": [
|
28
|
+
{
|
29
|
+
"expected": "cancelled",
|
30
|
+
"matcher": "pathAll",
|
31
|
+
"state": "success",
|
32
|
+
"argument": "ConversionTasks[].State"
|
33
|
+
}
|
34
|
+
]
|
11
35
|
},
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
36
|
+
"ConversionTaskCompleted": {
|
37
|
+
"delay": 15,
|
38
|
+
"operation": "DescribeConversionTasks",
|
39
|
+
"maxAttempts": 40,
|
40
|
+
"acceptors": [
|
41
|
+
{
|
42
|
+
"expected": "completed",
|
43
|
+
"matcher": "pathAll",
|
44
|
+
"state": "success",
|
45
|
+
"argument": "ConversionTasks[].State"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"expected": "cancelled",
|
49
|
+
"matcher": "pathAny",
|
50
|
+
"state": "failure",
|
51
|
+
"argument": "ConversionTasks[].State"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"expected": "cancelling",
|
55
|
+
"matcher": "pathAny",
|
56
|
+
"state": "failure",
|
57
|
+
"argument": "ConversionTasks[].State"
|
58
|
+
}
|
59
|
+
]
|
15
60
|
},
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
61
|
+
"ConversionTaskDeleted": {
|
62
|
+
"delay": 15,
|
63
|
+
"operation": "DescribeConversionTasks",
|
64
|
+
"maxAttempts": 40,
|
65
|
+
"acceptors": [
|
66
|
+
{
|
67
|
+
"expected": "deleted",
|
68
|
+
"matcher": "pathAll",
|
69
|
+
"state": "success",
|
70
|
+
"argument": "ConversionTasks[].State"
|
71
|
+
}
|
72
|
+
]
|
19
73
|
},
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
74
|
+
"CustomerGatewayAvailable": {
|
75
|
+
"delay": 15,
|
76
|
+
"operation": "DescribeCustomerGateways",
|
77
|
+
"maxAttempts": 40,
|
78
|
+
"acceptors": [
|
79
|
+
{
|
80
|
+
"expected": "available",
|
81
|
+
"matcher": "pathAll",
|
82
|
+
"state": "success",
|
83
|
+
"argument": "CustomerGateways[].State"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"expected": "deleted",
|
87
|
+
"matcher": "pathAny",
|
88
|
+
"state": "failure",
|
89
|
+
"argument": "CustomerGateways[].State"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"expected": "deleting",
|
93
|
+
"matcher": "pathAny",
|
94
|
+
"state": "failure",
|
95
|
+
"argument": "CustomerGateways[].State"
|
96
|
+
}
|
97
|
+
]
|
98
|
+
},
|
99
|
+
"ExportTaskCancelled": {
|
100
|
+
"delay": 15,
|
101
|
+
"operation": "DescribeExportTasks",
|
102
|
+
"maxAttempts": 40,
|
103
|
+
"acceptors": [
|
104
|
+
{
|
105
|
+
"expected": "cancelled",
|
106
|
+
"matcher": "pathAll",
|
107
|
+
"state": "success",
|
108
|
+
"argument": "ExportTasks[].State"
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
"ExportTaskCompleted": {
|
113
|
+
"delay": 15,
|
114
|
+
"operation": "DescribeExportTasks",
|
115
|
+
"maxAttempts": 40,
|
116
|
+
"acceptors": [
|
117
|
+
{
|
118
|
+
"expected": "completed",
|
119
|
+
"matcher": "pathAll",
|
120
|
+
"state": "success",
|
121
|
+
"argument": "ExportTasks[].State"
|
122
|
+
}
|
123
|
+
]
|
23
124
|
},
|
24
125
|
"ImageAvailable": {
|
25
126
|
"operation": "DescribeImages",
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
|
127
|
+
"maxAttempts": 40,
|
128
|
+
"delay": 15,
|
129
|
+
"acceptors": [
|
130
|
+
{
|
131
|
+
"state": "success",
|
132
|
+
"matcher": "pathAll",
|
133
|
+
"argument": "Images[].State",
|
134
|
+
"expected": "available"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"state": "failure",
|
138
|
+
"matcher": "pathAny",
|
139
|
+
"argument": "Images[].State",
|
140
|
+
"expected": "failed"
|
141
|
+
}
|
30
142
|
]
|
31
143
|
},
|
32
144
|
"InstanceRunning": {
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
|
37
|
-
|
38
|
-
|
145
|
+
"delay": 15,
|
146
|
+
"operation": "DescribeInstances",
|
147
|
+
"maxAttempts": 40,
|
148
|
+
"acceptors": [
|
149
|
+
{
|
150
|
+
"expected": "running",
|
151
|
+
"matcher": "pathAll",
|
152
|
+
"state": "success",
|
153
|
+
"argument": "Reservations[].Instances[].State.Name"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"expected": "shutting-down",
|
157
|
+
"matcher": "pathAny",
|
158
|
+
"state": "failure",
|
159
|
+
"argument": "Reservations[].Instances[].State.Name"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"expected": "terminated",
|
163
|
+
"matcher": "pathAny",
|
164
|
+
"state": "failure",
|
165
|
+
"argument": "Reservations[].Instances[].State.Name"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"expected": "stopping",
|
169
|
+
"matcher": "pathAny",
|
170
|
+
"state": "failure",
|
171
|
+
"argument": "Reservations[].Instances[].State.Name"
|
172
|
+
}
|
173
|
+
]
|
174
|
+
},
|
175
|
+
"InstanceStatusOk": {
|
176
|
+
"operation": "DescribeInstanceStatus",
|
177
|
+
"maxAttempts": 40,
|
178
|
+
"delay": 15,
|
179
|
+
"acceptors": [
|
180
|
+
{
|
181
|
+
"state": "success",
|
182
|
+
"matcher": "pathAll",
|
183
|
+
"argument": "InstanceStatuses[].InstanceStatus.Status",
|
184
|
+
"expected": "ok"
|
185
|
+
}
|
39
186
|
]
|
40
187
|
},
|
41
188
|
"InstanceStopped": {
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
|
46
|
-
|
189
|
+
"delay": 15,
|
190
|
+
"operation": "DescribeInstances",
|
191
|
+
"maxAttempts": 40,
|
192
|
+
"acceptors": [
|
193
|
+
{
|
194
|
+
"expected": "stopped",
|
195
|
+
"matcher": "pathAll",
|
196
|
+
"state": "success",
|
197
|
+
"argument": "Reservations[].Instances[].State.Name"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"expected": "pending",
|
201
|
+
"matcher": "pathAny",
|
202
|
+
"state": "failure",
|
203
|
+
"argument": "Reservations[].Instances[].State.Name"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"expected": "terminated",
|
207
|
+
"matcher": "pathAny",
|
208
|
+
"state": "failure",
|
209
|
+
"argument": "Reservations[].Instances[].State.Name"
|
210
|
+
}
|
47
211
|
]
|
48
212
|
},
|
49
213
|
"InstanceTerminated": {
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
|
54
|
-
|
214
|
+
"delay": 15,
|
215
|
+
"operation": "DescribeInstances",
|
216
|
+
"maxAttempts": 40,
|
217
|
+
"acceptors": [
|
218
|
+
{
|
219
|
+
"expected": "terminated",
|
220
|
+
"matcher": "pathAll",
|
221
|
+
"state": "success",
|
222
|
+
"argument": "Reservations[].Instances[].State.Name"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"expected": "pending",
|
226
|
+
"matcher": "pathAny",
|
227
|
+
"state": "failure",
|
228
|
+
"argument": "Reservations[].Instances[].State.Name"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"expected": "stopping",
|
232
|
+
"matcher": "pathAny",
|
233
|
+
"state": "failure",
|
234
|
+
"argument": "Reservations[].Instances[].State.Name"
|
235
|
+
}
|
55
236
|
]
|
56
237
|
},
|
57
238
|
"PasswordDataAvailable": {
|
58
239
|
"operation": "GetPasswordData",
|
59
|
-
"
|
60
|
-
"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
},
|
70
|
-
"ExportTaskCancelled": {
|
71
|
-
"extends": "__ExportTaskState",
|
72
|
-
"success_value": "cancelled"
|
240
|
+
"maxAttempts": 40,
|
241
|
+
"delay": 15,
|
242
|
+
"acceptors": [
|
243
|
+
{
|
244
|
+
"state": "success",
|
245
|
+
"matcher": "path",
|
246
|
+
"argument": "length(PasswordData) > `0`",
|
247
|
+
"expected": true
|
248
|
+
}
|
249
|
+
]
|
73
250
|
},
|
74
251
|
"SnapshotCompleted": {
|
252
|
+
"delay": 15,
|
75
253
|
"operation": "DescribeSnapshots",
|
76
|
-
"
|
77
|
-
"
|
254
|
+
"maxAttempts": 40,
|
255
|
+
"acceptors": [
|
256
|
+
{
|
257
|
+
"expected": "completed",
|
258
|
+
"matcher": "pathAll",
|
259
|
+
"state": "success",
|
260
|
+
"argument": "Snapshots[].State"
|
261
|
+
}
|
262
|
+
]
|
263
|
+
},
|
264
|
+
"SpotInstanceRequestFulfilled": {
|
265
|
+
"operation": "DescribeSpotInstanceRequests",
|
266
|
+
"maxAttempts": 40,
|
267
|
+
"delay": 15,
|
268
|
+
"acceptors": [
|
269
|
+
{
|
270
|
+
"state": "success",
|
271
|
+
"matcher": "pathAll",
|
272
|
+
"argument": "SpotInstanceRequests[].Status.Code",
|
273
|
+
"expected": "fulfilled"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"state": "failure",
|
277
|
+
"matcher": "pathAny",
|
278
|
+
"argument": "SpotInstanceRequests[].Status.Code",
|
279
|
+
"expected": "schedule-expired"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"state": "failure",
|
283
|
+
"matcher": "pathAny",
|
284
|
+
"argument": "SpotInstanceRequests[].Status.Code",
|
285
|
+
"expected": "canceled-before-fulfillment"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"state": "failure",
|
289
|
+
"matcher": "pathAny",
|
290
|
+
"argument": "SpotInstanceRequests[].Status.Code",
|
291
|
+
"expected": "bad-parameters"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"state": "failure",
|
295
|
+
"matcher": "pathAny",
|
296
|
+
"argument": "SpotInstanceRequests[].Status.Code",
|
297
|
+
"expected": "system-error"
|
298
|
+
}
|
299
|
+
]
|
78
300
|
},
|
79
301
|
"SubnetAvailable": {
|
302
|
+
"delay": 15,
|
80
303
|
"operation": "DescribeSubnets",
|
81
|
-
"
|
82
|
-
"
|
304
|
+
"maxAttempts": 40,
|
305
|
+
"acceptors": [
|
306
|
+
{
|
307
|
+
"expected": "available",
|
308
|
+
"matcher": "pathAll",
|
309
|
+
"state": "success",
|
310
|
+
"argument": "Subnets[].State"
|
311
|
+
}
|
312
|
+
]
|
83
313
|
},
|
84
|
-
"
|
85
|
-
"operation": "
|
86
|
-
"
|
314
|
+
"SystemStatusOk": {
|
315
|
+
"operation": "DescribeInstanceStatus",
|
316
|
+
"maxAttempts": 40,
|
317
|
+
"delay": 15,
|
318
|
+
"acceptors": [
|
319
|
+
{
|
320
|
+
"state": "success",
|
321
|
+
"matcher": "pathAll",
|
322
|
+
"argument": "InstanceStatuses[].SystemStatus.Status",
|
323
|
+
"expected": "ok"
|
324
|
+
}
|
325
|
+
]
|
87
326
|
},
|
88
327
|
"VolumeAvailable": {
|
89
|
-
"
|
90
|
-
"
|
91
|
-
"
|
92
|
-
|
328
|
+
"delay": 15,
|
329
|
+
"operation": "DescribeVolumes",
|
330
|
+
"maxAttempts": 40,
|
331
|
+
"acceptors": [
|
332
|
+
{
|
333
|
+
"expected": "available",
|
334
|
+
"matcher": "pathAll",
|
335
|
+
"state": "success",
|
336
|
+
"argument": "Volumes[].State"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"expected": "deleted",
|
340
|
+
"matcher": "pathAny",
|
341
|
+
"state": "failure",
|
342
|
+
"argument": "Volumes[].State"
|
343
|
+
}
|
93
344
|
]
|
94
345
|
},
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
|
346
|
+
"VolumeDeleted": {
|
347
|
+
"delay": 15,
|
348
|
+
"operation": "DescribeVolumes",
|
349
|
+
"maxAttempts": 40,
|
350
|
+
"acceptors": [
|
351
|
+
{
|
352
|
+
"expected": "deleted",
|
353
|
+
"matcher": "pathAll",
|
354
|
+
"state": "success",
|
355
|
+
"argument": "Volumes[].State"
|
356
|
+
}
|
100
357
|
]
|
101
358
|
},
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
359
|
+
"VolumeInUse": {
|
360
|
+
"delay": 15,
|
361
|
+
"operation": "DescribeVolumes",
|
362
|
+
"maxAttempts": 40,
|
363
|
+
"acceptors": [
|
364
|
+
{
|
365
|
+
"expected": "in-use",
|
366
|
+
"matcher": "pathAll",
|
367
|
+
"state": "success",
|
368
|
+
"argument": "Volumes[].State"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"expected": "deleted",
|
372
|
+
"matcher": "pathAny",
|
373
|
+
"state": "failure",
|
374
|
+
"argument": "Volumes[].State"
|
375
|
+
}
|
376
|
+
]
|
106
377
|
},
|
107
378
|
"VpcAvailable": {
|
379
|
+
"delay": 15,
|
108
380
|
"operation": "DescribeVpcs",
|
109
|
-
"
|
110
|
-
"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
381
|
+
"maxAttempts": 40,
|
382
|
+
"acceptors": [
|
383
|
+
{
|
384
|
+
"expected": "available",
|
385
|
+
"matcher": "pathAll",
|
386
|
+
"state": "success",
|
387
|
+
"argument": "Vpcs[].State"
|
388
|
+
}
|
389
|
+
]
|
115
390
|
},
|
116
391
|
"VpnConnectionAvailable": {
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
120
|
-
|
121
|
-
|
392
|
+
"delay": 15,
|
393
|
+
"operation": "DescribeVpnConnections",
|
394
|
+
"maxAttempts": 40,
|
395
|
+
"acceptors": [
|
396
|
+
{
|
397
|
+
"expected": "available",
|
398
|
+
"matcher": "pathAll",
|
399
|
+
"state": "success",
|
400
|
+
"argument": "VpnConnections[].State"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"expected": "deleting",
|
404
|
+
"matcher": "pathAny",
|
405
|
+
"state": "failure",
|
406
|
+
"argument": "VpnConnections[].State"
|
407
|
+
},
|
408
|
+
{
|
409
|
+
"expected": "deleted",
|
410
|
+
"matcher": "pathAny",
|
411
|
+
"state": "failure",
|
412
|
+
"argument": "VpnConnections[].State"
|
413
|
+
}
|
122
414
|
]
|
123
415
|
},
|
124
416
|
"VpnConnectionDeleted": {
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
"acceptor_path": "ConversionTasks[].State"
|
142
|
-
},
|
143
|
-
"ConversionTaskCompleted": {
|
144
|
-
"extends": "__ConversionTaskState",
|
145
|
-
"success_value": "completed",
|
146
|
-
"failure_value": [
|
147
|
-
"cancelled",
|
148
|
-
"cancelling"
|
149
|
-
]
|
150
|
-
},
|
151
|
-
"ConversionTaskCancelled": {
|
152
|
-
"extends": "__ConversionTaskState",
|
153
|
-
"success_value": "cancelled"
|
154
|
-
},
|
155
|
-
"__CustomerGatewayState": {
|
156
|
-
"operation": "DescribeCustomerGateways",
|
157
|
-
"acceptor_path": "CustomerGateways[].State"
|
158
|
-
},
|
159
|
-
"CustomerGatewayAvailable": {
|
160
|
-
"extends": "__CustomerGatewayState",
|
161
|
-
"success_value": "available",
|
162
|
-
"failure_value": [
|
163
|
-
"deleted",
|
164
|
-
"deleting"
|
165
|
-
]
|
166
|
-
},
|
167
|
-
"ConversionTaskDeleted": {
|
168
|
-
"extends": "__CustomerGatewayState",
|
169
|
-
"success_value": "deleted"
|
170
|
-
},
|
171
|
-
"__SpotInstanceRequestState": {
|
172
|
-
"operation": "DescribeSpotInstanceRequests",
|
173
|
-
"acceptor.path": "SpotInstanceRequests[].Status.Code"
|
174
|
-
},
|
175
|
-
"SpotInstanceRequestFulfilled": {
|
176
|
-
"extends": "__SpotInstanceRequestState",
|
177
|
-
"success_value": "fulfilled",
|
178
|
-
"failure_value": [
|
179
|
-
"schedule-expired",
|
180
|
-
"canceled-before-fulfillment",
|
181
|
-
"bad-parameters",
|
182
|
-
"system-error"
|
417
|
+
"delay": 15,
|
418
|
+
"operation": "DescribeVpnConnections",
|
419
|
+
"maxAttempts": 40,
|
420
|
+
"acceptors": [
|
421
|
+
{
|
422
|
+
"expected": "deleted",
|
423
|
+
"matcher": "pathAll",
|
424
|
+
"state": "success",
|
425
|
+
"argument": "VpnConnections[].State"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"expected": "pending",
|
429
|
+
"matcher": "pathAny",
|
430
|
+
"state": "failure",
|
431
|
+
"argument": "VpnConnections[].State"
|
432
|
+
}
|
183
433
|
]
|
184
434
|
}
|
185
435
|
}
|