aws-sdk-core 2.6.36 → 2.6.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/cognito-idp/2016-04-18/api-2.json +352 -1
- data/apis/ssm/2014-11-06/api-2.json +955 -9
- data/endpoints.json +7 -0
- data/lib/aws-sdk-core.rb +1 -0
- data/lib/aws-sdk-core/api/docs/builder.rb +2 -1
- data/lib/aws-sdk-core/api/docs/client_type_documenter.rb +9 -0
- data/lib/aws-sdk-core/api/docs/crosslink.rb +44 -0
- data/lib/aws-sdk-core/api/docs/operation_documenter.rb +7 -2
- data/lib/aws-sdk-core/signers/v4.rb +2 -1
- data/lib/aws-sdk-core/version.rb +1 -1
- metadata +3 -2
data/endpoints.json
CHANGED
@@ -307,9 +307,11 @@
|
|
307
307
|
"endpoints": {
|
308
308
|
"ap-northeast-1": {},
|
309
309
|
"ap-northeast-2": {},
|
310
|
+
"ap-southeast-2": {},
|
310
311
|
"eu-central-1": {},
|
311
312
|
"eu-west-1": {},
|
312
313
|
"us-east-1": {},
|
314
|
+
"us-east-2": {},
|
313
315
|
"us-west-2": {}
|
314
316
|
}
|
315
317
|
},
|
@@ -317,9 +319,11 @@
|
|
317
319
|
"endpoints": {
|
318
320
|
"ap-northeast-1": {},
|
319
321
|
"ap-northeast-2": {},
|
322
|
+
"ap-southeast-2": {},
|
320
323
|
"eu-central-1": {},
|
321
324
|
"eu-west-1": {},
|
322
325
|
"us-east-1": {},
|
326
|
+
"us-east-2": {},
|
323
327
|
"us-west-2": {}
|
324
328
|
}
|
325
329
|
},
|
@@ -327,9 +331,11 @@
|
|
327
331
|
"endpoints": {
|
328
332
|
"ap-northeast-1": {},
|
329
333
|
"ap-northeast-2": {},
|
334
|
+
"ap-southeast-2": {},
|
330
335
|
"eu-central-1": {},
|
331
336
|
"eu-west-1": {},
|
332
337
|
"us-east-1": {},
|
338
|
+
"us-east-2": {},
|
333
339
|
"us-west-2": {}
|
334
340
|
}
|
335
341
|
},
|
@@ -1222,6 +1228,7 @@
|
|
1222
1228
|
"eu-west-1": {},
|
1223
1229
|
"sa-east-1": {},
|
1224
1230
|
"us-east-1": {},
|
1231
|
+
"us-east-2": {},
|
1225
1232
|
"us-west-1": {},
|
1226
1233
|
"us-west-2": {}
|
1227
1234
|
}
|
data/lib/aws-sdk-core.rb
CHANGED
@@ -158,6 +158,7 @@ module Aws
|
|
158
158
|
module Docs
|
159
159
|
autoload :Builder, 'aws-sdk-core/api/docs/builder'
|
160
160
|
autoload :ClientTypeDocumenter, 'aws-sdk-core/api/docs/client_type_documenter'
|
161
|
+
autoload :Crosslink, 'aws-sdk-core/api/docs/crosslink'
|
161
162
|
autoload :DocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
|
162
163
|
autoload :NullDocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
|
163
164
|
autoload :OperationDocumenter, 'aws-sdk-core/api/docs/operation_documenter'
|
@@ -17,6 +17,7 @@ module Aws
|
|
17
17
|
@client_class = svc_module.const_get(:Client)
|
18
18
|
@api = @client_class.api
|
19
19
|
@full_name = @api.metadata['serviceFullName']
|
20
|
+
@uid = @api.metadata['uid']
|
20
21
|
@error_names = @api.operations.map {|_,o| o.errors.map(&:shape).map(&:name) }
|
21
22
|
@error_names = @error_names.flatten.uniq.sort
|
22
23
|
@namespace = YARD::Registry['Aws']
|
@@ -143,7 +144,7 @@ Constructs an API client.
|
|
143
144
|
end
|
144
145
|
|
145
146
|
def document_client_operation(namespace, method_name, operation)
|
146
|
-
documenter = OperationDocumenter.new(@svc_name, namespace)
|
147
|
+
documenter = OperationDocumenter.new(@svc_name, namespace, @uid)
|
147
148
|
documenter.document(method_name, operation)
|
148
149
|
end
|
149
150
|
|
@@ -43,6 +43,7 @@ module Aws
|
|
43
43
|
def tags(api, shape)
|
44
44
|
tags = []
|
45
45
|
tags << input_example_tag(api, shape) if input_shape?(api, shape)
|
46
|
+
tags << see_also_tag(api, shape) if redirectable?(api, shape)
|
46
47
|
tags
|
47
48
|
end
|
48
49
|
|
@@ -84,6 +85,14 @@ module Aws
|
|
84
85
|
tag(note)
|
85
86
|
end
|
86
87
|
|
88
|
+
def see_also_tag(api, shape)
|
89
|
+
tag(Crosslink.tag_string(api.metadata["uid"], shape.name))
|
90
|
+
end
|
91
|
+
|
92
|
+
def redirectable?(api, shape)
|
93
|
+
Crosslink.taggable?(api.metadata["uid"]) && shape.name
|
94
|
+
end
|
95
|
+
|
87
96
|
def returned_by(api, shape)
|
88
97
|
methods = []
|
89
98
|
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Aws
|
2
|
+
module Api
|
3
|
+
module Docs
|
4
|
+
module Crosslink
|
5
|
+
|
6
|
+
EXCLUDE_UIDS = [
|
7
|
+
"apigateway",
|
8
|
+
"budgets",
|
9
|
+
"cloudsearch",
|
10
|
+
"cloudsearchdomain",
|
11
|
+
"discovery",
|
12
|
+
"elastictranscoder",
|
13
|
+
"es",
|
14
|
+
"glacier",
|
15
|
+
"importexport",
|
16
|
+
"iot",
|
17
|
+
"iot-data",
|
18
|
+
"machinelearning",
|
19
|
+
"rekognition",
|
20
|
+
"s3",
|
21
|
+
"sdb",
|
22
|
+
"swf"
|
23
|
+
]
|
24
|
+
|
25
|
+
def self.tag_string(uid, name)
|
26
|
+
path = "#{ENV['BASEURL']}goto/WebAPI/#{uid}/#{name}"
|
27
|
+
"@see #{path} AWS API Documentation"
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.taggable?(uid)
|
31
|
+
uid && ENV['BASEURL'] && !exclude?(uid)
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
def self.exclude?(uid)
|
36
|
+
EXCLUDE_UIDS.any? do |service|
|
37
|
+
uid.match(/^#{service}/)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -6,10 +6,11 @@ module Aws
|
|
6
6
|
include Seahorse::Model
|
7
7
|
include Utils
|
8
8
|
|
9
|
-
def initialize(service_name, namespace)
|
9
|
+
def initialize(service_name, namespace, uid)
|
10
10
|
@service_name = service_name
|
11
11
|
@namespace = namespace
|
12
12
|
@optname = 'options'
|
13
|
+
@uid = uid
|
13
14
|
end
|
14
15
|
|
15
16
|
# @param [Symbol] method_name
|
@@ -137,7 +138,11 @@ module Aws
|
|
137
138
|
end
|
138
139
|
|
139
140
|
def see_also_tags(method_name, operation)
|
140
|
-
|
141
|
+
if Crosslink.taggable?(@uid)
|
142
|
+
[tag(Crosslink.tag_string(@uid, operation.name))]
|
143
|
+
else
|
144
|
+
[]
|
145
|
+
end
|
141
146
|
end
|
142
147
|
|
143
148
|
end
|
data/lib/aws-sdk-core/version.rb
CHANGED
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.6.
|
4
|
+
version: 2.6.38
|
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: 2016-12-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -358,6 +358,7 @@ files:
|
|
358
358
|
- lib/aws-sdk-core/api/customizations.rb
|
359
359
|
- lib/aws-sdk-core/api/docs/builder.rb
|
360
360
|
- lib/aws-sdk-core/api/docs/client_type_documenter.rb
|
361
|
+
- lib/aws-sdk-core/api/docs/crosslink.rb
|
361
362
|
- lib/aws-sdk-core/api/docs/docstring_provider.rb
|
362
363
|
- lib/aws-sdk-core/api/docs/operation_documenter.rb
|
363
364
|
- lib/aws-sdk-core/api/docs/param_formatter.rb
|