aws-sdk-kendraranking 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kendraranking/client.rb +1 -1
- data/lib/aws-sdk-kendraranking/endpoint_provider.rb +28 -76
- data/lib/aws-sdk-kendraranking.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2c365b16a9b7225a940ce3cb602684b23a772fb70d338ceb093fc0bb310fb5
|
4
|
+
data.tar.gz: 4c9d69b2651ff62728eae3620e5e753f529819825715b500377d18a31f87eac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f3383a843e7da6d4c6b0b0ef3cff3ede2dee75f4b0dc0beff896724daa1152b9750590c44f060c9f2912a48002c254ac815917009e61cb13b59aa3106cb6b13
|
7
|
+
data.tar.gz: c880e1a7b7ef570c884bc4735b01572a44be6a8f8a737a1f9e96403d127f25bba4db8376ce29ba9223cd1efb63ad9ad520ef49021c56f519ca4b46a59267df52
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.1.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
4
11
|
1.0.0 (2023-01-09)
|
5
12
|
------------------
|
6
13
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
@@ -9,84 +9,36 @@
|
|
9
9
|
|
10
10
|
module Aws::KendraRanking
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_fips = parameters.use_fips
|
15
|
+
endpoint = parameters.endpoint
|
16
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
22
|
+
end
|
23
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
27
|
+
end
|
28
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
29
|
+
end
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
34
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
35
|
+
end
|
36
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
37
|
+
end
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
39
|
end
|
22
|
-
|
23
|
-
end
|
40
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
41
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
42
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRklQUyI6eyJidWlsdElu
|
35
|
-
IjoiQVdTOjpVc2VGSVBTIiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZh
|
36
|
-
bHNlLCJkb2N1bWVudGF0aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVx
|
37
|
-
dWVzdCB0byB0aGUgRklQUy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQu
|
38
|
-
IElmIHRoZSBjb25maWd1cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBG
|
39
|
-
SVBTIGNvbXBsaWFudCBlbmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVl
|
40
|
-
c3Qgd2lsbCByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6IkJvb2xlYW4ifSwi
|
41
|
-
RW5kcG9pbnQiOnsiYnVpbHRJbiI6IlNESzo6RW5kcG9pbnQiLCJyZXF1aXJl
|
42
|
-
ZCI6ZmFsc2UsImRvY3VtZW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
91
43
|
end
|
92
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kendraranking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
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: 2023-01-
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|