aws-sdk-dynamodb 1.20.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +1 -563
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a80356e6d33de84b90ea46ad2977d15d2ebe18c
|
4
|
+
data.tar.gz: 5427579f97376ce7bc6629bd3af444043727dba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9895c44dd358b1201e370c170135f3612b9b93bc61701cb52ee0f77ddf7a70b9b9ea34efa297b021ae91e667c09c4cf47f165cc7447fc063e3412abb7e88006b
|
7
|
+
data.tar.gz: d2bc7af2e215cedd1feaef28aea7caad267cf4c41e5933fa925ce3c866c8500d243081e717be9b240ec11b363a1c402bbf35a93b03a83bb7c11a5dfd8aea78a8
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
@@ -414,69 +414,6 @@ 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" => {
|
429
|
-
# s: "No One You Know",
|
430
|
-
# },
|
431
|
-
# "SongTitle" => {
|
432
|
-
# s: "Call Me Today",
|
433
|
-
# },
|
434
|
-
# },
|
435
|
-
# {
|
436
|
-
# "Artist" => {
|
437
|
-
# s: "Acme Band",
|
438
|
-
# },
|
439
|
-
# "SongTitle" => {
|
440
|
-
# s: "Happy Day",
|
441
|
-
# },
|
442
|
-
# },
|
443
|
-
# {
|
444
|
-
# "Artist" => {
|
445
|
-
# s: "No One You Know",
|
446
|
-
# },
|
447
|
-
# "SongTitle" => {
|
448
|
-
# s: "Scared of My Shadow",
|
449
|
-
# },
|
450
|
-
# },
|
451
|
-
# ],
|
452
|
-
# projection_expression: "AlbumTitle",
|
453
|
-
# },
|
454
|
-
# },
|
455
|
-
# })
|
456
|
-
#
|
457
|
-
# resp.to_h outputs the following:
|
458
|
-
# {
|
459
|
-
# responses: {
|
460
|
-
# "Music" => [
|
461
|
-
# {
|
462
|
-
# "AlbumTitle" => {
|
463
|
-
# s: "Somewhat Famous",
|
464
|
-
# },
|
465
|
-
# },
|
466
|
-
# {
|
467
|
-
# "AlbumTitle" => {
|
468
|
-
# s: "Blue Sky Blues",
|
469
|
-
# },
|
470
|
-
# },
|
471
|
-
# {
|
472
|
-
# "AlbumTitle" => {
|
473
|
-
# s: "Louder Than Ever",
|
474
|
-
# },
|
475
|
-
# },
|
476
|
-
# ],
|
477
|
-
# },
|
478
|
-
# }
|
479
|
-
#
|
480
417
|
# @example Request syntax with placeholder values
|
481
418
|
#
|
482
419
|
# resp = client.batch_get_item({
|
@@ -687,67 +624,6 @@ module Aws::DynamoDB
|
|
687
624
|
# * {Types::BatchWriteItemOutput#item_collection_metrics #item_collection_metrics} => Hash<String,Array<Types::ItemCollectionMetrics>>
|
688
625
|
# * {Types::BatchWriteItemOutput#consumed_capacity #consumed_capacity} => Array<Types::ConsumedCapacity>
|
689
626
|
#
|
690
|
-
#
|
691
|
-
# @example Example: To add multiple items to a table
|
692
|
-
#
|
693
|
-
# # This example adds three new items to the Music table using a batch of three PutItem requests.
|
694
|
-
#
|
695
|
-
# resp = client.batch_write_item({
|
696
|
-
# request_items: {
|
697
|
-
# "Music" => [
|
698
|
-
# {
|
699
|
-
# put_request: {
|
700
|
-
# item: {
|
701
|
-
# "AlbumTitle" => {
|
702
|
-
# s: "Somewhat Famous",
|
703
|
-
# },
|
704
|
-
# "Artist" => {
|
705
|
-
# s: "No One You Know",
|
706
|
-
# },
|
707
|
-
# "SongTitle" => {
|
708
|
-
# s: "Call Me Today",
|
709
|
-
# },
|
710
|
-
# },
|
711
|
-
# },
|
712
|
-
# },
|
713
|
-
# {
|
714
|
-
# put_request: {
|
715
|
-
# item: {
|
716
|
-
# "AlbumTitle" => {
|
717
|
-
# s: "Songs About Life",
|
718
|
-
# },
|
719
|
-
# "Artist" => {
|
720
|
-
# s: "Acme Band",
|
721
|
-
# },
|
722
|
-
# "SongTitle" => {
|
723
|
-
# s: "Happy Day",
|
724
|
-
# },
|
725
|
-
# },
|
726
|
-
# },
|
727
|
-
# },
|
728
|
-
# {
|
729
|
-
# put_request: {
|
730
|
-
# item: {
|
731
|
-
# "AlbumTitle" => {
|
732
|
-
# s: "Blue Sky Blues",
|
733
|
-
# },
|
734
|
-
# "Artist" => {
|
735
|
-
# s: "No One You Know",
|
736
|
-
# },
|
737
|
-
# "SongTitle" => {
|
738
|
-
# s: "Scared of My Shadow",
|
739
|
-
# },
|
740
|
-
# },
|
741
|
-
# },
|
742
|
-
# },
|
743
|
-
# ],
|
744
|
-
# },
|
745
|
-
# })
|
746
|
-
#
|
747
|
-
# resp.to_h outputs the following:
|
748
|
-
# {
|
749
|
-
# }
|
750
|
-
#
|
751
627
|
# @example Request syntax with placeholder values
|
752
628
|
#
|
753
629
|
# resp = client.batch_write_item({
|
@@ -1162,74 +1038,6 @@ module Aws::DynamoDB
|
|
1162
1038
|
#
|
1163
1039
|
# * {Types::CreateTableOutput#table_description #table_description} => Types::TableDescription
|
1164
1040
|
#
|
1165
|
-
#
|
1166
|
-
# @example Example: To create a table
|
1167
|
-
#
|
1168
|
-
# # This example creates a table named Music.
|
1169
|
-
#
|
1170
|
-
# resp = client.create_table({
|
1171
|
-
# attribute_definitions: [
|
1172
|
-
# {
|
1173
|
-
# attribute_name: "Artist",
|
1174
|
-
# attribute_type: "S",
|
1175
|
-
# },
|
1176
|
-
# {
|
1177
|
-
# attribute_name: "SongTitle",
|
1178
|
-
# attribute_type: "S",
|
1179
|
-
# },
|
1180
|
-
# ],
|
1181
|
-
# key_schema: [
|
1182
|
-
# {
|
1183
|
-
# attribute_name: "Artist",
|
1184
|
-
# key_type: "HASH",
|
1185
|
-
# },
|
1186
|
-
# {
|
1187
|
-
# attribute_name: "SongTitle",
|
1188
|
-
# key_type: "RANGE",
|
1189
|
-
# },
|
1190
|
-
# ],
|
1191
|
-
# provisioned_throughput: {
|
1192
|
-
# read_capacity_units: 5,
|
1193
|
-
# write_capacity_units: 5,
|
1194
|
-
# },
|
1195
|
-
# table_name: "Music",
|
1196
|
-
# })
|
1197
|
-
#
|
1198
|
-
# resp.to_h outputs the following:
|
1199
|
-
# {
|
1200
|
-
# table_description: {
|
1201
|
-
# attribute_definitions: [
|
1202
|
-
# {
|
1203
|
-
# attribute_name: "Artist",
|
1204
|
-
# attribute_type: "S",
|
1205
|
-
# },
|
1206
|
-
# {
|
1207
|
-
# attribute_name: "SongTitle",
|
1208
|
-
# attribute_type: "S",
|
1209
|
-
# },
|
1210
|
-
# ],
|
1211
|
-
# creation_date_time: Time.parse("1421866952.062"),
|
1212
|
-
# item_count: 0,
|
1213
|
-
# key_schema: [
|
1214
|
-
# {
|
1215
|
-
# attribute_name: "Artist",
|
1216
|
-
# key_type: "HASH",
|
1217
|
-
# },
|
1218
|
-
# {
|
1219
|
-
# attribute_name: "SongTitle",
|
1220
|
-
# key_type: "RANGE",
|
1221
|
-
# },
|
1222
|
-
# ],
|
1223
|
-
# provisioned_throughput: {
|
1224
|
-
# read_capacity_units: 5,
|
1225
|
-
# write_capacity_units: 5,
|
1226
|
-
# },
|
1227
|
-
# table_name: "Music",
|
1228
|
-
# table_size_bytes: 0,
|
1229
|
-
# table_status: "CREATING",
|
1230
|
-
# },
|
1231
|
-
# }
|
1232
|
-
#
|
1233
1041
|
# @example Request syntax with placeholder values
|
1234
1042
|
#
|
1235
1043
|
# resp = client.create_table({
|
@@ -1632,31 +1440,6 @@ module Aws::DynamoDB
|
|
1632
1440
|
# * {Types::DeleteItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
1633
1441
|
# * {Types::DeleteItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
1634
1442
|
#
|
1635
|
-
#
|
1636
|
-
# @example Example: To delete an item
|
1637
|
-
#
|
1638
|
-
# # This example deletes an item from the Music table.
|
1639
|
-
#
|
1640
|
-
# resp = client.delete_item({
|
1641
|
-
# key: {
|
1642
|
-
# "Artist" => {
|
1643
|
-
# s: "No One You Know",
|
1644
|
-
# },
|
1645
|
-
# "SongTitle" => {
|
1646
|
-
# s: "Scared of My Shadow",
|
1647
|
-
# },
|
1648
|
-
# },
|
1649
|
-
# table_name: "Music",
|
1650
|
-
# })
|
1651
|
-
#
|
1652
|
-
# resp.to_h outputs the following:
|
1653
|
-
# {
|
1654
|
-
# consumed_capacity: {
|
1655
|
-
# capacity_units: 1,
|
1656
|
-
# table_name: "Music",
|
1657
|
-
# },
|
1658
|
-
# }
|
1659
|
-
#
|
1660
1443
|
# @example Request syntax with placeholder values
|
1661
1444
|
#
|
1662
1445
|
# resp = client.delete_item({
|
@@ -1748,30 +1531,6 @@ module Aws::DynamoDB
|
|
1748
1531
|
#
|
1749
1532
|
# * {Types::DeleteTableOutput#table_description #table_description} => Types::TableDescription
|
1750
1533
|
#
|
1751
|
-
#
|
1752
|
-
# @example Example: To delete a table
|
1753
|
-
#
|
1754
|
-
# # This example deletes the Music table.
|
1755
|
-
#
|
1756
|
-
# resp = client.delete_table({
|
1757
|
-
# table_name: "Music",
|
1758
|
-
# })
|
1759
|
-
#
|
1760
|
-
# resp.to_h outputs the following:
|
1761
|
-
# {
|
1762
|
-
# table_description: {
|
1763
|
-
# item_count: 0,
|
1764
|
-
# provisioned_throughput: {
|
1765
|
-
# number_of_decreases_today: 1,
|
1766
|
-
# read_capacity_units: 5,
|
1767
|
-
# write_capacity_units: 5,
|
1768
|
-
# },
|
1769
|
-
# table_name: "Music",
|
1770
|
-
# table_size_bytes: 0,
|
1771
|
-
# table_status: "DELETING",
|
1772
|
-
# },
|
1773
|
-
# }
|
1774
|
-
#
|
1775
1534
|
# @example Request syntax with placeholder values
|
1776
1535
|
#
|
1777
1536
|
# resp = client.delete_table({
|
@@ -2181,23 +1940,6 @@ module Aws::DynamoDB
|
|
2181
1940
|
# * {Types::DescribeLimitsOutput#table_max_read_capacity_units #table_max_read_capacity_units} => Integer
|
2182
1941
|
# * {Types::DescribeLimitsOutput#table_max_write_capacity_units #table_max_write_capacity_units} => Integer
|
2183
1942
|
#
|
2184
|
-
#
|
2185
|
-
# @example Example: To determine capacity limits per table and account, in the current AWS region
|
2186
|
-
#
|
2187
|
-
# # The following example returns the maximum read and write capacity units per table, and for the AWS account, in the
|
2188
|
-
# # current AWS region.
|
2189
|
-
#
|
2190
|
-
# resp = client.describe_limits({
|
2191
|
-
# })
|
2192
|
-
#
|
2193
|
-
# resp.to_h outputs the following:
|
2194
|
-
# {
|
2195
|
-
# account_max_read_capacity_units: 20000,
|
2196
|
-
# account_max_write_capacity_units: 20000,
|
2197
|
-
# table_max_read_capacity_units: 10000,
|
2198
|
-
# table_max_write_capacity_units: 10000,
|
2199
|
-
# }
|
2200
|
-
#
|
2201
1943
|
# @example Response structure
|
2202
1944
|
#
|
2203
1945
|
# resp.account_max_read_capacity_units #=> Integer
|
@@ -2234,51 +1976,6 @@ module Aws::DynamoDB
|
|
2234
1976
|
#
|
2235
1977
|
# * {Types::DescribeTableOutput#table #table} => Types::TableDescription
|
2236
1978
|
#
|
2237
|
-
#
|
2238
|
-
# @example Example: To describe a table
|
2239
|
-
#
|
2240
|
-
# # This example describes the Music table.
|
2241
|
-
#
|
2242
|
-
# resp = client.describe_table({
|
2243
|
-
# table_name: "Music",
|
2244
|
-
# })
|
2245
|
-
#
|
2246
|
-
# resp.to_h outputs the following:
|
2247
|
-
# {
|
2248
|
-
# table: {
|
2249
|
-
# attribute_definitions: [
|
2250
|
-
# {
|
2251
|
-
# attribute_name: "Artist",
|
2252
|
-
# attribute_type: "S",
|
2253
|
-
# },
|
2254
|
-
# {
|
2255
|
-
# attribute_name: "SongTitle",
|
2256
|
-
# attribute_type: "S",
|
2257
|
-
# },
|
2258
|
-
# ],
|
2259
|
-
# creation_date_time: Time.parse("1421866952.062"),
|
2260
|
-
# item_count: 0,
|
2261
|
-
# key_schema: [
|
2262
|
-
# {
|
2263
|
-
# attribute_name: "Artist",
|
2264
|
-
# key_type: "HASH",
|
2265
|
-
# },
|
2266
|
-
# {
|
2267
|
-
# attribute_name: "SongTitle",
|
2268
|
-
# key_type: "RANGE",
|
2269
|
-
# },
|
2270
|
-
# ],
|
2271
|
-
# provisioned_throughput: {
|
2272
|
-
# number_of_decreases_today: 1,
|
2273
|
-
# read_capacity_units: 5,
|
2274
|
-
# write_capacity_units: 5,
|
2275
|
-
# },
|
2276
|
-
# table_name: "Music",
|
2277
|
-
# table_size_bytes: 0,
|
2278
|
-
# table_status: "ACTIVE",
|
2279
|
-
# },
|
2280
|
-
# }
|
2281
|
-
#
|
2282
1979
|
# @example Request syntax with placeholder values
|
2283
1980
|
#
|
2284
1981
|
# resp = client.describe_table({
|
@@ -2514,39 +2211,6 @@ module Aws::DynamoDB
|
|
2514
2211
|
# * {Types::GetItemOutput#item #item} => Hash<String,Types::AttributeValue>
|
2515
2212
|
# * {Types::GetItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
2516
2213
|
#
|
2517
|
-
#
|
2518
|
-
# @example Example: To read an item from a table
|
2519
|
-
#
|
2520
|
-
# # This example retrieves an item from the Music table. The table has a partition key and a sort key (Artist and
|
2521
|
-
# # SongTitle), so you must specify both of these attributes.
|
2522
|
-
#
|
2523
|
-
# resp = client.get_item({
|
2524
|
-
# key: {
|
2525
|
-
# "Artist" => {
|
2526
|
-
# s: "Acme Band",
|
2527
|
-
# },
|
2528
|
-
# "SongTitle" => {
|
2529
|
-
# s: "Happy Day",
|
2530
|
-
# },
|
2531
|
-
# },
|
2532
|
-
# table_name: "Music",
|
2533
|
-
# })
|
2534
|
-
#
|
2535
|
-
# resp.to_h outputs the following:
|
2536
|
-
# {
|
2537
|
-
# item: {
|
2538
|
-
# "AlbumTitle" => {
|
2539
|
-
# s: "Songs About Life",
|
2540
|
-
# },
|
2541
|
-
# "Artist" => {
|
2542
|
-
# s: "Acme Band",
|
2543
|
-
# },
|
2544
|
-
# "SongTitle" => {
|
2545
|
-
# s: "Happy Day",
|
2546
|
-
# },
|
2547
|
-
# },
|
2548
|
-
# }
|
2549
|
-
#
|
2550
2214
|
# @example Request syntax with placeholder values
|
2551
2215
|
#
|
2552
2216
|
# resp = client.get_item({
|
@@ -2735,24 +2399,6 @@ module Aws::DynamoDB
|
|
2735
2399
|
# * {Types::ListTablesOutput#table_names #table_names} => Array<String>
|
2736
2400
|
# * {Types::ListTablesOutput#last_evaluated_table_name #last_evaluated_table_name} => String
|
2737
2401
|
#
|
2738
|
-
#
|
2739
|
-
# @example Example: To list tables
|
2740
|
-
#
|
2741
|
-
# # This example lists all of the tables associated with the current AWS account and endpoint.
|
2742
|
-
#
|
2743
|
-
# resp = client.list_tables({
|
2744
|
-
# })
|
2745
|
-
#
|
2746
|
-
# resp.to_h outputs the following:
|
2747
|
-
# {
|
2748
|
-
# table_names: [
|
2749
|
-
# "Forum",
|
2750
|
-
# "ProductCatalog",
|
2751
|
-
# "Reply",
|
2752
|
-
# "Thread",
|
2753
|
-
# ],
|
2754
|
-
# }
|
2755
|
-
#
|
2756
2402
|
# @example Request syntax with placeholder values
|
2757
2403
|
#
|
2758
2404
|
# resp = client.list_tables({
|
@@ -3075,35 +2721,6 @@ module Aws::DynamoDB
|
|
3075
2721
|
# * {Types::PutItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
3076
2722
|
# * {Types::PutItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
3077
2723
|
#
|
3078
|
-
#
|
3079
|
-
# @example Example: To add an item to a table
|
3080
|
-
#
|
3081
|
-
# # This example adds a new item to the Music table.
|
3082
|
-
#
|
3083
|
-
# resp = client.put_item({
|
3084
|
-
# item: {
|
3085
|
-
# "AlbumTitle" => {
|
3086
|
-
# s: "Somewhat Famous",
|
3087
|
-
# },
|
3088
|
-
# "Artist" => {
|
3089
|
-
# s: "No One You Know",
|
3090
|
-
# },
|
3091
|
-
# "SongTitle" => {
|
3092
|
-
# s: "Call Me Today",
|
3093
|
-
# },
|
3094
|
-
# },
|
3095
|
-
# return_consumed_capacity: "TOTAL",
|
3096
|
-
# table_name: "Music",
|
3097
|
-
# })
|
3098
|
-
#
|
3099
|
-
# resp.to_h outputs the following:
|
3100
|
-
# {
|
3101
|
-
# consumed_capacity: {
|
3102
|
-
# capacity_units: 1,
|
3103
|
-
# table_name: "Music",
|
3104
|
-
# },
|
3105
|
-
# }
|
3106
|
-
#
|
3107
2724
|
# @example Request syntax with placeholder values
|
3108
2725
|
#
|
3109
2726
|
# resp = client.put_item({
|
@@ -3597,38 +3214,6 @@ module Aws::DynamoDB
|
|
3597
3214
|
# * {Types::QueryOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
|
3598
3215
|
# * {Types::QueryOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
3599
3216
|
#
|
3600
|
-
#
|
3601
|
-
# @example Example: To query an item
|
3602
|
-
#
|
3603
|
-
# # This example queries items in the Music table. The table has a partition key and sort key (Artist and SongTitle), but
|
3604
|
-
# # this query only specifies the partition key value. It returns song titles by the artist named "No One You Know".
|
3605
|
-
#
|
3606
|
-
# resp = client.query({
|
3607
|
-
# expression_attribute_values: {
|
3608
|
-
# ":v1" => {
|
3609
|
-
# s: "No One You Know",
|
3610
|
-
# },
|
3611
|
-
# },
|
3612
|
-
# key_condition_expression: "Artist = :v1",
|
3613
|
-
# projection_expression: "SongTitle",
|
3614
|
-
# table_name: "Music",
|
3615
|
-
# })
|
3616
|
-
#
|
3617
|
-
# resp.to_h outputs the following:
|
3618
|
-
# {
|
3619
|
-
# consumed_capacity: {
|
3620
|
-
# },
|
3621
|
-
# count: 2,
|
3622
|
-
# items: [
|
3623
|
-
# {
|
3624
|
-
# "SongTitle" => {
|
3625
|
-
# s: "Call Me Today",
|
3626
|
-
# },
|
3627
|
-
# },
|
3628
|
-
# ],
|
3629
|
-
# scanned_count: 2,
|
3630
|
-
# }
|
3631
|
-
#
|
3632
3217
|
# @example Request syntax with placeholder values
|
3633
3218
|
#
|
3634
3219
|
# resp = client.query({
|
@@ -4287,53 +3872,6 @@ module Aws::DynamoDB
|
|
4287
3872
|
# * {Types::ScanOutput#last_evaluated_key #last_evaluated_key} => Hash<String,Types::AttributeValue>
|
4288
3873
|
# * {Types::ScanOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
4289
3874
|
#
|
4290
|
-
#
|
4291
|
-
# @example Example: To scan a table
|
4292
|
-
#
|
4293
|
-
# # This example scans the entire Music table, and then narrows the results to songs by the artist "No One You Know". For
|
4294
|
-
# # each item, only the album title and song title are returned.
|
4295
|
-
#
|
4296
|
-
# resp = client.scan({
|
4297
|
-
# expression_attribute_names: {
|
4298
|
-
# "AT" => "AlbumTitle",
|
4299
|
-
# "ST" => "SongTitle",
|
4300
|
-
# },
|
4301
|
-
# expression_attribute_values: {
|
4302
|
-
# ":a" => {
|
4303
|
-
# s: "No One You Know",
|
4304
|
-
# },
|
4305
|
-
# },
|
4306
|
-
# filter_expression: "Artist = :a",
|
4307
|
-
# projection_expression: "#ST, #AT",
|
4308
|
-
# table_name: "Music",
|
4309
|
-
# })
|
4310
|
-
#
|
4311
|
-
# resp.to_h outputs the following:
|
4312
|
-
# {
|
4313
|
-
# consumed_capacity: {
|
4314
|
-
# },
|
4315
|
-
# count: 2,
|
4316
|
-
# items: [
|
4317
|
-
# {
|
4318
|
-
# "AlbumTitle" => {
|
4319
|
-
# s: "Somewhat Famous",
|
4320
|
-
# },
|
4321
|
-
# "SongTitle" => {
|
4322
|
-
# s: "Call Me Today",
|
4323
|
-
# },
|
4324
|
-
# },
|
4325
|
-
# {
|
4326
|
-
# "AlbumTitle" => {
|
4327
|
-
# s: "Blue Sky Blues",
|
4328
|
-
# },
|
4329
|
-
# "SongTitle" => {
|
4330
|
-
# s: "Scared of My Shadow",
|
4331
|
-
# },
|
4332
|
-
# },
|
4333
|
-
# ],
|
4334
|
-
# scanned_count: 3,
|
4335
|
-
# }
|
4336
|
-
#
|
4337
3875
|
# @example Request syntax with placeholder values
|
4338
3876
|
#
|
4339
3877
|
# resp = client.scan({
|
@@ -5375,56 +4913,6 @@ module Aws::DynamoDB
|
|
5375
4913
|
# * {Types::UpdateItemOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
|
5376
4914
|
# * {Types::UpdateItemOutput#item_collection_metrics #item_collection_metrics} => Types::ItemCollectionMetrics
|
5377
4915
|
#
|
5378
|
-
#
|
5379
|
-
# @example Example: To update an item in a table
|
5380
|
-
#
|
5381
|
-
# # This example updates an item in the Music table. It adds a new attribute (Year) and modifies the AlbumTitle attribute.
|
5382
|
-
# # All of the attributes in the item, as they appear after the update, are returned in the response.
|
5383
|
-
#
|
5384
|
-
# resp = client.update_item({
|
5385
|
-
# expression_attribute_names: {
|
5386
|
-
# "#AT" => "AlbumTitle",
|
5387
|
-
# "#Y" => "Year",
|
5388
|
-
# },
|
5389
|
-
# expression_attribute_values: {
|
5390
|
-
# ":t" => {
|
5391
|
-
# s: "Louder Than Ever",
|
5392
|
-
# },
|
5393
|
-
# ":y" => {
|
5394
|
-
# n: "2015",
|
5395
|
-
# },
|
5396
|
-
# },
|
5397
|
-
# key: {
|
5398
|
-
# "Artist" => {
|
5399
|
-
# s: "Acme Band",
|
5400
|
-
# },
|
5401
|
-
# "SongTitle" => {
|
5402
|
-
# s: "Happy Day",
|
5403
|
-
# },
|
5404
|
-
# },
|
5405
|
-
# return_values: "ALL_NEW",
|
5406
|
-
# table_name: "Music",
|
5407
|
-
# update_expression: "SET #Y = :y, #AT = :t",
|
5408
|
-
# })
|
5409
|
-
#
|
5410
|
-
# resp.to_h outputs the following:
|
5411
|
-
# {
|
5412
|
-
# attributes: {
|
5413
|
-
# "AlbumTitle" => {
|
5414
|
-
# s: "Louder Than Ever",
|
5415
|
-
# },
|
5416
|
-
# "Artist" => {
|
5417
|
-
# s: "Acme Band",
|
5418
|
-
# },
|
5419
|
-
# "SongTitle" => {
|
5420
|
-
# s: "Happy Day",
|
5421
|
-
# },
|
5422
|
-
# "Year" => {
|
5423
|
-
# n: "2015",
|
5424
|
-
# },
|
5425
|
-
# },
|
5426
|
-
# }
|
5427
|
-
#
|
5428
4916
|
# @example Request syntax with placeholder values
|
5429
4917
|
#
|
5430
4918
|
# resp = client.update_item({
|
@@ -5575,56 +5063,6 @@ module Aws::DynamoDB
|
|
5575
5063
|
#
|
5576
5064
|
# * {Types::UpdateTableOutput#table_description #table_description} => Types::TableDescription
|
5577
5065
|
#
|
5578
|
-
#
|
5579
|
-
# @example Example: To modify a table's provisioned throughput
|
5580
|
-
#
|
5581
|
-
# # This example increases the provisioned read and write capacity on the Music table.
|
5582
|
-
#
|
5583
|
-
# resp = client.update_table({
|
5584
|
-
# provisioned_throughput: {
|
5585
|
-
# read_capacity_units: 10,
|
5586
|
-
# write_capacity_units: 10,
|
5587
|
-
# },
|
5588
|
-
# table_name: "MusicCollection",
|
5589
|
-
# })
|
5590
|
-
#
|
5591
|
-
# resp.to_h outputs the following:
|
5592
|
-
# {
|
5593
|
-
# table_description: {
|
5594
|
-
# attribute_definitions: [
|
5595
|
-
# {
|
5596
|
-
# attribute_name: "Artist",
|
5597
|
-
# attribute_type: "S",
|
5598
|
-
# },
|
5599
|
-
# {
|
5600
|
-
# attribute_name: "SongTitle",
|
5601
|
-
# attribute_type: "S",
|
5602
|
-
# },
|
5603
|
-
# ],
|
5604
|
-
# creation_date_time: Time.parse("1421866952.062"),
|
5605
|
-
# item_count: 0,
|
5606
|
-
# key_schema: [
|
5607
|
-
# {
|
5608
|
-
# attribute_name: "Artist",
|
5609
|
-
# key_type: "HASH",
|
5610
|
-
# },
|
5611
|
-
# {
|
5612
|
-
# attribute_name: "SongTitle",
|
5613
|
-
# key_type: "RANGE",
|
5614
|
-
# },
|
5615
|
-
# ],
|
5616
|
-
# provisioned_throughput: {
|
5617
|
-
# last_increase_date_time: Time.parse("1421874759.194"),
|
5618
|
-
# number_of_decreases_today: 1,
|
5619
|
-
# read_capacity_units: 1,
|
5620
|
-
# write_capacity_units: 1,
|
5621
|
-
# },
|
5622
|
-
# table_name: "MusicCollection",
|
5623
|
-
# table_size_bytes: 0,
|
5624
|
-
# table_status: "UPDATING",
|
5625
|
-
# },
|
5626
|
-
# }
|
5627
|
-
#
|
5628
5066
|
# @example Request syntax with placeholder values
|
5629
5067
|
#
|
5630
5068
|
# resp = client.update_table({
|
@@ -5839,7 +5277,7 @@ module Aws::DynamoDB
|
|
5839
5277
|
params: params,
|
5840
5278
|
config: config)
|
5841
5279
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
5842
|
-
context[:gem_version] = '1.
|
5280
|
+
context[:gem_version] = '1.21.0'
|
5843
5281
|
Seahorse::Client::Request.new(handlers, context)
|
5844
5282
|
end
|
5845
5283
|
|
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.21.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-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|