aws-sdk-dynamodb 1.161.0 → 1.162.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +35 -7
- data/lib/aws-sdk-dynamodb/client_api.rb +7 -2
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-dynamodb/resource.rb +16 -5
- data/lib/aws-sdk-dynamodb/table.rb +17 -0
- data/lib/aws-sdk-dynamodb/types.rb +57 -10
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +5 -3
- data/sig/resource.rbs +5 -3
- data/sig/table.rbs +3 -0
- data/sig/types.rbs +4 -0
- 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: 86d68894ebe38eb32ea69043bcd3d2851cfbbd93849a4aecb8a7fa0432865a70
|
|
4
|
+
data.tar.gz: ba4e527942e9c6a655d933cd75c61c33cf126261f8aede92e205501fbc018932
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f61b179695dd41f4aa95ed1ee4f6db1a4294ce9f443bf70262db02c5f453d05b88a2430424d562509f7c4a727272c00fe0cb9bc118b0cb20593643d525dce820
|
|
7
|
+
data.tar.gz: 337a3aee0f799b1cff75b02e99fd526c4a5604bacfe8ab3fa73baae8e42411bbe59783c227041906565d35aa58bb93361db36cdab911de881566b6bad673c099
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.162.0 (2026-02-03)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This change supports the creation of multi-account global tables. It adds two new arguments to CreateTable, GlobalTableSourceArn and GlobalTableSettingsReplicationMode. DescribeTable is also updated to include information about GlobalTableSettingsReplicationMode.
|
|
8
|
+
|
|
4
9
|
1.161.0 (2026-01-22)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.162.0
|
|
@@ -1335,6 +1335,7 @@ module Aws::DynamoDB
|
|
|
1335
1335
|
# resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
|
|
1336
1336
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
1337
1337
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
1338
|
+
# resp.global_table_description.replication_group[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
1338
1339
|
# resp.global_table_description.global_table_arn #=> String
|
|
1339
1340
|
# resp.global_table_description.creation_date_time #=> Time
|
|
1340
1341
|
# resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
|
|
@@ -1368,7 +1369,7 @@ module Aws::DynamoDB
|
|
|
1368
1369
|
#
|
|
1369
1370
|
# You can use the `DescribeTable` action to check the table status.
|
|
1370
1371
|
#
|
|
1371
|
-
# @option params [
|
|
1372
|
+
# @option params [Array<Types::AttributeDefinition>] :attribute_definitions
|
|
1372
1373
|
# An array of attributes that describe the key schema for the table and
|
|
1373
1374
|
# indexes.
|
|
1374
1375
|
#
|
|
@@ -1376,7 +1377,7 @@ module Aws::DynamoDB
|
|
|
1376
1377
|
# The name of the table to create. You can also provide the Amazon
|
|
1377
1378
|
# Resource Name (ARN) of the table in this parameter.
|
|
1378
1379
|
#
|
|
1379
|
-
# @option params [
|
|
1380
|
+
# @option params [Array<Types::KeySchemaElement>] :key_schema
|
|
1380
1381
|
# Specifies the attributes that make up the primary key for a table or
|
|
1381
1382
|
# an index. The attributes in `KeySchema` must also be defined in the
|
|
1382
1383
|
# `AttributeDefinitions` array. For more information, see [Data
|
|
@@ -1475,7 +1476,8 @@ module Aws::DynamoDB
|
|
|
1475
1476
|
#
|
|
1476
1477
|
#
|
|
1477
1478
|
# * `KeySchema` - Specifies the key schema for the global secondary
|
|
1478
|
-
# index.
|
|
1479
|
+
# index. Each global secondary index supports up to 4 partition keys
|
|
1480
|
+
# and up to 4 sort keys.
|
|
1479
1481
|
#
|
|
1480
1482
|
# * `Projection` - Specifies attributes that are copied (projected) from
|
|
1481
1483
|
# the table into the index. These are in addition to the primary key
|
|
@@ -1616,6 +1618,16 @@ module Aws::DynamoDB
|
|
|
1616
1618
|
# table in on-demand capacity mode. If you use this parameter, you must
|
|
1617
1619
|
# specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
|
1618
1620
|
#
|
|
1621
|
+
# @option params [String] :global_table_source_arn
|
|
1622
|
+
# The Amazon Resource Name (ARN) of the source table used for the
|
|
1623
|
+
# creation of a multi-account global table.
|
|
1624
|
+
#
|
|
1625
|
+
# @option params [String] :global_table_settings_replication_mode
|
|
1626
|
+
# Controls the settings synchronization mode for the global table. For
|
|
1627
|
+
# multi-account global tables, this parameter is required and the only
|
|
1628
|
+
# supported value is ENABLED. For same-account global tables, this
|
|
1629
|
+
# parameter is set to ENABLED\_WITH\_OVERRIDES.
|
|
1630
|
+
#
|
|
1619
1631
|
# @return [Types::CreateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1620
1632
|
#
|
|
1621
1633
|
# * {Types::CreateTableOutput#table_description #table_description} => Types::TableDescription
|
|
@@ -1691,14 +1703,14 @@ module Aws::DynamoDB
|
|
|
1691
1703
|
# @example Request syntax with placeholder values
|
|
1692
1704
|
#
|
|
1693
1705
|
# resp = client.create_table({
|
|
1694
|
-
# attribute_definitions: [
|
|
1706
|
+
# attribute_definitions: [
|
|
1695
1707
|
# {
|
|
1696
1708
|
# attribute_name: "KeySchemaAttributeName", # required
|
|
1697
1709
|
# attribute_type: "S", # required, accepts S, N, B
|
|
1698
1710
|
# },
|
|
1699
1711
|
# ],
|
|
1700
1712
|
# table_name: "TableArn", # required
|
|
1701
|
-
# key_schema: [
|
|
1713
|
+
# key_schema: [
|
|
1702
1714
|
# {
|
|
1703
1715
|
# attribute_name: "KeySchemaAttributeName", # required
|
|
1704
1716
|
# key_type: "HASH", # required, accepts HASH, RANGE
|
|
@@ -1777,6 +1789,8 @@ module Aws::DynamoDB
|
|
|
1777
1789
|
# max_read_request_units: 1,
|
|
1778
1790
|
# max_write_request_units: 1,
|
|
1779
1791
|
# },
|
|
1792
|
+
# global_table_source_arn: "TableArn",
|
|
1793
|
+
# global_table_settings_replication_mode: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_WITH_OVERRIDES
|
|
1780
1794
|
# })
|
|
1781
1795
|
#
|
|
1782
1796
|
# @example Response structure
|
|
@@ -1861,9 +1875,11 @@ module Aws::DynamoDB
|
|
|
1861
1875
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
1862
1876
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
1863
1877
|
# resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
1878
|
+
# resp.table_description.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
1864
1879
|
# resp.table_description.global_table_witnesses #=> Array
|
|
1865
1880
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
1866
1881
|
# resp.table_description.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
1882
|
+
# resp.table_description.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
1867
1883
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
1868
1884
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
1869
1885
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -2467,9 +2483,11 @@ module Aws::DynamoDB
|
|
|
2467
2483
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
2468
2484
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
2469
2485
|
# resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
2486
|
+
# resp.table_description.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
2470
2487
|
# resp.table_description.global_table_witnesses #=> Array
|
|
2471
2488
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
2472
2489
|
# resp.table_description.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
2490
|
+
# resp.table_description.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
2473
2491
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
2474
2492
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
2475
2493
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -2819,6 +2837,7 @@ module Aws::DynamoDB
|
|
|
2819
2837
|
# resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
|
|
2820
2838
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
2821
2839
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
2840
|
+
# resp.global_table_description.replication_group[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
2822
2841
|
# resp.global_table_description.global_table_arn #=> String
|
|
2823
2842
|
# resp.global_table_description.creation_date_time #=> Time
|
|
2824
2843
|
# resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
|
|
@@ -3320,9 +3339,11 @@ module Aws::DynamoDB
|
|
|
3320
3339
|
# resp.table.replicas[0].replica_inaccessible_date_time #=> Time
|
|
3321
3340
|
# resp.table.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
3322
3341
|
# resp.table.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
3342
|
+
# resp.table.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
3323
3343
|
# resp.table.global_table_witnesses #=> Array
|
|
3324
3344
|
# resp.table.global_table_witnesses[0].region_name #=> String
|
|
3325
3345
|
# resp.table.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
3346
|
+
# resp.table.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
3326
3347
|
# resp.table.restore_summary.source_backup_arn #=> String
|
|
3327
3348
|
# resp.table.restore_summary.source_table_arn #=> String
|
|
3328
3349
|
# resp.table.restore_summary.restore_date_time #=> Time
|
|
@@ -3795,7 +3816,7 @@ module Aws::DynamoDB
|
|
|
3795
3816
|
#
|
|
3796
3817
|
# If you submit a request with the same client token but a change in
|
|
3797
3818
|
# other parameters within the 8-hour idempotency window, DynamoDB
|
|
3798
|
-
# returns an `
|
|
3819
|
+
# returns an `ExportConflictException`.
|
|
3799
3820
|
#
|
|
3800
3821
|
# **A suitable default value is auto-generated.** You should normally
|
|
3801
3822
|
# not need to pass this option.**
|
|
@@ -5921,9 +5942,11 @@ module Aws::DynamoDB
|
|
|
5921
5942
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
5922
5943
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
5923
5944
|
# resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
5945
|
+
# resp.table_description.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
5924
5946
|
# resp.table_description.global_table_witnesses #=> Array
|
|
5925
5947
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
5926
5948
|
# resp.table_description.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
5949
|
+
# resp.table_description.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
5927
5950
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
5928
5951
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
5929
5952
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -6189,9 +6212,11 @@ module Aws::DynamoDB
|
|
|
6189
6212
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
6190
6213
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
6191
6214
|
# resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
6215
|
+
# resp.table_description.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
6192
6216
|
# resp.table_description.global_table_witnesses #=> Array
|
|
6193
6217
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
6194
6218
|
# resp.table_description.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
6219
|
+
# resp.table_description.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
6195
6220
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
6196
6221
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
6197
6222
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -7304,6 +7329,7 @@ module Aws::DynamoDB
|
|
|
7304
7329
|
# resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
|
|
7305
7330
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
7306
7331
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
7332
|
+
# resp.global_table_description.replication_group[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
7307
7333
|
# resp.global_table_description.global_table_arn #=> String
|
|
7308
7334
|
# resp.global_table_description.creation_date_time #=> Time
|
|
7309
7335
|
# resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
|
|
@@ -8414,9 +8440,11 @@ module Aws::DynamoDB
|
|
|
8414
8440
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
8415
8441
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
8416
8442
|
# resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
|
|
8443
|
+
# resp.table_description.replicas[0].global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
8417
8444
|
# resp.table_description.global_table_witnesses #=> Array
|
|
8418
8445
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
8419
8446
|
# resp.table_description.global_table_witnesses[0].witness_status #=> String, one of "CREATING", "DELETING", "ACTIVE"
|
|
8447
|
+
# resp.table_description.global_table_settings_replication_mode #=> String, one of "ENABLED", "DISABLED", "ENABLED_WITH_OVERRIDES"
|
|
8420
8448
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
8421
8449
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
8422
8450
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -8701,7 +8729,7 @@ module Aws::DynamoDB
|
|
|
8701
8729
|
tracer: tracer
|
|
8702
8730
|
)
|
|
8703
8731
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
|
8704
|
-
context[:gem_version] = '1.
|
|
8732
|
+
context[:gem_version] = '1.162.0'
|
|
8705
8733
|
Seahorse::Client::Request.new(handlers, context)
|
|
8706
8734
|
end
|
|
8707
8735
|
|
|
@@ -223,6 +223,7 @@ module Aws::DynamoDB
|
|
|
223
223
|
GlobalTableGlobalSecondaryIndexSettingsUpdateList = Shapes::ListShape.new(name: 'GlobalTableGlobalSecondaryIndexSettingsUpdateList')
|
|
224
224
|
GlobalTableList = Shapes::ListShape.new(name: 'GlobalTableList')
|
|
225
225
|
GlobalTableNotFoundException = Shapes::StructureShape.new(name: 'GlobalTableNotFoundException')
|
|
226
|
+
GlobalTableSettingsReplicationMode = Shapes::StringShape.new(name: 'GlobalTableSettingsReplicationMode')
|
|
226
227
|
GlobalTableStatus = Shapes::StringShape.new(name: 'GlobalTableStatus')
|
|
227
228
|
GlobalTableWitnessDescription = Shapes::StructureShape.new(name: 'GlobalTableWitnessDescription')
|
|
228
229
|
GlobalTableWitnessDescriptionList = Shapes::ListShape.new(name: 'GlobalTableWitnessDescriptionList')
|
|
@@ -760,9 +761,9 @@ module Aws::DynamoDB
|
|
|
760
761
|
CreateReplicationGroupMemberAction.add_member(:table_class_override, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClassOverride"))
|
|
761
762
|
CreateReplicationGroupMemberAction.struct_class = Types::CreateReplicationGroupMemberAction
|
|
762
763
|
|
|
763
|
-
CreateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions,
|
|
764
|
+
CreateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
|
|
764
765
|
CreateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName", metadata: {"contextParam" => {"name" => "ResourceArn"}}))
|
|
765
|
-
CreateTableInput.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema,
|
|
766
|
+
CreateTableInput.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
|
|
766
767
|
CreateTableInput.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: LocalSecondaryIndexList, location_name: "LocalSecondaryIndexes"))
|
|
767
768
|
CreateTableInput.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
|
|
768
769
|
CreateTableInput.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
|
|
@@ -775,6 +776,8 @@ module Aws::DynamoDB
|
|
|
775
776
|
CreateTableInput.add_member(:warm_throughput, Shapes::ShapeRef.new(shape: WarmThroughput, location_name: "WarmThroughput"))
|
|
776
777
|
CreateTableInput.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
|
|
777
778
|
CreateTableInput.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
|
|
779
|
+
CreateTableInput.add_member(:global_table_source_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "GlobalTableSourceArn"))
|
|
780
|
+
CreateTableInput.add_member(:global_table_settings_replication_mode, Shapes::ShapeRef.new(shape: GlobalTableSettingsReplicationMode, location_name: "GlobalTableSettingsReplicationMode"))
|
|
778
781
|
CreateTableInput.struct_class = Types::CreateTableInput
|
|
779
782
|
|
|
780
783
|
CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
|
|
@@ -1555,6 +1558,7 @@ module Aws::DynamoDB
|
|
|
1555
1558
|
ReplicaDescription.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexDescriptionList, location_name: "GlobalSecondaryIndexes"))
|
|
1556
1559
|
ReplicaDescription.add_member(:replica_inaccessible_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "ReplicaInaccessibleDateTime"))
|
|
1557
1560
|
ReplicaDescription.add_member(:replica_table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "ReplicaTableClassSummary"))
|
|
1561
|
+
ReplicaDescription.add_member(:global_table_settings_replication_mode, Shapes::ShapeRef.new(shape: GlobalTableSettingsReplicationMode, location_name: "GlobalTableSettingsReplicationMode"))
|
|
1558
1562
|
ReplicaDescription.struct_class = Types::ReplicaDescription
|
|
1559
1563
|
|
|
1560
1564
|
ReplicaDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaDescription)
|
|
@@ -1803,6 +1807,7 @@ module Aws::DynamoDB
|
|
|
1803
1807
|
TableDescription.add_member(:global_table_version, Shapes::ShapeRef.new(shape: String, location_name: "GlobalTableVersion"))
|
|
1804
1808
|
TableDescription.add_member(:replicas, Shapes::ShapeRef.new(shape: ReplicaDescriptionList, location_name: "Replicas"))
|
|
1805
1809
|
TableDescription.add_member(:global_table_witnesses, Shapes::ShapeRef.new(shape: GlobalTableWitnessDescriptionList, location_name: "GlobalTableWitnesses"))
|
|
1810
|
+
TableDescription.add_member(:global_table_settings_replication_mode, Shapes::ShapeRef.new(shape: GlobalTableSettingsReplicationMode, location_name: "GlobalTableSettingsReplicationMode"))
|
|
1806
1811
|
TableDescription.add_member(:restore_summary, Shapes::ShapeRef.new(shape: RestoreSummary, location_name: "RestoreSummary"))
|
|
1807
1812
|
TableDescription.add_member(:sse_description, Shapes::ShapeRef.new(shape: SSEDescription, location_name: "SSEDescription"))
|
|
1808
1813
|
TableDescription.add_member(:archival_summary, Shapes::ShapeRef.new(shape: ArchivalSummary, location_name: "ArchivalSummary"))
|
|
@@ -40,7 +40,7 @@ module Aws::DynamoDB
|
|
|
40
40
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
41
41
|
raise ArgumentError, "Invalid Configuration: Dualstack and local endpoint are not supported"
|
|
42
42
|
end
|
|
43
|
-
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "
|
|
43
|
+
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 })
|
|
44
44
|
end
|
|
45
45
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
46
46
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) && Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
@@ -247,14 +247,14 @@ module Aws::DynamoDB
|
|
|
247
247
|
# @example Request syntax with placeholder values
|
|
248
248
|
#
|
|
249
249
|
# table = dynamo_db.create_table({
|
|
250
|
-
# attribute_definitions: [
|
|
250
|
+
# attribute_definitions: [
|
|
251
251
|
# {
|
|
252
252
|
# attribute_name: "KeySchemaAttributeName", # required
|
|
253
253
|
# attribute_type: "S", # required, accepts S, N, B
|
|
254
254
|
# },
|
|
255
255
|
# ],
|
|
256
256
|
# table_name: "TableArn", # required
|
|
257
|
-
# key_schema: [
|
|
257
|
+
# key_schema: [
|
|
258
258
|
# {
|
|
259
259
|
# attribute_name: "KeySchemaAttributeName", # required
|
|
260
260
|
# key_type: "HASH", # required, accepts HASH, RANGE
|
|
@@ -333,15 +333,17 @@ module Aws::DynamoDB
|
|
|
333
333
|
# max_read_request_units: 1,
|
|
334
334
|
# max_write_request_units: 1,
|
|
335
335
|
# },
|
|
336
|
+
# global_table_source_arn: "TableArn",
|
|
337
|
+
# global_table_settings_replication_mode: "ENABLED", # accepts ENABLED, DISABLED, ENABLED_WITH_OVERRIDES
|
|
336
338
|
# })
|
|
337
339
|
# @param [Hash] options ({})
|
|
338
|
-
# @option options [
|
|
340
|
+
# @option options [Array<Types::AttributeDefinition>] :attribute_definitions
|
|
339
341
|
# An array of attributes that describe the key schema for the table and
|
|
340
342
|
# indexes.
|
|
341
343
|
# @option options [required, String] :table_name
|
|
342
344
|
# The name of the table to create. You can also provide the Amazon
|
|
343
345
|
# Resource Name (ARN) of the table in this parameter.
|
|
344
|
-
# @option options [
|
|
346
|
+
# @option options [Array<Types::KeySchemaElement>] :key_schema
|
|
345
347
|
# Specifies the attributes that make up the primary key for a table or
|
|
346
348
|
# an index. The attributes in `KeySchema` must also be defined in the
|
|
347
349
|
# `AttributeDefinitions` array. For more information, see [Data
|
|
@@ -438,7 +440,8 @@ module Aws::DynamoDB
|
|
|
438
440
|
#
|
|
439
441
|
#
|
|
440
442
|
# * `KeySchema` - Specifies the key schema for the global secondary
|
|
441
|
-
# index.
|
|
443
|
+
# index. Each global secondary index supports up to 4 partition keys
|
|
444
|
+
# and up to 4 sort keys.
|
|
442
445
|
#
|
|
443
446
|
# * `Projection` - Specifies attributes that are copied (projected) from
|
|
444
447
|
# the table into the index. These are in addition to the primary key
|
|
@@ -568,6 +571,14 @@ module Aws::DynamoDB
|
|
|
568
571
|
# Sets the maximum number of read and write units for the specified
|
|
569
572
|
# table in on-demand capacity mode. If you use this parameter, you must
|
|
570
573
|
# specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
|
574
|
+
# @option options [String] :global_table_source_arn
|
|
575
|
+
# The Amazon Resource Name (ARN) of the source table used for the
|
|
576
|
+
# creation of a multi-account global table.
|
|
577
|
+
# @option options [String] :global_table_settings_replication_mode
|
|
578
|
+
# Controls the settings synchronization mode for the global table. For
|
|
579
|
+
# multi-account global tables, this parameter is required and the only
|
|
580
|
+
# supported value is ENABLED. For same-account global tables, this
|
|
581
|
+
# parameter is set to ENABLED\_WITH\_OVERRIDES.
|
|
571
582
|
# @return [Table]
|
|
572
583
|
def create_table(options = {})
|
|
573
584
|
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
@@ -347,6 +347,23 @@ module Aws::DynamoDB
|
|
|
347
347
|
data[:global_table_witnesses]
|
|
348
348
|
end
|
|
349
349
|
|
|
350
|
+
# Indicates one of the settings synchronization modes for the global
|
|
351
|
+
# table:
|
|
352
|
+
#
|
|
353
|
+
# * `ENABLED`: Indicates that the settings synchronization mode for the
|
|
354
|
+
# global table is enabled.
|
|
355
|
+
#
|
|
356
|
+
# * `DISABLED`: Indicates that the settings synchronization mode for the
|
|
357
|
+
# global table is disabled.
|
|
358
|
+
#
|
|
359
|
+
# * `ENABLED_WITH_OVERRIDES`: This mode is set by default for a same
|
|
360
|
+
# account global table. Indicates that certain global table settings
|
|
361
|
+
# can be overridden.
|
|
362
|
+
# @return [String]
|
|
363
|
+
def global_table_settings_replication_mode
|
|
364
|
+
data[:global_table_settings_replication_mode]
|
|
365
|
+
end
|
|
366
|
+
|
|
350
367
|
# Contains details for the restore.
|
|
351
368
|
# @return [Types::RestoreSummary]
|
|
352
369
|
def restore_summary
|
|
@@ -1704,7 +1704,8 @@ module Aws::DynamoDB
|
|
|
1704
1704
|
# @return [String]
|
|
1705
1705
|
#
|
|
1706
1706
|
# @!attribute [rw] key_schema
|
|
1707
|
-
# The key schema for the global secondary index.
|
|
1707
|
+
# The key schema for the global secondary index. Global secondary
|
|
1708
|
+
# index supports up to 4 partition and up to 4 sort keys.
|
|
1708
1709
|
# @return [Array<Types::KeySchemaElement>]
|
|
1709
1710
|
#
|
|
1710
1711
|
# @!attribute [rw] projection
|
|
@@ -1984,7 +1985,8 @@ module Aws::DynamoDB
|
|
|
1984
1985
|
#
|
|
1985
1986
|
#
|
|
1986
1987
|
# * `KeySchema` - Specifies the key schema for the global secondary
|
|
1987
|
-
# index.
|
|
1988
|
+
# index. Each global secondary index supports up to 4 partition keys
|
|
1989
|
+
# and up to 4 sort keys.
|
|
1988
1990
|
#
|
|
1989
1991
|
# * `Projection` - Specifies attributes that are copied (projected)
|
|
1990
1992
|
# from the table into the index. These are in addition to the
|
|
@@ -2137,6 +2139,18 @@ module Aws::DynamoDB
|
|
|
2137
2139
|
# must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
|
2138
2140
|
# @return [Types::OnDemandThroughput]
|
|
2139
2141
|
#
|
|
2142
|
+
# @!attribute [rw] global_table_source_arn
|
|
2143
|
+
# The Amazon Resource Name (ARN) of the source table used for the
|
|
2144
|
+
# creation of a multi-account global table.
|
|
2145
|
+
# @return [String]
|
|
2146
|
+
#
|
|
2147
|
+
# @!attribute [rw] global_table_settings_replication_mode
|
|
2148
|
+
# Controls the settings synchronization mode for the global table. For
|
|
2149
|
+
# multi-account global tables, this parameter is required and the only
|
|
2150
|
+
# supported value is ENABLED. For same-account global tables, this
|
|
2151
|
+
# parameter is set to ENABLED\_WITH\_OVERRIDES.
|
|
2152
|
+
# @return [String]
|
|
2153
|
+
#
|
|
2140
2154
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput AWS API Documentation
|
|
2141
2155
|
#
|
|
2142
2156
|
class CreateTableInput < Struct.new(
|
|
@@ -2154,7 +2168,9 @@ module Aws::DynamoDB
|
|
|
2154
2168
|
:deletion_protection_enabled,
|
|
2155
2169
|
:warm_throughput,
|
|
2156
2170
|
:resource_policy,
|
|
2157
|
-
:on_demand_throughput
|
|
2171
|
+
:on_demand_throughput,
|
|
2172
|
+
:global_table_source_arn,
|
|
2173
|
+
:global_table_settings_replication_mode)
|
|
2158
2174
|
SENSITIVE = []
|
|
2159
2175
|
include Aws::Structure
|
|
2160
2176
|
end
|
|
@@ -3796,7 +3812,7 @@ module Aws::DynamoDB
|
|
|
3796
3812
|
#
|
|
3797
3813
|
# If you submit a request with the same client token but a change in
|
|
3798
3814
|
# other parameters within the 8-hour idempotency window, DynamoDB
|
|
3799
|
-
# returns an `
|
|
3815
|
+
# returns an `ExportConflictException`.
|
|
3800
3816
|
#
|
|
3801
3817
|
# **A suitable default value is auto-generated.** You should normally
|
|
3802
3818
|
# not need to pass this option.
|
|
@@ -7368,6 +7384,21 @@ module Aws::DynamoDB
|
|
|
7368
7384
|
# Contains details of the table class.
|
|
7369
7385
|
# @return [Types::TableClassSummary]
|
|
7370
7386
|
#
|
|
7387
|
+
# @!attribute [rw] global_table_settings_replication_mode
|
|
7388
|
+
# Indicates one of the settings synchronization modes for the global
|
|
7389
|
+
# table replica:
|
|
7390
|
+
#
|
|
7391
|
+
# * `ENABLED`: Indicates that the settings synchronization mode for
|
|
7392
|
+
# the global table replica is enabled.
|
|
7393
|
+
#
|
|
7394
|
+
# * `DISABLED`: Indicates that the settings synchronization mode for
|
|
7395
|
+
# the global table replica is disabled.
|
|
7396
|
+
#
|
|
7397
|
+
# * `ENABLED_WITH_OVERRIDES`: This mode is set by default for a same
|
|
7398
|
+
# account global table. Indicates that certain global table settings
|
|
7399
|
+
# can be overridden.
|
|
7400
|
+
# @return [String]
|
|
7401
|
+
#
|
|
7371
7402
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaDescription AWS API Documentation
|
|
7372
7403
|
#
|
|
7373
7404
|
class ReplicaDescription < Struct.new(
|
|
@@ -7381,7 +7412,8 @@ module Aws::DynamoDB
|
|
|
7381
7412
|
:warm_throughput,
|
|
7382
7413
|
:global_secondary_indexes,
|
|
7383
7414
|
:replica_inaccessible_date_time,
|
|
7384
|
-
:replica_table_class_summary
|
|
7415
|
+
:replica_table_class_summary,
|
|
7416
|
+
:global_table_settings_replication_mode)
|
|
7385
7417
|
SENSITIVE = []
|
|
7386
7418
|
include Aws::Structure
|
|
7387
7419
|
end
|
|
@@ -9142,6 +9174,21 @@ module Aws::DynamoDB
|
|
|
9142
9174
|
# Only one witness Region can be configured per MRSC global table.
|
|
9143
9175
|
# @return [Array<Types::GlobalTableWitnessDescription>]
|
|
9144
9176
|
#
|
|
9177
|
+
# @!attribute [rw] global_table_settings_replication_mode
|
|
9178
|
+
# Indicates one of the settings synchronization modes for the global
|
|
9179
|
+
# table:
|
|
9180
|
+
#
|
|
9181
|
+
# * `ENABLED`: Indicates that the settings synchronization mode for
|
|
9182
|
+
# the global table is enabled.
|
|
9183
|
+
#
|
|
9184
|
+
# * `DISABLED`: Indicates that the settings synchronization mode for
|
|
9185
|
+
# the global table is disabled.
|
|
9186
|
+
#
|
|
9187
|
+
# * `ENABLED_WITH_OVERRIDES`: This mode is set by default for a same
|
|
9188
|
+
# account global table. Indicates that certain global table settings
|
|
9189
|
+
# can be overridden.
|
|
9190
|
+
# @return [String]
|
|
9191
|
+
#
|
|
9145
9192
|
# @!attribute [rw] restore_summary
|
|
9146
9193
|
# Contains details for the restore.
|
|
9147
9194
|
# @return [Types::RestoreSummary]
|
|
@@ -9215,6 +9262,7 @@ module Aws::DynamoDB
|
|
|
9215
9262
|
:global_table_version,
|
|
9216
9263
|
:replicas,
|
|
9217
9264
|
:global_table_witnesses,
|
|
9265
|
+
:global_table_settings_replication_mode,
|
|
9218
9266
|
:restore_summary,
|
|
9219
9267
|
:sse_description,
|
|
9220
9268
|
:archival_summary,
|
|
@@ -9712,11 +9760,10 @@ module Aws::DynamoDB
|
|
|
9712
9760
|
#
|
|
9713
9761
|
# * There is a user error, such as an invalid data format.
|
|
9714
9762
|
#
|
|
9715
|
-
# <note markdown="1">
|
|
9716
|
-
#
|
|
9717
|
-
#
|
|
9718
|
-
#
|
|
9719
|
-
# and `Null` message.
|
|
9763
|
+
# <note markdown="1"> DynamoDB lists the cancellation reasons on the `CancellationReasons`
|
|
9764
|
+
# property. Transaction cancellation reasons are ordered in the order of
|
|
9765
|
+
# requested items, if an item has no error it will have `None` code and
|
|
9766
|
+
# `Null` message.
|
|
9720
9767
|
#
|
|
9721
9768
|
# </note>
|
|
9722
9769
|
#
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -177,14 +177,14 @@ module Aws
|
|
|
177
177
|
end
|
|
178
178
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Client.html#create_table-instance_method
|
|
179
179
|
def create_table: (
|
|
180
|
-
attribute_definitions: Array[
|
|
180
|
+
?attribute_definitions: Array[
|
|
181
181
|
{
|
|
182
182
|
attribute_name: ::String,
|
|
183
183
|
attribute_type: ("S" | "N" | "B")
|
|
184
184
|
},
|
|
185
185
|
],
|
|
186
186
|
table_name: ::String,
|
|
187
|
-
key_schema: Array[
|
|
187
|
+
?key_schema: Array[
|
|
188
188
|
{
|
|
189
189
|
attribute_name: ::String,
|
|
190
190
|
key_type: ("HASH" | "RANGE")
|
|
@@ -262,7 +262,9 @@ module Aws
|
|
|
262
262
|
?on_demand_throughput: {
|
|
263
263
|
max_read_request_units: ::Integer?,
|
|
264
264
|
max_write_request_units: ::Integer?
|
|
265
|
-
}
|
|
265
|
+
},
|
|
266
|
+
?global_table_source_arn: ::String,
|
|
267
|
+
?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
266
268
|
) -> _CreateTableResponseSuccess
|
|
267
269
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTableResponseSuccess
|
|
268
270
|
|
data/sig/resource.rbs
CHANGED
|
@@ -118,14 +118,14 @@ module Aws
|
|
|
118
118
|
|
|
119
119
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#create_table-instance_method
|
|
120
120
|
def create_table: (
|
|
121
|
-
attribute_definitions: Array[
|
|
121
|
+
?attribute_definitions: Array[
|
|
122
122
|
{
|
|
123
123
|
attribute_name: ::String,
|
|
124
124
|
attribute_type: ("S" | "N" | "B")
|
|
125
125
|
},
|
|
126
126
|
],
|
|
127
127
|
table_name: ::String,
|
|
128
|
-
key_schema: Array[
|
|
128
|
+
?key_schema: Array[
|
|
129
129
|
{
|
|
130
130
|
attribute_name: ::String,
|
|
131
131
|
key_type: ("HASH" | "RANGE")
|
|
@@ -203,7 +203,9 @@ module Aws
|
|
|
203
203
|
?on_demand_throughput: {
|
|
204
204
|
max_read_request_units: ::Integer?,
|
|
205
205
|
max_write_request_units: ::Integer?
|
|
206
|
-
}
|
|
206
|
+
},
|
|
207
|
+
?global_table_source_arn: ::String,
|
|
208
|
+
?global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
207
209
|
) -> Table
|
|
208
210
|
| (?Hash[Symbol, untyped]) -> Table
|
|
209
211
|
|
data/sig/table.rbs
CHANGED
|
@@ -72,6 +72,9 @@ module Aws
|
|
|
72
72
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#global_table_witnesses-instance_method
|
|
73
73
|
def global_table_witnesses: () -> ::Array[Types::GlobalTableWitnessDescription]
|
|
74
74
|
|
|
75
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#global_table_settings_replication_mode-instance_method
|
|
76
|
+
def global_table_settings_replication_mode: () -> ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
77
|
+
|
|
75
78
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Table.html#restore_summary-instance_method
|
|
76
79
|
def restore_summary: () -> Types::RestoreSummary
|
|
77
80
|
|
data/sig/types.rbs
CHANGED
|
@@ -330,6 +330,8 @@ module Aws::DynamoDB
|
|
|
330
330
|
attr_accessor warm_throughput: Types::WarmThroughput
|
|
331
331
|
attr_accessor resource_policy: ::String
|
|
332
332
|
attr_accessor on_demand_throughput: Types::OnDemandThroughput
|
|
333
|
+
attr_accessor global_table_source_arn: ::String
|
|
334
|
+
attr_accessor global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
333
335
|
SENSITIVE: []
|
|
334
336
|
end
|
|
335
337
|
|
|
@@ -1292,6 +1294,7 @@ module Aws::DynamoDB
|
|
|
1292
1294
|
attr_accessor global_secondary_indexes: ::Array[Types::ReplicaGlobalSecondaryIndexDescription]
|
|
1293
1295
|
attr_accessor replica_inaccessible_date_time: ::Time
|
|
1294
1296
|
attr_accessor replica_table_class_summary: Types::TableClassSummary
|
|
1297
|
+
attr_accessor global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
1295
1298
|
SENSITIVE: []
|
|
1296
1299
|
end
|
|
1297
1300
|
|
|
@@ -1577,6 +1580,7 @@ module Aws::DynamoDB
|
|
|
1577
1580
|
attr_accessor global_table_version: ::String
|
|
1578
1581
|
attr_accessor replicas: ::Array[Types::ReplicaDescription]
|
|
1579
1582
|
attr_accessor global_table_witnesses: ::Array[Types::GlobalTableWitnessDescription]
|
|
1583
|
+
attr_accessor global_table_settings_replication_mode: ("ENABLED" | "DISABLED" | "ENABLED_WITH_OVERRIDES")
|
|
1580
1584
|
attr_accessor restore_summary: Types::RestoreSummary
|
|
1581
1585
|
attr_accessor sse_description: Types::SSEDescription
|
|
1582
1586
|
attr_accessor archival_summary: Types::ArchivalSummary
|