aws-sdk-dynamodb 1.96.0 → 1.132.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +182 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +1054 -319
- data/lib/aws-sdk-dynamodb/client_api.rb +218 -34
- data/lib/aws-sdk-dynamodb/endpoint_parameters.rb +27 -6
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +42 -10
- data/lib/aws-sdk-dynamodb/endpoints.rb +2 -740
- data/lib/aws-sdk-dynamodb/errors.rb +32 -0
- data/lib/aws-sdk-dynamodb/plugins/endpoints.rb +48 -120
- data/lib/aws-sdk-dynamodb/plugins/simple_attributes.rb +26 -0
- data/lib/aws-sdk-dynamodb/resource.rb +66 -27
- data/lib/aws-sdk-dynamodb/table.rb +147 -49
- data/lib/aws-sdk-dynamodb/types.rb +880 -182
- data/lib/aws-sdk-dynamodb.rb +17 -13
- data/sig/client.rbs +1531 -0
- data/sig/errors.rbs +117 -0
- data/sig/resource.rbs +217 -0
- data/sig/table.rbs +378 -0
- data/sig/types.rbs +1847 -0
- data/sig/waiters.rbs +33 -0
- metadata +17 -11
@@ -58,7 +58,6 @@ module Aws::DynamoDB
|
|
58
58
|
# * `HASH` - partition key
|
59
59
|
#
|
60
60
|
# * `RANGE` - sort key
|
61
|
-
#
|
62
61
|
# <note markdown="1"> The partition key of an item is also known as its *hash attribute*.
|
63
62
|
# The term "hash attribute" derives from DynamoDB's usage of an
|
64
63
|
# internal hash function to evenly distribute data items across
|
@@ -191,14 +190,12 @@ module Aws::DynamoDB
|
|
191
190
|
#
|
192
191
|
# * `ALL` - All of the table attributes are projected into the
|
193
192
|
# index.
|
194
|
-
#
|
195
193
|
# * `NonKeyAttributes` - A list of one or more non-key attribute names
|
196
194
|
# that are projected into the secondary index. The total count of
|
197
195
|
# attributes provided in `NonKeyAttributes`, summed across all of
|
198
196
|
# the secondary indexes, must not exceed 100. If you project the
|
199
197
|
# same attribute into two different indexes, this counts as two
|
200
198
|
# distinct attributes when determining the total.
|
201
|
-
#
|
202
199
|
# * `IndexSizeBytes` - Represents the total size of the index, in bytes.
|
203
200
|
# DynamoDB updates this value approximately every six hours. Recent
|
204
201
|
# changes might not be reflected in this value.
|
@@ -246,7 +243,6 @@ module Aws::DynamoDB
|
|
246
243
|
# * `DELETING` - The index is being deleted.
|
247
244
|
#
|
248
245
|
# * `ACTIVE` - The index is ready for use.
|
249
|
-
#
|
250
246
|
# * `ItemCount` - The number of items in the global secondary index.
|
251
247
|
# DynamoDB updates this value approximately every six hours. Recent
|
252
248
|
# changes might not be reflected in this value.
|
@@ -272,14 +268,12 @@ module Aws::DynamoDB
|
|
272
268
|
#
|
273
269
|
# * `ALL` - All of the table attributes are projected into the
|
274
270
|
# index.
|
275
|
-
#
|
276
271
|
# * `NonKeyAttributes` - A list of one or more non-key attribute names
|
277
272
|
# that are projected into the secondary index. The total count of
|
278
273
|
# attributes provided in `NonKeyAttributes`, summed across all of
|
279
274
|
# the secondary indexes, must not exceed 100. If you project the
|
280
275
|
# same attribute into two different indexes, this counts as two
|
281
276
|
# distinct attributes when determining the total.
|
282
|
-
#
|
283
277
|
# * `ProvisionedThroughput` - The provisioned throughput settings for
|
284
278
|
# the global secondary index, consisting of read and write capacity
|
285
279
|
# units, along with data about increases and decreases.
|
@@ -370,6 +364,45 @@ module Aws::DynamoDB
|
|
370
364
|
data[:deletion_protection_enabled]
|
371
365
|
end
|
372
366
|
|
367
|
+
# The maximum number of read and write units for the specified on-demand
|
368
|
+
# table. If you use this parameter, you must specify
|
369
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
370
|
+
# @return [Types::OnDemandThroughput]
|
371
|
+
def on_demand_throughput
|
372
|
+
data[:on_demand_throughput]
|
373
|
+
end
|
374
|
+
|
375
|
+
# Describes the warm throughput value of the base table.
|
376
|
+
# @return [Types::TableWarmThroughputDescription]
|
377
|
+
def warm_throughput
|
378
|
+
data[:warm_throughput]
|
379
|
+
end
|
380
|
+
|
381
|
+
# Indicates one of the following consistency modes for a global table:
|
382
|
+
#
|
383
|
+
# * `EVENTUAL`: Indicates that the global table is configured for
|
384
|
+
# multi-Region eventual consistency.
|
385
|
+
#
|
386
|
+
# * `STRONG`: Indicates that the global table is configured for
|
387
|
+
# multi-Region strong consistency (preview).
|
388
|
+
#
|
389
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
390
|
+
# tables capability currently available in preview mode. For more
|
391
|
+
# information, see [Global tables multi-Region strong consistency][1].
|
392
|
+
#
|
393
|
+
# </note>
|
394
|
+
#
|
395
|
+
# If you don't specify this field, the global table consistency mode
|
396
|
+
# defaults to `EVENTUAL`.
|
397
|
+
#
|
398
|
+
#
|
399
|
+
#
|
400
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
401
|
+
# @return [String]
|
402
|
+
def multi_region_consistency
|
403
|
+
data[:multi_region_consistency]
|
404
|
+
end
|
405
|
+
|
373
406
|
# @!endgroup
|
374
407
|
|
375
408
|
# @return [Client]
|
@@ -384,7 +417,7 @@ module Aws::DynamoDB
|
|
384
417
|
#
|
385
418
|
# @return [self]
|
386
419
|
def load
|
387
|
-
resp = Aws::Plugins::UserAgent.
|
420
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
388
421
|
@client.describe_table(table_name: @name)
|
389
422
|
end
|
390
423
|
@data = resp.table
|
@@ -501,7 +534,7 @@ module Aws::DynamoDB
|
|
501
534
|
:retry
|
502
535
|
end
|
503
536
|
end
|
504
|
-
Aws::Plugins::UserAgent.
|
537
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
505
538
|
Aws::Waiters::Waiter.new(options).wait({})
|
506
539
|
end
|
507
540
|
end
|
@@ -515,7 +548,7 @@ module Aws::DynamoDB
|
|
515
548
|
# @return [Types::DeleteTableOutput]
|
516
549
|
def delete(options = {})
|
517
550
|
options = options.merge(table_name: @name)
|
518
|
-
resp = Aws::Plugins::UserAgent.
|
551
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
519
552
|
@client.delete_table(options)
|
520
553
|
end
|
521
554
|
resp.data
|
@@ -661,7 +694,7 @@ module Aws::DynamoDB
|
|
661
694
|
# Developer Guide*). To work around this, you could specify the
|
662
695
|
# following for `ExpressionAttributeNames`:
|
663
696
|
#
|
664
|
-
# *
|
697
|
+
# * `{"#P":"Percentile"}`
|
665
698
|
#
|
666
699
|
# ^
|
667
700
|
#
|
@@ -696,8 +729,8 @@ module Aws::DynamoDB
|
|
696
729
|
# You would first need to specify `ExpressionAttributeValues` as
|
697
730
|
# follows:
|
698
731
|
#
|
699
|
-
#
|
700
|
-
# ":disc"
|
732
|
+
# `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"},
|
733
|
+
# ":disc":{"S":"Discontinued"} }`
|
701
734
|
#
|
702
735
|
# You could then use these values in an expression, such as this:
|
703
736
|
#
|
@@ -719,7 +752,7 @@ module Aws::DynamoDB
|
|
719
752
|
# @return [Types::DeleteItemOutput]
|
720
753
|
def delete_item(options = {})
|
721
754
|
options = options.merge(table_name: @name)
|
722
|
-
resp = Aws::Plugins::UserAgent.
|
755
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
723
756
|
@client.delete_item(options)
|
724
757
|
end
|
725
758
|
resp.data
|
@@ -818,7 +851,7 @@ module Aws::DynamoDB
|
|
818
851
|
# Developer Guide*). To work around this, you could specify the
|
819
852
|
# following for `ExpressionAttributeNames`:
|
820
853
|
#
|
821
|
-
# *
|
854
|
+
# * `{"#P":"Percentile"}`
|
822
855
|
#
|
823
856
|
# ^
|
824
857
|
#
|
@@ -844,7 +877,7 @@ module Aws::DynamoDB
|
|
844
877
|
# @return [Types::GetItemOutput]
|
845
878
|
def get_item(options = {})
|
846
879
|
options = options.merge(table_name: @name)
|
847
|
-
resp = Aws::Plugins::UserAgent.
|
880
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
848
881
|
@client.get_item(options)
|
849
882
|
end
|
850
883
|
resp.data
|
@@ -1011,7 +1044,7 @@ module Aws::DynamoDB
|
|
1011
1044
|
# Developer Guide*). To work around this, you could specify the
|
1012
1045
|
# following for `ExpressionAttributeNames`:
|
1013
1046
|
#
|
1014
|
-
# *
|
1047
|
+
# * `{"#P":"Percentile"}`
|
1015
1048
|
#
|
1016
1049
|
# ^
|
1017
1050
|
#
|
@@ -1046,8 +1079,8 @@ module Aws::DynamoDB
|
|
1046
1079
|
# You would first need to specify `ExpressionAttributeValues` as
|
1047
1080
|
# follows:
|
1048
1081
|
#
|
1049
|
-
#
|
1050
|
-
# ":disc"
|
1082
|
+
# `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"},
|
1083
|
+
# ":disc":{"S":"Discontinued"} }`
|
1051
1084
|
#
|
1052
1085
|
# You could then use these values in an expression, such as this:
|
1053
1086
|
#
|
@@ -1069,7 +1102,7 @@ module Aws::DynamoDB
|
|
1069
1102
|
# @return [Types::PutItemOutput]
|
1070
1103
|
def put_item(options = {})
|
1071
1104
|
options = options.merge(table_name: @name)
|
1072
|
-
resp = Aws::Plugins::UserAgent.
|
1105
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1073
1106
|
@client.put_item(options)
|
1074
1107
|
end
|
1075
1108
|
resp.data
|
@@ -1298,7 +1331,7 @@ module Aws::DynamoDB
|
|
1298
1331
|
#
|
1299
1332
|
#
|
1300
1333
|
#
|
1301
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/
|
1334
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.FilterExpression.html
|
1302
1335
|
# @option options [String] :key_condition_expression
|
1303
1336
|
# The condition that specifies the key values for items to be retrieved
|
1304
1337
|
# by the `Query` action.
|
@@ -1408,7 +1441,7 @@ module Aws::DynamoDB
|
|
1408
1441
|
# Developer Guide*). To work around this, you could specify the
|
1409
1442
|
# following for `ExpressionAttributeNames`:
|
1410
1443
|
#
|
1411
|
-
# *
|
1444
|
+
# * `{"#P":"Percentile"}`
|
1412
1445
|
#
|
1413
1446
|
# ^
|
1414
1447
|
#
|
@@ -1443,8 +1476,8 @@ module Aws::DynamoDB
|
|
1443
1476
|
# You would first need to specify `ExpressionAttributeValues` as
|
1444
1477
|
# follows:
|
1445
1478
|
#
|
1446
|
-
#
|
1447
|
-
# ":disc"
|
1479
|
+
# `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"},
|
1480
|
+
# ":disc":{"S":"Discontinued"} }`
|
1448
1481
|
#
|
1449
1482
|
# You could then use these values in an expression, such as this:
|
1450
1483
|
#
|
@@ -1459,7 +1492,7 @@ module Aws::DynamoDB
|
|
1459
1492
|
# @return [Types::QueryOutput]
|
1460
1493
|
def query(options = {})
|
1461
1494
|
options = options.merge(table_name: @name)
|
1462
|
-
resp = Aws::Plugins::UserAgent.
|
1495
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1463
1496
|
@client.query(options)
|
1464
1497
|
end
|
1465
1498
|
resp.data
|
@@ -1708,7 +1741,7 @@ module Aws::DynamoDB
|
|
1708
1741
|
# Developer Guide*). To work around this, you could specify the
|
1709
1742
|
# following for `ExpressionAttributeNames`:
|
1710
1743
|
#
|
1711
|
-
# *
|
1744
|
+
# * `{"#P":"Percentile"}`
|
1712
1745
|
#
|
1713
1746
|
# ^
|
1714
1747
|
#
|
@@ -1743,8 +1776,8 @@ module Aws::DynamoDB
|
|
1743
1776
|
# You would first need to specify `ExpressionAttributeValues` as
|
1744
1777
|
# follows:
|
1745
1778
|
#
|
1746
|
-
#
|
1747
|
-
# ":disc"
|
1779
|
+
# `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"},
|
1780
|
+
# ":disc":{"S":"Discontinued"} }`
|
1748
1781
|
#
|
1749
1782
|
# You could then use these values in an expression, such as this:
|
1750
1783
|
#
|
@@ -1776,7 +1809,7 @@ module Aws::DynamoDB
|
|
1776
1809
|
# @return [Types::ScanOutput]
|
1777
1810
|
def scan(options = {})
|
1778
1811
|
options = options.merge(table_name: @name)
|
1779
|
-
resp = Aws::Plugins::UserAgent.
|
1812
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1780
1813
|
@client.scan(options)
|
1781
1814
|
end
|
1782
1815
|
resp.data
|
@@ -1800,10 +1833,18 @@ module Aws::DynamoDB
|
|
1800
1833
|
# {
|
1801
1834
|
# update: {
|
1802
1835
|
# index_name: "IndexName", # required
|
1803
|
-
# provisioned_throughput: {
|
1836
|
+
# provisioned_throughput: {
|
1804
1837
|
# read_capacity_units: 1, # required
|
1805
1838
|
# write_capacity_units: 1, # required
|
1806
1839
|
# },
|
1840
|
+
# on_demand_throughput: {
|
1841
|
+
# max_read_request_units: 1,
|
1842
|
+
# max_write_request_units: 1,
|
1843
|
+
# },
|
1844
|
+
# warm_throughput: {
|
1845
|
+
# read_units_per_second: 1,
|
1846
|
+
# write_units_per_second: 1,
|
1847
|
+
# },
|
1807
1848
|
# },
|
1808
1849
|
# create: {
|
1809
1850
|
# index_name: "IndexName", # required
|
@@ -1821,6 +1862,14 @@ module Aws::DynamoDB
|
|
1821
1862
|
# read_capacity_units: 1, # required
|
1822
1863
|
# write_capacity_units: 1, # required
|
1823
1864
|
# },
|
1865
|
+
# on_demand_throughput: {
|
1866
|
+
# max_read_request_units: 1,
|
1867
|
+
# max_write_request_units: 1,
|
1868
|
+
# },
|
1869
|
+
# warm_throughput: {
|
1870
|
+
# read_units_per_second: 1,
|
1871
|
+
# write_units_per_second: 1,
|
1872
|
+
# },
|
1824
1873
|
# },
|
1825
1874
|
# delete: {
|
1826
1875
|
# index_name: "IndexName", # required
|
@@ -1844,12 +1893,18 @@ module Aws::DynamoDB
|
|
1844
1893
|
# provisioned_throughput_override: {
|
1845
1894
|
# read_capacity_units: 1,
|
1846
1895
|
# },
|
1896
|
+
# on_demand_throughput_override: {
|
1897
|
+
# max_read_request_units: 1,
|
1898
|
+
# },
|
1847
1899
|
# global_secondary_indexes: [
|
1848
1900
|
# {
|
1849
1901
|
# index_name: "IndexName", # required
|
1850
1902
|
# provisioned_throughput_override: {
|
1851
1903
|
# read_capacity_units: 1,
|
1852
1904
|
# },
|
1905
|
+
# on_demand_throughput_override: {
|
1906
|
+
# max_read_request_units: 1,
|
1907
|
+
# },
|
1853
1908
|
# },
|
1854
1909
|
# ],
|
1855
1910
|
# table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
@@ -1860,12 +1915,18 @@ module Aws::DynamoDB
|
|
1860
1915
|
# provisioned_throughput_override: {
|
1861
1916
|
# read_capacity_units: 1,
|
1862
1917
|
# },
|
1918
|
+
# on_demand_throughput_override: {
|
1919
|
+
# max_read_request_units: 1,
|
1920
|
+
# },
|
1863
1921
|
# global_secondary_indexes: [
|
1864
1922
|
# {
|
1865
1923
|
# index_name: "IndexName", # required
|
1866
1924
|
# provisioned_throughput_override: {
|
1867
1925
|
# read_capacity_units: 1,
|
1868
1926
|
# },
|
1927
|
+
# on_demand_throughput_override: {
|
1928
|
+
# max_read_request_units: 1,
|
1929
|
+
# },
|
1869
1930
|
# },
|
1870
1931
|
# ],
|
1871
1932
|
# table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
@@ -1877,6 +1938,15 @@ module Aws::DynamoDB
|
|
1877
1938
|
# ],
|
1878
1939
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
1879
1940
|
# deletion_protection_enabled: false,
|
1941
|
+
# multi_region_consistency: "EVENTUAL", # accepts EVENTUAL, STRONG
|
1942
|
+
# on_demand_throughput: {
|
1943
|
+
# max_read_request_units: 1,
|
1944
|
+
# max_write_request_units: 1,
|
1945
|
+
# },
|
1946
|
+
# warm_throughput: {
|
1947
|
+
# read_units_per_second: 1,
|
1948
|
+
# write_units_per_second: 1,
|
1949
|
+
# },
|
1880
1950
|
# })
|
1881
1951
|
# @param [Hash] options ({})
|
1882
1952
|
# @option options [Array<Types::AttributeDefinition>] :attribute_definitions
|
@@ -1894,16 +1964,16 @@ module Aws::DynamoDB
|
|
1894
1964
|
#
|
1895
1965
|
# * `PROVISIONED` - We recommend using `PROVISIONED` for predictable
|
1896
1966
|
# workloads. `PROVISIONED` sets the billing mode to [Provisioned
|
1897
|
-
#
|
1967
|
+
# capacity mode][1].
|
1898
1968
|
#
|
1899
1969
|
# * `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for
|
1900
1970
|
# unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode to
|
1901
|
-
# [On-
|
1971
|
+
# [On-demand capacity mode][2].
|
1902
1972
|
#
|
1903
1973
|
#
|
1904
1974
|
#
|
1905
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/
|
1906
|
-
# [2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/
|
1975
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html
|
1976
|
+
# [2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html
|
1907
1977
|
# @option options [Types::ProvisionedThroughput] :provisioned_throughput
|
1908
1978
|
# The new provisioned throughput settings for the specified table or
|
1909
1979
|
# index.
|
@@ -1930,9 +2000,9 @@ module Aws::DynamoDB
|
|
1930
2000
|
# @option options [Types::StreamSpecification] :stream_specification
|
1931
2001
|
# Represents the DynamoDB Streams configuration for the table.
|
1932
2002
|
#
|
1933
|
-
# <note markdown="1"> You receive a `
|
1934
|
-
#
|
1935
|
-
#
|
2003
|
+
# <note markdown="1"> You receive a `ValidationException` if you try to enable a stream on a
|
2004
|
+
# table that already has a stream, or if you try to disable a stream on
|
2005
|
+
# a table that doesn't have a stream.
|
1936
2006
|
#
|
1937
2007
|
# </note>
|
1938
2008
|
# @option options [Types::SSESpecification] :sse_specification
|
@@ -1941,24 +2011,54 @@ module Aws::DynamoDB
|
|
1941
2011
|
# A list of replica update actions (create, delete, or update) for the
|
1942
2012
|
# table.
|
1943
2013
|
#
|
1944
|
-
# <note markdown="1">
|
1945
|
-
#
|
2014
|
+
# <note markdown="1"> For global tables, this property only applies to global tables using
|
2015
|
+
# Version 2019.11.21 (Current version).
|
1946
2016
|
#
|
1947
2017
|
# </note>
|
1948
|
-
#
|
1949
|
-
#
|
1950
|
-
#
|
1951
|
-
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html
|
1952
2018
|
# @option options [String] :table_class
|
1953
2019
|
# The table class of the table to be updated. Valid values are
|
1954
2020
|
# `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
|
1955
2021
|
# @option options [Boolean] :deletion_protection_enabled
|
1956
2022
|
# Indicates whether deletion protection is to be enabled (true) or
|
1957
2023
|
# disabled (false) on the table.
|
2024
|
+
# @option options [String] :multi_region_consistency
|
2025
|
+
# Specifies the consistency mode for a new global table. This parameter
|
2026
|
+
# is only valid when you create a global table by specifying one or more
|
2027
|
+
# [Create][1] actions in the [ReplicaUpdates][2] action list.
|
2028
|
+
#
|
2029
|
+
# You can specify one of the following consistency modes:
|
2030
|
+
#
|
2031
|
+
# * `EVENTUAL`: Configures a new global table for multi-Region eventual
|
2032
|
+
# consistency. This is the default consistency mode for global tables.
|
2033
|
+
#
|
2034
|
+
# * `STRONG`: Configures a new global table for multi-Region strong
|
2035
|
+
# consistency (preview).
|
2036
|
+
#
|
2037
|
+
# <note markdown="1"> Multi-Region strong consistency (MRSC) is a new DynamoDB global
|
2038
|
+
# tables capability currently available in preview mode. For more
|
2039
|
+
# information, see [Global tables multi-Region strong consistency][3].
|
2040
|
+
#
|
2041
|
+
# </note>
|
2042
|
+
#
|
2043
|
+
# If you don't specify this parameter, the global table consistency
|
2044
|
+
# mode defaults to `EVENTUAL`.
|
2045
|
+
#
|
2046
|
+
#
|
2047
|
+
#
|
2048
|
+
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create
|
2049
|
+
# [2]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
|
2050
|
+
# [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
|
2051
|
+
# @option options [Types::OnDemandThroughput] :on_demand_throughput
|
2052
|
+
# Updates the maximum number of read and write units for the specified
|
2053
|
+
# table in on-demand capacity mode. If you use this parameter, you must
|
2054
|
+
# specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
2055
|
+
# @option options [Types::WarmThroughput] :warm_throughput
|
2056
|
+
# Represents the warm throughput (in read units per second and write
|
2057
|
+
# units per second) for updating a table.
|
1958
2058
|
# @return [Table]
|
1959
2059
|
def update(options = {})
|
1960
2060
|
options = options.merge(table_name: @name)
|
1961
|
-
resp = Aws::Plugins::UserAgent.
|
2061
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1962
2062
|
@client.update_table(options)
|
1963
2063
|
end
|
1964
2064
|
Table.new(
|
@@ -2104,7 +2204,6 @@ module Aws::DynamoDB
|
|
2104
2204
|
# * `list_append (operand, operand)` - evaluates to a list with a new
|
2105
2205
|
# element added to it. You can append the new element to the start
|
2106
2206
|
# or the end of the list by reversing the order of the operands.
|
2107
|
-
#
|
2108
2207
|
# These function names are case-sensitive.
|
2109
2208
|
#
|
2110
2209
|
# * `REMOVE` - Removes one or more attributes from an item.
|
@@ -2144,7 +2243,6 @@ module Aws::DynamoDB
|
|
2144
2243
|
# Both sets must have the same primitive data type. For example, if
|
2145
2244
|
# the existing data type is a set of strings, the `Value` must also
|
2146
2245
|
# be a set of strings.
|
2147
|
-
#
|
2148
2246
|
# The `ADD` action only supports Number and set data types. In
|
2149
2247
|
# addition, `ADD` can only be used on top-level attributes, not nested
|
2150
2248
|
# attributes.
|
@@ -2216,7 +2314,7 @@ module Aws::DynamoDB
|
|
2216
2314
|
# Developer Guide*.) To work around this, you could specify the
|
2217
2315
|
# following for `ExpressionAttributeNames`:
|
2218
2316
|
#
|
2219
|
-
# *
|
2317
|
+
# * `{"#P":"Percentile"}`
|
2220
2318
|
#
|
2221
2319
|
# ^
|
2222
2320
|
#
|
@@ -2251,8 +2349,8 @@ module Aws::DynamoDB
|
|
2251
2349
|
# You would first need to specify `ExpressionAttributeValues` as
|
2252
2350
|
# follows:
|
2253
2351
|
#
|
2254
|
-
#
|
2255
|
-
# ":disc"
|
2352
|
+
# `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"},
|
2353
|
+
# ":disc":{"S":"Discontinued"} }`
|
2256
2354
|
#
|
2257
2355
|
# You could then use these values in an expression, such as this:
|
2258
2356
|
#
|
@@ -2274,7 +2372,7 @@ module Aws::DynamoDB
|
|
2274
2372
|
# @return [Types::UpdateItemOutput]
|
2275
2373
|
def update_item(options = {})
|
2276
2374
|
options = options.merge(table_name: @name)
|
2277
|
-
resp = Aws::Plugins::UserAgent.
|
2375
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2278
2376
|
@client.update_item(options)
|
2279
2377
|
end
|
2280
2378
|
resp.data
|