aws-sdk-core 2.1.2 → 2.1.3
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/autoscaling/2011-01-01/api-2.json +41 -4
- data/apis/ec2/2015-04-15/api-2.json +34 -3
- data/apis/ec2/2015-04-15/resources-1.json +66 -17
- data/lib/aws-sdk-core/api/docs/builder.rb +1 -1
- data/lib/aws-sdk-core/client_stubs.rb +4 -0
- data/lib/aws-sdk-core/dynamodb.rb +14 -0
- data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +4 -0
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +2 -2
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +2 -2
- 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: 9b4fcf16d5c96ec8446a07c9d31dcdb72268bd9a
|
4
|
+
data.tar.gz: 34336747f8e123f801e8e3d42012228e83578cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30654c790e5a7f2143e25ad3c4b0ec310f1430b181785192a34845189ec4d08165687a1a3783615cc75152effb86a9b06bd40ce04ed38f289291a6fe6e5d4893
|
7
|
+
data.tar.gz: b679e8e0a061d7f1dc5bfc61bd550dc399164fb992ac70224e89a9dde2f21424759f040183f3bf88e86c3964c0f9c8ada7618c01d691e76a42c27c3144a4d7bb
|
@@ -1746,6 +1746,7 @@
|
|
1746
1746
|
"members":{
|
1747
1747
|
"AutoScalingGroupName":{"shape":"ResourceName"},
|
1748
1748
|
"PolicyNames":{"shape":"PolicyNames"},
|
1749
|
+
"PolicyTypes":{"shape":"PolicyTypes"},
|
1749
1750
|
"NextToken":{"shape":"XmlString"},
|
1750
1751
|
"MaxRecords":{"shape":"MaxRecords"}
|
1751
1752
|
}
|
@@ -1874,13 +1875,16 @@
|
|
1874
1875
|
"ShouldDecrementDesiredCapacity":{"shape":"ShouldDecrementDesiredCapacity"}
|
1875
1876
|
}
|
1876
1877
|
},
|
1878
|
+
"EstimatedInstanceWarmup":{"type":"integer"},
|
1877
1879
|
"ExecutePolicyType":{
|
1878
1880
|
"type":"structure",
|
1879
1881
|
"required":["PolicyName"],
|
1880
1882
|
"members":{
|
1881
1883
|
"AutoScalingGroupName":{"shape":"ResourceName"},
|
1882
1884
|
"PolicyName":{"shape":"ResourceName"},
|
1883
|
-
"HonorCooldown":{"shape":"HonorCooldown"}
|
1885
|
+
"HonorCooldown":{"shape":"HonorCooldown"},
|
1886
|
+
"MetricValue":{"shape":"MetricScale"},
|
1887
|
+
"BreachThreshold":{"shape":"MetricScale"}
|
1884
1888
|
}
|
1885
1889
|
},
|
1886
1890
|
"ExitStandbyAnswer":{
|
@@ -2114,11 +2118,16 @@
|
|
2114
2118
|
"type":"list",
|
2115
2119
|
"member":{"shape":"MetricGranularityType"}
|
2116
2120
|
},
|
2121
|
+
"MetricScale":{"type":"double"},
|
2117
2122
|
"Metrics":{
|
2118
2123
|
"type":"list",
|
2119
2124
|
"member":{"shape":"XmlStringMaxLen255"}
|
2120
2125
|
},
|
2121
|
-
"
|
2126
|
+
"MinAdjustmentMagnitude":{"type":"integer"},
|
2127
|
+
"MinAdjustmentStep":{
|
2128
|
+
"type":"integer",
|
2129
|
+
"deprecated":true
|
2130
|
+
},
|
2122
2131
|
"MonitoringEnabled":{"type":"boolean"},
|
2123
2132
|
"NoDevice":{"type":"boolean"},
|
2124
2133
|
"NotificationConfiguration":{
|
@@ -2151,6 +2160,10 @@
|
|
2151
2160
|
"type":"list",
|
2152
2161
|
"member":{"shape":"ResourceName"}
|
2153
2162
|
},
|
2163
|
+
"PolicyTypes":{
|
2164
|
+
"type":"list",
|
2165
|
+
"member":{"shape":"XmlStringMaxLen64"}
|
2166
|
+
},
|
2154
2167
|
"ProcessNames":{
|
2155
2168
|
"type":"list",
|
2156
2169
|
"member":{"shape":"XmlStringMaxLen255"}
|
@@ -2219,10 +2232,15 @@
|
|
2219
2232
|
"members":{
|
2220
2233
|
"AutoScalingGroupName":{"shape":"ResourceName"},
|
2221
2234
|
"PolicyName":{"shape":"XmlStringMaxLen255"},
|
2235
|
+
"PolicyType":{"shape":"XmlStringMaxLen64"},
|
2222
2236
|
"AdjustmentType":{"shape":"XmlStringMaxLen255"},
|
2223
2237
|
"MinAdjustmentStep":{"shape":"MinAdjustmentStep"},
|
2238
|
+
"MinAdjustmentMagnitude":{"shape":"MinAdjustmentMagnitude"},
|
2224
2239
|
"ScalingAdjustment":{"shape":"PolicyIncrement"},
|
2225
|
-
"Cooldown":{"shape":"Cooldown"}
|
2240
|
+
"Cooldown":{"shape":"Cooldown"},
|
2241
|
+
"MetricAggregationType":{"shape":"XmlStringMaxLen32"},
|
2242
|
+
"StepAdjustments":{"shape":"StepAdjustments"},
|
2243
|
+
"EstimatedInstanceWarmup":{"shape":"EstimatedInstanceWarmup"}
|
2226
2244
|
}
|
2227
2245
|
},
|
2228
2246
|
"PutScheduledUpdateGroupActionType":{
|
@@ -2313,6 +2331,7 @@
|
|
2313
2331
|
"InProgress",
|
2314
2332
|
"WaitingForELBConnectionDraining",
|
2315
2333
|
"MidLifecycleAction",
|
2334
|
+
"WaitingForInstanceWarmup",
|
2316
2335
|
"Successful",
|
2317
2336
|
"Failed",
|
2318
2337
|
"Cancelled"
|
@@ -2328,10 +2347,15 @@
|
|
2328
2347
|
"AutoScalingGroupName":{"shape":"XmlStringMaxLen255"},
|
2329
2348
|
"PolicyName":{"shape":"XmlStringMaxLen255"},
|
2330
2349
|
"PolicyARN":{"shape":"ResourceName"},
|
2331
|
-
"
|
2350
|
+
"PolicyType":{"shape":"XmlStringMaxLen64"},
|
2332
2351
|
"AdjustmentType":{"shape":"XmlStringMaxLen255"},
|
2352
|
+
"MinAdjustmentStep":{"shape":"MinAdjustmentStep"},
|
2353
|
+
"MinAdjustmentMagnitude":{"shape":"MinAdjustmentMagnitude"},
|
2333
2354
|
"ScalingAdjustment":{"shape":"PolicyIncrement"},
|
2334
2355
|
"Cooldown":{"shape":"Cooldown"},
|
2356
|
+
"StepAdjustments":{"shape":"StepAdjustments"},
|
2357
|
+
"MetricAggregationType":{"shape":"XmlStringMaxLen32"},
|
2358
|
+
"EstimatedInstanceWarmup":{"shape":"EstimatedInstanceWarmup"},
|
2335
2359
|
"Alarms":{"shape":"Alarms"}
|
2336
2360
|
}
|
2337
2361
|
},
|
@@ -2408,6 +2432,19 @@
|
|
2408
2432
|
"min":1,
|
2409
2433
|
"max":255
|
2410
2434
|
},
|
2435
|
+
"StepAdjustment":{
|
2436
|
+
"type":"structure",
|
2437
|
+
"required":["ScalingAdjustment"],
|
2438
|
+
"members":{
|
2439
|
+
"MetricIntervalLowerBound":{"shape":"MetricScale"},
|
2440
|
+
"MetricIntervalUpperBound":{"shape":"MetricScale"},
|
2441
|
+
"ScalingAdjustment":{"shape":"PolicyIncrement"}
|
2442
|
+
}
|
2443
|
+
},
|
2444
|
+
"StepAdjustments":{
|
2445
|
+
"type":"list",
|
2446
|
+
"member":{"shape":"StepAdjustment"}
|
2447
|
+
},
|
2411
2448
|
"SuspendedProcess":{
|
2412
2449
|
"type":"structure",
|
2413
2450
|
"members":{
|
@@ -2623,6 +2623,10 @@
|
|
2623
2623
|
"OwnerId":{
|
2624
2624
|
"shape":"String",
|
2625
2625
|
"locationName":"ownerId"
|
2626
|
+
},
|
2627
|
+
"Return":{
|
2628
|
+
"shape":"Boolean",
|
2629
|
+
"locationName":"return"
|
2626
2630
|
}
|
2627
2631
|
}
|
2628
2632
|
},
|
@@ -2732,6 +2736,14 @@
|
|
2732
2736
|
"PresignedUrl":{
|
2733
2737
|
"shape":"String",
|
2734
2738
|
"locationName":"presignedUrl"
|
2739
|
+
},
|
2740
|
+
"Encrypted":{
|
2741
|
+
"shape":"Boolean",
|
2742
|
+
"locationName":"encrypted"
|
2743
|
+
},
|
2744
|
+
"KmsKeyId":{
|
2745
|
+
"shape":"String",
|
2746
|
+
"locationName":"kmsKeyId"
|
2735
2747
|
}
|
2736
2748
|
}
|
2737
2749
|
},
|
@@ -7643,6 +7655,7 @@
|
|
7643
7655
|
"t2.micro",
|
7644
7656
|
"t2.small",
|
7645
7657
|
"t2.medium",
|
7658
|
+
"t2.large",
|
7646
7659
|
"m2.xlarge",
|
7647
7660
|
"m2.2xlarge",
|
7648
7661
|
"m2.4xlarge",
|
@@ -8095,6 +8108,10 @@
|
|
8095
8108
|
}
|
8096
8109
|
}
|
8097
8110
|
},
|
8111
|
+
"ModifySnapshotAttributeName":{
|
8112
|
+
"type":"string",
|
8113
|
+
"enum":["createVolumePermission"]
|
8114
|
+
},
|
8098
8115
|
"ModifySnapshotAttributeRequest":{
|
8099
8116
|
"type":"structure",
|
8100
8117
|
"required":["SnapshotId"],
|
@@ -8104,7 +8121,7 @@
|
|
8104
8121
|
"locationName":"dryRun"
|
8105
8122
|
},
|
8106
8123
|
"SnapshotId":{"shape":"String"},
|
8107
|
-
"Attribute":{"shape":"
|
8124
|
+
"Attribute":{"shape":"ModifySnapshotAttributeName"},
|
8108
8125
|
"OperationType":{"shape":"String"},
|
8109
8126
|
"UserIds":{
|
8110
8127
|
"shape":"UserIdStringList",
|
@@ -9806,7 +9823,7 @@
|
|
9806
9823
|
"locationName":"dryRun"
|
9807
9824
|
},
|
9808
9825
|
"SnapshotId":{"shape":"String"},
|
9809
|
-
"Attribute":{"shape":"
|
9826
|
+
"Attribute":{"shape":"ModifySnapshotAttributeName"}
|
9810
9827
|
}
|
9811
9828
|
},
|
9812
9829
|
"ResourceIdList":{
|
@@ -11615,7 +11632,7 @@
|
|
11615
11632
|
"type":"structure",
|
11616
11633
|
"members":{
|
11617
11634
|
"Code":{
|
11618
|
-
"shape":"
|
11635
|
+
"shape":"VpcPeeringConnectionStateReasonCode",
|
11619
11636
|
"locationName":"code"
|
11620
11637
|
},
|
11621
11638
|
"Message":{
|
@@ -11624,6 +11641,20 @@
|
|
11624
11641
|
}
|
11625
11642
|
}
|
11626
11643
|
},
|
11644
|
+
"VpcPeeringConnectionStateReasonCode":{
|
11645
|
+
"type":"string",
|
11646
|
+
"enum":[
|
11647
|
+
"initiating-request",
|
11648
|
+
"pending-acceptance",
|
11649
|
+
"active",
|
11650
|
+
"deleted",
|
11651
|
+
"rejected",
|
11652
|
+
"failed",
|
11653
|
+
"expired",
|
11654
|
+
"provisioning",
|
11655
|
+
"deleting"
|
11656
|
+
]
|
11657
|
+
},
|
11627
11658
|
"VpcPeeringConnectionVpcInfo":{
|
11628
11659
|
"type":"structure",
|
11629
11660
|
"members":{
|
@@ -1411,6 +1411,46 @@
|
|
1411
1411
|
}
|
1412
1412
|
}
|
1413
1413
|
},
|
1414
|
+
"Route": {
|
1415
|
+
"identifiers": [
|
1416
|
+
{ "name": "RouteTableId" },
|
1417
|
+
{
|
1418
|
+
"name": "DestinationCidrBlock",
|
1419
|
+
"memberName": "DestinationCidrBlock"
|
1420
|
+
}
|
1421
|
+
],
|
1422
|
+
"shape": "Route",
|
1423
|
+
"actions": {
|
1424
|
+
"Delete": {
|
1425
|
+
"request": {
|
1426
|
+
"operation": "DeleteRoute",
|
1427
|
+
"params": [
|
1428
|
+
{ "target": "RouteTableId", "source": "identifier", "name": "RouteTableId" },
|
1429
|
+
{ "target": "DestinationCidrBlock", "source": "identifier", "name": "DestinationCidrBlock" }
|
1430
|
+
]
|
1431
|
+
}
|
1432
|
+
},
|
1433
|
+
"Replace": {
|
1434
|
+
"request": {
|
1435
|
+
"operation": "ReplaceRoute",
|
1436
|
+
"params": [
|
1437
|
+
{ "target": "RouteTableId", "source": "identifier", "name": "RouteTableId" },
|
1438
|
+
{ "target": "DestinationCidrBlock", "source": "identifier", "name": "DestinationCidrBlock" }
|
1439
|
+
]
|
1440
|
+
}
|
1441
|
+
}
|
1442
|
+
},
|
1443
|
+
"has": {
|
1444
|
+
"RouteTable": {
|
1445
|
+
"resource": {
|
1446
|
+
"type": "RouteTable",
|
1447
|
+
"identifiers": [
|
1448
|
+
{ "target": "Id", "source": "identifier", "name": "RouteTableId" }
|
1449
|
+
]
|
1450
|
+
}
|
1451
|
+
}
|
1452
|
+
}
|
1453
|
+
},
|
1414
1454
|
"RouteTable": {
|
1415
1455
|
"identifiers": [
|
1416
1456
|
{
|
@@ -1449,6 +1489,13 @@
|
|
1449
1489
|
"params": [
|
1450
1490
|
{ "target": "RouteTableId", "source": "identifier", "name": "Id" }
|
1451
1491
|
]
|
1492
|
+
},
|
1493
|
+
"resource": {
|
1494
|
+
"type": "Route",
|
1495
|
+
"identifiers": [
|
1496
|
+
{ "target": "RouteTableId", "source": "identifier", "name": "Id" },
|
1497
|
+
{ "target": "DestinationCidrBlock", "source": "requestParameter", "path": "DestinationCidrBlock" }
|
1498
|
+
]
|
1452
1499
|
}
|
1453
1500
|
},
|
1454
1501
|
"CreateTags": {
|
@@ -1477,29 +1524,31 @@
|
|
1477
1524
|
}
|
1478
1525
|
},
|
1479
1526
|
"has": {
|
1480
|
-
"
|
1527
|
+
"Associations": {
|
1481
1528
|
"resource": {
|
1482
|
-
"type": "
|
1529
|
+
"type": "RouteTableAssociation",
|
1483
1530
|
"identifiers": [
|
1484
|
-
{ "target": "Id", "source": "data", "path": "
|
1485
|
-
]
|
1531
|
+
{ "target": "Id", "source": "data", "path": "Associations[].RouteTableAssociationId" }
|
1532
|
+
],
|
1533
|
+
"path": "Associations[]"
|
1486
1534
|
}
|
1487
|
-
}
|
1488
|
-
|
1489
|
-
"hasMany": {
|
1490
|
-
"Associations": {
|
1491
|
-
"request": {
|
1492
|
-
"operation": "DescribeRouteTables",
|
1493
|
-
"params": [
|
1494
|
-
{ "target": "RouteTableIds[0]", "source": "identifier", "name": "Id" }
|
1495
|
-
]
|
1496
|
-
},
|
1535
|
+
},
|
1536
|
+
"Routes": {
|
1497
1537
|
"resource": {
|
1498
|
-
"type": "
|
1538
|
+
"type": "Route",
|
1499
1539
|
"identifiers": [
|
1500
|
-
{ "target": "
|
1540
|
+
{ "target": "RouteTableId", "source": "identifier", "name": "Id" },
|
1541
|
+
{ "target": "DestinationCidrBlock", "source": "data", "path": "Routes[].DestinationCidrBlock" }
|
1501
1542
|
],
|
1502
|
-
"path": "
|
1543
|
+
"path": "Routes[]"
|
1544
|
+
}
|
1545
|
+
},
|
1546
|
+
"Vpc": {
|
1547
|
+
"resource": {
|
1548
|
+
"type": "Vpc",
|
1549
|
+
"identifiers": [
|
1550
|
+
{ "target": "Id", "source": "data", "path": "VpcId" }
|
1551
|
+
]
|
1503
1552
|
}
|
1504
1553
|
}
|
1505
1554
|
}
|
@@ -162,7 +162,7 @@ module Aws
|
|
162
162
|
waiters and the client method they call:
|
163
163
|
<table>
|
164
164
|
<thead>
|
165
|
-
<tr><th>Waiter Name</th><th>Client Method</th><th>Delay
|
165
|
+
<tr><th>Waiter Name</th><th>Client Method</th><th>Default Delay:</th><th>Default Max Attempts:</th></tr>
|
166
166
|
</thead>
|
167
167
|
<tbody>
|
168
168
|
#{waiters}
|
@@ -70,14 +70,18 @@ module Aws
|
|
70
70
|
# fake responses with placeholder values. You can override the data
|
71
71
|
# returned. You can also specify errors it should raise.
|
72
72
|
#
|
73
|
+
# # simulate service errors, give the error code
|
73
74
|
# client.stub_responses(:get_object, 'NotFound')
|
74
75
|
# client.get_object(bucket:'aws-sdk', key:'foo')
|
75
76
|
# #=> raises Aws::S3::Errors::NotFound
|
76
77
|
#
|
78
|
+
# # to simulate other errors, give the error class, you must
|
79
|
+
# # be able to construct an instance with `.new`
|
77
80
|
# client.stub_responses(:get_object, Timeout::Error)
|
78
81
|
# client.get_object(bucket:'aws-sdk', key:'foo')
|
79
82
|
# #=> raises new Timeout::Error
|
80
83
|
#
|
84
|
+
# # or you can give an instance of an error class
|
81
85
|
# client.stub_responses(:get_object, RuntimeError.new('custom message'))
|
82
86
|
# client.get_object(bucket:'aws-sdk', key:'foo')
|
83
87
|
# #=> raises the given runtime error object
|
@@ -11,6 +11,7 @@ module Aws
|
|
11
11
|
autoload :AttributeValue, 'aws-sdk-core/dynamodb/attribute_value'
|
12
12
|
|
13
13
|
class Client
|
14
|
+
|
14
15
|
def data_to_http_resp(operation_name, data)
|
15
16
|
api = config.api
|
16
17
|
operation = api.operation(operation_name)
|
@@ -20,6 +21,19 @@ module Aws
|
|
20
21
|
ParamValidator.validate!(operation.output, data)
|
21
22
|
protocol_helper.stub_data(api, operation, data)
|
22
23
|
end
|
24
|
+
|
25
|
+
def stub_data(operation_name, data = {})
|
26
|
+
if config.simple_attributes
|
27
|
+
rules = config.api.operation(operation_name).output
|
28
|
+
translator = Plugins::DynamoDBSimpleAttributes::ValueTranslator
|
29
|
+
data = translator.apply(rules, :marshal, data)
|
30
|
+
data = super(operation_name, data)
|
31
|
+
translator.apply(rules, :unmarshal, data)
|
32
|
+
else
|
33
|
+
super
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
23
37
|
end
|
24
38
|
end
|
25
39
|
end
|
@@ -3,8 +3,8 @@ module Aws
|
|
3
3
|
|
4
4
|
# @seahorse.client.option [required, String] :region
|
5
5
|
# The AWS region to connect to. The region is used to construct
|
6
|
-
# the client endpoint. Defaults to `ENV['
|
7
|
-
# Also checks `
|
6
|
+
# the client endpoint. Defaults to `ENV['AWS_REGION']`.
|
7
|
+
# Also checks `AMAZON_REGION` and `AWS_DEFAULT_REGION`.
|
8
8
|
#
|
9
9
|
# @seahorse.client.option [String] :endpoint A default endpoint is
|
10
10
|
# constructed from the `:region`.
|
data/lib/aws-sdk-core/version.rb
CHANGED
@@ -106,9 +106,9 @@ module Seahorse
|
|
106
106
|
session.continue_timeout = http_continue_timeout if
|
107
107
|
session.respond_to?(:continue_timeout=)
|
108
108
|
yield(session)
|
109
|
-
rescue
|
109
|
+
rescue
|
110
110
|
session.finish if session
|
111
|
-
raise
|
111
|
+
raise
|
112
112
|
else
|
113
113
|
# No error raised? Good, check the session into the pool.
|
114
114
|
@pool_mutex.synchronize { @pool[endpoint] << session }
|
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.1.
|
4
|
+
version: 2.1.3
|
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: 2015-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|