aws-sdk-core 2.3.11 → 2.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/ec2/2015-10-01/paginators-1.json +6 -0
- data/apis/iot/2015-05-28/api-2.json +97 -9
- data/apis/machinelearning/2014-12-12/api-2.json +203 -1
- data/apis/monitoring/2010-08-01/resources-1.json +330 -318
- data/apis/monitoring/2010-08-01/waiters-2.json +18 -0
- data/apis/streams.dynamodb/2012-08-10/api-2.json +28 -67
- data/apis/streams.dynamodb/2012-08-10/examples-1.json +5 -0
- data/lib/aws-sdk-core/cloudwatch.rb +1 -0
- data/lib/aws-sdk-core/dynamodbstreams.rb +1 -0
- data/lib/aws-sdk-core/param_validator.rb +14 -8
- data/lib/aws-sdk-core/version.rb +1 -1
- metadata +4 -2
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"version": 2,
|
3
|
+
"waiters": {
|
4
|
+
"AlarmExists": {
|
5
|
+
"delay": 5,
|
6
|
+
"maxAttempts": 40,
|
7
|
+
"operation": "DescribeAlarms",
|
8
|
+
"acceptors": [
|
9
|
+
{
|
10
|
+
"matcher": "path",
|
11
|
+
"expected": true,
|
12
|
+
"argument": "length(MetricAlarms[]) > `0`",
|
13
|
+
"state": "success"
|
14
|
+
}
|
15
|
+
]
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -4,11 +4,11 @@
|
|
4
4
|
"apiVersion":"2012-08-10",
|
5
5
|
"endpointPrefix":"streams.dynamodb",
|
6
6
|
"jsonVersion":"1.0",
|
7
|
+
"protocol":"json",
|
7
8
|
"serviceFullName":"Amazon DynamoDB Streams",
|
8
9
|
"signatureVersion":"v4",
|
9
10
|
"signingName":"dynamodb",
|
10
|
-
"targetPrefix":"DynamoDBStreams_20120810"
|
11
|
-
"protocol":"json"
|
11
|
+
"targetPrefix":"DynamoDBStreams_20120810"
|
12
12
|
},
|
13
13
|
"operations":{
|
14
14
|
"DescribeStream":{
|
@@ -20,15 +20,8 @@
|
|
20
20
|
"input":{"shape":"DescribeStreamInput"},
|
21
21
|
"output":{"shape":"DescribeStreamOutput"},
|
22
22
|
"errors":[
|
23
|
-
{
|
24
|
-
|
25
|
-
"exception":true
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"shape":"InternalServerError",
|
29
|
-
"exception":true,
|
30
|
-
"fault":true
|
31
|
-
}
|
23
|
+
{"shape":"ResourceNotFoundException"},
|
24
|
+
{"shape":"InternalServerError"}
|
32
25
|
]
|
33
26
|
},
|
34
27
|
"GetRecords":{
|
@@ -40,27 +33,11 @@
|
|
40
33
|
"input":{"shape":"GetRecordsInput"},
|
41
34
|
"output":{"shape":"GetRecordsOutput"},
|
42
35
|
"errors":[
|
43
|
-
{
|
44
|
-
|
45
|
-
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"shape":"LimitExceededException",
|
49
|
-
"exception":true
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"shape":"InternalServerError",
|
53
|
-
"exception":true,
|
54
|
-
"fault":true
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"shape":"ExpiredIteratorException",
|
58
|
-
"exception":true
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"shape":"TrimmedDataAccessException",
|
62
|
-
"exception":true
|
63
|
-
}
|
36
|
+
{"shape":"ResourceNotFoundException"},
|
37
|
+
{"shape":"LimitExceededException"},
|
38
|
+
{"shape":"InternalServerError"},
|
39
|
+
{"shape":"ExpiredIteratorException"},
|
40
|
+
{"shape":"TrimmedDataAccessException"}
|
64
41
|
]
|
65
42
|
},
|
66
43
|
"GetShardIterator":{
|
@@ -72,19 +49,9 @@
|
|
72
49
|
"input":{"shape":"GetShardIteratorInput"},
|
73
50
|
"output":{"shape":"GetShardIteratorOutput"},
|
74
51
|
"errors":[
|
75
|
-
{
|
76
|
-
|
77
|
-
|
78
|
-
},
|
79
|
-
{
|
80
|
-
"shape":"InternalServerError",
|
81
|
-
"exception":true,
|
82
|
-
"fault":true
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"shape":"TrimmedDataAccessException",
|
86
|
-
"exception":true
|
87
|
-
}
|
52
|
+
{"shape":"ResourceNotFoundException"},
|
53
|
+
{"shape":"InternalServerError"},
|
54
|
+
{"shape":"TrimmedDataAccessException"}
|
88
55
|
]
|
89
56
|
},
|
90
57
|
"ListStreams":{
|
@@ -96,15 +63,8 @@
|
|
96
63
|
"input":{"shape":"ListStreamsInput"},
|
97
64
|
"output":{"shape":"ListStreamsOutput"},
|
98
65
|
"errors":[
|
99
|
-
{
|
100
|
-
|
101
|
-
"exception":true
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"shape":"InternalServerError",
|
105
|
-
"exception":true,
|
106
|
-
"fault":true
|
107
|
-
}
|
66
|
+
{"shape":"ResourceNotFoundException"},
|
67
|
+
{"shape":"InternalServerError"}
|
108
68
|
]
|
109
69
|
}
|
110
70
|
},
|
@@ -209,13 +169,13 @@
|
|
209
169
|
"KeySchema":{
|
210
170
|
"type":"list",
|
211
171
|
"member":{"shape":"KeySchemaElement"},
|
212
|
-
"
|
213
|
-
"
|
172
|
+
"max":2,
|
173
|
+
"min":1
|
214
174
|
},
|
215
175
|
"KeySchemaAttributeName":{
|
216
176
|
"type":"string",
|
217
|
-
"
|
218
|
-
"
|
177
|
+
"max":255,
|
178
|
+
"min":1
|
219
179
|
},
|
220
180
|
"KeySchemaElement":{
|
221
181
|
"type":"structure",
|
@@ -312,8 +272,8 @@
|
|
312
272
|
},
|
313
273
|
"SequenceNumber":{
|
314
274
|
"type":"string",
|
315
|
-
"
|
316
|
-
"
|
275
|
+
"max":40,
|
276
|
+
"min":21
|
317
277
|
},
|
318
278
|
"SequenceNumberRange":{
|
319
279
|
"type":"structure",
|
@@ -336,13 +296,13 @@
|
|
336
296
|
},
|
337
297
|
"ShardId":{
|
338
298
|
"type":"string",
|
339
|
-
"
|
340
|
-
"
|
299
|
+
"max":65,
|
300
|
+
"min":28
|
341
301
|
},
|
342
302
|
"ShardIterator":{
|
343
303
|
"type":"string",
|
344
|
-
"
|
345
|
-
"
|
304
|
+
"max":2048,
|
305
|
+
"min":1
|
346
306
|
},
|
347
307
|
"ShardIteratorType":{
|
348
308
|
"type":"string",
|
@@ -363,8 +323,8 @@
|
|
363
323
|
},
|
364
324
|
"StreamArn":{
|
365
325
|
"type":"string",
|
366
|
-
"
|
367
|
-
"
|
326
|
+
"max":1024,
|
327
|
+
"min":37
|
368
328
|
},
|
369
329
|
"StreamDescription":{
|
370
330
|
"type":"structure",
|
@@ -387,6 +347,7 @@
|
|
387
347
|
"StreamRecord":{
|
388
348
|
"type":"structure",
|
389
349
|
"members":{
|
350
|
+
"ApproximateCreationDateTime":{"shape":"Date"},
|
390
351
|
"Keys":{"shape":"AttributeMap"},
|
391
352
|
"NewImage":{"shape":"AttributeMap"},
|
392
353
|
"OldImage":{"shape":"AttributeMap"},
|
@@ -421,8 +382,8 @@
|
|
421
382
|
},
|
422
383
|
"TableName":{
|
423
384
|
"type":"string",
|
424
|
-
"min":3,
|
425
385
|
"max":255,
|
386
|
+
"min":3,
|
426
387
|
"pattern":"[a-zA-Z0-9_.-]+"
|
427
388
|
},
|
428
389
|
"TrimmedDataAccessException":{
|
@@ -4,4 +4,5 @@ Aws.add_service(:CloudWatch, {
|
|
4
4
|
examples: "#{Aws::API_DIR}/monitoring/2010-08-01/examples-1.json",
|
5
5
|
paginators: "#{Aws::API_DIR}/monitoring/2010-08-01/paginators-1.json",
|
6
6
|
resources: "#{Aws::API_DIR}/monitoring/2010-08-01/resources-1.json",
|
7
|
+
waiters: "#{Aws::API_DIR}/monitoring/2010-08-01/waiters-2.json",
|
7
8
|
})
|
@@ -4,6 +4,8 @@ module Aws
|
|
4
4
|
|
5
5
|
include Seahorse::Model::Shapes
|
6
6
|
|
7
|
+
EXPECTED_GOT = "expected %s to be %s, got value %s (class: %s) instead."
|
8
|
+
|
7
9
|
# @param [Seahorse::Model::Shapes::ShapeRef] rules
|
8
10
|
# @param [Hash] params
|
9
11
|
# @return [void]
|
@@ -60,7 +62,7 @@ module Aws
|
|
60
62
|
def list(ref, values, errors, context)
|
61
63
|
# ensure the value is an array
|
62
64
|
unless values.is_a?(Array)
|
63
|
-
errors <<
|
65
|
+
errors << expected_got(context, "an Array", values)
|
64
66
|
return
|
65
67
|
end
|
66
68
|
|
@@ -91,27 +93,27 @@ module Aws
|
|
91
93
|
when MapShape then map(ref, value, errors, context)
|
92
94
|
when StringShape
|
93
95
|
unless value.is_a?(String)
|
94
|
-
errors <<
|
96
|
+
errors << expected_got(context, "a String", value)
|
95
97
|
end
|
96
98
|
when IntegerShape
|
97
99
|
unless value.is_a?(Integer)
|
98
|
-
errors <<
|
100
|
+
errors << expected_got(context, "an Integer", value)
|
99
101
|
end
|
100
102
|
when FloatShape
|
101
103
|
unless value.is_a?(Float)
|
102
|
-
errors <<
|
104
|
+
errors << expected_got(context, "a Float", value)
|
103
105
|
end
|
104
106
|
when TimestampShape
|
105
107
|
unless value.is_a?(Time)
|
106
|
-
errors <<
|
108
|
+
errors << expected_got(context, "a Time object", value)
|
107
109
|
end
|
108
110
|
when BooleanShape
|
109
111
|
unless [true, false].include?(value)
|
110
|
-
errors <<
|
112
|
+
errors << expected_got(context, "true or false", value)
|
111
113
|
end
|
112
114
|
when BlobShape
|
113
115
|
unless io_like?(value) or value.is_a?(String)
|
114
|
-
errors <<
|
116
|
+
errors << expected_got(context, "a String or IO object", value)
|
115
117
|
end
|
116
118
|
else
|
117
119
|
raise "unhandled shape type: #{ref.shape.class.name}"
|
@@ -123,7 +125,7 @@ module Aws
|
|
123
125
|
when Hash then true
|
124
126
|
when ref[:struct_class] then true
|
125
127
|
else
|
126
|
-
errors <<
|
128
|
+
errors << expected_got(context, "a hash", value)
|
127
129
|
false
|
128
130
|
end
|
129
131
|
end
|
@@ -144,5 +146,9 @@ module Aws
|
|
144
146
|
end
|
145
147
|
end
|
146
148
|
|
149
|
+
def expected_got(context, expected, got)
|
150
|
+
EXPECTED_GOT % [context, expected, got.inspect, got.class.name]
|
151
|
+
end
|
152
|
+
|
147
153
|
end
|
148
154
|
end
|
data/lib/aws-sdk-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.12
|
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: 2016-06-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -181,6 +181,7 @@ files:
|
|
181
181
|
- apis/monitoring/2010-08-01/examples-1.json
|
182
182
|
- apis/monitoring/2010-08-01/paginators-1.json
|
183
183
|
- apis/monitoring/2010-08-01/resources-1.json
|
184
|
+
- apis/monitoring/2010-08-01/waiters-2.json
|
184
185
|
- apis/opsworks/2013-02-18/api-2.json
|
185
186
|
- apis/opsworks/2013-02-18/examples-1.json
|
186
187
|
- apis/opsworks/2013-02-18/paginators-1.json
|
@@ -221,6 +222,7 @@ files:
|
|
221
222
|
- apis/storagegateway/2013-06-30/examples-1.json
|
222
223
|
- apis/storagegateway/2013-06-30/paginators-1.json
|
223
224
|
- apis/streams.dynamodb/2012-08-10/api-2.json
|
225
|
+
- apis/streams.dynamodb/2012-08-10/examples-1.json
|
224
226
|
- apis/sts/2011-06-15/api-2.json
|
225
227
|
- apis/sts/2011-06-15/examples-1.json
|
226
228
|
- apis/support/2013-04-15/api-2.json
|