aws-sdk-core 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2aae52c5d623b1b551748e6db2894c33373e5d8b
4
- data.tar.gz: 377e59b235a9bdbe1db75f8d3fbf776a923a5ce9
3
+ metadata.gz: 9b4fcf16d5c96ec8446a07c9d31dcdb72268bd9a
4
+ data.tar.gz: 34336747f8e123f801e8e3d42012228e83578cf4
5
5
  SHA512:
6
- metadata.gz: 30b2d0eb3f3de2909e583bcc857ed34f0bc2b993dc5c9870a7189f0e08a4f6bacb35dd44f542faecd99b213c3334c457c3afb1feab6d86e87347c076a327dc1c
7
- data.tar.gz: 35bf601b63c484009785a368514effe96c947a2639484da70b1fb8b0cbede7f48de31ca5cfec0440031bfdce9294540e6ed2f91cc766c318a33b4e4f93d6d70e
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
- "MinAdjustmentStep":{"type":"integer"},
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
- "MinAdjustmentStep":{"shape":"MinAdjustmentStep"},
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":"SnapshotAttributeName"},
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":"SnapshotAttributeName"}
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":"String",
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
- "Vpc": {
1527
+ "Associations": {
1481
1528
  "resource": {
1482
- "type": "Vpc",
1529
+ "type": "RouteTableAssociation",
1483
1530
  "identifiers": [
1484
- { "target": "Id", "source": "data", "path": "VpcId" }
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": "RouteTableAssociation",
1538
+ "type": "Route",
1499
1539
  "identifiers": [
1500
- { "target": "Id", "source": "response", "path": "RouteTables[0].Associations[].RouteTableAssociationId" }
1540
+ { "target": "RouteTableId", "source": "identifier", "name": "Id" },
1541
+ { "target": "DestinationCidrBlock", "source": "data", "path": "Routes[].DestinationCidrBlock" }
1501
1542
  ],
1502
- "path": "RouteTables[0].Associations[]"
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</th><th>Max Attempts</th></tr>
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
@@ -139,6 +139,10 @@ module Aws
139
139
 
140
140
  include Seahorse::Model::Shapes
141
141
 
142
+ def self.apply(rules, mode, data)
143
+ new(rules, mode).apply(data)
144
+ end
145
+
142
146
  def initialize(rules, mode)
143
147
  @rules = rules
144
148
  @mode = mode
@@ -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['AWS_DEFAULT_REGION']`.
7
- # Also checks `AWS_REGION` and `AMAZON_REGION`.
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`.
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.1.2'
2
+ VERSION = '2.1.3'
3
3
  end
@@ -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 Exception => error
109
+ rescue
110
110
  session.finish if session
111
- raise error
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.2
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-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath