aws-sdk-dynamodb 1.131.0 → 1.133.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +15 -7
- data/lib/aws-sdk-dynamodb/client_api.rb +3 -0
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-dynamodb/plugins/simple_attributes.rb +26 -0
- data/lib/aws-sdk-dynamodb/types.rb +19 -1
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +2 -1
- data/sig/types.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff9a8ce54ccece612e609cbd88a4231716e500f325e314df057886b6895ab02
|
4
|
+
data.tar.gz: d723ebd4bb9bc0948771777e65cbd22f1463285fcf820101607c07e7ccd8a82b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c64660d85c146b6d89c658a21aef6c5e67f3bfac5bea463450d4c44ff1c41ac75beada3567c16441fb8b384ce52061fe6d2b78461bb203590543271f239f64a
|
7
|
+
data.tar.gz: b7117bdaf93c8b76489fe6bd7b7629de207f64f4a8bc225505cabba21f784caaba12f236f2d7b32180b53c46803b4e8d2c5337ccc60e569c856ea6fec39ea215
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.133.0 (2025-01-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release makes Amazon DynamoDB point-in-time-recovery (PITR) to be configurable. You can set PITR recovery period for each table individually to between 1 and 35 days.
|
8
|
+
|
9
|
+
1.132.0 (2024-12-09)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Improve `SimpleAttributes` documentation.
|
15
|
+
|
4
16
|
1.131.0 (2024-12-03)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.133.0
|
@@ -344,6 +344,8 @@ module Aws::DynamoDB
|
|
344
344
|
# their types specified, e.g. `{ s: 'abc' }` instead of simply
|
345
345
|
# `'abc'`.
|
346
346
|
#
|
347
|
+
# See {Aws::DynamoDB::Plugins::SimpleAttributes} for more information.
|
348
|
+
#
|
347
349
|
# @option options [Boolean] :simple_json (false)
|
348
350
|
# Disables request parameter conversion, validation, and formatting.
|
349
351
|
# Also disables response data type conversions. The request parameters
|
@@ -2540,8 +2542,9 @@ module Aws::DynamoDB
|
|
2540
2542
|
# and `LatestRestorableDateTime`.
|
2541
2543
|
#
|
2542
2544
|
# `LatestRestorableDateTime` is typically 5 minutes before the current
|
2543
|
-
# time. You can restore your table to any point in time
|
2544
|
-
#
|
2545
|
+
# time. You can restore your table to any point in time in the last 35
|
2546
|
+
# days. You can set the recovery period to any value between 1 and 35
|
2547
|
+
# days.
|
2545
2548
|
#
|
2546
2549
|
# You can call `DescribeContinuousBackups` at a maximum rate of 10 times
|
2547
2550
|
# per second.
|
@@ -2567,6 +2570,7 @@ module Aws::DynamoDB
|
|
2567
2570
|
#
|
2568
2571
|
# resp.continuous_backups_description.continuous_backups_status #=> String, one of "ENABLED", "DISABLED"
|
2569
2572
|
# resp.continuous_backups_description.point_in_time_recovery_description.point_in_time_recovery_status #=> String, one of "ENABLED", "DISABLED"
|
2573
|
+
# resp.continuous_backups_description.point_in_time_recovery_description.recovery_period_in_days #=> Integer
|
2570
2574
|
# resp.continuous_backups_description.point_in_time_recovery_description.earliest_restorable_date_time #=> Time
|
2571
2575
|
# resp.continuous_backups_description.point_in_time_recovery_description.latest_restorable_date_time #=> Time
|
2572
2576
|
#
|
@@ -5882,8 +5886,9 @@ module Aws::DynamoDB
|
|
5882
5886
|
|
5883
5887
|
# Restores the specified table to the specified point in time within
|
5884
5888
|
# `EarliestRestorableDateTime` and `LatestRestorableDateTime`. You can
|
5885
|
-
# restore your table to any point in time
|
5886
|
-
#
|
5889
|
+
# restore your table to any point in time in the last 35 days. You can
|
5890
|
+
# set the recovery period to any value between 1 and 35 days. Any number
|
5891
|
+
# of users can execute up to 50 concurrent restores (any type of
|
5887
5892
|
# restore) in a given account.
|
5888
5893
|
#
|
5889
5894
|
# When you restore using point in time recovery, DynamoDB restores your
|
@@ -7035,8 +7040,9 @@ module Aws::DynamoDB
|
|
7035
7040
|
# and `LatestRestorableDateTime`.
|
7036
7041
|
#
|
7037
7042
|
# `LatestRestorableDateTime` is typically 5 minutes before the current
|
7038
|
-
# time. You can restore your table to any point in time
|
7039
|
-
#
|
7043
|
+
# time. You can restore your table to any point in time in the last 35
|
7044
|
+
# days. You can set the recovery period to any value between 1 and 35
|
7045
|
+
# days.
|
7040
7046
|
#
|
7041
7047
|
# @option params [required, String] :table_name
|
7042
7048
|
# The name of the table. You can also provide the Amazon Resource Name
|
@@ -7055,6 +7061,7 @@ module Aws::DynamoDB
|
|
7055
7061
|
# table_name: "TableArn", # required
|
7056
7062
|
# point_in_time_recovery_specification: { # required
|
7057
7063
|
# point_in_time_recovery_enabled: false, # required
|
7064
|
+
# recovery_period_in_days: 1,
|
7058
7065
|
# },
|
7059
7066
|
# })
|
7060
7067
|
#
|
@@ -7062,6 +7069,7 @@ module Aws::DynamoDB
|
|
7062
7069
|
#
|
7063
7070
|
# resp.continuous_backups_description.continuous_backups_status #=> String, one of "ENABLED", "DISABLED"
|
7064
7071
|
# resp.continuous_backups_description.point_in_time_recovery_description.point_in_time_recovery_status #=> String, one of "ENABLED", "DISABLED"
|
7072
|
+
# resp.continuous_backups_description.point_in_time_recovery_description.recovery_period_in_days #=> Integer
|
7065
7073
|
# resp.continuous_backups_description.point_in_time_recovery_description.earliest_restorable_date_time #=> Time
|
7066
7074
|
# resp.continuous_backups_description.point_in_time_recovery_description.latest_restorable_date_time #=> Time
|
7067
7075
|
#
|
@@ -8594,7 +8602,7 @@ module Aws::DynamoDB
|
|
8594
8602
|
tracer: tracer
|
8595
8603
|
)
|
8596
8604
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
8597
|
-
context[:gem_version] = '1.
|
8605
|
+
context[:gem_version] = '1.133.0'
|
8598
8606
|
Seahorse::Client::Request.new(handlers, context)
|
8599
8607
|
end
|
8600
8608
|
|
@@ -344,6 +344,7 @@ module Aws::DynamoDB
|
|
344
344
|
PutResourcePolicyOutput = Shapes::StructureShape.new(name: 'PutResourcePolicyOutput')
|
345
345
|
QueryInput = Shapes::StructureShape.new(name: 'QueryInput')
|
346
346
|
QueryOutput = Shapes::StructureShape.new(name: 'QueryOutput')
|
347
|
+
RecoveryPeriodInDays = Shapes::IntegerShape.new(name: 'RecoveryPeriodInDays')
|
347
348
|
RegionName = Shapes::StringShape.new(name: 'RegionName')
|
348
349
|
Replica = Shapes::StructureShape.new(name: 'Replica')
|
349
350
|
ReplicaAlreadyExistsException = Shapes::StructureShape.new(name: 'ReplicaAlreadyExistsException')
|
@@ -1381,11 +1382,13 @@ module Aws::DynamoDB
|
|
1381
1382
|
PartiQLBatchResponse.member = Shapes::ShapeRef.new(shape: BatchStatementResponse)
|
1382
1383
|
|
1383
1384
|
PointInTimeRecoveryDescription.add_member(:point_in_time_recovery_status, Shapes::ShapeRef.new(shape: PointInTimeRecoveryStatus, location_name: "PointInTimeRecoveryStatus"))
|
1385
|
+
PointInTimeRecoveryDescription.add_member(:recovery_period_in_days, Shapes::ShapeRef.new(shape: RecoveryPeriodInDays, location_name: "RecoveryPeriodInDays"))
|
1384
1386
|
PointInTimeRecoveryDescription.add_member(:earliest_restorable_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "EarliestRestorableDateTime"))
|
1385
1387
|
PointInTimeRecoveryDescription.add_member(:latest_restorable_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestRestorableDateTime"))
|
1386
1388
|
PointInTimeRecoveryDescription.struct_class = Types::PointInTimeRecoveryDescription
|
1387
1389
|
|
1388
1390
|
PointInTimeRecoverySpecification.add_member(:point_in_time_recovery_enabled, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "PointInTimeRecoveryEnabled"))
|
1391
|
+
PointInTimeRecoverySpecification.add_member(:recovery_period_in_days, Shapes::ShapeRef.new(shape: RecoveryPeriodInDays, location_name: "RecoveryPeriodInDays"))
|
1389
1392
|
PointInTimeRecoverySpecification.struct_class = Types::PointInTimeRecoverySpecification
|
1390
1393
|
|
1391
1394
|
PointInTimeRecoveryUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -34,7 +34,7 @@ module Aws::DynamoDB
|
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
35
35
|
raise ArgumentError, "Invalid Configuration: Dualstack and local endpoint are not supported"
|
36
36
|
end
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes"=>[{"
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"dynamodb", "signingRegion"=>"us-east-1"}]}, metadata: { account_id_endpoint: false })
|
38
38
|
end
|
39
39
|
if Aws::Endpoints::Matchers.set?(account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(account_id_endpoint_mode, "required") && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(account_id))
|
40
40
|
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded."
|
@@ -13,6 +13,30 @@ module Aws
|
|
13
13
|
#
|
14
14
|
# ddb = Aws::DynamoDB::Client.new(simple_attributes: false)
|
15
15
|
#
|
16
|
+
# Members are marshalled using the following objects:
|
17
|
+
#
|
18
|
+
# * `Hash` or `#to_h` => `:m`
|
19
|
+
# * `Array` => `:l`
|
20
|
+
# * `String` or `Symbol` or `#to_str` => `:s`
|
21
|
+
# * `Numeric` => `:n`
|
22
|
+
# * `StringIO` or `IO` => `:b`
|
23
|
+
# * `Set<Object>` => `:ss` or `:ns` or `:bs`
|
24
|
+
# * `true` or `false` => `:bool`
|
25
|
+
# * `nil` => `:null`
|
26
|
+
#
|
27
|
+
# Members are unmarshalled into the following objects:
|
28
|
+
#
|
29
|
+
# * `:m` => `Hash`
|
30
|
+
# * `:l` => `Array`
|
31
|
+
# * `:s` => `String`
|
32
|
+
# * `:n` => `BigDecimal`
|
33
|
+
# * `:b` => `StringIO`
|
34
|
+
# * `:null` => `nil`
|
35
|
+
# * `:bool` => `true` or `false`
|
36
|
+
# * `:ss` => `Set<String>`
|
37
|
+
# * `:ns` => `Set<BigDecimal>`
|
38
|
+
# * `:bs` => `Set<StringIO>`
|
39
|
+
#
|
16
40
|
# ## Input Examples
|
17
41
|
#
|
18
42
|
# With this plugin **enabled**, `simple_attributes: true`:
|
@@ -101,6 +125,8 @@ hashes, arrays, sets, integers, floats, booleans, and nil.
|
|
101
125
|
Disabling this option requires that all attribute values have
|
102
126
|
their types specified, e.g. `{ s: 'abc' }` instead of simply
|
103
127
|
`'abc'`.
|
128
|
+
|
129
|
+
See {Aws::DynamoDB::Plugins::SimpleAttributes} for more information.
|
104
130
|
DOCS
|
105
131
|
) do |config|
|
106
132
|
!config.simple_json
|
@@ -5853,6 +5853,14 @@ module Aws::DynamoDB
|
|
5853
5853
|
# * `DISABLED` - Point in time recovery is disabled.
|
5854
5854
|
# @return [String]
|
5855
5855
|
#
|
5856
|
+
# @!attribute [rw] recovery_period_in_days
|
5857
|
+
# The number of preceding days for which continuous backups are taken
|
5858
|
+
# and maintained. Your table data is only recoverable to any
|
5859
|
+
# point-in-time from within the configured recovery period. This
|
5860
|
+
# parameter is optional. If no value is provided, the value will
|
5861
|
+
# default to 35.
|
5862
|
+
# @return [Integer]
|
5863
|
+
#
|
5856
5864
|
# @!attribute [rw] earliest_restorable_date_time
|
5857
5865
|
# Specifies the earliest point in time you can restore your table to.
|
5858
5866
|
# You can restore your table to any point in time during the last 35
|
@@ -5868,6 +5876,7 @@ module Aws::DynamoDB
|
|
5868
5876
|
#
|
5869
5877
|
class PointInTimeRecoveryDescription < Struct.new(
|
5870
5878
|
:point_in_time_recovery_status,
|
5879
|
+
:recovery_period_in_days,
|
5871
5880
|
:earliest_restorable_date_time,
|
5872
5881
|
:latest_restorable_date_time)
|
5873
5882
|
SENSITIVE = []
|
@@ -5881,10 +5890,19 @@ module Aws::DynamoDB
|
|
5881
5890
|
# disabled (false) on the table.
|
5882
5891
|
# @return [Boolean]
|
5883
5892
|
#
|
5893
|
+
# @!attribute [rw] recovery_period_in_days
|
5894
|
+
# The number of preceding days for which continuous backups are taken
|
5895
|
+
# and maintained. Your table data is only recoverable to any
|
5896
|
+
# point-in-time from within the configured recovery period. This
|
5897
|
+
# parameter is optional. If no value is provided, the value will
|
5898
|
+
# default to 35.
|
5899
|
+
# @return [Integer]
|
5900
|
+
#
|
5884
5901
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PointInTimeRecoverySpecification AWS API Documentation
|
5885
5902
|
#
|
5886
5903
|
class PointInTimeRecoverySpecification < Struct.new(
|
5887
|
-
:point_in_time_recovery_enabled
|
5904
|
+
:point_in_time_recovery_enabled,
|
5905
|
+
:recovery_period_in_days)
|
5888
5906
|
SENSITIVE = []
|
5889
5907
|
include Aws::Structure
|
5890
5908
|
end
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -1098,7 +1098,8 @@ module Aws
|
|
1098
1098
|
def update_continuous_backups: (
|
1099
1099
|
table_name: ::String,
|
1100
1100
|
point_in_time_recovery_specification: {
|
1101
|
-
point_in_time_recovery_enabled: bool
|
1101
|
+
point_in_time_recovery_enabled: bool,
|
1102
|
+
recovery_period_in_days: ::Integer?
|
1102
1103
|
}
|
1103
1104
|
) -> _UpdateContinuousBackupsResponseSuccess
|
1104
1105
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateContinuousBackupsResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -1096,6 +1096,7 @@ module Aws::DynamoDB
|
|
1096
1096
|
|
1097
1097
|
class PointInTimeRecoveryDescription
|
1098
1098
|
attr_accessor point_in_time_recovery_status: ("ENABLED" | "DISABLED")
|
1099
|
+
attr_accessor recovery_period_in_days: ::Integer
|
1099
1100
|
attr_accessor earliest_restorable_date_time: ::Time
|
1100
1101
|
attr_accessor latest_restorable_date_time: ::Time
|
1101
1102
|
SENSITIVE: []
|
@@ -1103,6 +1104,7 @@ module Aws::DynamoDB
|
|
1103
1104
|
|
1104
1105
|
class PointInTimeRecoverySpecification
|
1105
1106
|
attr_accessor point_in_time_recovery_enabled: bool
|
1107
|
+
attr_accessor recovery_period_in_days: ::Integer
|
1106
1108
|
SENSITIVE: []
|
1107
1109
|
end
|
1108
1110
|
|
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.
|
4
|
+
version: 1.133.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:
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|