aws-sdk-kendraranking 1.20.0 → 1.22.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: d2b1d639a9e8e07a20c7cfa20e3836f98fd84fefbc2825d4e703f11af5f9503d
4
+ data.tar.gz: 0ae1d805bd53a318ea35135bceb74f6ca2fbc565d7b144748355f0f1df911403
5
5
  SHA512:
6
- metadata.gz: dedb568400436111f80dfe5e936e726fa4b1f93934b6296720199b856bb7af9c16dfe8f6da0e0e7d84db3f42537408797d94c33d8adeabc44b487c82911f17e8
7
- data.tar.gz: a87bf4d07601593be7368c253474524a56b4de54447d1fd4b2ed5c3df34ea139242e24a0cfefe9528e35cb5d26d97e823a529b833b3f602e68b83098af0c649e
6
+ metadata.gz: ab5d4b2b52d4e2b6a03c501e57426505f6be405b7a6f7f461943b79e6a00ae39e89eed1c3558ef81adffe0d2fd5ccf46b62c3ed5306d9648db3be541bd3fe936
7
+ data.tar.gz: c5a8bc14f37a82b13126d1e9bcae892d5e6bf227cb5879ac314dc527765b55baa5c7fa8a6403b613088be29578119bef16f4fed53ea4409dd9fc82753d72a24a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.22.0 (2024-09-20)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.21.0 (2024-09-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.20.0 (2024-09-10)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.0
1
+ 1.22.0
@@ -130,13 +130,15 @@ module Aws::KendraRanking
130
130
  # locations will be searched for credentials:
131
131
  #
132
132
  # * `Aws.config[:credentials]`
133
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
134
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
133
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
134
+ # `:account_id` options.
135
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
136
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
135
137
  # * `~/.aws/credentials`
136
138
  # * `~/.aws/config`
137
139
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
140
  # are very aggressive. Construct and pass an instance of
139
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
141
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
142
  # enable retries and extended timeouts. Instance profile credential
141
143
  # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
144
  # to true.
@@ -155,6 +157,8 @@ module Aws::KendraRanking
155
157
  #
156
158
  # @option options [String] :access_key_id
157
159
  #
160
+ # @option options [String] :account_id
161
+ #
158
162
  # @option options [Boolean] :active_endpoint_cache (false)
159
163
  # When set to `true`, a thread polling for endpoints will be running in
160
164
  # the background every 60 secs (default). Defaults to `false`.
@@ -376,7 +380,9 @@ module Aws::KendraRanking
376
380
  # sending the request.
377
381
  #
378
382
  # @option options [Aws::KendraRanking::EndpointProvider] :endpoint_provider
379
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::KendraRanking::EndpointParameters`
383
+ # The endpoint provider used to resolve endpoints. Any object that responds to
384
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
385
+ # `Aws::KendraRanking::EndpointParameters`.
380
386
  #
381
387
  # @option options [Float] :http_continue_timeout (1)
382
388
  # The number of seconds to wait for a 100-continue response before sending the
@@ -869,7 +875,7 @@ module Aws::KendraRanking
869
875
  tracer: tracer
870
876
  )
871
877
  context[:gem_name] = 'aws-sdk-kendraranking'
872
- context[:gem_version] = '1.20.0'
878
+ context[:gem_version] = '1.22.0'
873
879
  Seahorse::Client::Request.new(handlers, context)
874
880
  end
875
881
 
@@ -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
@@ -15,11 +15,11 @@ module Aws::KendraRanking
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::KendraRanking::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::KendraRanking::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::KendraRanking::EndpointParameters`.
22
+ DOCS
23
23
  Aws::KendraRanking::EndpointProvider.new
24
24
  end
25
25
 
@@ -40,11 +40,23 @@ 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
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
48
60
  def apply_endpoint_headers(context, headers)
49
61
  headers.each do |key, values|
50
62
  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.22.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
data/sig/resource.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
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.22.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-20 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.207.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.207.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement