aws-sdk-kendraranking 1.6.0 → 1.7.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kendraranking/client.rb +1 -1
- data/lib/aws-sdk-kendraranking/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-kendraranking/endpoint_provider.rb +19 -16
- 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: 92e01c8f9301f927e9b78136de71d837c62f5ab949906bdbe0841275f6ae2a6e
|
4
|
+
data.tar.gz: 418e34937277db7172da7fc6eaca04dcce78b97defa026d19a802a21a6652d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e711f51b3d773318b4527f485f079e9abb36015ed639e543a0647884846ae430ad41fe6901f066b4040f9c5dc6c0617dc0d2d2e0f7e89d609450e349a3c7027
|
7
|
+
data.tar.gz: 91d6c03a31f516925c47f7a7ef4b409115f4b8753c52da1e70a40d1bbbd2d4fd403b522ace7e88cd2afde64fba6a18fabd04c42f73a953b21cefb81661b9cb46
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
@@ -43,9 +43,6 @@ module Aws::KendraRanking
|
|
43
43
|
|
44
44
|
def initialize(options = {})
|
45
45
|
self[:region] = options[:region]
|
46
|
-
if self[:region].nil?
|
47
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
48
|
-
end
|
49
46
|
self[:use_fips] = options[:use_fips]
|
50
47
|
self[:use_fips] = false if self[:use_fips].nil?
|
51
48
|
if self[:use_fips].nil?
|
@@ -13,30 +13,33 @@ module Aws::KendraRanking
|
|
13
13
|
region = parameters.region
|
14
14
|
use_fips = parameters.use_fips
|
15
15
|
endpoint = parameters.endpoint
|
16
|
-
if
|
17
|
-
if Aws::Endpoints::Matchers.
|
18
|
-
|
19
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
-
end
|
21
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
16
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
18
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
22
19
|
end
|
23
|
-
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.set?(region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
26
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
27
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
28
|
+
end
|
29
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
30
|
+
end
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
32
|
+
end
|
24
33
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
25
34
|
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['
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
27
36
|
end
|
28
37
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
29
38
|
end
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['
|
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"
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
40
|
end
|
38
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kendra-ranking.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
39
41
|
end
|
42
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
40
43
|
raise ArgumentError, 'No endpoint could be resolved'
|
41
44
|
|
42
45
|
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.7.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-
|
11
|
+
date: 2023-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|