aws-sdk-core 2.0.17 → 2.0.18

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.
@@ -21,6 +21,7 @@ module Aws
21
21
  AutoScaling
22
22
  CloudFormation
23
23
  CloudFront
24
+ CloudHSM
24
25
  CloudSearch
25
26
  CloudSearchDomain
26
27
  CloudTrail
@@ -34,6 +35,7 @@ module Aws
34
35
  DirectConnect
35
36
  DynamoDB
36
37
  EC2
38
+ ECS
37
39
  ElastiCache
38
40
  ElasticBeanstalk
39
41
  ElasticLoadBalancing
@@ -109,6 +109,12 @@ module Aws
109
109
  add_plugin 'Aws::Plugins::S3SseCpk'
110
110
  add_plugin 'Aws::Plugins::S3UrlEncodedKeys'
111
111
  add_plugin 'Aws::Plugins::S3RequestSigner'
112
+
113
+ # required for the GetBucketLocation fix to work, disabled normal
114
+ # parsing of the output
115
+ client_class.api.operation(:get_bucket_location).
116
+ instance_variable_set("@output", nil)
117
+
112
118
  defs = client_class.waiters.instance_variable_get("@definitions")
113
119
  defs[:bucket_exists]['ignore_errors'] = ['NotFound']
114
120
  defs[:object_exists]['ignore_errors'] = ['NotFound']
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:CloudHSM, {
2
+ api: File.join(Aws::API_DIR, 'CloudHSM.api.json'),
3
+ docs: File.join(Aws::API_DIR, 'CloudHSM.docs.json'),
4
+ })
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:ECS, {
2
+ api: File.join(Aws::API_DIR, 'ECS.api.json'),
3
+ docs: File.join(Aws::API_DIR, 'ECS.docs.json'),
4
+ })
@@ -6,15 +6,16 @@ module Aws
6
6
 
7
7
  def call(context)
8
8
  @handler.call(context).on(200) do |response|
9
+ response.data = Structure.new([:location_constraint])
9
10
  xml = MultiXml.parse(context.http_response.body_contents)
10
- if xml.key?('LocationConstraint')
11
- constraint = xml['LocationConstraint']
11
+ if constraint = xml['LocationConstraint']
12
12
  response.data[:location_constraint] =
13
13
  case constraint
14
14
  when String then constraint
15
15
  when Hash then constraint['__content__'].to_s
16
- when nil then ''
17
16
  end
17
+ else
18
+ response.data[:location_constraint] = ''
18
19
  end
19
20
  end
20
21
  end
@@ -7,8 +7,7 @@ module Aws
7
7
  def call(context)
8
8
  context.http_request.body = build_body(context)
9
9
  @handler.call(context).on_success do |response|
10
- response.error = nil
11
- response.data = extract_data(response.context)
10
+ response.data = extract_data(response.context) unless response.data
12
11
  end
13
12
  end
14
13
 
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.0.17'
2
+ VERSION = '2.0.18'
3
3
  end
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.0.17
4
+ version: 2.0.18
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: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -82,6 +82,7 @@ files:
82
82
  - apis/CloudFront.paginators.json
83
83
  - apis/CloudFront.waiters.json
84
84
  - apis/CloudFront.waiters2.json
85
+ - apis/CloudHSM.api.json
85
86
  - apis/CloudSearch.api.json
86
87
  - apis/CloudSearch.paginators.json
87
88
  - apis/CloudSearchDomain.api.json
@@ -110,6 +111,7 @@ files:
110
111
  - apis/EC2.resources.json
111
112
  - apis/EC2.waiters.json
112
113
  - apis/EC2.waiters2.json
114
+ - apis/ECS.api.json
113
115
  - apis/EMR.api.json
114
116
  - apis/EMR.paginators.json
115
117
  - apis/EMR.waiters2.json
@@ -194,6 +196,7 @@ files:
194
196
  - lib/aws-sdk-core/client_waiters.rb
195
197
  - lib/aws-sdk-core/cloudformation.rb
196
198
  - lib/aws-sdk-core/cloudfront.rb
199
+ - lib/aws-sdk-core/cloudhsm.rb
197
200
  - lib/aws-sdk-core/cloudsearch.rb
198
201
  - lib/aws-sdk-core/cloudsearchdomain.rb
199
202
  - lib/aws-sdk-core/cloudtrail.rb
@@ -210,6 +213,7 @@ files:
210
213
  - lib/aws-sdk-core/dynamodb.rb
211
214
  - lib/aws-sdk-core/dynamodb/attribute_value.rb
212
215
  - lib/aws-sdk-core/ec2.rb
216
+ - lib/aws-sdk-core/ecs.rb
213
217
  - lib/aws-sdk-core/elasticache.rb
214
218
  - lib/aws-sdk-core/elasticbeanstalk.rb
215
219
  - lib/aws-sdk-core/elasticloadbalancing.rb