aws-sdk-core 2.1.28 → 2.1.29

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.
@@ -54,6 +54,8 @@ module Aws
54
54
  IAM
55
55
  ImportExport
56
56
  Inspector
57
+ IoT
58
+ IoTDataPlane
57
59
  Kinesis
58
60
  KMS
59
61
  Lambda
@@ -95,6 +95,10 @@ module Aws
95
95
  end
96
96
  end
97
97
 
98
+ api('data.iot') do |api|
99
+ api['metadata'].delete('endpointPrefix')
100
+ end
101
+
98
102
  api('lambda') do |api|
99
103
  api['shapes']['Timestamp']['type'] = 'timestamp'
100
104
  end
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:IoT, {
2
+ api: "#{Aws::API_DIR}/iot/2015-05-28/api-2.json",
3
+ docs: "#{Aws::API_DIR}/iot/2015-05-28/docs-2.json",
4
+ })
@@ -0,0 +1,4 @@
1
+ Aws.add_service(:IoTDataPlane, {
2
+ api: "#{Aws::API_DIR}/iot-data/2015-05-28/api-2.json",
3
+ docs: "#{Aws::API_DIR}/iot-data/2015-05-28/docs-2.json",
4
+ })
@@ -20,7 +20,9 @@ module Aws
20
20
  }
21
21
 
22
22
  option(:endpoint) do |cfg|
23
- EndpointProvider.resolve(cfg.region, cfg.api.metadata['endpointPrefix'])
23
+ if endpoint_prefix = cfg.api.metadata['endpointPrefix']
24
+ EndpointProvider.resolve(cfg.region, endpoint_prefix)
25
+ end
24
26
  end
25
27
 
26
28
  def after_initialize(client)
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.1.28'
2
+ VERSION = '2.1.29'
3
3
  end
@@ -18,7 +18,14 @@ module Seahorse
18
18
  end
19
19
 
20
20
  def after_initialize(client)
21
- endpoint = URI.parse(client.config.endpoint.to_s)
21
+
22
+ endpoint = client.config.endpoint
23
+ if endpoint.nil?
24
+ msg = "missing required option `:endpoint'"
25
+ raise ArgumentError, msg
26
+ end
27
+
28
+ endpoint = URI.parse(endpoint.to_s)
22
29
  if URI::HTTPS === endpoint or URI::HTTP === endpoint
23
30
  client.config.endpoint = endpoint
24
31
  else
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.28
4
+ version: 2.1.29
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-10-07 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -106,6 +106,8 @@ files:
106
106
  - apis/importexport/2010-06-01/api-2.json
107
107
  - apis/importexport/2010-06-01/paginators-1.json
108
108
  - apis/inspector/2015-08-18/api-2.json
109
+ - apis/iot-data/2015-05-28/api-2.json
110
+ - apis/iot/2015-05-28/api-2.json
109
111
  - apis/kinesis/2013-12-02/api-2.json
110
112
  - apis/kinesis/2013-12-02/paginators-1.json
111
113
  - apis/kinesis/2013-12-02/waiters-2.json
@@ -225,6 +227,8 @@ files:
225
227
  - lib/aws-sdk-core/importexport.rb
226
228
  - lib/aws-sdk-core/inspector.rb
227
229
  - lib/aws-sdk-core/instance_profile_credentials.rb
230
+ - lib/aws-sdk-core/iot.rb
231
+ - lib/aws-sdk-core/iotdataplane.rb
228
232
  - lib/aws-sdk-core/json.rb
229
233
  - lib/aws-sdk-core/json/builder.rb
230
234
  - lib/aws-sdk-core/json/error_handler.rb