aws-sdk-dynamodb 1.160.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +67 -11
- data/lib/aws-sdk-dynamodb/client_api.rb +7 -2
- 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/waiters.rb +190 -4
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +23 -4
- data/sig/resource.rbs +5 -3
- data/sig/table.rbs +3 -0
- data/sig/types.rbs +4 -0
- data/sig/waiters.rbs +41 -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,16 @@
|
|
|
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
|
+
|
|
9
|
+
1.161.0 (2026-01-22)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Adds additional waiters to Amazon DynamoDB.
|
|
13
|
+
|
|
4
14
|
1.160.0 (2026-01-16)
|
|
5
15
|
------------------
|
|
6
16
|
|
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
|
|
@@ -2669,6 +2687,11 @@ module Aws::DynamoDB
|
|
|
2669
2687
|
# resp.failure_exception.exception_description #=> String
|
|
2670
2688
|
# resp.contributor_insights_mode #=> String, one of "ACCESSED_AND_THROTTLED_KEYS", "THROTTLED_KEYS"
|
|
2671
2689
|
#
|
|
2690
|
+
#
|
|
2691
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
2692
|
+
#
|
|
2693
|
+
# * contributor_insights_enabled
|
|
2694
|
+
#
|
|
2672
2695
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContributorInsights AWS API Documentation
|
|
2673
2696
|
#
|
|
2674
2697
|
# @overload describe_contributor_insights(params = {})
|
|
@@ -2745,6 +2768,11 @@ module Aws::DynamoDB
|
|
|
2745
2768
|
# resp.export_description.incremental_export_specification.export_to_time #=> Time
|
|
2746
2769
|
# resp.export_description.incremental_export_specification.export_view_type #=> String, one of "NEW_IMAGE", "NEW_AND_OLD_IMAGES"
|
|
2747
2770
|
#
|
|
2771
|
+
#
|
|
2772
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
2773
|
+
#
|
|
2774
|
+
# * export_completed
|
|
2775
|
+
#
|
|
2748
2776
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeExport AWS API Documentation
|
|
2749
2777
|
#
|
|
2750
2778
|
# @overload describe_export(params = {})
|
|
@@ -2809,6 +2837,7 @@ module Aws::DynamoDB
|
|
|
2809
2837
|
# resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
|
|
2810
2838
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
2811
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"
|
|
2812
2841
|
# resp.global_table_description.global_table_arn #=> String
|
|
2813
2842
|
# resp.global_table_description.creation_date_time #=> Time
|
|
2814
2843
|
# resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
|
|
@@ -2993,6 +3022,11 @@ module Aws::DynamoDB
|
|
|
2993
3022
|
# resp.import_table_description.failure_code #=> String
|
|
2994
3023
|
# resp.import_table_description.failure_message #=> String
|
|
2995
3024
|
#
|
|
3025
|
+
#
|
|
3026
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
3027
|
+
#
|
|
3028
|
+
# * import_completed
|
|
3029
|
+
#
|
|
2996
3030
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeImport AWS API Documentation
|
|
2997
3031
|
#
|
|
2998
3032
|
# @overload describe_import(params = {})
|
|
@@ -3028,6 +3062,11 @@ module Aws::DynamoDB
|
|
|
3028
3062
|
# resp.kinesis_data_stream_destinations[0].destination_status_description #=> String
|
|
3029
3063
|
# resp.kinesis_data_stream_destinations[0].approximate_creation_date_time_precision #=> String, one of "MILLISECOND", "MICROSECOND"
|
|
3030
3064
|
#
|
|
3065
|
+
#
|
|
3066
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
3067
|
+
#
|
|
3068
|
+
# * kinesis_streaming_destination_active
|
|
3069
|
+
#
|
|
3031
3070
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeKinesisStreamingDestination AWS API Documentation
|
|
3032
3071
|
#
|
|
3033
3072
|
# @overload describe_kinesis_streaming_destination(params = {})
|
|
@@ -3300,9 +3339,11 @@ module Aws::DynamoDB
|
|
|
3300
3339
|
# resp.table.replicas[0].replica_inaccessible_date_time #=> Time
|
|
3301
3340
|
# resp.table.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
3302
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"
|
|
3303
3343
|
# resp.table.global_table_witnesses #=> Array
|
|
3304
3344
|
# resp.table.global_table_witnesses[0].region_name #=> String
|
|
3305
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"
|
|
3306
3347
|
# resp.table.restore_summary.source_backup_arn #=> String
|
|
3307
3348
|
# resp.table.restore_summary.source_table_arn #=> String
|
|
3308
3349
|
# resp.table.restore_summary.restore_date_time #=> Time
|
|
@@ -3775,7 +3816,7 @@ module Aws::DynamoDB
|
|
|
3775
3816
|
#
|
|
3776
3817
|
# If you submit a request with the same client token but a change in
|
|
3777
3818
|
# other parameters within the 8-hour idempotency window, DynamoDB
|
|
3778
|
-
# returns an `
|
|
3819
|
+
# returns an `ExportConflictException`.
|
|
3779
3820
|
#
|
|
3780
3821
|
# **A suitable default value is auto-generated.** You should normally
|
|
3781
3822
|
# not need to pass this option.**
|
|
@@ -5901,9 +5942,11 @@ module Aws::DynamoDB
|
|
|
5901
5942
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
5902
5943
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
5903
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"
|
|
5904
5946
|
# resp.table_description.global_table_witnesses #=> Array
|
|
5905
5947
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
5906
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"
|
|
5907
5950
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
5908
5951
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
5909
5952
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -6169,9 +6212,11 @@ module Aws::DynamoDB
|
|
|
6169
6212
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
6170
6213
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
6171
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"
|
|
6172
6216
|
# resp.table_description.global_table_witnesses #=> Array
|
|
6173
6217
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
6174
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"
|
|
6175
6220
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
6176
6221
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
6177
6222
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -7284,6 +7329,7 @@ module Aws::DynamoDB
|
|
|
7284
7329
|
# resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
|
|
7285
7330
|
# resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
7286
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"
|
|
7287
7333
|
# resp.global_table_description.global_table_arn #=> String
|
|
7288
7334
|
# resp.global_table_description.creation_date_time #=> Time
|
|
7289
7335
|
# resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
|
|
@@ -8394,9 +8440,11 @@ module Aws::DynamoDB
|
|
|
8394
8440
|
# resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
|
|
8395
8441
|
# resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
|
8396
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"
|
|
8397
8444
|
# resp.table_description.global_table_witnesses #=> Array
|
|
8398
8445
|
# resp.table_description.global_table_witnesses[0].region_name #=> String
|
|
8399
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"
|
|
8400
8448
|
# resp.table_description.restore_summary.source_backup_arn #=> String
|
|
8401
8449
|
# resp.table_description.restore_summary.source_table_arn #=> String
|
|
8402
8450
|
# resp.table_description.restore_summary.restore_date_time #=> Time
|
|
@@ -8681,7 +8729,7 @@ module Aws::DynamoDB
|
|
|
8681
8729
|
tracer: tracer
|
|
8682
8730
|
)
|
|
8683
8731
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
|
8684
|
-
context[:gem_version] = '1.
|
|
8732
|
+
context[:gem_version] = '1.162.0'
|
|
8685
8733
|
Seahorse::Client::Request.new(handlers, context)
|
|
8686
8734
|
end
|
|
8687
8735
|
|
|
@@ -8747,10 +8795,14 @@ module Aws::DynamoDB
|
|
|
8747
8795
|
# The following table lists the valid waiter names, the operations they call,
|
|
8748
8796
|
# and the default `:delay` and `:max_attempts` values.
|
|
8749
8797
|
#
|
|
8750
|
-
# | waiter_name
|
|
8751
|
-
# |
|
|
8752
|
-
# |
|
|
8753
|
-
# |
|
|
8798
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
8799
|
+
# | ------------------------------------ | ----------------------------------------------- | -------- | ------------- |
|
|
8800
|
+
# | contributor_insights_enabled | {Client#describe_contributor_insights} | 20 | 30 |
|
|
8801
|
+
# | export_completed | {Client#describe_export} | 20 | 60 |
|
|
8802
|
+
# | import_completed | {Client#describe_import} | 20 | 60 |
|
|
8803
|
+
# | kinesis_streaming_destination_active | {Client#describe_kinesis_streaming_destination} | 20 | 30 |
|
|
8804
|
+
# | table_exists | {Client#describe_table} | 20 | 25 |
|
|
8805
|
+
# | table_not_exists | {Client#describe_table} | 20 | 25 |
|
|
8754
8806
|
#
|
|
8755
8807
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
8756
8808
|
# because the waiter has entered a state that it will not transition
|
|
@@ -8801,6 +8853,10 @@ module Aws::DynamoDB
|
|
|
8801
8853
|
|
|
8802
8854
|
def waiters
|
|
8803
8855
|
{
|
|
8856
|
+
contributor_insights_enabled: Waiters::ContributorInsightsEnabled,
|
|
8857
|
+
export_completed: Waiters::ExportCompleted,
|
|
8858
|
+
import_completed: Waiters::ImportCompleted,
|
|
8859
|
+
kinesis_streaming_destination_active: Waiters::KinesisStreamingDestinationActive,
|
|
8804
8860
|
table_exists: Waiters::TableExists,
|
|
8805
8861
|
table_not_exists: Waiters::TableNotExists
|
|
8806
8862
|
}
|
|
@@ -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"))
|
|
@@ -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
|
#
|
|
@@ -67,13 +67,199 @@ module Aws::DynamoDB
|
|
|
67
67
|
# The following table lists the valid waiter names, the operations they call,
|
|
68
68
|
# and the default `:delay` and `:max_attempts` values.
|
|
69
69
|
#
|
|
70
|
-
# | waiter_name
|
|
71
|
-
# |
|
|
72
|
-
# |
|
|
73
|
-
# |
|
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
71
|
+
# | ------------------------------------ | ----------------------------------------------- | -------- | ------------- |
|
|
72
|
+
# | contributor_insights_enabled | {Client#describe_contributor_insights} | 20 | 30 |
|
|
73
|
+
# | export_completed | {Client#describe_export} | 20 | 60 |
|
|
74
|
+
# | import_completed | {Client#describe_import} | 20 | 60 |
|
|
75
|
+
# | kinesis_streaming_destination_active | {Client#describe_kinesis_streaming_destination} | 20 | 30 |
|
|
76
|
+
# | table_exists | {Client#describe_table} | 20 | 25 |
|
|
77
|
+
# | table_not_exists | {Client#describe_table} | 20 | 25 |
|
|
74
78
|
#
|
|
75
79
|
module Waiters
|
|
76
80
|
|
|
81
|
+
class ContributorInsightsEnabled
|
|
82
|
+
|
|
83
|
+
# @param [Hash] options
|
|
84
|
+
# @option options [required, Client] :client
|
|
85
|
+
# @option options [Integer] :max_attempts (30)
|
|
86
|
+
# @option options [Integer] :delay (20)
|
|
87
|
+
# @option options [Proc] :before_attempt
|
|
88
|
+
# @option options [Proc] :before_wait
|
|
89
|
+
def initialize(options)
|
|
90
|
+
@client = options.fetch(:client)
|
|
91
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
92
|
+
max_attempts: 30,
|
|
93
|
+
delay: 20,
|
|
94
|
+
poller: Aws::Waiters::Poller.new(
|
|
95
|
+
operation_name: :describe_contributor_insights,
|
|
96
|
+
acceptors: [
|
|
97
|
+
{
|
|
98
|
+
"state" => "success",
|
|
99
|
+
"matcher" => "path",
|
|
100
|
+
"argument" => "contributor_insights_status",
|
|
101
|
+
"expected" => "ENABLED"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"state" => "failure",
|
|
105
|
+
"matcher" => "path",
|
|
106
|
+
"argument" => "contributor_insights_status",
|
|
107
|
+
"expected" => "FAILED"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
)
|
|
111
|
+
}.merge(options))
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @option (see Client#describe_contributor_insights)
|
|
115
|
+
# @return (see Client#describe_contributor_insights)
|
|
116
|
+
def wait(params = {})
|
|
117
|
+
@waiter.wait(client: @client, params: params)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @api private
|
|
121
|
+
attr_reader :waiter
|
|
122
|
+
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
class ExportCompleted
|
|
126
|
+
|
|
127
|
+
# @param [Hash] options
|
|
128
|
+
# @option options [required, Client] :client
|
|
129
|
+
# @option options [Integer] :max_attempts (60)
|
|
130
|
+
# @option options [Integer] :delay (20)
|
|
131
|
+
# @option options [Proc] :before_attempt
|
|
132
|
+
# @option options [Proc] :before_wait
|
|
133
|
+
def initialize(options)
|
|
134
|
+
@client = options.fetch(:client)
|
|
135
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
136
|
+
max_attempts: 60,
|
|
137
|
+
delay: 20,
|
|
138
|
+
poller: Aws::Waiters::Poller.new(
|
|
139
|
+
operation_name: :describe_export,
|
|
140
|
+
acceptors: [
|
|
141
|
+
{
|
|
142
|
+
"state" => "success",
|
|
143
|
+
"matcher" => "path",
|
|
144
|
+
"argument" => "export_description.export_status",
|
|
145
|
+
"expected" => "COMPLETED"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"state" => "failure",
|
|
149
|
+
"matcher" => "path",
|
|
150
|
+
"argument" => "export_description.export_status",
|
|
151
|
+
"expected" => "FAILED"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
)
|
|
155
|
+
}.merge(options))
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# @option (see Client#describe_export)
|
|
159
|
+
# @return (see Client#describe_export)
|
|
160
|
+
def wait(params = {})
|
|
161
|
+
@waiter.wait(client: @client, params: params)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @api private
|
|
165
|
+
attr_reader :waiter
|
|
166
|
+
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class ImportCompleted
|
|
170
|
+
|
|
171
|
+
# @param [Hash] options
|
|
172
|
+
# @option options [required, Client] :client
|
|
173
|
+
# @option options [Integer] :max_attempts (60)
|
|
174
|
+
# @option options [Integer] :delay (20)
|
|
175
|
+
# @option options [Proc] :before_attempt
|
|
176
|
+
# @option options [Proc] :before_wait
|
|
177
|
+
def initialize(options)
|
|
178
|
+
@client = options.fetch(:client)
|
|
179
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
180
|
+
max_attempts: 60,
|
|
181
|
+
delay: 20,
|
|
182
|
+
poller: Aws::Waiters::Poller.new(
|
|
183
|
+
operation_name: :describe_import,
|
|
184
|
+
acceptors: [
|
|
185
|
+
{
|
|
186
|
+
"state" => "success",
|
|
187
|
+
"matcher" => "path",
|
|
188
|
+
"argument" => "import_table_description.import_status",
|
|
189
|
+
"expected" => "COMPLETED"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"state" => "failure",
|
|
193
|
+
"matcher" => "path",
|
|
194
|
+
"argument" => "import_table_description.import_status",
|
|
195
|
+
"expected" => "FAILED"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"state" => "failure",
|
|
199
|
+
"matcher" => "path",
|
|
200
|
+
"argument" => "import_table_description.import_status",
|
|
201
|
+
"expected" => "CANCELLED"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
)
|
|
205
|
+
}.merge(options))
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# @option (see Client#describe_import)
|
|
209
|
+
# @return (see Client#describe_import)
|
|
210
|
+
def wait(params = {})
|
|
211
|
+
@waiter.wait(client: @client, params: params)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# @api private
|
|
215
|
+
attr_reader :waiter
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
class KinesisStreamingDestinationActive
|
|
220
|
+
|
|
221
|
+
# @param [Hash] options
|
|
222
|
+
# @option options [required, Client] :client
|
|
223
|
+
# @option options [Integer] :max_attempts (30)
|
|
224
|
+
# @option options [Integer] :delay (20)
|
|
225
|
+
# @option options [Proc] :before_attempt
|
|
226
|
+
# @option options [Proc] :before_wait
|
|
227
|
+
def initialize(options)
|
|
228
|
+
@client = options.fetch(:client)
|
|
229
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
230
|
+
max_attempts: 30,
|
|
231
|
+
delay: 20,
|
|
232
|
+
poller: Aws::Waiters::Poller.new(
|
|
233
|
+
operation_name: :describe_kinesis_streaming_destination,
|
|
234
|
+
acceptors: [
|
|
235
|
+
{
|
|
236
|
+
"state" => "success",
|
|
237
|
+
"matcher" => "pathAny",
|
|
238
|
+
"argument" => "kinesis_data_stream_destinations[].destination_status",
|
|
239
|
+
"expected" => "ACTIVE"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"state" => "failure",
|
|
243
|
+
"matcher" => "path",
|
|
244
|
+
"argument" => "length(kinesis_data_stream_destinations) > `0` && length(kinesis_data_stream_destinations[?destination_status == 'DISABLED' || destination_status == 'ENABLE_FAILED']) == length(kinesis_data_stream_destinations)",
|
|
245
|
+
"expected" => true
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
)
|
|
249
|
+
}.merge(options))
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# @option (see Client#describe_kinesis_streaming_destination)
|
|
253
|
+
# @return (see Client#describe_kinesis_streaming_destination)
|
|
254
|
+
def wait(params = {})
|
|
255
|
+
@waiter.wait(client: @client, params: params)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# @api private
|
|
259
|
+
attr_reader :waiter
|
|
260
|
+
|
|
261
|
+
end
|
|
262
|
+
|
|
77
263
|
class TableExists
|
|
78
264
|
|
|
79
265
|
# @param [Hash] options
|
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
|
|
|
@@ -1534,7 +1536,24 @@ module Aws
|
|
|
1534
1536
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTimeToLiveResponseSuccess
|
|
1535
1537
|
|
|
1536
1538
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Client.html#wait_until-instance_method
|
|
1537
|
-
def wait_until: (:
|
|
1539
|
+
def wait_until: (:contributor_insights_enabled waiter_name,
|
|
1540
|
+
table_name: ::String,
|
|
1541
|
+
?index_name: ::String
|
|
1542
|
+
) -> Client::_DescribeContributorInsightsResponseSuccess
|
|
1543
|
+
| (:contributor_insights_enabled waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeContributorInsightsResponseSuccess
|
|
1544
|
+
| (:export_completed waiter_name,
|
|
1545
|
+
export_arn: ::String
|
|
1546
|
+
) -> Client::_DescribeExportResponseSuccess
|
|
1547
|
+
| (:export_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeExportResponseSuccess
|
|
1548
|
+
| (:import_completed waiter_name,
|
|
1549
|
+
import_arn: ::String
|
|
1550
|
+
) -> Client::_DescribeImportResponseSuccess
|
|
1551
|
+
| (:import_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeImportResponseSuccess
|
|
1552
|
+
| (:kinesis_streaming_destination_active waiter_name,
|
|
1553
|
+
table_name: ::String
|
|
1554
|
+
) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
|
|
1555
|
+
| (:kinesis_streaming_destination_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
|
|
1556
|
+
| (:table_exists waiter_name,
|
|
1538
1557
|
table_name: ::String
|
|
1539
1558
|
) -> Client::_DescribeTableResponseSuccess
|
|
1540
1559
|
| (:table_exists waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeTableResponseSuccess
|
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
|
data/sig/waiters.rbs
CHANGED
|
@@ -9,6 +9,47 @@ module Aws
|
|
|
9
9
|
module DynamoDB
|
|
10
10
|
module Waiters
|
|
11
11
|
|
|
12
|
+
class ContributorInsightsEnabled
|
|
13
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
14
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
15
|
+
|
|
16
|
+
def wait: (
|
|
17
|
+
table_name: ::String,
|
|
18
|
+
?index_name: ::String
|
|
19
|
+
) -> Client::_DescribeContributorInsightsResponseSuccess
|
|
20
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeContributorInsightsResponseSuccess
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
class ExportCompleted
|
|
24
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
25
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
26
|
+
|
|
27
|
+
def wait: (
|
|
28
|
+
export_arn: ::String
|
|
29
|
+
) -> Client::_DescribeExportResponseSuccess
|
|
30
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeExportResponseSuccess
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
class ImportCompleted
|
|
34
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
35
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
36
|
+
|
|
37
|
+
def wait: (
|
|
38
|
+
import_arn: ::String
|
|
39
|
+
) -> Client::_DescribeImportResponseSuccess
|
|
40
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeImportResponseSuccess
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class KinesisStreamingDestinationActive
|
|
44
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
45
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
46
|
+
|
|
47
|
+
def wait: (
|
|
48
|
+
table_name: ::String
|
|
49
|
+
) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
|
|
50
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
|
|
51
|
+
end
|
|
52
|
+
|
|
12
53
|
class TableExists
|
|
13
54
|
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
14
55
|
| (?Hash[Symbol, untyped]) -> void
|