aws-sdk-dynamodb 1.130.0 → 1.132.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 +38 -1
- data/lib/aws-sdk-dynamodb/client_api.rb +10 -0
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-dynamodb/errors.rb +16 -0
- data/lib/aws-sdk-dynamodb/plugins/simple_attributes.rb +26 -0
- data/lib/aws-sdk-dynamodb/table.rb +53 -0
- data/lib/aws-sdk-dynamodb/types.rb +73 -1
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +1 -0
- data/sig/errors.rbs +3 -0
- data/sig/table.rbs +4 -0
- data/sig/types.rbs +7 -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: 2204d1f8b6a933ab7baa59e4dafb1f9f39eda984ae74b3f68a119bc78ccdf02f
|
4
|
+
data.tar.gz: 89535cf45eb05eace5806755dd8722d9721fb7f01c38d072b53b3848e7a0d248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6716d222579072f7c661ddd0fd95fd67e8f6b762f1c8266cd4f9b86629f1c24c41f5339befac9a4c4cc1fbb858c81e2d6e7901aea345f71a879389e5e6311f
|
7
|
+
data.tar.gz: 70e983178017f516df1ef248094299826f9bb8b7a753ff8b66e12a43a19a5f453d0d442587865e2b1fd4be67b940a4d4501f09eda19dfbcfa87d815958724b9e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.132.0 (2024-12-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Improve `SimpleAttributes` documentation.
|
10
|
+
|
11
|
+
1.131.0 (2024-12-03)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This change adds support for global tables with multi-Region strong consistency (in preview). The UpdateTable API now supports a new attribute MultiRegionConsistency to set consistency when creating global tables. The DescribeTable output now optionally includes the MultiRegionConsistency attribute.
|
15
|
+
|
4
16
|
1.130.0 (2024-11-18)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.132.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
|
@@ -1834,6 +1836,7 @@ module Aws::DynamoDB
|
|
1834
1836
|
# resp.table_description.warm_throughput.read_units_per_second #=> Integer
|
1835
1837
|
# resp.table_description.warm_throughput.write_units_per_second #=> Integer
|
1836
1838
|
# resp.table_description.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
1839
|
+
# resp.table_description.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
1837
1840
|
#
|
1838
1841
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable AWS API Documentation
|
1839
1842
|
#
|
@@ -2439,6 +2442,7 @@ module Aws::DynamoDB
|
|
2439
2442
|
# resp.table_description.warm_throughput.read_units_per_second #=> Integer
|
2440
2443
|
# resp.table_description.warm_throughput.write_units_per_second #=> Integer
|
2441
2444
|
# resp.table_description.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
2445
|
+
# resp.table_description.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
2442
2446
|
#
|
2443
2447
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable AWS API Documentation
|
2444
2448
|
#
|
@@ -3267,6 +3271,7 @@ module Aws::DynamoDB
|
|
3267
3271
|
# resp.table.warm_throughput.read_units_per_second #=> Integer
|
3268
3272
|
# resp.table.warm_throughput.write_units_per_second #=> Integer
|
3269
3273
|
# resp.table.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
3274
|
+
# resp.table.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
3270
3275
|
#
|
3271
3276
|
#
|
3272
3277
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -5866,6 +5871,7 @@ module Aws::DynamoDB
|
|
5866
5871
|
# resp.table_description.warm_throughput.read_units_per_second #=> Integer
|
5867
5872
|
# resp.table_description.warm_throughput.write_units_per_second #=> Integer
|
5868
5873
|
# resp.table_description.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
5874
|
+
# resp.table_description.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
5869
5875
|
#
|
5870
5876
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableFromBackup AWS API Documentation
|
5871
5877
|
#
|
@@ -6129,6 +6135,7 @@ module Aws::DynamoDB
|
|
6129
6135
|
# resp.table_description.warm_throughput.read_units_per_second #=> Integer
|
6130
6136
|
# resp.table_description.warm_throughput.write_units_per_second #=> Integer
|
6131
6137
|
# resp.table_description.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
6138
|
+
# resp.table_description.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
6132
6139
|
#
|
6133
6140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime AWS API Documentation
|
6134
6141
|
#
|
@@ -7994,6 +8001,34 @@ module Aws::DynamoDB
|
|
7994
8001
|
# Indicates whether deletion protection is to be enabled (true) or
|
7995
8002
|
# disabled (false) on the table.
|
7996
8003
|
#
|
8004
|
+
# @option params [String] :multi_region_consistency
|
8005
|
+
# Specifies the consistency mode for a new global table. This parameter
|
8006
|
+
# is only valid when you create a global table by specifying one or more
|
8007
|
+
# [Create][1] actions in the [ReplicaUpdates][2] action list.
|
8008
|
+
#
|
8009
|
+
# You can specify one of the following consistency modes:
|
8010
|
+
#
|
8011
|
+
# * `EVENTUAL`: Configures a new global table for multi-Region eventual
|
8012
|
+
# consistency. This is the default consistency mode for global tables.
|
8013
|
+
#
|
8014
|
+
# * `STRONG`: Configures a new global table for multi-Region strong
|
8015
|
+
# consistency (preview).
|
8016
|
+
#
|
8017
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
8018
|
+
# tables capability currently available in preview mode. For more
|
8019
|
+
# information, see [Global tables multi-Region strong consistency][3].
|
8020
|
+
#
|
8021
|
+
# </note>
|
8022
|
+
#
|
8023
|
+
# If you don't specify this parameter, the global table consistency
|
8024
|
+
# mode defaults to `EVENTUAL`.
|
8025
|
+
#
|
8026
|
+
#
|
8027
|
+
#
|
8028
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create
|
8029
|
+
# [2]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
|
8030
|
+
# [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
8031
|
+
#
|
7997
8032
|
# @option params [Types::OnDemandThroughput] :on_demand_throughput
|
7998
8033
|
# Updates the maximum number of read and write units for the specified
|
7999
8034
|
# table in on-demand capacity mode. If you use this parameter, you must
|
@@ -8181,6 +8216,7 @@ module Aws::DynamoDB
|
|
8181
8216
|
# ],
|
8182
8217
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
8183
8218
|
# deletion_protection_enabled: false,
|
8219
|
+
# multi_region_consistency: "EVENTUAL", # accepts EVENTUAL, STRONG
|
8184
8220
|
# on_demand_throughput: {
|
8185
8221
|
# max_read_request_units: 1,
|
8186
8222
|
# max_write_request_units: 1,
|
@@ -8292,6 +8328,7 @@ module Aws::DynamoDB
|
|
8292
8328
|
# resp.table_description.warm_throughput.read_units_per_second #=> Integer
|
8293
8329
|
# resp.table_description.warm_throughput.write_units_per_second #=> Integer
|
8294
8330
|
# resp.table_description.warm_throughput.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE", "INACCESSIBLE_ENCRYPTION_CREDENTIALS", "ARCHIVING", "ARCHIVED"
|
8331
|
+
# resp.table_description.multi_region_consistency #=> String, one of "EVENTUAL", "STRONG"
|
8295
8332
|
#
|
8296
8333
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable AWS API Documentation
|
8297
8334
|
#
|
@@ -8559,7 +8596,7 @@ module Aws::DynamoDB
|
|
8559
8596
|
tracer: tracer
|
8560
8597
|
)
|
8561
8598
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
8562
|
-
context[:gem_version] = '1.
|
8599
|
+
context[:gem_version] = '1.132.0'
|
8563
8600
|
Seahorse::Client::Request.new(handlers, context)
|
8564
8601
|
end
|
8565
8602
|
|
@@ -302,6 +302,7 @@ module Aws::DynamoDB
|
|
302
302
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
303
303
|
LongObject = Shapes::IntegerShape.new(name: 'LongObject')
|
304
304
|
MapAttributeValue = Shapes::MapShape.new(name: 'MapAttributeValue')
|
305
|
+
MultiRegionConsistency = Shapes::StringShape.new(name: 'MultiRegionConsistency')
|
305
306
|
NextTokenString = Shapes::StringShape.new(name: 'NextTokenString')
|
306
307
|
NonKeyAttributeName = Shapes::StringShape.new(name: 'NonKeyAttributeName')
|
307
308
|
NonKeyAttributeNameList = Shapes::ListShape.new(name: 'NonKeyAttributeNameList')
|
@@ -375,6 +376,7 @@ module Aws::DynamoDB
|
|
375
376
|
ReplicaStatusPercentProgress = Shapes::StringShape.new(name: 'ReplicaStatusPercentProgress')
|
376
377
|
ReplicaUpdate = Shapes::StructureShape.new(name: 'ReplicaUpdate')
|
377
378
|
ReplicaUpdateList = Shapes::ListShape.new(name: 'ReplicaUpdateList')
|
379
|
+
ReplicatedWriteConflictException = Shapes::StructureShape.new(name: 'ReplicatedWriteConflictException')
|
378
380
|
ReplicationGroupUpdate = Shapes::StructureShape.new(name: 'ReplicationGroupUpdate')
|
379
381
|
ReplicationGroupUpdateList = Shapes::ListShape.new(name: 'ReplicationGroupUpdateList')
|
380
382
|
RequestLimitExceeded = Shapes::StructureShape.new(name: 'RequestLimitExceeded')
|
@@ -1598,6 +1600,9 @@ module Aws::DynamoDB
|
|
1598
1600
|
|
1599
1601
|
ReplicaUpdateList.member = Shapes::ShapeRef.new(shape: ReplicaUpdate)
|
1600
1602
|
|
1603
|
+
ReplicatedWriteConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
1604
|
+
ReplicatedWriteConflictException.struct_class = Types::ReplicatedWriteConflictException
|
1605
|
+
|
1601
1606
|
ReplicationGroupUpdate.add_member(:create, Shapes::ShapeRef.new(shape: CreateReplicationGroupMemberAction, location_name: "Create"))
|
1602
1607
|
ReplicationGroupUpdate.add_member(:update, Shapes::ShapeRef.new(shape: UpdateReplicationGroupMemberAction, location_name: "Update"))
|
1603
1608
|
ReplicationGroupUpdate.add_member(:delete, Shapes::ShapeRef.new(shape: DeleteReplicationGroupMemberAction, location_name: "Delete"))
|
@@ -1765,6 +1770,7 @@ module Aws::DynamoDB
|
|
1765
1770
|
TableDescription.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
|
1766
1771
|
TableDescription.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
|
1767
1772
|
TableDescription.add_member(:warm_throughput, Shapes::ShapeRef.new(shape: TableWarmThroughputDescription, location_name: "WarmThroughput"))
|
1773
|
+
TableDescription.add_member(:multi_region_consistency, Shapes::ShapeRef.new(shape: MultiRegionConsistency, location_name: "MultiRegionConsistency"))
|
1768
1774
|
TableDescription.struct_class = Types::TableDescription
|
1769
1775
|
|
1770
1776
|
TableInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -1948,6 +1954,7 @@ module Aws::DynamoDB
|
|
1948
1954
|
UpdateTableInput.add_member(:replica_updates, Shapes::ShapeRef.new(shape: ReplicationGroupUpdateList, location_name: "ReplicaUpdates"))
|
1949
1955
|
UpdateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
|
1950
1956
|
UpdateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
|
1957
|
+
UpdateTableInput.add_member(:multi_region_consistency, Shapes::ShapeRef.new(shape: MultiRegionConsistency, location_name: "MultiRegionConsistency"))
|
1951
1958
|
UpdateTableInput.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
|
1952
1959
|
UpdateTableInput.add_member(:warm_throughput, Shapes::ShapeRef.new(shape: WarmThroughput, location_name: "WarmThroughput"))
|
1953
1960
|
UpdateTableInput.struct_class = Types::UpdateTableInput
|
@@ -2119,6 +2126,7 @@ module Aws::DynamoDB
|
|
2119
2126
|
o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
|
2120
2127
|
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
2121
2128
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2129
|
+
o.errors << Shapes::ShapeRef.new(shape: ReplicatedWriteConflictException)
|
2122
2130
|
end)
|
2123
2131
|
|
2124
2132
|
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2518,6 +2526,7 @@ module Aws::DynamoDB
|
|
2518
2526
|
o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
|
2519
2527
|
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
2520
2528
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2529
|
+
o.errors << Shapes::ShapeRef.new(shape: ReplicatedWriteConflictException)
|
2521
2530
|
end)
|
2522
2531
|
|
2523
2532
|
api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2737,6 +2746,7 @@ module Aws::DynamoDB
|
|
2737
2746
|
o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
|
2738
2747
|
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
2739
2748
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2749
|
+
o.errors << Shapes::ShapeRef.new(shape: ReplicatedWriteConflictException)
|
2740
2750
|
end)
|
2741
2751
|
|
2742
2752
|
api.add_operation(:update_kinesis_streaming_destination, Seahorse::Model::Operation.new.tap do |o|
|
@@ -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"=>[{"signingRegion"=>"us-east-1", "signingName"=>"dynamodb", "name"=>"sigv4"}]}, 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."
|
@@ -50,6 +50,7 @@ module Aws::DynamoDB
|
|
50
50
|
# * {ProvisionedThroughputExceededException}
|
51
51
|
# * {ReplicaAlreadyExistsException}
|
52
52
|
# * {ReplicaNotFoundException}
|
53
|
+
# * {ReplicatedWriteConflictException}
|
53
54
|
# * {RequestLimitExceeded}
|
54
55
|
# * {ResourceInUseException}
|
55
56
|
# * {ResourceNotFoundException}
|
@@ -416,6 +417,21 @@ module Aws::DynamoDB
|
|
416
417
|
end
|
417
418
|
end
|
418
419
|
|
420
|
+
class ReplicatedWriteConflictException < ServiceError
|
421
|
+
|
422
|
+
# @param [Seahorse::Client::RequestContext] context
|
423
|
+
# @param [String] message
|
424
|
+
# @param [Aws::DynamoDB::Types::ReplicatedWriteConflictException] data
|
425
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
426
|
+
super(context, message, data)
|
427
|
+
end
|
428
|
+
|
429
|
+
# @return [String]
|
430
|
+
def message
|
431
|
+
@message || @data[:message]
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
419
435
|
class RequestLimitExceeded < ServiceError
|
420
436
|
|
421
437
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -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
|
@@ -378,6 +378,31 @@ module Aws::DynamoDB
|
|
378
378
|
data[:warm_throughput]
|
379
379
|
end
|
380
380
|
|
381
|
+
# Indicates one of the following consistency modes for a global table:
|
382
|
+
#
|
383
|
+
# * `EVENTUAL`: Indicates that the global table is configured for
|
384
|
+
# multi-Region eventual consistency.
|
385
|
+
#
|
386
|
+
# * `STRONG`: Indicates that the global table is configured for
|
387
|
+
# multi-Region strong consistency (preview).
|
388
|
+
#
|
389
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
390
|
+
# tables capability currently available in preview mode. For more
|
391
|
+
# information, see [Global tables multi-Region strong consistency][1].
|
392
|
+
#
|
393
|
+
# </note>
|
394
|
+
#
|
395
|
+
# If you don't specify this field, the global table consistency mode
|
396
|
+
# defaults to `EVENTUAL`.
|
397
|
+
#
|
398
|
+
#
|
399
|
+
#
|
400
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
401
|
+
# @return [String]
|
402
|
+
def multi_region_consistency
|
403
|
+
data[:multi_region_consistency]
|
404
|
+
end
|
405
|
+
|
381
406
|
# @!endgroup
|
382
407
|
|
383
408
|
# @return [Client]
|
@@ -1913,6 +1938,7 @@ module Aws::DynamoDB
|
|
1913
1938
|
# ],
|
1914
1939
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
1915
1940
|
# deletion_protection_enabled: false,
|
1941
|
+
# multi_region_consistency: "EVENTUAL", # accepts EVENTUAL, STRONG
|
1916
1942
|
# on_demand_throughput: {
|
1917
1943
|
# max_read_request_units: 1,
|
1918
1944
|
# max_write_request_units: 1,
|
@@ -1995,6 +2021,33 @@ module Aws::DynamoDB
|
|
1995
2021
|
# @option options [Boolean] :deletion_protection_enabled
|
1996
2022
|
# Indicates whether deletion protection is to be enabled (true) or
|
1997
2023
|
# disabled (false) on the table.
|
2024
|
+
# @option options [String] :multi_region_consistency
|
2025
|
+
# Specifies the consistency mode for a new global table. This parameter
|
2026
|
+
# is only valid when you create a global table by specifying one or more
|
2027
|
+
# [Create][1] actions in the [ReplicaUpdates][2] action list.
|
2028
|
+
#
|
2029
|
+
# You can specify one of the following consistency modes:
|
2030
|
+
#
|
2031
|
+
# * `EVENTUAL`: Configures a new global table for multi-Region eventual
|
2032
|
+
# consistency. This is the default consistency mode for global tables.
|
2033
|
+
#
|
2034
|
+
# * `STRONG`: Configures a new global table for multi-Region strong
|
2035
|
+
# consistency (preview).
|
2036
|
+
#
|
2037
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
2038
|
+
# tables capability currently available in preview mode. For more
|
2039
|
+
# information, see [Global tables multi-Region strong consistency][3].
|
2040
|
+
#
|
2041
|
+
# </note>
|
2042
|
+
#
|
2043
|
+
# If you don't specify this parameter, the global table consistency
|
2044
|
+
# mode defaults to `EVENTUAL`.
|
2045
|
+
#
|
2046
|
+
#
|
2047
|
+
#
|
2048
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create
|
2049
|
+
# [2]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
|
2050
|
+
# [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
1998
2051
|
# @option options [Types::OnDemandThroughput] :on_demand_throughput
|
1999
2052
|
# Updates the maximum number of read and write units for the specified
|
2000
2053
|
# table in on-demand capacity mode. If you use this parameter, you must
|
@@ -7591,6 +7591,20 @@ module Aws::DynamoDB
|
|
7591
7591
|
include Aws::Structure
|
7592
7592
|
end
|
7593
7593
|
|
7594
|
+
# The request was rejected because one or more items in the request are
|
7595
|
+
# being modified by a request in another Region.
|
7596
|
+
#
|
7597
|
+
# @!attribute [rw] message
|
7598
|
+
# @return [String]
|
7599
|
+
#
|
7600
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicatedWriteConflictException AWS API Documentation
|
7601
|
+
#
|
7602
|
+
class ReplicatedWriteConflictException < Struct.new(
|
7603
|
+
:message)
|
7604
|
+
SENSITIVE = []
|
7605
|
+
include Aws::Structure
|
7606
|
+
end
|
7607
|
+
|
7594
7608
|
# Represents one of the following:
|
7595
7609
|
#
|
7596
7610
|
# * A new replica to be added to an existing regional table or global
|
@@ -8977,6 +8991,30 @@ module Aws::DynamoDB
|
|
8977
8991
|
# Describes the warm throughput value of the base table.
|
8978
8992
|
# @return [Types::TableWarmThroughputDescription]
|
8979
8993
|
#
|
8994
|
+
# @!attribute [rw] multi_region_consistency
|
8995
|
+
# Indicates one of the following consistency modes for a global table:
|
8996
|
+
#
|
8997
|
+
# * `EVENTUAL`: Indicates that the global table is configured for
|
8998
|
+
# multi-Region eventual consistency.
|
8999
|
+
#
|
9000
|
+
# * `STRONG`: Indicates that the global table is configured for
|
9001
|
+
# multi-Region strong consistency (preview).
|
9002
|
+
#
|
9003
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
9004
|
+
# tables capability currently available in preview mode. For more
|
9005
|
+
# information, see [Global tables multi-Region strong
|
9006
|
+
# consistency][1].
|
9007
|
+
#
|
9008
|
+
# </note>
|
9009
|
+
#
|
9010
|
+
# If you don't specify this field, the global table consistency mode
|
9011
|
+
# defaults to `EVENTUAL`.
|
9012
|
+
#
|
9013
|
+
#
|
9014
|
+
#
|
9015
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
9016
|
+
# @return [String]
|
9017
|
+
#
|
8980
9018
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TableDescription AWS API Documentation
|
8981
9019
|
#
|
8982
9020
|
class TableDescription < Struct.new(
|
@@ -9004,7 +9042,8 @@ module Aws::DynamoDB
|
|
9004
9042
|
:table_class_summary,
|
9005
9043
|
:deletion_protection_enabled,
|
9006
9044
|
:on_demand_throughput,
|
9007
|
-
:warm_throughput
|
9045
|
+
:warm_throughput,
|
9046
|
+
:multi_region_consistency)
|
9008
9047
|
SENSITIVE = []
|
9009
9048
|
include Aws::Structure
|
9010
9049
|
end
|
@@ -10489,6 +10528,38 @@ module Aws::DynamoDB
|
|
10489
10528
|
# disabled (false) on the table.
|
10490
10529
|
# @return [Boolean]
|
10491
10530
|
#
|
10531
|
+
# @!attribute [rw] multi_region_consistency
|
10532
|
+
# Specifies the consistency mode for a new global table. This
|
10533
|
+
# parameter is only valid when you create a global table by specifying
|
10534
|
+
# one or more [Create][1] actions in the [ReplicaUpdates][2] action
|
10535
|
+
# list.
|
10536
|
+
#
|
10537
|
+
# You can specify one of the following consistency modes:
|
10538
|
+
#
|
10539
|
+
# * `EVENTUAL`: Configures a new global table for multi-Region
|
10540
|
+
# eventual consistency. This is the default consistency mode for
|
10541
|
+
# global tables.
|
10542
|
+
#
|
10543
|
+
# * `STRONG`: Configures a new global table for multi-Region strong
|
10544
|
+
# consistency (preview).
|
10545
|
+
#
|
10546
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
10547
|
+
# tables capability currently available in preview mode. For more
|
10548
|
+
# information, see [Global tables multi-Region strong
|
10549
|
+
# consistency][3].
|
10550
|
+
#
|
10551
|
+
# </note>
|
10552
|
+
#
|
10553
|
+
# If you don't specify this parameter, the global table consistency
|
10554
|
+
# mode defaults to `EVENTUAL`.
|
10555
|
+
#
|
10556
|
+
#
|
10557
|
+
#
|
10558
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create
|
10559
|
+
# [2]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
|
10560
|
+
# [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
10561
|
+
# @return [String]
|
10562
|
+
#
|
10492
10563
|
# @!attribute [rw] on_demand_throughput
|
10493
10564
|
# Updates the maximum number of read and write units for the specified
|
10494
10565
|
# table in on-demand capacity mode. If you use this parameter, you
|
@@ -10513,6 +10584,7 @@ module Aws::DynamoDB
|
|
10513
10584
|
:replica_updates,
|
10514
10585
|
:table_class,
|
10515
10586
|
:deletion_protection_enabled,
|
10587
|
+
:multi_region_consistency,
|
10516
10588
|
:on_demand_throughput,
|
10517
10589
|
:warm_throughput)
|
10518
10590
|
SENSITIVE = []
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -1405,6 +1405,7 @@ module Aws
|
|
1405
1405
|
],
|
1406
1406
|
?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
|
1407
1407
|
?deletion_protection_enabled: bool,
|
1408
|
+
?multi_region_consistency: ("EVENTUAL" | "STRONG"),
|
1408
1409
|
?on_demand_throughput: {
|
1409
1410
|
max_read_request_units: ::Integer?,
|
1410
1411
|
max_write_request_units: ::Integer?
|
data/sig/errors.rbs
CHANGED
@@ -81,6 +81,9 @@ module Aws
|
|
81
81
|
class ReplicaNotFoundException < ::Aws::Errors::ServiceError
|
82
82
|
def message: () -> ::String
|
83
83
|
end
|
84
|
+
class ReplicatedWriteConflictException < ::Aws::Errors::ServiceError
|
85
|
+
def message: () -> ::String
|
86
|
+
end
|
84
87
|
class RequestLimitExceeded < ::Aws::Errors::ServiceError
|
85
88
|
def message: () -> ::String
|
86
89
|
end
|
data/sig/table.rbs
CHANGED
@@ -90,6 +90,9 @@ module Aws
|
|
90
90
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#warm_throughput-instance_method
|
91
91
|
def warm_throughput: () -> Types::TableWarmThroughputDescription
|
92
92
|
|
93
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#multi_region_consistency-instance_method
|
94
|
+
def multi_region_consistency: () -> ("EVENTUAL" | "STRONG")
|
95
|
+
|
93
96
|
def client: () -> Client
|
94
97
|
|
95
98
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#load-instance_method
|
@@ -331,6 +334,7 @@ module Aws
|
|
331
334
|
],
|
332
335
|
?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
|
333
336
|
?deletion_protection_enabled: bool,
|
337
|
+
?multi_region_consistency: ("EVENTUAL" | "STRONG"),
|
334
338
|
?on_demand_throughput: {
|
335
339
|
max_read_request_units: ::Integer?,
|
336
340
|
max_write_request_units: ::Integer?
|
data/sig/types.rbs
CHANGED
@@ -1347,6 +1347,11 @@ module Aws::DynamoDB
|
|
1347
1347
|
SENSITIVE: []
|
1348
1348
|
end
|
1349
1349
|
|
1350
|
+
class ReplicatedWriteConflictException
|
1351
|
+
attr_accessor message: ::String
|
1352
|
+
SENSITIVE: []
|
1353
|
+
end
|
1354
|
+
|
1350
1355
|
class ReplicationGroupUpdate
|
1351
1356
|
attr_accessor create: Types::CreateReplicationGroupMemberAction
|
1352
1357
|
attr_accessor update: Types::UpdateReplicationGroupMemberAction
|
@@ -1550,6 +1555,7 @@ module Aws::DynamoDB
|
|
1550
1555
|
attr_accessor deletion_protection_enabled: bool
|
1551
1556
|
attr_accessor on_demand_throughput: Types::OnDemandThroughput
|
1552
1557
|
attr_accessor warm_throughput: Types::TableWarmThroughputDescription
|
1558
|
+
attr_accessor multi_region_consistency: ("EVENTUAL" | "STRONG")
|
1553
1559
|
SENSITIVE: []
|
1554
1560
|
end
|
1555
1561
|
|
@@ -1791,6 +1797,7 @@ module Aws::DynamoDB
|
|
1791
1797
|
attr_accessor replica_updates: ::Array[Types::ReplicationGroupUpdate]
|
1792
1798
|
attr_accessor table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS")
|
1793
1799
|
attr_accessor deletion_protection_enabled: bool
|
1800
|
+
attr_accessor multi_region_consistency: ("EVENTUAL" | "STRONG")
|
1794
1801
|
attr_accessor on_demand_throughput: Types::OnDemandThroughput
|
1795
1802
|
attr_accessor warm_throughput: Types::WarmThroughput
|
1796
1803
|
SENSITIVE: []
|
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.132.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-
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|