aws-sdk-kendraranking 1.6.0 → 1.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c52f33f653c9afb3178d15e6e2ce4e0bebb0151580f2011762005b4dd9d5fb9
4
- data.tar.gz: 0bcad3dce7ae5082232fc0d95e19a26b8aa9c67cad2e78a99a748702e35d424a
3
+ metadata.gz: 92e01c8f9301f927e9b78136de71d837c62f5ab949906bdbe0841275f6ae2a6e
4
+ data.tar.gz: 418e34937277db7172da7fc6eaca04dcce78b97defa026d19a802a21a6652d2a
5
5
  SHA512:
6
- metadata.gz: 24672d62f1fa78852a4831400792d933856d5dae7b52adb11dde10bc2a68f9e5e8e93b5035c971e7ab4b08c9a455b21d4abf3f84403a6cc373fe1e9ea3ec3445
7
- data.tar.gz: 73c887d63f13893a21ea45cd18b4aab23121cd682d259f2c3e078f3b687e9f6b804b57c4c6b0d7b62fa4cd0dab14a327bd8ab07ea06f0fac99b018d2e5e072c6
6
+ metadata.gz: 4e711f51b3d773318b4527f485f079e9abb36015ed639e543a0647884846ae430ad41fe6901f066b4040f9c5dc6c0617dc0d2d2e0f7e89d609450e349a3c7027
7
+ data.tar.gz: 91d6c03a31f516925c47f7a7ef4b409115f4b8753c52da1e70a40d1bbbd2d4fd403b522ace7e88cd2afde64fba6a18fabd04c42f73a953b21cefb81661b9cb46
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2023-09-19)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.6.0 (2023-07-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.7.0
@@ -812,7 +812,7 @@ module Aws::KendraRanking
812
812
  params: params,
813
813
  config: config)
814
814
  context[:gem_name] = 'aws-sdk-kendraranking'
815
- context[:gem_version] = '1.6.0'
815
+ context[:gem_version] = '1.7.0'
816
816
  Seahorse::Client::Request.new(handlers, context)
817
817
  end
818
818
 
@@ -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 (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: {})
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
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
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['dualStackDnsSuffix']}", headers: {}, properties: {})
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['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"
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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kendraranking/customizations'
52
52
  # @!group service
53
53
  module Aws::KendraRanking
54
54
 
55
- GEM_VERSION = '1.6.0'
55
+ GEM_VERSION = '1.7.0'
56
56
 
57
57
  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.6.0
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-07-11 00:00:00.000000000 Z
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