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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/apis/CloudFormation.resources.json +55 -20
  3. data/apis/CloudFront.waiters.json +35 -17
  4. data/apis/DynamoDB.waiters.json +27 -17
  5. data/apis/EC2.api.json +5 -0
  6. data/apis/EC2.resources.json +449 -319
  7. data/apis/EC2.waiters.json +389 -139
  8. data/apis/{EMR.waiters2.json → EMR.waiters.json} +0 -0
  9. data/apis/ElasticTranscoder.api.json +34 -3
  10. data/apis/ElasticTranscoder.waiters.json +22 -8
  11. data/apis/Glacier.resources.json +215 -117
  12. data/apis/Glacier.waiters.json +31 -15
  13. data/apis/IAM.resources.json +380 -169
  14. data/apis/{Kinesis.waiters2.json → Kinesis.waiters.json} +0 -0
  15. data/apis/OpsWorks.resources.json +51 -17
  16. data/apis/RDS.waiters.json +87 -26
  17. data/apis/Redshift.waiters.json +54 -29
  18. data/apis/S3.resources.json +404 -143
  19. data/apis/S3.waiters.json +47 -16
  20. data/apis/SES.waiters.json +11 -7
  21. data/apis/SNS.resources.json +67 -33
  22. data/apis/SQS.resources.json +57 -30
  23. data/lib/aws-sdk-core.rb +1 -0
  24. data/lib/aws-sdk-core/api/documenter.rb +4 -3
  25. data/lib/aws-sdk-core/api/service_customizations.rb +0 -6
  26. data/lib/aws-sdk-core/client_waiters.rb +65 -50
  27. data/lib/aws-sdk-core/emr.rb +1 -0
  28. data/lib/aws-sdk-core/errors.rb +4 -0
  29. data/lib/aws-sdk-core/instance_profile_credentials.rb +1 -0
  30. data/lib/aws-sdk-core/kinesis.rb +1 -0
  31. data/lib/aws-sdk-core/paging/pager.rb +5 -1
  32. data/lib/aws-sdk-core/refreshing_credentials.rb +2 -0
  33. data/lib/aws-sdk-core/version.rb +1 -1
  34. data/lib/aws-sdk-core/waiters/errors.rb +50 -12
  35. data/lib/aws-sdk-core/waiters/poller.rb +105 -0
  36. data/lib/aws-sdk-core/waiters/provider.rb +11 -30
  37. data/lib/aws-sdk-core/waiters/waiter.rb +42 -102
  38. metadata +5 -12
  39. data/apis/CloudFront.waiters2.json +0 -47
  40. data/apis/DynamoDB.waiters2.json +0 -35
  41. data/apis/EC2.waiters2.json +0 -341
  42. data/apis/ElasticTranscoder.waiters2.json +0 -30
  43. data/apis/RDS.waiters2.json +0 -97
  44. data/apis/Redshift.waiters2.json +0 -97
  45. data/apis/S3.waiters2.json +0 -63
  46. data/apis/SES.waiters2.json +0 -18
@@ -1,185 +1,435 @@
1
1
  {
2
+ "version": 2,
2
3
  "waiters": {
3
- "__default__": {
4
- "interval": 15,
5
- "max_attempts": 40,
6
- "acceptor_type": "output"
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
- "__InstanceState": {
9
- "operation": "DescribeInstances",
10
- "acceptor_path": "Reservations[].Instances[].State.Name"
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
- "__InstanceStatus": {
13
- "operation": "DescribeInstanceStatus",
14
- "success_value": "ok"
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
- "SystemStatusOk": {
17
- "extends": "__InstanceStatus",
18
- "acceptor_path": "InstanceStatuses[].SystemStatus.Status"
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
- "InstanceStatusOk": {
21
- "extends": "__InstanceStatus",
22
- "acceptor_path": "InstanceStatuses[].InstanceStatus.Status"
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
- "acceptor_path": "Images[].State",
27
- "success_value": "available",
28
- "failure_value": [
29
- "failed"
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
- "extends": "__InstanceState",
34
- "success_value": "running",
35
- "failure_value": [
36
- "shutting-down",
37
- "terminated",
38
- "stopping"
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
- "extends": "__InstanceState",
43
- "success_value": "stopped",
44
- "failure_value": [
45
- "pending",
46
- "terminated"
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
- "extends": "__InstanceState",
51
- "success_value": "terminated",
52
- "failure_value": [
53
- "pending",
54
- "stopping"
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
- "success_path": "length(PasswordData) > `0`",
60
- "success_value": true
61
- },
62
- "__ExportTaskState": {
63
- "operation": "DescribeExportTasks",
64
- "acceptor_path": "ExportTasks[].State"
65
- },
66
- "ExportTaskCompleted": {
67
- "extends": "__ExportTaskState",
68
- "success_value": "completed"
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
- "success_path": "Snapshots[].State",
77
- "success_value": "completed"
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
- "success_path": "Subnets[].State",
82
- "success_value": "available"
304
+ "maxAttempts": 40,
305
+ "acceptors": [
306
+ {
307
+ "expected": "available",
308
+ "matcher": "pathAll",
309
+ "state": "success",
310
+ "argument": "Subnets[].State"
311
+ }
312
+ ]
83
313
  },
84
- "__VolumeStatus": {
85
- "operation": "DescribeVolumes",
86
- "acceptor_path": "Volumes[].State"
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
- "extends": "__VolumeStatus",
90
- "success_value": "available",
91
- "failure_value": [
92
- "deleted"
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
- "VolumeInUse": {
96
- "extends": "__VolumeStatus",
97
- "success_value": "in-use",
98
- "failure_value": [
99
- "deleted"
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
- "VolumeDeleted": {
103
- "extends": "__VolumeStatus",
104
- "success_type": "error",
105
- "success_value": "InvalidVolume.NotFound"
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
- "success_path": "Vpcs[].State",
110
- "success_value": "available"
111
- },
112
- "__VpnConnectionState": {
113
- "operation": "DescribeVpnConnections",
114
- "acceptor_path": "VpnConnections[].State"
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
- "extends": "__VpnConnectionState",
118
- "success_value": "available",
119
- "failure_value": [
120
- "deleting",
121
- "deleted"
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
- "extends": "__VpnConnectionState",
126
- "success_value": "deleted",
127
- "failure_value": [
128
- "pending"
129
- ]
130
- },
131
- "BundleTaskComplete": {
132
- "operation": "DescribeBundleTasks",
133
- "acceptor_path": "BundleTasks[].State",
134
- "success_value": "complete",
135
- "failure_value": [
136
- "failed"
137
- ]
138
- },
139
- "__ConversionTaskState": {
140
- "operation": "DescribeConversionTasks",
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
  }