aws-sdk-dynamodb 1.21.0 → 1.22.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/lib/aws-sdk-dynamodb.rb +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +477 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b52f276a76146c8dfa7b4b07feefbebbbf3c640
|
4
|
+
data.tar.gz: '06437951610953978ec3c76316bc1f3f1bcbdf54'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490f156d1764829059e57a56ab5e5d31158a97039f46d043e4aeed3c7c6778e4805e1d3428d88eb884c931d1dbf5232628ebe869fae277bc73f9c4fd3d3a0f5a
|
7
|
+
data.tar.gz: 22aa88a00fb17dad21afdb13a50a278ad696033a456d5395d4fc7ea7aca70c370c2077273c4f8fcad3aaeb4de5751a1ad047d660cda823238bf088ddb1266750
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
@@ -414,6 +414,51 @@ module Aws::DynamoDB
|
|
414
414
|
# * {Types::BatchGetItemOutput#unprocessed_keys #unprocessed_keys} => Hash<String,Types::KeysAndAttributes>
|
415
415
|
# * {Types::BatchGetItemOutput#consumed_capacity #consumed_capacity} => Array<Types::ConsumedCapacity>
|
416
416
|
#
|
417
|
+
#
|
418
|
+
# @example Example: To retrieve multiple items from a table
|
419
|
+
#
|
420
|
+
# # This example reads multiple items from the Music table using a batch of three GetItem requests. Only the AlbumTitle
|
421
|
+
# # attribute is returned.
|
422
|
+
#
|
423
|
+
# resp = client.batch_get_item({
|
424
|
+
# request_items: {
|
425
|
+
# "Music" => {
|
426
|
+
# keys: [
|
427
|
+
# {
|
428
|
+
# "Artist" => "No One You Know",
|
429
|
+
# "SongTitle" => "Call Me Today",
|
430
|
+
# },
|
431
|
+
# {
|
432
|
+
# "Artist" => "Acme Band",
|
433
|
+
# "SongTitle" => "Happy Day",
|
434
|
+
# },
|
435
|
+
# {
|
436
|
+
# "Artist" => "No One You Know",
|
437
|
+
# "SongTitle" => "Scared of My Shadow",
|
438
|
+
# },
|
439
|
+
# ],
|
440
|
+
# projection_expression: "AlbumTitle",
|
441
|
+
# },
|
442
|
+
# },
|
443
|
+
# })
|
444
|
+
#
|
445
|
+
# resp.to_h outputs the following:
|
446
|
+
# {
|
447
|
+
# responses: {
|
448
|
+
# "Music" => [
|
449
|
+
# {
|
450
|
+
# "AlbumTitle" => "Somewhat Famous",
|
451
|
+
# },
|
452
|
+
# {
|
453
|
+
# "AlbumTitle" => "Blue Sky Blues",
|
454
|
+
# },
|
455
|
+
# {
|
456
|
+
# "AlbumTitle" => "Louder Than Ever",
|
457
|
+
# },
|
458
|
+
# ],
|
459
|
+
# },
|
460
|
+
# }
|
461
|
+
#
|
417
462
|
# @example Request syntax with placeholder values
|
418
463
|
#
|
419
464
|
# resp = client.batch_get_item({
|
@@ -624,6 +669,49 @@ module Aws::DynamoDB
|
|
624
669
|
# * {Types::BatchWriteItemOutput#item_collection_metrics #item_collection_metrics} => Hash<String,Array<Types::ItemCollectionMetrics>>
|
625
670
|
# * {Types::BatchWriteItemOutput#consumed_capacity #consumed_capacity} => Array<Types::ConsumedCapacity>
|
626
671
|
#
|
672
|
+
#
|
673
|
+
# @example Example: To add multiple items to a table
|
674
|
+
#
|
675
|
+
# # This example adds three new items to the Music table using a batch of three PutItem requests.
|
676
|
+
#
|
677
|
+
# resp = client.batch_write_item({
|
678
|
+
# request_items: {
|
679
|
+
# "Music" => [
|
680
|
+
# {
|
681
|
+
# put_request: {
|
682
|
+
# item: {
|
683
|
+
# "AlbumTitle" => "Somewhat Famous",
|
684
|
+
# "Artist" => "No One You Know",
|
685
|
+
# "SongTitle" => "Call Me Today",
|
686
|
+
# },
|
687
|
+
# },
|
688
|
+
# },
|
689
|
+
# {
|
690
|
+
# put_request: {
|
691
|
+
# item: {
|
692
|
+
# "AlbumTitle" => "Songs About Life",
|
693
|
+
# "Artist" => "Acme Band",
|
694
|
+
# "SongTitle" => "Happy Day",
|
695
|
+
# },
|
696
|
+
# },
|
697
|
+
# },
|
698
|
+
# {
|
699
|
+
# put_request: {
|
700
|
+
# item: {
|
701
|
+
# "AlbumTitle" => "Blue Sky Blues",
|
702
|
+
# "Artist" => "No One You Know",
|
703
|
+
# "SongTitle" => "Scared of My Shadow",
|
704
|
+
# },
|
705
|
+
# },
|
706
|
+
# },
|
707
|
+
# ],
|
708
|
+
# },
|
709
|
+
# })
|
710
|
+
#
|
711
|
+
# resp.to_h outputs the following:
|
712
|
+
# {
|
713
|
+
# }
|
714
|
+
#
|
627
715
|
# @example Request syntax with placeholder values
|
628
716
|
#
|
629
717
|
# resp = client.batch_write_item({
|
@@ -1038,6 +1126,74 @@ module Aws::DynamoDB
|
|
1038
1126
|
#
|
1039
1127
|
# * {Types::CreateTableOutput#table_description #table_description} => Types::TableDescription
|
1040
1128
|
#
|
1129
|
+
#
|
1130
|
+
# @example Example: To create a table
|
1131
|
+
#
|
1132
|
+
# # This example creates a table named Music.
|
1133
|
+
#
|
1134
|
+
# resp = client.create_table({
|
1135
|
+
# attribute_definitions: [
|
1136
|
+
# {
|
1137
|
+
# attribute_name: "Artist",
|
1138
|
+
# attribute_type: "S",
|
1139
|
+
# },
|
1140
|
+
# {
|
1141
|
+
# attribute_name: "SongTitle",
|
1142
|
+
# attribute_type: "S",
|
1143
|
+
# },
|
1144
|
+
# ],
|
1145
|
+
# key_schema: [
|
1146
|
+
# {
|
1147
|
+
# attribute_name: "Artist",
|
1148
|
+
# key_type: "HASH",
|
1149
|
+
# },
|
1150
|
+
# {
|
1151
|
+
# attribute_name: "SongTitle",
|
1152
|
+
# key_type: "RANGE",
|
1153
|
+
# },
|
1154
|
+
# ],
|
1155
|
+
# provisioned_throughput: {
|
1156
|
+
# read_capacity_units: 5,
|
1157
|
+
# write_capacity_units: 5,
|
1158
|
+
# },
|
1159
|
+
# table_name: "Music",
|
1160
|
+
# })
|
1161
|
+
#
|
1162
|
+
# resp.to_h outputs the following:
|
1163
|
+
# {
|
1164
|
+
# table_description: {
|
1165
|
+
# attribute_definitions: [
|
1166
|
+
# {
|
1167
|
+
# attribute_name: "Artist",
|
1168
|
+
# attribute_type: "S",
|
1169
|
+
# },
|
1170
|
+
# {
|
1171
|
+
# attribute_name: "SongTitle",
|
1172
|
+
# attribute_type: "S",
|
1173
|
+
# },
|
1174
|
+
# ],
|
1175
|
+
# creation_date_time: Time.parse("1421866952.062"),
|
1176
|
+
# item_count: 0,
|
1177
|
+
# key_schema: [
|
1178
|
+
# {
|
1179
|
+
# attribute_name: "Artist",
|
1180
|
+
# key_type: "HASH",
|
1181
|
+
# },
|
1182
|
+
# {
|
1183
|
+
# attribute_name: "SongTitle",
|
1184
|
+
# key_type: "RANGE",
|
1185
|
+
# },
|
1186
|
+
# ],
|
1187
|
+
# provisioned_throughput: {
|
1188
|
+
# read_capacity_units: 5,
|
1189
|
+
# write_capacity_units: 5,
|
1190
|
+
# },
|
1191
|
+
# table_name: "Music",
|
1192
|
+
# table_size_bytes: 0,
|
1193
|
+
# table_status: "CREATING",
|
1194
|
+
# },
|
1195
|
+
# }
|
1196
|
+
#
|
1041
1197
|
# @example Request syntax with placeholder values
|
1042
1198
|
#
|
1043
1199
|
# resp = client.create_table({
|
@@ -1440,6 +1596,27 @@ module Aws::DynamoDB
|
|
1440
1596
|
# * {Types::DeleteItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
1441
1597
|
# * {Types::DeleteItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
1442
1598
|
#
|
1599
|
+
#
|
1600
|
+
# @example Example: To delete an item
|
1601
|
+
#
|
1602
|
+
# # This example deletes an item from the Music table.
|
1603
|
+
#
|
1604
|
+
# resp = client.delete_item({
|
1605
|
+
# key: {
|
1606
|
+
# "Artist" => "No One You Know",
|
1607
|
+
# "SongTitle" => "Scared of My Shadow",
|
1608
|
+
# },
|
1609
|
+
# table_name: "Music",
|
1610
|
+
# })
|
1611
|
+
#
|
1612
|
+
# resp.to_h outputs the following:
|
1613
|
+
# {
|
1614
|
+
# consumed_capacity: {
|
1615
|
+
# capacity_units: 1,
|
1616
|
+
# table_name: "Music",
|
1617
|
+
# },
|
1618
|
+
# }
|
1619
|
+
#
|
1443
1620
|
# @example Request syntax with placeholder values
|
1444
1621
|
#
|
1445
1622
|
# resp = client.delete_item({
|
@@ -1531,6 +1708,30 @@ module Aws::DynamoDB
|
|
1531
1708
|
#
|
1532
1709
|
# * {Types::DeleteTableOutput#table_description #table_description} => Types::TableDescription
|
1533
1710
|
#
|
1711
|
+
#
|
1712
|
+
# @example Example: To delete a table
|
1713
|
+
#
|
1714
|
+
# # This example deletes the Music table.
|
1715
|
+
#
|
1716
|
+
# resp = client.delete_table({
|
1717
|
+
# table_name: "Music",
|
1718
|
+
# })
|
1719
|
+
#
|
1720
|
+
# resp.to_h outputs the following:
|
1721
|
+
# {
|
1722
|
+
# table_description: {
|
1723
|
+
# item_count: 0,
|
1724
|
+
# provisioned_throughput: {
|
1725
|
+
# number_of_decreases_today: 1,
|
1726
|
+
# read_capacity_units: 5,
|
1727
|
+
# write_capacity_units: 5,
|
1728
|
+
# },
|
1729
|
+
# table_name: "Music",
|
1730
|
+
# table_size_bytes: 0,
|
1731
|
+
# table_status: "DELETING",
|
1732
|
+
# },
|
1733
|
+
# }
|
1734
|
+
#
|
1534
1735
|
# @example Request syntax with placeholder values
|
1535
1736
|
#
|
1536
1737
|
# resp = client.delete_table({
|
@@ -1940,6 +2141,23 @@ module Aws::DynamoDB
|
|
1940
2141
|
# * {Types::DescribeLimitsOutput#table_max_read_capacity_units #table_max_read_capacity_units} => Integer
|
1941
2142
|
# * {Types::DescribeLimitsOutput#table_max_write_capacity_units #table_max_write_capacity_units} => Integer
|
1942
2143
|
#
|
2144
|
+
#
|
2145
|
+
# @example Example: To determine capacity limits per table and account, in the current AWS region
|
2146
|
+
#
|
2147
|
+
# # The following example returns the maximum read and write capacity units per table, and for the AWS account, in the
|
2148
|
+
# # current AWS region.
|
2149
|
+
#
|
2150
|
+
# resp = client.describe_limits({
|
2151
|
+
# })
|
2152
|
+
#
|
2153
|
+
# resp.to_h outputs the following:
|
2154
|
+
# {
|
2155
|
+
# account_max_read_capacity_units: 20000,
|
2156
|
+
# account_max_write_capacity_units: 20000,
|
2157
|
+
# table_max_read_capacity_units: 10000,
|
2158
|
+
# table_max_write_capacity_units: 10000,
|
2159
|
+
# }
|
2160
|
+
#
|
1943
2161
|
# @example Response structure
|
1944
2162
|
#
|
1945
2163
|
# resp.account_max_read_capacity_units #=> Integer
|
@@ -1976,6 +2194,51 @@ module Aws::DynamoDB
|
|
1976
2194
|
#
|
1977
2195
|
# * {Types::DescribeTableOutput#table #table} => Types::TableDescription
|
1978
2196
|
#
|
2197
|
+
#
|
2198
|
+
# @example Example: To describe a table
|
2199
|
+
#
|
2200
|
+
# # This example describes the Music table.
|
2201
|
+
#
|
2202
|
+
# resp = client.describe_table({
|
2203
|
+
# table_name: "Music",
|
2204
|
+
# })
|
2205
|
+
#
|
2206
|
+
# resp.to_h outputs the following:
|
2207
|
+
# {
|
2208
|
+
# table: {
|
2209
|
+
# attribute_definitions: [
|
2210
|
+
# {
|
2211
|
+
# attribute_name: "Artist",
|
2212
|
+
# attribute_type: "S",
|
2213
|
+
# },
|
2214
|
+
# {
|
2215
|
+
# attribute_name: "SongTitle",
|
2216
|
+
# attribute_type: "S",
|
2217
|
+
# },
|
2218
|
+
# ],
|
2219
|
+
# creation_date_time: Time.parse("1421866952.062"),
|
2220
|
+
# item_count: 0,
|
2221
|
+
# key_schema: [
|
2222
|
+
# {
|
2223
|
+
# attribute_name: "Artist",
|
2224
|
+
# key_type: "HASH",
|
2225
|
+
# },
|
2226
|
+
# {
|
2227
|
+
# attribute_name: "SongTitle",
|
2228
|
+
# key_type: "RANGE",
|
2229
|
+
# },
|
2230
|
+
# ],
|
2231
|
+
# provisioned_throughput: {
|
2232
|
+
# number_of_decreases_today: 1,
|
2233
|
+
# read_capacity_units: 5,
|
2234
|
+
# write_capacity_units: 5,
|
2235
|
+
# },
|
2236
|
+
# table_name: "Music",
|
2237
|
+
# table_size_bytes: 0,
|
2238
|
+
# table_status: "ACTIVE",
|
2239
|
+
# },
|
2240
|
+
# }
|
2241
|
+
#
|
1979
2242
|
# @example Request syntax with placeholder values
|
1980
2243
|
#
|
1981
2244
|
# resp = client.describe_table({
|
@@ -2211,6 +2474,29 @@ module Aws::DynamoDB
|
|
2211
2474
|
# * {Types::GetItemOutput#item #item} => Hash<String,Types::AttributeValue>
|
2212
2475
|
# * {Types::GetItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
2213
2476
|
#
|
2477
|
+
#
|
2478
|
+
# @example Example: To read an item from a table
|
2479
|
+
#
|
2480
|
+
# # This example retrieves an item from the Music table. The table has a partition key and a sort key (Artist and
|
2481
|
+
# # SongTitle), so you must specify both of these attributes.
|
2482
|
+
#
|
2483
|
+
# resp = client.get_item({
|
2484
|
+
# key: {
|
2485
|
+
# "Artist" => "Acme Band",
|
2486
|
+
# "SongTitle" => "Happy Day",
|
2487
|
+
# },
|
2488
|
+
# table_name: "Music",
|
2489
|
+
# })
|
2490
|
+
#
|
2491
|
+
# resp.to_h outputs the following:
|
2492
|
+
# {
|
2493
|
+
# item: {
|
2494
|
+
# "AlbumTitle" => "Songs About Life",
|
2495
|
+
# "Artist" => "Acme Band",
|
2496
|
+
# "SongTitle" => "Happy Day",
|
2497
|
+
# },
|
2498
|
+
# }
|
2499
|
+
#
|
2214
2500
|
# @example Request syntax with placeholder values
|
2215
2501
|
#
|
2216
2502
|
# resp = client.get_item({
|
@@ -2399,6 +2685,24 @@ module Aws::DynamoDB
|
|
2399
2685
|
# * {Types::ListTablesOutput#table_names #table_names} => Array<String>
|
2400
2686
|
# * {Types::ListTablesOutput#last_evaluated_table_name #last_evaluated_table_name} => String
|
2401
2687
|
#
|
2688
|
+
#
|
2689
|
+
# @example Example: To list tables
|
2690
|
+
#
|
2691
|
+
# # This example lists all of the tables associated with the current AWS account and endpoint.
|
2692
|
+
#
|
2693
|
+
# resp = client.list_tables({
|
2694
|
+
# })
|
2695
|
+
#
|
2696
|
+
# resp.to_h outputs the following:
|
2697
|
+
# {
|
2698
|
+
# table_names: [
|
2699
|
+
# "Forum",
|
2700
|
+
# "ProductCatalog",
|
2701
|
+
# "Reply",
|
2702
|
+
# "Thread",
|
2703
|
+
# ],
|
2704
|
+
# }
|
2705
|
+
#
|
2402
2706
|
# @example Request syntax with placeholder values
|
2403
2707
|
#
|
2404
2708
|
# resp = client.list_tables({
|
@@ -2721,6 +3025,29 @@ module Aws::DynamoDB
|
|
2721
3025
|
# * {Types::PutItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
2722
3026
|
# * {Types::PutItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
2723
3027
|
#
|
3028
|
+
#
|
3029
|
+
# @example Example: To add an item to a table
|
3030
|
+
#
|
3031
|
+
# # This example adds a new item to the Music table.
|
3032
|
+
#
|
3033
|
+
# resp = client.put_item({
|
3034
|
+
# item: {
|
3035
|
+
# "AlbumTitle" => "Somewhat Famous",
|
3036
|
+
# "Artist" => "No One You Know",
|
3037
|
+
# "SongTitle" => "Call Me Today",
|
3038
|
+
# },
|
3039
|
+
# return_consumed_capacity: "TOTAL",
|
3040
|
+
# table_name: "Music",
|
3041
|
+
# })
|
3042
|
+
#
|
3043
|
+
# resp.to_h outputs the following:
|
3044
|
+
# {
|
3045
|
+
# consumed_capacity: {
|
3046
|
+
# capacity_units: 1,
|
3047
|
+
# table_name: "Music",
|
3048
|
+
# },
|
3049
|
+
# }
|
3050
|
+
#
|
2724
3051
|
# @example Request syntax with placeholder values
|
2725
3052
|
#
|
2726
3053
|
# resp = client.put_item({
|
@@ -3214,6 +3541,34 @@ module Aws::DynamoDB
|
|
3214
3541
|
# * {Types::QueryOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
|
3215
3542
|
# * {Types::QueryOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
3216
3543
|
#
|
3544
|
+
#
|
3545
|
+
# @example Example: To query an item
|
3546
|
+
#
|
3547
|
+
# # This example queries items in the Music table. The table has a partition key and sort key (Artist and SongTitle), but
|
3548
|
+
# # this query only specifies the partition key value. It returns song titles by the artist named "No One You Know".
|
3549
|
+
#
|
3550
|
+
# resp = client.query({
|
3551
|
+
# expression_attribute_values: {
|
3552
|
+
# ":v1" => "No One You Know",
|
3553
|
+
# },
|
3554
|
+
# key_condition_expression: "Artist = :v1",
|
3555
|
+
# projection_expression: "SongTitle",
|
3556
|
+
# table_name: "Music",
|
3557
|
+
# })
|
3558
|
+
#
|
3559
|
+
# resp.to_h outputs the following:
|
3560
|
+
# {
|
3561
|
+
# consumed_capacity: {
|
3562
|
+
# },
|
3563
|
+
# count: 2,
|
3564
|
+
# items: [
|
3565
|
+
# {
|
3566
|
+
# "SongTitle" => "Call Me Today",
|
3567
|
+
# },
|
3568
|
+
# ],
|
3569
|
+
# scanned_count: 2,
|
3570
|
+
# }
|
3571
|
+
#
|
3217
3572
|
# @example Request syntax with placeholder values
|
3218
3573
|
#
|
3219
3574
|
# resp = client.query({
|
@@ -3872,6 +4227,43 @@ module Aws::DynamoDB
|
|
3872
4227
|
# * {Types::ScanOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
|
3873
4228
|
# * {Types::ScanOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
3874
4229
|
#
|
4230
|
+
#
|
4231
|
+
# @example Example: To scan a table
|
4232
|
+
#
|
4233
|
+
# # This example scans the entire Music table, and then narrows the results to songs by the artist "No One You Know". For
|
4234
|
+
# # each item, only the album title and song title are returned.
|
4235
|
+
#
|
4236
|
+
# resp = client.scan({
|
4237
|
+
# expression_attribute_names: {
|
4238
|
+
# "AT" => "AlbumTitle",
|
4239
|
+
# "ST" => "SongTitle",
|
4240
|
+
# },
|
4241
|
+
# expression_attribute_values: {
|
4242
|
+
# ":a" => "No One You Know",
|
4243
|
+
# },
|
4244
|
+
# filter_expression: "Artist = :a",
|
4245
|
+
# projection_expression: "#ST, #AT",
|
4246
|
+
# table_name: "Music",
|
4247
|
+
# })
|
4248
|
+
#
|
4249
|
+
# resp.to_h outputs the following:
|
4250
|
+
# {
|
4251
|
+
# consumed_capacity: {
|
4252
|
+
# },
|
4253
|
+
# count: 2,
|
4254
|
+
# items: [
|
4255
|
+
# {
|
4256
|
+
# "AlbumTitle" => "Somewhat Famous",
|
4257
|
+
# "SongTitle" => "Call Me Today",
|
4258
|
+
# },
|
4259
|
+
# {
|
4260
|
+
# "AlbumTitle" => "Blue Sky Blues",
|
4261
|
+
# "SongTitle" => "Scared of My Shadow",
|
4262
|
+
# },
|
4263
|
+
# ],
|
4264
|
+
# scanned_count: 3,
|
4265
|
+
# }
|
4266
|
+
#
|
3875
4267
|
# @example Request syntax with placeholder values
|
3876
4268
|
#
|
3877
4269
|
# resp = client.scan({
|
@@ -4913,6 +5305,40 @@ module Aws::DynamoDB
|
|
4913
5305
|
# * {Types::UpdateItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
4914
5306
|
# * {Types::UpdateItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
4915
5307
|
#
|
5308
|
+
#
|
5309
|
+
# @example Example: To update an item in a table
|
5310
|
+
#
|
5311
|
+
# # This example updates an item in the Music table. It adds a new attribute (Year) and modifies the AlbumTitle attribute.
|
5312
|
+
# # All of the attributes in the item, as they appear after the update, are returned in the response.
|
5313
|
+
#
|
5314
|
+
# resp = client.update_item({
|
5315
|
+
# expression_attribute_names: {
|
5316
|
+
# "#AT" => "AlbumTitle",
|
5317
|
+
# "#Y" => "Year",
|
5318
|
+
# },
|
5319
|
+
# expression_attribute_values: {
|
5320
|
+
# ":t" => "Louder Than Ever",
|
5321
|
+
# ":y" => "2015",
|
5322
|
+
# },
|
5323
|
+
# key: {
|
5324
|
+
# "Artist" => "Acme Band",
|
5325
|
+
# "SongTitle" => "Happy Day",
|
5326
|
+
# },
|
5327
|
+
# return_values: "ALL_NEW",
|
5328
|
+
# table_name: "Music",
|
5329
|
+
# update_expression: "SET #Y = :y, #AT = :t",
|
5330
|
+
# })
|
5331
|
+
#
|
5332
|
+
# resp.to_h outputs the following:
|
5333
|
+
# {
|
5334
|
+
# attributes: {
|
5335
|
+
# "AlbumTitle" => "Louder Than Ever",
|
5336
|
+
# "Artist" => "Acme Band",
|
5337
|
+
# "SongTitle" => "Happy Day",
|
5338
|
+
# "Year" => "2015",
|
5339
|
+
# },
|
5340
|
+
# }
|
5341
|
+
#
|
4916
5342
|
# @example Request syntax with placeholder values
|
4917
5343
|
#
|
4918
5344
|
# resp = client.update_item({
|
@@ -5063,6 +5489,56 @@ module Aws::DynamoDB
|
|
5063
5489
|
#
|
5064
5490
|
# * {Types::UpdateTableOutput#table_description #table_description} => Types::TableDescription
|
5065
5491
|
#
|
5492
|
+
#
|
5493
|
+
# @example Example: To modify a table's provisioned throughput
|
5494
|
+
#
|
5495
|
+
# # This example increases the provisioned read and write capacity on the Music table.
|
5496
|
+
#
|
5497
|
+
# resp = client.update_table({
|
5498
|
+
# provisioned_throughput: {
|
5499
|
+
# read_capacity_units: 10,
|
5500
|
+
# write_capacity_units: 10,
|
5501
|
+
# },
|
5502
|
+
# table_name: "MusicCollection",
|
5503
|
+
# })
|
5504
|
+
#
|
5505
|
+
# resp.to_h outputs the following:
|
5506
|
+
# {
|
5507
|
+
# table_description: {
|
5508
|
+
# attribute_definitions: [
|
5509
|
+
# {
|
5510
|
+
# attribute_name: "Artist",
|
5511
|
+
# attribute_type: "S",
|
5512
|
+
# },
|
5513
|
+
# {
|
5514
|
+
# attribute_name: "SongTitle",
|
5515
|
+
# attribute_type: "S",
|
5516
|
+
# },
|
5517
|
+
# ],
|
5518
|
+
# creation_date_time: Time.parse("1421866952.062"),
|
5519
|
+
# item_count: 0,
|
5520
|
+
# key_schema: [
|
5521
|
+
# {
|
5522
|
+
# attribute_name: "Artist",
|
5523
|
+
# key_type: "HASH",
|
5524
|
+
# },
|
5525
|
+
# {
|
5526
|
+
# attribute_name: "SongTitle",
|
5527
|
+
# key_type: "RANGE",
|
5528
|
+
# },
|
5529
|
+
# ],
|
5530
|
+
# provisioned_throughput: {
|
5531
|
+
# last_increase_date_time: Time.parse("1421874759.194"),
|
5532
|
+
# number_of_decreases_today: 1,
|
5533
|
+
# read_capacity_units: 1,
|
5534
|
+
# write_capacity_units: 1,
|
5535
|
+
# },
|
5536
|
+
# table_name: "MusicCollection",
|
5537
|
+
# table_size_bytes: 0,
|
5538
|
+
# table_status: "UPDATING",
|
5539
|
+
# },
|
5540
|
+
# }
|
5541
|
+
#
|
5066
5542
|
# @example Request syntax with placeholder values
|
5067
5543
|
#
|
5068
5544
|
# resp = client.update_table({
|
@@ -5277,7 +5753,7 @@ module Aws::DynamoDB
|
|
5277
5753
|
params: params,
|
5278
5754
|
config: config)
|
5279
5755
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
5280
|
-
context[:gem_version] = '1.
|
5756
|
+
context[:gem_version] = '1.22.0'
|
5281
5757
|
Seahorse::Client::Request.new(handlers, context)
|
5282
5758
|
end
|
5283
5759
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.47.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.47.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.1'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.1'
|
47
47
|
description: Official AWS Ruby gem for Amazon DynamoDB (DynamoDB). This gem is part
|
48
48
|
of the AWS SDK for Ruby.
|
49
49
|
email:
|