aws-sdk-kendraranking 1.6.0 → 1.8.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 +10 -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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 946da9618e7af054cd27a656fd1f4cf38955dfa749bfc03fc20da20f34df21d3
|
4
|
+
data.tar.gz: 2a5d428c2b520ac53af97692490a5daba78f51833754230f7a3ed03ed7a6bc8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d548fa7ee7fb6cefcb29076af7f539f900c9d6c9334a076ae2f95f8c94f7c16fe38c5b47140ffa25aa64dfea011ab6ceb6683c1c7fd6e7f2c4ca9d812196d2
|
7
|
+
data.tar.gz: 52a830fe0c5cd96395b5e1397f1710f92b917b4dd7a6fbc50f6f0e3a3d74ef2f32c71089ff25500db624a81b7037aa7551a6e12f6749931fd503ab66f79967a1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.8.0 (2023-09-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.7.0 (2023-09-19)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.6.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.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.8.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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|