aws-sdk-dynamodb 1.133.0 → 1.135.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: 4ff9a8ce54ccece612e609cbd88a4231716e500f325e314df057886b6895ab02
4
- data.tar.gz: d723ebd4bb9bc0948771777e65cbd22f1463285fcf820101607c07e7ccd8a82b
3
+ metadata.gz: 2368462c4536ca2358bbca7754262045cd96aac37cafd504283f97b629743364
4
+ data.tar.gz: 2740ad8fc2e2849fbb2b54be577fd22e02c04eae0aae431786bbdd0ebaad0dac
5
5
  SHA512:
6
- metadata.gz: 6c64660d85c146b6d89c658a21aef6c5e67f3bfac5bea463450d4c44ff1c41ac75beada3567c16441fb8b384ce52061fe6d2b78461bb203590543271f239f64a
7
- data.tar.gz: b7117bdaf93c8b76489fe6bd7b7629de207f64f4a8bc225505cabba21f784caaba12f236f2d7b32180b53c46803b4e8d2c5337ccc60e569c856ea6fec39ea215
6
+ metadata.gz: ffde9da1b687ce79d151dd8187569caf2f3f65fa215bcaaa06e3e50dd1c1c2fd5b476275a9fd5e9e51e526c00790c498c0d3c8169153a70eb7ba5452f190f450
7
+ data.tar.gz: 9bb27b429e6ae8112162060d3e2d37db569ca163ef6aeec5d2cda36e60cb537d3f8cfafcb142a2cdb6587413ae3e45a55c1a7f8199ba1f311a89baaad5ab79de
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.135.0 (2025-01-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Allow other retry configs to influence DynamoDB extended retries.
10
+
11
+ 1.134.0 (2025-01-15)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.133.0 (2025-01-07)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.133.0
1
+ 1.135.0
@@ -269,16 +269,39 @@ module Aws::DynamoDB
269
269
  # Used when loading credentials from the shared credentials file
270
270
  # at HOME/.aws/credentials. When not specified, 'default' is used.
271
271
  #
272
+ # @option options [String] :request_checksum_calculation ("when_supported")
273
+ # Determines when a checksum will be calculated for request payloads. Values are:
274
+ #
275
+ # * `when_supported` - (default) When set, a checksum will be
276
+ # calculated for all request payloads of operations modeled with the
277
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
278
+ # `requestAlgorithmMember` is modeled.
279
+ # * `when_required` - When set, a checksum will only be calculated for
280
+ # request payloads of operations modeled with the `httpChecksum` trait where
281
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
282
+ # is modeled and supplied.
283
+ #
272
284
  # @option options [Integer] :request_min_compression_size_bytes (10240)
273
285
  # The minimum size in bytes that triggers compression for request
274
286
  # bodies. The value must be non-negative integer value between 0
275
287
  # and 10485780 bytes inclusive.
276
288
  #
289
+ # @option options [String] :response_checksum_validation ("when_supported")
290
+ # Determines when checksum validation will be performed on response payloads. Values are:
291
+ #
292
+ # * `when_supported` - (default) When set, checksum validation is performed on all
293
+ # response payloads of operations modeled with the `httpChecksum` trait where
294
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
295
+ # are supported.
296
+ # * `when_required` - When set, checksum validation is not performed on
297
+ # response payloads of operations unless the checksum algorithm is supported and
298
+ # the `requestValidationModeMember` member is set to `ENABLED`.
299
+ #
277
300
  # @option options [Proc] :retry_backoff
278
301
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
279
302
  # This option is only used in the `legacy` retry mode.
280
303
  #
281
- # @option options [Float] :retry_base_delay (0.3)
304
+ # @option options [Float] :retry_base_delay (0.05)
282
305
  # The base delay in seconds used by the default backoff function. This option
283
306
  # is only used in the `legacy` retry mode.
284
307
  #
@@ -294,8 +317,9 @@ module Aws::DynamoDB
294
317
  # The maximum number of times to retry failed requests. Only
295
318
  # ~ 500 level server errors and certain ~ 400 level client errors
296
319
  # are retried. Generally, these are throttling errors, data
297
- # checksum errors, networking errors, timeout errors and auth
298
- # errors from expired credentials.
320
+ # checksum errors, networking errors, timeout errors, auth errors,
321
+ # endpoint discovery, and errors from expired credentials.
322
+ # This option is only used in the `legacy` retry mode.
299
323
  #
300
324
  # @option options [Integer] :retry_max_delay (0)
301
325
  # The maximum number of seconds to delay between retries (0 for no limit)
@@ -8602,7 +8626,7 @@ module Aws::DynamoDB
8602
8626
  tracer: tracer
8603
8627
  )
