aws-sdk-core 3.266.0 → 3.267.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 +4 -4
- data/CHANGELOG.md +13 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/plugins/retries/retry_quota.rb +3 -9
- data/lib/aws-sdk-core/plugins/retry_errors.rb +23 -51
- data/lib/aws-sdk-signin/client.rb +7 -6
- data/lib/aws-sdk-signin.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +7 -6
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +7 -6
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +7 -6
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14d69a27c6e9ab4d821838bda1ea44d24fbfeef46e957a4f635da7f252308370
|
|
4
|
+
data.tar.gz: f94300ec6c2781db55bf7acc7f67307ff9f5a25935e659760fcfa6a00182e3f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c982cee56307d55c6ff1b23692e7f63ffd4f6898a131c641e98aaab0a896ca712fc1b45380618eb8669cfae2a2b5a5d9c1fb878acfbc951efd7a663318d6ce0c
|
|
7
|
+
data.tar.gz: bf509f3108e92cfe72fd05851cb23dbdd0506cd1256eb7cc001b494debeaa0e1d892be44f41abcb3cc8eed05ca795ba4ae445ae021a50fd47282044e20a661d9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
3.267.0 (2026-11-10)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
|
8
|
+
|
|
9
|
+
* Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
|
|
10
|
+
|
|
11
|
+
* Feature - Updated Aws::SSO::Client with the latest API changes.
|
|
12
|
+
|
|
13
|
+
* Feature - Updated Aws::Signin::Client with the latest API changes.
|
|
14
|
+
|
|
15
|
+
* Feature - AWS SDK clients now use `standard` retry mode by default, providing consistent retry quotas and backoff behavior across AWS services. To continue using the previous behavior, set the client's `retry_mode` to `legacy` or set `AWS_RETRY_MODE=legacy`. The `AWS_NEW_RETRIES_2026` environment variable is no longer used.
|
|
16
|
+
|
|
4
17
|
3.266.0 (2026-11-09)
|
|
5
18
|
------------------
|
|
6
19
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.267.0
|
|
@@ -9,10 +9,8 @@ module Aws
|
|
|
9
9
|
class RetryQuota
|
|
10
10
|
INITIAL_RETRY_TOKENS = 500
|
|
11
11
|
RETRY_COST = 14
|
|
12
|
-
LEGACY_RETRY_COST = 5 # TODO: Remove when new retries become default
|
|
13
12
|
NO_RETRY_INCREMENT = 1
|
|
14
13
|
THROTTLING_RETRY_COST = 5
|
|
15
|
-
TIMEOUT_RETRY_COST = 10 # TODO: Remove when new retries become default
|
|
16
14
|
|
|
17
15
|
def initialize(opts = {})
|
|
18
16
|
@mutex = Mutex.new
|
|
@@ -26,12 +24,8 @@ module Aws
|
|
|
26
24
|
# @return [Integer] The amount of capacity checked out
|
|
27
25
|
def checkout_capacity(error_inspector)
|
|
28
26
|
@mutex.synchronize do
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
error_inspector.throttling_error? ? THROTTLING_RETRY_COST : RETRY_COST
|
|
32
|
-
else
|
|
33
|
-
error_inspector.networking? ? TIMEOUT_RETRY_COST : LEGACY_RETRY_COST
|
|
34
|
-
end
|
|
27
|
+
capacity_amount =
|
|
28
|
+
error_inspector.throttling_error? ? THROTTLING_RETRY_COST : RETRY_COST
|
|
35
29
|
|
|
36
30
|
# unable to acquire capacity
|
|
37
31
|
return 0 if capacity_amount > @available_capacity
|
|
@@ -43,7 +37,7 @@ module Aws
|
|
|
43
37
|
|
|
44
38
|
# capacity_amount refers to the amount of capacity requested from
|
|
45
39
|
# the last retry. It can either be RETRY_COST,
|
|
46
|
-
# THROTTLING_RETRY_COST
|
|
40
|
+
# THROTTLING_RETRY_COST, or unset.
|
|
47
41
|
def release(capacity_amount)
|
|
48
42
|
# Implementation note: The release() method is called for
|
|
49
43
|
# every API call. In the common case where the request is
|
|
@@ -96,18 +96,18 @@ module Aws
|
|
|
96
96
|
|
|
97
97
|
option(
|
|
98
98
|
:retry_mode,
|
|
99
|
-
default: '
|
|
99
|
+
default: 'standard',
|
|
100
100
|
doc_type: String,
|
|
101
101
|
rbs_type: '("legacy" | "standard" | "adaptive")',
|
|
102
102
|
docstring: <<~DOCS) do |cfg|
|
|
103
103
|
Specifies which retry algorithm to use. Values are:
|
|
104
104
|
|
|
105
|
-
* `legacy` - The pre-existing retry behavior.
|
|
106
|
-
value if no retry mode is provided.
|
|
105
|
+
* `legacy` - The pre-existing retry behavior.
|
|
107
106
|
|
|
108
107
|
* `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
109
108
|
This includes support for retry quotas, which limit the number of
|
|
110
|
-
unsuccessful retries a client can make.
|
|
109
|
+
unsuccessful retries a client can make. This is the default value
|
|
110
|
+
if no retry mode is provided.
|
|
111
111
|
|
|
112
112
|
* `adaptive` - A retry mode that includes all the functionality of
|
|
113
113
|
`standard` mode along with automatic client side throttling.
|
|
@@ -123,7 +123,8 @@ module Aws
|
|
|
123
123
|
An integer representing the maximum number attempts that will be made for
|
|
124
124
|
a single request, including the initial attempt. For example,
|
|
125
125
|
setting this value to 5 will result in a request being retried up to
|
|
126
|
-
4 times. Used in `standard` and `adaptive` retry modes.
|
|
126
|
+
4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
127
|
+
except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
127
128
|
DOCS
|
|
128
129
|
resolve_max_attempts(cfg)
|
|
129
130
|
end
|
|
@@ -187,17 +188,6 @@ module Aws
|
|
|
187
188
|
end
|
|
188
189
|
end
|
|
189
190
|
|
|
190
|
-
# TODO: Remove this gate and hardcode new retry behavior once
|
|
191
|
-
# AWS_NEW_RETRIES_2026 is enabled by default, which includes:
|
|
192
|
-
# - Default retry_mode to 'standard'
|
|
193
|
-
# - Default max_attempts to 4 for DynamoDB
|
|
194
|
-
# - Remove the old retries branch in Handler#call
|
|
195
|
-
# - Remove the old retries branch in #exponential_backoff
|
|
196
|
-
# - Remove LEGACY_RETRY_COST and TIMEOUT_RETRY_COST from RetryQuota
|
|
197
|
-
def new_retries?
|
|
198
|
-
ENV.fetch('AWS_NEW_RETRIES_2026', 'false').downcase == 'true'
|
|
199
|
-
end
|
|
200
|
-
|
|
201
191
|
def resolve_retry_mode(cfg)
|
|
202
192
|
default_mode_value =
|
|
203
193
|
if cfg.respond_to?(:defaults_mode_config_resolver)
|
|
@@ -207,7 +197,7 @@ module Aws
|
|
|
207
197
|
value = ENV['AWS_RETRY_MODE'] ||
|
|
208
198
|
Aws.shared_config.retry_mode(profile: cfg.profile) ||
|
|
209
199
|
default_mode_value ||
|
|
210
|
-
|
|
200
|
+
'standard'
|
|
211
201
|
# Raise if provided value is not one of the retry modes
|
|
212
202
|
if value != 'legacy' && value != 'standard' && value != 'adaptive'
|
|
213
203
|
raise ArgumentError,
|
|
@@ -235,9 +225,6 @@ module Aws
|
|
|
235
225
|
end
|
|
236
226
|
|
|
237
227
|
def default_max_attempts(cfg)
|
|
238
|
-
# TODO: Remove gate and keep only the new retries branch
|
|
239
|
-
return 3 unless new_retries?
|
|
240
|
-
|
|
241
228
|
service_id = cfg.api.metadata['serviceId'] if cfg.respond_to?(:api)
|
|
242
229
|
DYNAMODB_SERVICES.include?(service_id) ? 4 : 3
|
|
243
230
|
end
|
|
@@ -338,31 +325,21 @@ module Aws
|
|
|
338
325
|
capacity_amount = config.retry_quota.checkout_capacity(error_inspector)
|
|
339
326
|
context.metadata[:retries][:capacity_amount] = capacity_amount
|
|
340
327
|
|
|
341
|
-
#
|
|
342
|
-
|
|
343
|
-
|
|
328
|
+
# Long polling operations back off even once the retry quota is
|
|
329
|
+
# depleted, so the delay is applied before the capacity check.
|
|
330
|
+
return response if capacity_amount <= 0 && !long_polling_operation?(context)
|
|
344
331
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
332
|
+
service_id = context.config.api.metadata['serviceId']
|
|
333
|
+
delay = backoff(context, error_inspector, service_id)
|
|
334
|
+
Kernel.sleep(delay)
|
|
348
335
|
|
|
349
|
-
|
|
350
|
-
else
|
|
351
|
-
return response unless capacity_amount > 0
|
|
352
|
-
|
|
353
|
-
delay = exponential_backoff(context.retries)
|
|
354
|
-
Kernel.sleep(delay)
|
|
355
|
-
end
|
|
336
|
+
return response if capacity_amount <= 0
|
|
356
337
|
|
|
357
338
|
retry_request(context, error_inspector)
|
|
358
339
|
end
|
|
359
340
|
|
|
360
341
|
private
|
|
361
342
|
|
|
362
|
-
def new_retries?
|
|
363
|
-
RetryErrors.new_retries?
|
|
364
|
-
end
|
|
365
|
-
|
|
366
343
|
# True when clock skew correction is turned off. The fallback
|
|
367
344
|
# correct_clock_skew option is folded in by the option resolver.
|
|
368
345
|
def clock_skew_correction_disabled?(config)
|
|
@@ -427,20 +404,15 @@ module Aws
|
|
|
427
404
|
[backoff_duration, exp_backoff + 5].min
|
|
428
405
|
end
|
|
429
406
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
end
|
|
440
|
-
Kernel.rand * [backoff_scalar * 2**retries, MAX_BACKOFF].min
|
|
441
|
-
else
|
|
442
|
-
[Kernel.rand * 2**retries, MAX_BACKOFF].min
|
|
443
|
-
end
|
|
407
|
+
def exponential_backoff(retries, error_inspector, service_id)
|
|
408
|
+
backoff_scalar = if error_inspector.throttling_error?
|
|
409
|
+
1
|
|
410
|
+
elsif DYNAMODB_SERVICES.include?(service_id)
|
|
411
|
+
0.025
|
|
412
|
+
else
|
|
413
|
+
0.05
|
|
414
|
+
end
|
|
415
|
+
Kernel.rand * [backoff_scalar * 2**retries, MAX_BACKOFF].min
|
|
444
416
|
end
|
|
445
417
|
|
|
446
418
|
def parse_retry_after(context)
|
|
@@ -264,7 +264,8 @@ module Aws::Signin
|
|
|
264
264
|
# An integer representing the maximum number attempts that will be made for
|
|
265
265
|
# a single request, including the initial attempt. For example,
|
|
266
266
|
# setting this value to 5 will result in a request being retried up to
|
|
267
|
-
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
267
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
268
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
268
269
|
#
|
|
269
270
|
# @option options [String] :profile ("default")
|
|
270
271
|
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
@@ -327,15 +328,15 @@ module Aws::Signin
|
|
|
327
328
|
# used by the default backoff function. This option is only used in the
|
|
328
329
|
# `legacy` retry mode.
|
|
329
330
|
#
|
|
330
|
-
# @option options [String] :retry_mode ("
|
|
331
|
+
# @option options [String] :retry_mode ("standard")
|
|
331
332
|
# Specifies which retry algorithm to use. Values are:
|
|
332
333
|
#
|
|
333
|
-
# * `legacy` - The pre-existing retry behavior.
|
|
334
|
-
# value if no retry mode is provided.
|
|
334
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
335
335
|
#
|
|
336
336
|
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
337
337
|
# This includes support for retry quotas, which limit the number of
|
|
338
|
-
# unsuccessful retries a client can make.
|
|
338
|
+
# unsuccessful retries a client can make. This is the default value
|
|
339
|
+
# if no retry mode is provided.
|
|
339
340
|
#
|
|
340
341
|
# * `adaptive` - A retry mode that includes all the functionality of
|
|
341
342
|
# `standard` mode along with automatic client side throttling.
|
|
@@ -1035,7 +1036,7 @@ module Aws::Signin
|
|
|
1035
1036
|
tracer: tracer
|
|
1036
1037
|
)
|
|
1037
1038
|
context[:gem_name] = 'aws-sdk-core'
|
|
1038
|
-
context[:gem_version] = '3.
|
|
1039
|
+
context[:gem_version] = '3.267.0'
|
|
1039
1040
|
Seahorse::Client::Request.new(handlers, context)
|
|
1040
1041
|
end
|
|
1041
1042
|
|
data/lib/aws-sdk-signin.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED
|
@@ -264,7 +264,8 @@ module Aws::SSO
|
|
|
264
264
|
# An integer representing the maximum number attempts that will be made for
|
|
265
265
|
# a single request, including the initial attempt. For example,
|
|
266
266
|
# setting this value to 5 will result in a request being retried up to
|
|
267
|
-
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
267
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
268
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
268
269
|
#
|
|
269
270
|
# @option options [String] :profile ("default")
|
|
270
271
|
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
@@ -327,15 +328,15 @@ module Aws::SSO
|
|
|
327
328
|
# used by the default backoff function. This option is only used in the
|
|
328
329
|
# `legacy` retry mode.
|
|
329
330
|
#
|
|
330
|
-
# @option options [String] :retry_mode ("
|
|
331
|
+
# @option options [String] :retry_mode ("standard")
|
|
331
332
|
# Specifies which retry algorithm to use. Values are:
|
|
332
333
|
#
|
|
333
|
-
# * `legacy` - The pre-existing retry behavior.
|
|
334
|
-
# value if no retry mode is provided.
|
|
334
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
335
335
|
#
|
|
336
336
|
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
337
337
|
# This includes support for retry quotas, which limit the number of
|
|
338
|
-
# unsuccessful retries a client can make.
|
|
338
|
+
# unsuccessful retries a client can make. This is the default value
|
|
339
|
+
# if no retry mode is provided.
|
|
339
340
|
#
|
|
340
341
|
# * `adaptive` - A retry mode that includes all the functionality of
|
|
341
342
|
# `standard` mode along with automatic client side throttling.
|
|
@@ -703,7 +704,7 @@ module Aws::SSO
|
|
|
703
704
|
tracer: tracer
|
|
704
705
|
)
|
|
705
706
|
context[:gem_name] = 'aws-sdk-core'
|
|
706
|
-
context[:gem_version] = '3.
|
|
707
|
+
context[:gem_version] = '3.267.0'
|
|
707
708
|
Seahorse::Client::Request.new(handlers, context)
|
|
708
709
|
end
|
|
709
710
|
|
data/lib/aws-sdk-sso.rb
CHANGED
|
@@ -264,7 +264,8 @@ module Aws::SSOOIDC
|
|
|
264
264
|
# An integer representing the maximum number attempts that will be made for
|
|
265
265
|
# a single request, including the initial attempt. For example,
|
|
266
266
|
# setting this value to 5 will result in a request being retried up to
|
|
267
|
-
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
267
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
268
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
268
269
|
#
|
|
269
270
|
# @option options [String] :profile ("default")
|
|
270
271
|
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
@@ -327,15 +328,15 @@ module Aws::SSOOIDC
|
|
|
327
328
|
# used by the default backoff function. This option is only used in the
|
|
328
329
|
# `legacy` retry mode.
|
|
329
330
|
#
|
|
330
|
-
# @option options [String] :retry_mode ("
|
|
331
|
+
# @option options [String] :retry_mode ("standard")
|
|
331
332
|
# Specifies which retry algorithm to use. Values are:
|
|
332
333
|
#
|
|
333
|
-
# * `legacy` - The pre-existing retry behavior.
|
|
334
|
-
# value if no retry mode is provided.
|
|
334
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
335
335
|
#
|
|
336
336
|
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
337
337
|
# This includes support for retry quotas, which limit the number of
|
|
338
|
-
# unsuccessful retries a client can make.
|
|
338
|
+
# unsuccessful retries a client can make. This is the default value
|
|
339
|
+
# if no retry mode is provided.
|
|
339
340
|
#
|
|
340
341
|
# * `adaptive` - A retry mode that includes all the functionality of
|
|
341
342
|
# `standard` mode along with automatic client side throttling.
|
|
@@ -1086,7 +1087,7 @@ module Aws::SSOOIDC
|
|
|
1086
1087
|
tracer: tracer
|
|
1087
1088
|
)
|
|
1088
1089
|
context[:gem_name] = 'aws-sdk-core'
|
|
1089
|
-
context[:gem_version] = '3.
|
|
1090
|
+
context[:gem_version] = '3.267.0'
|
|
1090
1091
|
Seahorse::Client::Request.new(handlers, context)
|
|
1091
1092
|
end
|
|
1092
1093
|
|
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
|
@@ -266,7 +266,8 @@ module Aws::STS
|
|
|
266
266
|
# An integer representing the maximum number attempts that will be made for
|
|
267
267
|
# a single request, including the initial attempt. For example,
|
|
268
268
|
# setting this value to 5 will result in a request being retried up to
|
|
269
|
-
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
269
|
+
# 4 times. Used in `standard` and `adaptive` retry modes. Defaults to 3,
|
|
270
|
+
# except for DynamoDB and DynamoDB Streams, which default to 4.
|
|
270
271
|
#
|
|
271
272
|
# @option options [String] :profile ("default")
|
|
272
273
|
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
@@ -329,15 +330,15 @@ module Aws::STS
|
|
|
329
330
|
# used by the default backoff function. This option is only used in the
|
|
330
331
|
# `legacy` retry mode.
|
|
331
332
|
#
|
|
332
|
-
# @option options [String] :retry_mode ("
|
|
333
|
+
# @option options [String] :retry_mode ("standard")
|
|
333
334
|
# Specifies which retry algorithm to use. Values are:
|
|
334
335
|
#
|
|
335
|
-
# * `legacy` - The pre-existing retry behavior.
|
|
336
|
-
# value if no retry mode is provided.
|
|
336
|
+
# * `legacy` - The pre-existing retry behavior.
|
|
337
337
|
#
|
|
338
338
|
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
|
339
339
|
# This includes support for retry quotas, which limit the number of
|
|
340
|
-
# unsuccessful retries a client can make.
|
|
340
|
+
# unsuccessful retries a client can make. This is the default value
|
|
341
|
+
# if no retry mode is provided.
|
|
341
342
|
#
|
|
342
343
|
# * `adaptive` - A retry mode that includes all the functionality of
|
|
343
344
|
# `standard` mode along with automatic client side throttling.
|
|
@@ -2807,7 +2808,7 @@ module Aws::STS
|
|
|
2807
2808
|
tracer: tracer
|
|
2808
2809
|
)
|
|
2809
2810
|
context[:gem_name] = 'aws-sdk-core'
|
|
2810
|
-
context[:gem_version] = '3.
|
|
2811
|
+
context[:gem_version] = '3.267.0'
|
|
2811
2812
|
Seahorse::Client::Request.new(handlers, context)
|
|
2812
2813
|
end
|
|
2813
2814
|
|
data/lib/aws-sdk-sts.rb
CHANGED