aws-sdk-core 2.2.1 → 2.2.2
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.
- checksums.yaml +4 -4
- data/apis/config/2014-11-12/api-2.json +86 -233
- data/apis/config/2014-11-12/examples-1.json +5 -0
- data/apis/ec2/2015-10-01/api-2.json +569 -113
- data/apis/ec2/2015-10-01/examples-1.json +5 -0
- data/apis/ecs/2014-11-13/api-2.json +112 -443
- data/apis/ecs/2014-11-13/examples-1.json +5 -0
- data/apis/elasticbeanstalk/2010-12-01/api-2.json +126 -284
- data/apis/elasticbeanstalk/2010-12-01/examples-1.json +5 -0
- data/apis/sqs/2012-11-05/api-2.json +32 -242
- data/apis/sqs/2012-11-05/examples-1.json +46 -0
- data/lib/aws-sdk-core.rb +12 -0
- data/lib/aws-sdk-core/sqs.rb +1 -0
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/aws-sdk-core/waiters/poller.rb +18 -7
- metadata +8 -3
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"metadata":{
|
|
4
4
|
"apiVersion":"2012-11-05",
|
|
5
5
|
"endpointPrefix":"sqs",
|
|
6
|
+
"protocol":"query",
|
|
6
7
|
"serviceAbbreviation":"Amazon SQS",
|
|
7
8
|
"serviceFullName":"Amazon Simple Queue Service",
|
|
8
9
|
"signatureVersion":"v4",
|
|
9
|
-
"xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/"
|
|
10
|
-
"protocol":"query"
|
|
10
|
+
"xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/"
|
|
11
11
|
},
|
|
12
12
|
"operations":{
|
|
13
13
|
"AddPermission":{
|
|
@@ -18,15 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"input":{"shape":"AddPermissionRequest"},
|
|
20
20
|
"errors":[
|
|
21
|
-
{
|
|
22
|
-
"shape":"OverLimit",
|
|
23
|
-
"error":{
|
|
24
|
-
"code":"OverLimit",
|
|
25
|
-
"httpStatusCode":403,
|
|
26
|
-
"senderFault":true
|
|
27
|
-
},
|
|
28
|
-
"exception":true
|
|
29
|
-
}
|
|
21
|
+
{"shape":"OverLimit"}
|
|
30
22
|
]
|
|
31
23
|
},
|
|
32
24
|
"ChangeMessageVisibility":{
|
|
@@ -37,19 +29,8 @@
|
|
|
37
29
|
},
|
|
38
30
|
"input":{"shape":"ChangeMessageVisibilityRequest"},
|
|
39
31
|
"errors":[
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
"error":{
|
|
43
|
-
"code":"AWS.SimpleQueueService.MessageNotInflight",
|
|
44
|
-
"httpStatusCode":400,
|
|
45
|
-
"senderFault":true
|
|
46
|
-
},
|
|
47
|
-
"exception":true
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"shape":"ReceiptHandleIsInvalid",
|
|
51
|
-
"exception":true
|
|
52
|
-
}
|
|
32
|
+
{"shape":"MessageNotInflight"},
|
|
33
|
+
{"shape":"ReceiptHandleIsInvalid"}
|
|
53
34
|
]
|
|
54
35
|
},
|
|
55
36
|
"ChangeMessageVisibilityBatch":{
|
|
@@ -64,42 +45,10 @@
|
|
|
64
45
|
"resultWrapper":"ChangeMessageVisibilityBatchResult"
|
|
65
46
|
},
|
|
66
47
|
"errors":[
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"httpStatusCode":400,
|
|
72
|
-
"senderFault":true
|
|
73
|
-
},
|
|
74
|
-
"exception":true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"shape":"EmptyBatchRequest",
|
|
78
|
-
"error":{
|
|
79
|
-
"code":"AWS.SimpleQueueService.EmptyBatchRequest",
|
|
80
|
-
"httpStatusCode":400,
|
|
81
|
-
"senderFault":true
|
|
82
|
-
},
|
|
83
|
-
"exception":true
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"shape":"BatchEntryIdsNotDistinct",
|
|
87
|
-
"error":{
|
|
88
|
-
"code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct",
|
|
89
|
-
"httpStatusCode":400,
|
|
90
|
-
"senderFault":true
|
|
91
|
-
},
|
|
92
|
-
"exception":true
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"shape":"InvalidBatchEntryId",
|
|
96
|
-
"error":{
|
|
97
|
-
"code":"AWS.SimpleQueueService.InvalidBatchEntryId",
|
|
98
|
-
"httpStatusCode":400,
|
|
99
|
-
"senderFault":true
|
|
100
|
-
},
|
|
101
|
-
"exception":true
|
|
102
|
-
}
|
|
48
|
+
{"shape":"TooManyEntriesInBatchRequest"},
|
|
49
|
+
{"shape":"EmptyBatchRequest"},
|
|
50
|
+
{"shape":"BatchEntryIdsNotDistinct"},
|
|
51
|
+
{"shape":"InvalidBatchEntryId"}
|
|
103
52
|
]
|
|
104
53
|
},
|
|
105
54
|
"CreateQueue":{
|
|
@@ -114,24 +63,8 @@
|
|
|
114
63
|
"resultWrapper":"CreateQueueResult"
|
|
115
64
|
},
|
|
116
65
|
"errors":[
|
|
117
|
-
{
|
|
118
|
-
|
|
119
|
-
"error":{
|
|
120
|
-
"code":"AWS.SimpleQueueService.QueueDeletedRecently",
|
|
121
|
-
"httpStatusCode":400,
|
|
122
|
-
"senderFault":true
|
|
123
|
-
},
|
|
124
|
-
"exception":true
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"shape":"QueueNameExists",
|
|
128
|
-
"error":{
|
|
129
|
-
"code":"QueueAlreadyExists",
|
|
130
|
-
"httpStatusCode":400,
|
|
131
|
-
"senderFault":true
|
|
132
|
-
},
|
|
133
|
-
"exception":true
|
|
134
|
-
}
|
|
66
|
+
{"shape":"QueueDeletedRecently"},
|
|
67
|
+
{"shape":"QueueNameExists"}
|
|
135
68
|
]
|
|
136
69
|
},
|
|
137
70
|
"DeleteMessage":{
|
|
@@ -142,14 +75,8 @@
|
|
|
142
75
|
},
|
|
143
76
|
"input":{"shape":"DeleteMessageRequest"},
|
|
144
77
|
"errors":[
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
"exception":true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"shape":"ReceiptHandleIsInvalid",
|
|
151
|
-
"exception":true
|
|
152
|
-
}
|
|
78
|
+
{"shape":"InvalidIdFormat"},
|
|
79
|
+
{"shape":"ReceiptHandleIsInvalid"}
|
|
153
80
|
]
|
|
154
81
|
},
|
|
155
82
|
"DeleteMessageBatch":{
|
|
@@ -164,42 +91,10 @@
|
|
|
164
91
|
"resultWrapper":"DeleteMessageBatchResult"
|
|
165
92
|
},
|
|
166
93
|
"errors":[
|
|
167
|
-
{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"httpStatusCode":400,
|
|
172
|
-
"senderFault":true
|
|
173
|
-
},
|
|
174
|
-
"exception":true
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"shape":"EmptyBatchRequest",
|
|
178
|
-
"error":{
|
|
179
|
-
"code":"AWS.SimpleQueueService.EmptyBatchRequest",
|
|
180
|
-
"httpStatusCode":400,
|
|
181
|
-
"senderFault":true
|
|
182
|
-
},
|
|
183
|
-
"exception":true
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"shape":"BatchEntryIdsNotDistinct",
|
|
187
|
-
"error":{
|
|
188
|
-
"code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct",
|
|
189
|
-
"httpStatusCode":400,
|
|
190
|
-
"senderFault":true
|
|
191
|
-
},
|
|
192
|
-
"exception":true
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"shape":"InvalidBatchEntryId",
|
|
196
|
-
"error":{
|
|
197
|
-
"code":"AWS.SimpleQueueService.InvalidBatchEntryId",
|
|
198
|
-
"httpStatusCode":400,
|
|
199
|
-
"senderFault":true
|
|
200
|
-
},
|
|
201
|
-
"exception":true
|
|
202
|
-
}
|
|
94
|
+
{"shape":"TooManyEntriesInBatchRequest"},
|
|
95
|
+
{"shape":"EmptyBatchRequest"},
|
|
96
|
+
{"shape":"BatchEntryIdsNotDistinct"},
|
|
97
|
+
{"shape":"InvalidBatchEntryId"}
|
|
203
98
|
]
|
|
204
99
|
},
|
|
205
100
|
"DeleteQueue":{
|
|
@@ -222,10 +117,7 @@
|
|
|
222
117
|
"resultWrapper":"GetQueueAttributesResult"
|
|
223
118
|
},
|
|
224
119
|
"errors":[
|
|
225
|
-
{
|
|
226
|
-
"shape":"InvalidAttributeName",
|
|
227
|
-
"exception":true
|
|
228
|
-
}
|
|
120
|
+
{"shape":"InvalidAttributeName"}
|
|
229
121
|
]
|
|
230
122
|
},
|
|
231
123
|
"GetQueueUrl":{
|
|
@@ -240,15 +132,7 @@
|
|
|
240
132
|
"resultWrapper":"GetQueueUrlResult"
|
|
241
133
|
},
|
|
242
134
|
"errors":[
|
|
243
|
-
{
|
|
244
|
-
"shape":"QueueDoesNotExist",
|
|
245
|
-
"error":{
|
|
246
|
-
"code":"AWS.SimpleQueueService.NonExistentQueue",
|
|
247
|
-
"httpStatusCode":400,
|
|
248
|
-
"senderFault":true
|
|
249
|
-
},
|
|
250
|
-
"exception":true
|
|
251
|
-
}
|
|
135
|
+
{"shape":"QueueDoesNotExist"}
|
|
252
136
|
]
|
|
253
137
|
},
|
|
254
138
|
"ListDeadLetterSourceQueues":{
|
|
@@ -263,15 +147,7 @@
|
|
|
263
147
|
"resultWrapper":"ListDeadLetterSourceQueuesResult"
|
|
264
148
|
},
|
|
265
149
|
"errors":[
|
|
266
|
-
{
|
|
267
|
-
"shape":"QueueDoesNotExist",
|
|
268
|
-
"error":{
|
|
269
|
-
"code":"AWS.SimpleQueueService.NonExistentQueue",
|
|
270
|
-
"httpStatusCode":400,
|
|
271
|
-
"senderFault":true
|
|
272
|
-
},
|
|
273
|
-
"exception":true
|
|
274
|
-
}
|
|
150
|
+
{"shape":"QueueDoesNotExist"}
|
|
275
151
|
]
|
|
276
152
|
},
|
|
277
153
|
"ListQueues":{
|
|
@@ -294,24 +170,8 @@
|
|
|
294
170
|
},
|
|
295
171
|
"input":{"shape":"PurgeQueueRequest"},
|
|
296
172
|
"errors":[
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
"error":{
|
|
300
|
-
"code":"AWS.SimpleQueueService.NonExistentQueue",
|
|
301
|
-
"httpStatusCode":400,
|
|
302
|
-
"senderFault":true
|
|
303
|
-
},
|
|
304
|
-
"exception":true
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"shape":"PurgeQueueInProgress",
|
|
308
|
-
"error":{
|
|
309
|
-
"code":"AWS.SimpleQueueService.PurgeQueueInProgress",
|
|
310
|
-
"httpStatusCode":403,
|
|
311
|
-
"senderFault":true
|
|
312
|
-
},
|
|
313
|
-
"exception":true
|
|
314
|
-
}
|
|
173
|
+
{"shape":"QueueDoesNotExist"},
|
|
174
|
+
{"shape":"PurgeQueueInProgress"}
|
|
315
175
|
]
|
|
316
176
|
},
|
|
317
177
|
"ReceiveMessage":{
|
|
@@ -326,15 +186,7 @@
|
|
|
326
186
|
"resultWrapper":"ReceiveMessageResult"
|
|
327
187
|
},
|
|
328
188
|
"errors":[
|
|
329
|
-
{
|
|
330
|
-
"shape":"OverLimit",
|
|
331
|
-
"error":{
|
|
332
|
-
"code":"OverLimit",
|
|
333
|
-
"httpStatusCode":403,
|
|
334
|
-
"senderFault":true
|
|
335
|
-
},
|
|
336
|
-
"exception":true
|
|
337
|
-
}
|
|
189
|
+
{"shape":"OverLimit"}
|
|
338
190
|
]
|
|
339
191
|
},
|
|
340
192
|
"RemovePermission":{
|
|
@@ -357,19 +209,8 @@
|
|
|
357
209
|
"resultWrapper":"SendMessageResult"
|
|
358
210
|
},
|
|
359
211
|
"errors":[
|
|
360
|
-
{
|
|
361
|
-
|
|
362
|
-
"exception":true
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"shape":"UnsupportedOperation",
|
|
366
|
-
"error":{
|
|
367
|
-
"code":"AWS.SimpleQueueService.UnsupportedOperation",
|
|
368
|
-
"httpStatusCode":400,
|
|
369
|
-
"senderFault":true
|
|
370
|
-
},
|
|
371
|
-
"exception":true
|
|
372
|
-
}
|
|
212
|
+
{"shape":"InvalidMessageContents"},
|
|
213
|
+
{"shape":"UnsupportedOperation"}
|
|
373
214
|
]
|
|
374
215
|
},
|
|
375
216
|
"SendMessageBatch":{
|
|
@@ -384,60 +225,12 @@
|
|
|
384
225
|
"resultWrapper":"SendMessageBatchResult"
|
|
385
226
|
},
|
|
386
227
|
"errors":[
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
},
|
|
394
|
-
"exception":true
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"shape":"EmptyBatchRequest",
|
|
398
|
-
"error":{
|
|
399
|
-
"code":"AWS.SimpleQueueService.EmptyBatchRequest",
|
|
400
|
-
"httpStatusCode":400,
|
|
401
|
-
"senderFault":true
|
|
402
|
-
},
|
|
403
|
-
"exception":true
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"shape":"BatchEntryIdsNotDistinct",
|
|
407
|
-
"error":{
|
|
408
|
-
"code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct",
|
|
409
|
-
"httpStatusCode":400,
|
|
410
|
-
"senderFault":true
|
|
411
|
-
},
|
|
412
|
-
"exception":true
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"shape":"BatchRequestTooLong",
|
|
416
|
-
"error":{
|
|
417
|
-
"code":"AWS.SimpleQueueService.BatchRequestTooLong",
|
|
418
|
-
"httpStatusCode":400,
|
|
419
|
-
"senderFault":true
|
|
420
|
-
},
|
|
421
|
-
"exception":true
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
"shape":"InvalidBatchEntryId",
|
|
425
|
-
"error":{
|
|
426
|
-
"code":"AWS.SimpleQueueService.InvalidBatchEntryId",
|
|
427
|
-
"httpStatusCode":400,
|
|
428
|
-
"senderFault":true
|
|
429
|
-
},
|
|
430
|
-
"exception":true
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"shape":"UnsupportedOperation",
|
|
434
|
-
"error":{
|
|
435
|
-
"code":"AWS.SimpleQueueService.UnsupportedOperation",
|
|
436
|
-
"httpStatusCode":400,
|
|
437
|
-
"senderFault":true
|
|
438
|
-
},
|
|
439
|
-
"exception":true
|
|
440
|
-
}
|
|
228
|
+
{"shape":"TooManyEntriesInBatchRequest"},
|
|
229
|
+
{"shape":"EmptyBatchRequest"},
|
|
230
|
+
{"shape":"BatchEntryIdsNotDistinct"},
|
|
231
|
+
{"shape":"BatchRequestTooLong"},
|
|
232
|
+
{"shape":"InvalidBatchEntryId"},
|
|
233
|
+
{"shape":"UnsupportedOperation"}
|
|
441
234
|
]
|
|
442
235
|
},
|
|
443
236
|
"SetQueueAttributes":{
|
|
@@ -448,10 +241,7 @@
|
|
|
448
241
|
},
|
|
449
242
|
"input":{"shape":"SetQueueAttributesRequest"},
|
|
450
243
|
"errors":[
|
|
451
|
-
{
|
|
452
|
-
"shape":"InvalidAttributeName",
|
|
453
|
-
"exception":true
|
|
454
|
-
}
|
|
244
|
+
{"shape":"InvalidAttributeName"}
|
|
455
245
|
]
|
|
456
246
|
}
|
|
457
247
|
},
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"examples": {
|
|
4
|
+
"CreateQueue": [
|
|
5
|
+
{
|
|
6
|
+
"input": {
|
|
7
|
+
"Attributes": {
|
|
8
|
+
},
|
|
9
|
+
"QueueName": "MyQueue"
|
|
10
|
+
},
|
|
11
|
+
"output": {
|
|
12
|
+
"QueueUrl": ""
|
|
13
|
+
},
|
|
14
|
+
"comments": {
|
|
15
|
+
"input": {
|
|
16
|
+
},
|
|
17
|
+
"output": {
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "The following operation creates an SQS queue named MyQueue.",
|
|
21
|
+
"id": "create-an-sqs-queue-1445915686197",
|
|
22
|
+
"title": "Create an SQS queue"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"GetQueueUrl": [
|
|
26
|
+
{
|
|
27
|
+
"input": {
|
|
28
|
+
"QueueName": "MyQueue",
|
|
29
|
+
"QueueOwnerAWSAccountId": "12345678910"
|
|
30
|
+
},
|
|
31
|
+
"output": {
|
|
32
|
+
"QueueUrl": "https://queue.amazonaws.com/123456789101112/MyQueue"
|
|
33
|
+
},
|
|
34
|
+
"comments": {
|
|
35
|
+
"input": {
|
|
36
|
+
},
|
|
37
|
+
"output": {
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"description": "The following example retrieves the queue ARN.",
|
|
41
|
+
"id": "retrieve-queue-attributes-from-an-sqs-queue-1445915930574",
|
|
42
|
+
"title": "Retrieve queue attributes from an SQS queue"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
data/lib/aws-sdk-core.rb
CHANGED
|
@@ -390,4 +390,16 @@ module Aws
|
|
|
390
390
|
end
|
|
391
391
|
end
|
|
392
392
|
|
|
393
|
+
# add shared client examples
|
|
394
|
+
service_added do |name, svc_module, options|
|
|
395
|
+
if ENV['DOCSTRINGS'] && options[:examples]
|
|
396
|
+
json = Json.load_file(options[:examples])
|
|
397
|
+
json['examples'].each_pair do |operation_name, examples|
|
|
398
|
+
operation_name = Seahorse::Util.underscore(operation_name)
|
|
399
|
+
operation = svc_module::Client.api.operation(operation_name)
|
|
400
|
+
operation['examples'] = examples
|
|
401
|
+
end
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
393
405
|
end
|
data/lib/aws-sdk-core/sqs.rb
CHANGED