8604
8628
  context[:gem_name] = 'aws-sdk-dynamodb'
8605
- context[:gem_version] = '1.133.0'
8629
+ context[:gem_version] = '1.135.0'
8606
8630
  Seahorse::Client::Request.new(handlers, context)
8607
8631
  end
8608
8632
 
@@ -4,25 +4,49 @@ module Aws
4
4
  module DynamoDB
5
5
  module Plugins
6
6
  class ExtendedRetries < Seahorse::Client::Plugin
7
+ DEFAULT_BACKOFF = lambda do |c|
8
+ return unless c.retries > 1
7
9
 
8
- option(:retry_limit,
10
+ delay = 2**(c.retries - 1) * c.config.retry_base_delay
11
+ if (c.config.retry_max_delay || 0) > 0
12
+ delay = [delay, c.config.retry_max_delay].min
13
+ end
14
+ jitter = c.config.retry_jitter
15
+ jitter = Aws::Plugins::RetryErrors::JITTERS[jitter] if jitter.is_a?(Symbol)
16
+ delay = jitter.call(delay) if jitter
17
+ Kernel.sleep(delay)
18
+ end
19
+
20
+ option(
21
+ :retry_limit,
9
22
  default: 10,
10
- required: false,
11
23
  doc_type: Integer,
12
24
  docstring: <<-DOCS)
13
25
  The maximum number of times to retry failed requests. Only
14
26
  ~ 500 level server errors and certain ~ 400 level client errors
15
27
  are retried. Generally, these are throttling errors, data
16
- checksum errors, networking errors, timeout errors and auth
17
- errors from expired credentials.
18
- DOCS
28
+ checksum errors, networking errors, timeout errors, auth errors,
29
+ endpoint discovery, and errors from expired credentials.
30
+ This option is only used in the `legacy` retry mode.
31
+ DOCS
19
32
 
20
- option(:retry_backoff, default: lambda { |context|
21
- if context.retries > 1
22
- Kernel.sleep(50 * (2 ** (context.retries - 1)) / 1000.0)
23
- end
24
- })
33
+ option(
34
+ :retry_base_delay,
35
+ default: 0.05,
36
+ doc_type: Float,
37
+ docstring: <<-DOCS)
38
+ The base delay in seconds used by the default backoff function. This option
39
+ is only used in the `legacy` retry mode.
40
+ DOCS
25
41
 
42
+ option(
43
+ :retry_backoff,
44
+ default: DEFAULT_BACKOFF,
45
+ doc_type: Proc,
46
+ docstring: <<-DOCS)
47
+ A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
48
+ This option is only used in the `legacy` retry mode.
49
+ DOCS
26
50
  end
27
51
  end
28
52
  end
@@ -56,7 +56,7 @@ module Aws::DynamoDB
56
56
  autoload :Endpoints, 'aws-sdk-dynamodb/endpoints'
57
57
  autoload :Table, 'aws-sdk-dynamodb/table'
58
58
 
59
- GEM_VERSION = '1.133.0'
59
+ GEM_VERSION = '1.135.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -40,7 +40,9 @@ module Aws
40
40
  ?logger: untyped,
41
41
  ?max_attempts: Integer,
42
42
  ?profile: String,
43
+ ?request_checksum_calculation: String,
43
44
  ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
44
46
  ?retry_backoff: Proc,
45
47
  ?retry_base_delay: Float,
46
48
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
data/sig/resource.rbs CHANGED
@@ -40,7 +40,9 @@ module Aws
40
40
  ?logger: untyped,
41
41
  ?max_attempts: Integer,
42
42
  ?profile: String,
43
+ ?request_checksum_calculation: String,
43
44
  ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
44
46
  ?retry_backoff: Proc,
45
47
  ?retry_base_delay: Float,
46
48
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.133.0
4
+ version: 1.135.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: 2025-01-07 00:00:00.000000000 Z
11
+ date: 2025-01-30 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.210.0
22
+ version: 3.216.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.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement