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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7331efc44a23985db18bc6b78e433f61c0b5f2524d21d32940678d79a1e12842
4
- data.tar.gz: f97f778f8fa695a8935d7379b423a74336fbf80f93baedbc5dd05e04972a7147
3
+ metadata.gz: 4e2c365b16a9b7225a940ce3cb602684b23a772fb70d338ceb093fc0bb310fb5
4
+ data.tar.gz: 4c9d69b2651ff62728eae3620e5e753f529819825715b500377d18a31f87eac4
5
5
  SHA512:
6
- metadata.gz: 2774e06722c534f0727e574f121fc6791f07aac6810b781130009ba862a6dbf26b146875d7be955955a7da462cfb757508bfe5abcf1bfe690ae8af65723857f8
7
- data.tar.gz: 840692264f633365c2c4106e322ac7c03584ecad05b72ebe6148db0a395d5e74d654d915be31847ac4b0af5aadf0c3f8ddc28433e8188fd1805f7c57e0f0bcd3
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.0.0
1
+ 1.1.0
@@ -792,7 +792,7 @@ module Aws::KendraRanking
792
792
  params: params,
793
793
  config: config)
794
794
  context[:gem_name] = 'aws-sdk-kendraranking'
795
- context[:gem_version] = '1.0.0'
795
+ context[:gem_version] = '1.1.0'
796
796
  Seahorse::Client::Request.new(handlers, context)
797
797
  end
798
798
 
@@ -9,84 +9,36 @@
9
9
 
10
10
  module Aws::KendraRanking
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
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
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
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
- RW5kcG9pbnQiOnsiYnVpbHRJbiI6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
75
- YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRklQUyJ9LHRydWVdfV0sInR5cGUi
76
- OiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOlt7ImZuIjoiYm9vbGVh
77
- bkVxdWFscyIsImFyZ3YiOlt0cnVlLHsiZm4iOiJnZXRBdHRyIiwiYXJndiI6
78
- W3sicmVmIjoiUGFydGl0aW9uUmVzdWx0In0sInN1cHBvcnRzRklQUyJdfV19
79
- XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W10sImVu
80
- ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8va2VuZHJhLXJhbmtpbmctZmlwcy57
81
- UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0
82
- aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsi
83
- Y29uZGl0aW9ucyI6W10sImVycm9yIjoiRklQUyBpcyBlbmFibGVkIGJ1dCB0
84
- aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IEZJUFMiLCJ0eXBlIjoi
85
- ZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6
86
- Imh0dHBzOi8va2VuZHJhLXJhbmtpbmcue1JlZ2lvbn0ue1BhcnRpdGlvblJl
87
- c3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9
88
- fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX1dfQ==
89
-
90
- JSON
91
43
  end
92
44
  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.0.0'
55
+ GEM_VERSION = '1.1.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.0.0
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-09 00:00:00.000000000 Z
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