aws-sdk-core 2.0.0.rc9 → 2.0.0.rc10
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/README.md +4 -2
- data/apis/CloudFront-2014-05-31.json +5883 -0
- data/apis/CloudSearchDomain-2013-01-01.json +325 -0
- data/apis/source/cloudfront-2014-05-31.json +9359 -0
- data/apis/source/cloudfront-2014-05-31.normal.json +3540 -0
- data/apis/source/cloudfront-2014-05-31.paginators.json +32 -0
- data/apis/source/cloudfront-2014-05-31.waiters.json +29 -0
- data/apis/source/cloudsearchdomain-2013-01-01.json +471 -0
- data/apis/source/cloudsearchdomain-2013-01-01.normal.json +508 -0
- data/doc-src/plugins/apis.rb +15 -43
- data/doc-src/services/CloudSearchDomain/service.md +8 -0
- data/doc-src/services/default/service.md +38 -0
- data/features/cloudtrail/client.feature +0 -4
- data/lib/aws.rb +1 -0
- data/lib/aws/api/service_translators/cloud_search_domain.rb +8 -0
- data/lib/aws/shared_credentials.rb +2 -2
- data/lib/aws/signers/v4.rb +1 -1
- data/lib/aws/version.rb +1 -1
- data/vendor/seahorse/lib/seahorse/client/plugins/endpoint.rb +12 -1
- metadata +13 -2
data/doc-src/plugins/apis.rb
CHANGED
@@ -3,6 +3,7 @@ $:.unshift(File.join(root, 'vendor', 'seahorse', 'lib'))
|
|
3
3
|
$:.unshift(File.join(root, 'lib'))
|
4
4
|
|
5
5
|
require 'aws-sdk-core'
|
6
|
+
require 'erb'
|
6
7
|
|
7
8
|
YARD::Tags::Library.define_tag('CONFIGURATION_OPTIONS', :seahorse_client_option)
|
8
9
|
YARD::Tags::Library.define_tag('SERVICE', :service)
|
@@ -55,54 +56,28 @@ Returns a new instance of {#{svc_name}}.
|
|
55
56
|
DOC
|
56
57
|
end
|
57
58
|
|
58
|
-
def
|
59
|
+
def default_path
|
60
|
+
end
|
59
61
|
|
62
|
+
def service_docstring(svc_name, apis)
|
63
|
+
path = "doc-src/services/#{svc_name}/service.md"
|
64
|
+
if File.exists?(path)
|
65
|
+
template = File.read(path)
|
66
|
+
else
|
67
|
+
template = File.read('doc-src/services/default/service.md')
|
68
|
+
end
|
60
69
|
oldest_api = apis.sort_by(&:version).first
|
61
70
|
default_api = apis.sort_by(&:version).last
|
62
71
|
full_name = default_api.metadata['service_full_name']
|
72
|
+
ERB.new(template).result(binding)
|
73
|
+
end
|
74
|
+
|
75
|
+
def document_svc_class(svc_name, apis)
|
63
76
|
|
64
77
|
namespace = YARD::Registry['Aws']
|
65
78
|
klass = YARD::CodeObjects::ClassObject.new(namespace, svc_name)
|
66
79
|
klass.superclass = YARD::Registry['Aws::Service']
|
67
|
-
klass.docstring =
|
68
|
-
A service client builder for #{full_name}.
|
69
|
-
|
70
|
-
## Configuration
|
71
|
-
|
72
|
-
You can specify global default configuration options via `Aws.config`. Values
|
73
|
-
in `Aws.config` are used as default options for all services.
|
74
|
-
|
75
|
-
Aws.config[:region] = 'us-west-2'
|
76
|
-
|
77
|
-
You can specify service specific defaults as well:
|
78
|
-
|
79
|
-
Aws.config[:#{svc_name.downcase}] = { region: 'us-west-1' }
|
80
|
-
|
81
|
-
This has a higher precendence that values at the root of `Aws.config` and will
|
82
|
-
only applied to objects constructed by {new}.
|
83
|
-
|
84
|
-
## Regions & Endpoints
|
85
|
-
|
86
|
-
You must configure a default region with `Aws.config` or provide a `:region`
|
87
|
-
when creating a service client. The regions listed below will connect
|
88
|
-
to the following endpoints:
|
89
|
-
|
90
|
-
#{default_api.metadata['regional_endpoints'].map { |r,e| "* `#{r}` - #{e}"}.join("\n")}
|
91
|
-
|
92
|
-
## API Versions
|
93
|
-
|
94
|
-
Calling {new} will construct and return a versioned service client. The client
|
95
|
-
will default to the most recent API version. You can also specify an API version:
|
96
|
-
|
97
|
-
#{svc_name.downcase} = Aws::#{svc_name}.new # Aws::#{svc_name}::V#{default_api.version.gsub(/-/, '')}
|
98
|
-
#{svc_name.downcase} = Aws::#{svc_name}.new(api_version: '#{oldest_api.version}') # Aws::#{svc_name}::V#{oldest_api.version.gsub(/-/, '')}
|
99
|
-
|
100
|
-
The following API versions are available for Aws::#{svc_name}:
|
101
|
-
|
102
|
-
#{apis.map{ |a| "* {V#{a.version.gsub(/-/, '')} #{a.version}}" }.join("\n")}
|
103
|
-
|
104
|
-
You can specify the API version for the client by passing `:api_version` to {new}.
|
105
|
-
DOCSTRING
|
80
|
+
klass.docstring = service_docstring(svc_name, apis)
|
106
81
|
klass.docstring.add_tag(YARD::Tags::Tag.new(:service, svc_name))
|
107
82
|
|
108
83
|
svc = Aws.const_get(svc_name)
|
@@ -225,9 +200,6 @@ def document_svc_api_operation(svc_name, client, method_name, operation)
|
|
225
200
|
t.tab(method_name, 'Response Structure') do
|
226
201
|
documentor.output
|
227
202
|
end
|
228
|
-
t.tab(method_name, 'API Model') do
|
229
|
-
"<div class=\"api-src\"><pre><code class=\"json\">#{JSON.pretty_generate(without_docs(operation.to_hash), pretty: true, max_nesting: false)}</pre></code></div>"
|
230
|
-
end
|
231
203
|
end
|
232
204
|
|
233
205
|
errors = (operation.errors || []).map { |shape| shape.metadata['shape_name'] }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Returns a client suitable for making requests against a CloudSearch domain.
|
2
|
+
|
3
|
+
To construct a client, you must configure the `:endpoint` option:
|
4
|
+
|
5
|
+
client = Aws::CloudSearchDomain.new(endpoint:'http://...')
|
6
|
+
|
7
|
+
See {CloudSearchDomain::V<%= default_api.version.gsub(/-/, '') %>} for a list of
|
8
|
+
operations.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
A service client builder for <%= full_name %>.
|
2
|
+
|
3
|
+
## Configuration
|
4
|
+
|
5
|
+
You can specify global default configuration options via `Aws.config`. Values
|
6
|
+
in `Aws.config` are used as default options for all services.
|
7
|
+
|
8
|
+
Aws.config[:region] = 'us-west-2'
|
9
|
+
|
10
|
+
You can specify service specific defaults as well:
|
11
|
+
|
12
|
+
Aws.config[:<%= svc_name.downcase %>] = { region: 'us-west-1' }
|
13
|
+
|
14
|
+
This has a higher precendence that values at the root of `Aws.config` and will
|
15
|
+
only applied to objects constructed by {new}.
|
16
|
+
|
17
|
+
## Regions & Endpoints
|
18
|
+
|
19
|
+
You must configure a default region with `Aws.config` or provide a `:region`
|
20
|
+
when creating a service client. The regions listed below will connect
|
21
|
+
to the following endpoints:
|
22
|
+
|
23
|
+
<%= default_api.metadata['regional_endpoints'].map { |r,e| "* `#{r}` - #{e}"}.join("\n") %>
|
24
|
+
|
25
|
+
## API Versions
|
26
|
+
|
27
|
+
Calling {new} will construct and return a versioned service client. The client
|
28
|
+
will default to the most recent API version. You can also specify an API version:
|
29
|
+
|
30
|
+
<%= svc_name.downcase %> = Aws::<%= svc_name %>.new # Aws::<%= svc_name %>::V<%= default_api.version.gsub(/-/, '') %>
|
31
|
+
<%= svc_name.downcase %> = Aws::<%= svc_name %>.new(api_version: '<%= oldest_api.version %>') # Aws::<%= svc_name %>::V<%= oldest_api.version.gsub(/-/, '') %>
|
32
|
+
|
33
|
+
The following API versions are available for Aws::<%= svc_name %>:
|
34
|
+
|
35
|
+
<%= apis.map{ |a| "* {V#{a.version.gsub(/-/, '')} #{a.version}}" }.join("\n") %>
|
36
|
+
|
37
|
+
You can specify the API version for the client by passing `:api_version` to {new}.
|
38
|
+
DOCSTRING
|
data/lib/aws.rb
CHANGED
@@ -40,6 +40,7 @@ module Aws
|
|
40
40
|
|
41
41
|
module ServiceTranslators
|
42
42
|
autoload :CloudFront, "#{SRC}/api/service_translators/cloud_front"
|
43
|
+
autoload :CloudSearchDomain, "#{SRC}/api/service_translators/cloud_search_domain"
|
43
44
|
autoload :DynamoDB, "#{SRC}/api/service_translators/dynamo_db"
|
44
45
|
autoload :EC2, "#{SRC}/api/service_translators/ec2"
|
45
46
|
autoload :Glacier, "#{SRC}/api/service_translators/glacier"
|
@@ -44,8 +44,8 @@ module Aws
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# @return [Boolean] Returns `true` if a credential file
|
47
|
-
# exists and has appropriate read permissions at {path}.
|
48
|
-
# @note This method does not indicate if the file found at {path}
|
47
|
+
# exists and has appropriate read permissions at {#path}.
|
48
|
+
# @note This method does not indicate if the file found at {#path}
|
49
49
|
# will be parsable, only if it can be read.
|
50
50
|
def loadable?
|
51
51
|
!path.nil? && File.exists?(path) && File.readable?(path)
|
data/lib/aws/signers/v4.rb
CHANGED
@@ -25,7 +25,7 @@ module Aws
|
|
25
25
|
@region = region
|
26
26
|
end
|
27
27
|
|
28
|
-
# @param [Seahorse::Client::Http::Request]
|
28
|
+
# @param [Seahorse::Client::Http::Request] req
|
29
29
|
# @return [Seahorse::Client::Http::Request] the signed request.
|
30
30
|
def sign(req)
|
31
31
|
datetime = Time.now.utc.strftime("%Y%m%dT%H%M%SZ")
|
data/lib/aws/version.rb
CHANGED
@@ -21,12 +21,14 @@ module Seahorse
|
|
21
21
|
class Handler < Client::Handler
|
22
22
|
|
23
23
|
def call(context)
|
24
|
-
endpoint = Http::Endpoint.new(context
|
24
|
+
endpoint = Http::Endpoint.new(endpoint_for(context))
|
25
25
|
apply_url_params(endpoint, context)
|
26
26
|
context.http_request.endpoint = endpoint
|
27
27
|
@handler.call(context)
|
28
28
|
end
|
29
29
|
|
30
|
+
private
|
31
|
+
|
30
32
|
def apply_url_params(endpoint, context)
|
31
33
|
prefix = endpoint.path.sub(/\/$/, '')
|
32
34
|
endpoint.request_uri = prefix + RequestUriBuilder.new(
|
@@ -35,8 +37,17 @@ module Seahorse
|
|
35
37
|
).path(context.params)
|
36
38
|
end
|
37
39
|
|
40
|
+
def endpoint_for(context)
|
41
|
+
if context.config.endpoint
|
42
|
+
context.config.endpoint
|
43
|
+
else
|
44
|
+
raise "required configuration option :endpoint not set"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
38
48
|
end
|
39
49
|
|
50
|
+
|
40
51
|
handle(Handler, priority: 90)
|
41
52
|
|
42
53
|
# @api private
|
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.0.
|
4
|
+
version: 2.0.0.rc10
|
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-06-
|
11
|
+
date: 2014-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -89,8 +89,10 @@ files:
|
|
89
89
|
- apis/CloudFront-2013-11-11.json
|
90
90
|
- apis/CloudFront-2013-11-22.json
|
91
91
|
- apis/CloudFront-2014-01-31.json
|
92
|
+
- apis/CloudFront-2014-05-31.json
|
92
93
|
- apis/CloudSearch-2011-02-01.json
|
93
94
|
- apis/CloudSearch-2013-01-01.json
|
95
|
+
- apis/CloudSearchDomain-2013-01-01.json
|
94
96
|
- apis/CloudTrail-2013-11-01.json
|
95
97
|
- apis/CloudWatch-2010-08-01.json
|
96
98
|
- apis/DataPipeline-2012-10-29.json
|
@@ -151,10 +153,16 @@ files:
|
|
151
153
|
- apis/source/cloudfront-2014-01-31.json
|
152
154
|
- apis/source/cloudfront-2014-01-31.paginators.json
|
153
155
|
- apis/source/cloudfront-2014-01-31.waiters.json
|
156
|
+
- apis/source/cloudfront-2014-05-31.json
|
157
|
+
- apis/source/cloudfront-2014-05-31.normal.json
|
158
|
+
- apis/source/cloudfront-2014-05-31.paginators.json
|
159
|
+
- apis/source/cloudfront-2014-05-31.waiters.json
|
154
160
|
- apis/source/cloudsearch-2011-02-01.json
|
155
161
|
- apis/source/cloudsearch-2011-02-01.paginators.json
|
156
162
|
- apis/source/cloudsearch-2013-01-01.json
|
157
163
|
- apis/source/cloudsearch-2013-01-01.paginators.json
|
164
|
+
- apis/source/cloudsearchdomain-2013-01-01.json
|
165
|
+
- apis/source/cloudsearchdomain-2013-01-01.normal.json
|
158
166
|
- apis/source/cloudtrail-2013-11-01.json
|
159
167
|
- apis/source/cloudtrail-2013-11-01.paginators.json
|
160
168
|
- apis/source/datapipeline-2012-10-29.json
|
@@ -253,6 +261,8 @@ files:
|
|
253
261
|
- doc-src/images/vline.png
|
254
262
|
- doc-src/plugins/apis.rb
|
255
263
|
- doc-src/plugins/stability.rb
|
264
|
+
- doc-src/services/CloudSearchDomain/service.md
|
265
|
+
- doc-src/services/default/service.md
|
256
266
|
- doc-src/templates/default/fulldoc/html/css/common.css
|
257
267
|
- doc-src/templates/default/fulldoc/html/js/tabs.js
|
258
268
|
- doc-src/templates/default/fulldoc/html/setup.rb
|
@@ -337,6 +347,7 @@ files:
|
|
337
347
|
- lib/aws/api/pagination_translator.rb
|
338
348
|
- lib/aws/api/service_namer.rb
|
339
349
|
- lib/aws/api/service_translators/cloud_front.rb
|
350
|
+
- lib/aws/api/service_translators/cloud_search_domain.rb
|
340
351
|
- lib/aws/api/service_translators/dynamo_db.rb
|
341
352
|
- lib/aws/api/service_translators/ec2.rb
|
342
353
|
- lib/aws/api/service_translators/glacier.rb
|