aws-sdk-kendraranking 1.20.0 → 1.21.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: e9829755211f8cbc13f341551dd2eb3c6c5920003db5b64b4e30b3edab9a7359
4
- data.tar.gz: df00a67024305a5c5aa257750a90967ee7b55157c877b7ca43cae25b416cc5b3
3
+ metadata.gz: 5272f7ad9b185e23231936030ab41e274fdc15aabcee34339e9b87508cc6d48e
4
+ data.tar.gz: 9c45b282e54f886793ced850ae9a447f741ba7ae924f4d0823853fd4273d03de
5
5
  SHA512:
6
- metadata.gz: dedb568400436111f80dfe5e936e726fa4b1f93934b6296720199b856bb7af9c16dfe8f6da0e0e7d84db3f42537408797d94c33d8adeabc44b487c82911f17e8
7
- data.tar.gz: a87bf4d07601593be7368c253474524a56b4de54447d1fd4b2ed5c3df34ea139242e24a0cfefe9528e35cb5d26d97e823a529b833b3f602e68b83098af0c649e
6
+ metadata.gz: 4876f49f40bac8a31ffdc64ed4dc81bf4c257875af5591c2dec28452cc8e5b9d49b7ae3e9c83d5984243ec394bbcfcae6d08c249ac010a1b07adc4acea1e3349
7
+ data.tar.gz: 79112c491e45170c66acb6907d4750b748cb3bde257f637cd25aa0d8e82f295d8e67d3609f142f6aecc5c1b7eb7dad7f73ca45f0bdcee49686f8dc90b0a8ee40
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.21.0 (2024-09-11)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.20.0 (2024-09-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.0
1
+ 1.21.0
@@ -869,7 +869,7 @@ module Aws::KendraRanking
869
869
  tracer: tracer
870
870
  )
871
871
  context[:gem_name] = 'aws-sdk-kendraranking'
872
- context[:gem_version] = '1.20.0'
872
+ context[:gem_version] = '1.21.0'
873
873
  Seahorse::Client::Request.new(handlers, context)
874
874
  end
875
875
 
@@ -14,117 +14,90 @@ module Aws::KendraRanking
14
14
 
15
15
  class CreateRescoreExecutionPlan
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::KendraRanking::EndpointParameters.new(
21
18
  region: context.config.region,
22
19
  use_fips: context.config.use_fips_endpoint,
23
- endpoint: endpoint,
20
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
24
21
  )
25
22
  end
26
23
  end
27
24
 
28
25
  class DeleteRescoreExecutionPlan
29
26
  def self.build(context)
30
- unless context.config.regional_endpoint
31
- endpoint = context.config.endpoint.to_s
32
- end
33
27
  Aws::KendraRanking::EndpointParameters.new(
34
28
  region: context.config.region,
35
29
  use_fips: context.config.use_fips_endpoint,
36
- endpoint: endpoint,
30
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
37
31
  )
38
32
  end
39
33
  end
40
34
 
41
35
  class DescribeRescoreExecutionPlan
42
36
  def self.build(context)
43
- unless context.config.regional_endpoint
44
- endpoint = context.config.endpoint.to_s
45
- end
46
37
  Aws::KendraRanking::EndpointParameters.new(
47
38
  region: context.config.region,
48
39
  use_fips: context.config.use_fips_endpoint,
49
- endpoint: endpoint,
40
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
50
41
  )
51
42
  end
52
43
  end
53
44
 
54
45
  class ListRescoreExecutionPlans
55
46
  def self.build(context)
56
- unless context.config.regional_endpoint
57
- endpoint = context.config.endpoint.to_s
58
- end
59
47
  Aws::KendraRanking::EndpointParameters.new(
60
48
  region: context.config.region,
61
49
  use_fips: context.config.use_fips_endpoint,
62
- endpoint: endpoint,
50
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
63
51
  )
64
52
  end
65
53
  end
66
54
 
67
55
  class ListTagsForResource
68
56
  def self.build(context)
69
- unless context.config.regional_endpoint
70
- endpoint = context.config.endpoint.to_s
71
- end
72
57
  Aws::KendraRanking::EndpointParameters.new(
73
58
  region: context.config.region,
74
59
  use_fips: context.config.use_fips_endpoint,
75
- endpoint: endpoint,
60
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
76
61
  )
77
62
  end
78
63
  end
79
64
 
80
65
  class Rescore
81
66
  def self.build(context)
82
- unless context.config.regional_endpoint
83
- endpoint = context.config.endpoint.to_s
84
- end
85
67
  Aws::KendraRanking::EndpointParameters.new(
86
68
  region: context.config.region,
87
69
  use_fips: context.config.use_fips_endpoint,
88
- endpoint: endpoint,
70
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
89
71
  )
90
72
  end
91
73
  end
92
74
 
93
75
  class TagResource
94
76
  def self.build(context)
95
- unless context.config.regional_endpoint
96
- endpoint = context.config.endpoint.to_s
97
- end
98
77
  Aws::KendraRanking::EndpointParameters.new(
99
78
  region: context.config.region,
100
79
  use_fips: context.config.use_fips_endpoint,
101
- endpoint: endpoint,
80
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
102
81
  )
103
82
  end
104
83
  end
105
84
 
106
85
  class UntagResource
107
86
  def self.build(context)
108
- unless context.config.regional_endpoint
109
- endpoint = context.config.endpoint.to_s
110
- end
111
87
  Aws::KendraRanking::EndpointParameters.new(
112
88
  region: context.config.region,
113
89
  use_fips: context.config.use_fips_endpoint,
114
- endpoint: endpoint,
90
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
115
91
  )
116
92
  end
117
93
  end
118
94
 
119
95
  class UpdateRescoreExecutionPlan
120
96
  def self.build(context)
121
- unless context.config.regional_endpoint
122
- endpoint = context.config.endpoint.to_s
123
- end
124
97
  Aws::KendraRanking::EndpointParameters.new(
125
98
  region: context.config.region,
126
99
  use_fips: context.config.use_fips_endpoint,
127
- endpoint: endpoint,
100
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
128
101
  )
129
102
  end
130
103
  end
@@ -40,11 +40,20 @@ module Aws::KendraRanking
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
48
57
  def apply_endpoint_headers(context, headers)
49
58
  headers.each do |key, values|
50
59
  value = values
@@ -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.20.0'
55
+ GEM_VERSION = '1.21.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.20.0
4
+ version: 1.21.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: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-09-11 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.203.0
22
+ version: 3.205.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.203.0
32
+ version: 3.205.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement