aws-sdk-dynamodb 1.65.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -125,7 +125,9 @@ module Aws::DynamoDB
125
125
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
126
126
  # are very aggressive. Construct and pass an instance of
127
127
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
128
- # enable retries and extended timeouts.
128
+ # enable retries and extended timeouts. Instance profile credential
129
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
130
+ # to true.
129
131
  #
130
132
  # @option options [required, String] :region
131
133
  # The AWS region to connect to. The configured `:region` is
@@ -365,15 +367,38 @@ module Aws::DynamoDB
365
367
 
366
368
  # @!group API Operations
367
369
 
368
- # This operation allows you to perform batch reads and writes on data
370
+ # This operation allows you to perform batch reads or writes on data
369
371
  # stored in DynamoDB, using PartiQL.
370
372
  #
373
+ # <note markdown="1"> The entire batch must consist of either read statements or write
374
+ # statements, you cannot mix both in one batch.
375
+ #
376
+ # </note>
377
+ #
371
378
  # @option params [required, Array<Types::BatchStatementRequest>] :statements
372
379
  # The list of PartiQL statements representing the batch to run.
373
380
  #
381
+ # @option params [String] :return_consumed_capacity
382
+ # Determines the level of detail about either provisioned or on-demand
383
+ # throughput consumption that is returned in the response:
384
+ #
385
+ # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
386
+ # for the operation, together with `ConsumedCapacity` for each table
387
+ # and secondary index that was accessed.
388
+ #
389
+ # Note that some operations, such as `GetItem` and `BatchGetItem`, do
390
+ # not access any indexes at all. In these cases, specifying `INDEXES`
391
+ # will only return `ConsumedCapacity` information for table(s).
392
+ #
393
+ # * `TOTAL` - The response includes only the aggregate
394
+ # `ConsumedCapacity` for the operation.
395
+ #
396
+ # * `NONE` - No `ConsumedCapacity` details are included in the response.
397
+ #
374
398
  # @return [Types::BatchExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
375
399
  #
376
400
  # * {Types::BatchExecuteStatementOutput#responses #responses} => Array&lt;Types::BatchStatementResponse&gt;
401
+ # * {Types::BatchExecuteStatementOutput#consumed_capacity #consumed_capacity} => Array&lt;Types::ConsumedCapacity&gt;
377
402
  #
378
403
  # @example Request syntax with placeholder values
379
404
  #
@@ -385,6 +410,7 @@ module Aws::DynamoDB
385
410
  # consistent_read: false,
386
411
  # },
387
412
  # ],
413
+ # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
388
414
  # })
389
415
  #
390
416
  # @example Response structure
@@ -395,6 +421,22 @@ module Aws::DynamoDB
395
421
  # resp.responses[0].table_name #=> String
396
422
  # resp.responses[0].item #=> Hash
397
423
  # resp.responses[0].item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
424
+ # resp.consumed_capacity #=> Array
425
+ # resp.consumed_capacity[0].table_name #=> String
426
+ # resp.consumed_capacity[0].capacity_units #=> Float
427
+ # resp.consumed_capacity[0].read_capacity_units #=> Float
428
+ # resp.consumed_capacity[0].write_capacity_units #=> Float
429
+ # resp.consumed_capacity[0].table.read_capacity_units #=> Float
430
+ # resp.consumed_capacity[0].table.write_capacity_units #=> Float
431
+ # resp.consumed_capacity[0].table.capacity_units #=> Float
432
+ # resp.consumed_capacity[0].local_secondary_indexes #=> Hash
433
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].read_capacity_units #=> Float
434
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].write_capacity_units #=> Float
435
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].capacity_units #=> Float
436
+ # resp.consumed_capacity[0].global_secondary_indexes #=> Hash
437
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].read_capacity_units #=> Float
438
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].write_capacity_units #=> Float
439
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].capacity_units #=> Float
398
440
  #
399
441
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchExecuteStatement AWS API Documentation
400
442
  #
@@ -556,8 +598,8 @@ module Aws::DynamoDB
556
598
  # [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html
557
599
  #
558
600
  # @option params [String] :return_consumed_capacity
559
- # Determines the level of detail about provisioned throughput
560
- # consumption that is returned in the response:
601
+ # Determines the level of detail about either provisioned or on-demand
602
+ # throughput consumption that is returned in the response:
561
603
  #
562
604
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
563
605
  # for the operation, together with `ConsumedCapacity` for each table
@@ -805,8 +847,8 @@ module Aws::DynamoDB
805
847
  # in the table's attribute definition.
806
848
  #
807
849
  # @option params [String] :return_consumed_capacity
808
- # Determines the level of detail about provisioned throughput
809
- # consumption that is returned in the response:
850
+ # Determines the level of detail about either provisioned or on-demand
851
+ # throughput consumption that is returned in the response:
810
852
  #
811
853
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
812
854
  # for the operation, together with `ConsumedCapacity` for each table
@@ -1094,6 +1136,8 @@ module Aws::DynamoDB
1094
1136
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].index_name #=> String
1095
1137
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
1096
1138
  # resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
1139
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
1140
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
1097
1141
  # resp.global_table_description.global_table_arn #=> String
1098
1142
  # resp.global_table_description.creation_date_time #=> Time
1099
1143
  # resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
@@ -1109,9 +1153,9 @@ module Aws::DynamoDB
1109
1153
  end
1110
1154
 
1111
1155
  # The `CreateTable` operation adds a new table to your account. In an
1112
- # AWS account, table names must be unique within each Region. That is,
1113
- # you can have two tables with same name if you create the tables in
1114
- # different Regions.
1156
+ # Amazon Web Services account, table names must be unique within each
1157
+ # Region. That is, you can have two tables with same name if you create
1158
+ # the tables in different Regions.
1115
1159
  #
1116
1160
  # `CreateTable` is an asynchronous operation. Upon receiving a
1117
1161
  # `CreateTable` request, DynamoDB immediately returns a response with a
@@ -1328,6 +1372,10 @@ module Aws::DynamoDB
1328
1372
  #
1329
1373
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html
1330
1374
  #
1375
+ # @option params [String] :table_class
1376
+ # The table class of the new table. Valid values are `STANDARD` and
1377
+ # `STANDARD_INFREQUENT_ACCESS`.
1378
+ #
1331
1379
  # @return [Types::CreateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1332
1380
  #
1333
1381
  # * {Types::CreateTableOutput#table_description #table_description} => Types::TableDescription
@@ -1470,6 +1518,7 @@ module Aws::DynamoDB
1470
1518
  # value: "TagValueString", # required
1471
1519
  # },
1472
1520
  # ],
1521
+ # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1473
1522
  # })
1474
1523
  #
1475
1524
  # @example Response structure
@@ -1539,6 +1588,8 @@ module Aws::DynamoDB
1539
1588
  # resp.table_description.replicas[0].global_secondary_indexes[0].index_name #=> String
1540
1589
  # resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
1541
1590
  # resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
1591
+ # resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
1592
+ # resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
1542
1593
  # resp.table_description.restore_summary.source_backup_arn #=> String
1543
1594
  # resp.table_description.restore_summary.source_table_arn #=> String
1544
1595
  # resp.table_description.restore_summary.restore_date_time #=> Time
@@ -1550,6 +1601,8 @@ module Aws::DynamoDB
1550
1601
  # resp.table_description.archival_summary.archival_date_time #=> Time
1551
1602
  # resp.table_description.archival_summary.archival_reason #=> String
1552
1603
  # resp.table_description.archival_summary.archival_backup_arn #=> String
1604
+ # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
1605
+ # resp.table_description.table_class_summary.last_update_date_time #=> Time
1553
1606
  #
1554
1607
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable AWS API Documentation
1555
1608
  #
@@ -1698,8 +1751,8 @@ module Aws::DynamoDB
1698
1751
  # </note>
1699
1752
  #
1700
1753
  # @option params [String] :return_consumed_capacity
1701
- # Determines the level of detail about provisioned throughput
1702
- # consumption that is returned in the response:
1754
+ # Determines the level of detail about either provisioned or on-demand
1755
+ # throughput consumption that is returned in the response:
1703
1756
  #
1704
1757
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
1705
1758
  # for the operation, together with `ConsumedCapacity` for each table
@@ -2034,6 +2087,8 @@ module Aws::DynamoDB
2034
2087
  # resp.table_description.replicas[0].global_secondary_indexes[0].index_name #=> String
2035
2088
  # resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
2036
2089
  # resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
2090
+ # resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2091
+ # resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
2037
2092
  # resp.table_description.restore_summary.source_backup_arn #=> String
2038
2093
  # resp.table_description.restore_summary.source_table_arn #=> String
2039
2094
  # resp.table_description.restore_summary.restore_date_time #=> Time
@@ -2045,6 +2100,8 @@ module Aws::DynamoDB
2045
2100
  # resp.table_description.archival_summary.archival_date_time #=> Time
2046
2101
  # resp.table_description.archival_summary.archival_reason #=> String
2047
2102
  # resp.table_description.archival_summary.archival_backup_arn #=> String
2103
+ # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2104
+ # resp.table_description.table_class_summary.last_update_date_time #=> Time
2048
2105
  #
2049
2106
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable AWS API Documentation
2050
2107
  #
@@ -2328,6 +2385,8 @@ module Aws::DynamoDB
2328
2385
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].index_name #=> String
2329
2386
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
2330
2387
  # resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
2388
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2389
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
2331
2390
  # resp.global_table_description.global_table_arn #=> String
2332
2391
  # resp.global_table_description.creation_date_time #=> Time
2333
2392
  # resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
@@ -2422,6 +2481,8 @@ module Aws::DynamoDB
2422
2481
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
2423
2482
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
2424
2483
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.target_value #=> Float
2484
+ # resp.replica_settings[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2485
+ # resp.replica_settings[0].replica_table_class_summary.last_update_date_time #=> Time
2425
2486
  #
2426
2487
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTableSettings AWS API Documentation
2427
2488
  #
@@ -2465,25 +2526,26 @@ module Aws::DynamoDB
2465
2526
  req.send_request(options)
2466
2527
  end
2467
2528
 
2468
- # Returns the current provisioned-capacity quotas for your AWS account
2469
- # in a Region, both for the Region as a whole and for any one DynamoDB
2470
- # table that you create there.
2471
- #
2472
- # When you establish an AWS account, the account has initial quotas on
2473
- # the maximum read capacity units and write capacity units that you can
2474
- # provision across all of your DynamoDB tables in a given Region. Also,
2475
- # there are per-table quotas that apply when you create a table there.
2476
- # For more information, see [Service, Account, and Table Quotas][1] page
2477
- # in the *Amazon DynamoDB Developer Guide*.
2478
- #
2479
- # Although you can increase these quotas by filing a case at [AWS
2480
- # Support Center][2], obtaining the increase is not instantaneous. The
2481
- # `DescribeLimits` action lets you write code to compare the capacity
2482
- # you are currently using to those quotas imposed by your account so
2483
- # that you have enough time to apply for an increase before you hit a
2484
- # quota.
2485
- #
2486
- # For example, you could use one of the AWS SDKs to do the following:
2529
+ # Returns the current provisioned-capacity quotas for your Amazon Web
2530
+ # Services account in a Region, both for the Region as a whole and for
2531
+ # any one DynamoDB table that you create there.
2532
+ #
2533
+ # When you establish an Amazon Web Services account, the account has
2534
+ # initial quotas on the maximum read capacity units and write capacity
2535
+ # units that you can provision across all of your DynamoDB tables in a
2536
+ # given Region. Also, there are per-table quotas that apply when you
2537
+ # create a table there. For more information, see [Service, Account, and
2538
+ # Table Quotas][1] page in the *Amazon DynamoDB Developer Guide*.
2539
+ #
2540
+ # Although you can increase these quotas by filing a case at [Amazon Web
2541
+ # Services Support Center][2], obtaining the increase is not
2542
+ # instantaneous. The `DescribeLimits` action lets you write code to
2543
+ # compare the capacity you are currently using to those quotas imposed
2544
+ # by your account so that you have enough time to apply for an increase
2545
+ # before you hit a quota.
2546
+ #
2547
+ # For example, you could use one of the Amazon Web Services SDKs to do
2548
+ # the following:
2487
2549
  #
2488
2550
  # 1. Call `DescribeLimits` for a particular Region to obtain your
2489
2551
  # current account quotas on provisioned capacity there.
@@ -2712,6 +2774,8 @@ module Aws::DynamoDB
2712
2774
  # resp.table.replicas[0].global_secondary_indexes[0].index_name #=> String
2713
2775
  # resp.table.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
2714
2776
  # resp.table.replicas[0].replica_inaccessible_date_time #=> Time
2777
+ # resp.table.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2778
+ # resp.table.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
2715
2779
  # resp.table.restore_summary.source_backup_arn #=> String
2716
2780
  # resp.table.restore_summary.source_table_arn #=> String
2717
2781
  # resp.table.restore_summary.restore_date_time #=> Time
@@ -2723,6 +2787,8 @@ module Aws::DynamoDB
2723
2787
  # resp.table.archival_summary.archival_date_time #=> Time
2724
2788
  # resp.table.archival_summary.archival_reason #=> String
2725
2789
  # resp.table.archival_summary.archival_backup_arn #=> String
2790
+ # resp.table.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2791
+ # resp.table.table_class_summary.last_update_date_time #=> Time
2726
2792
  #
2727
2793
  #
2728
2794
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2949,10 +3015,28 @@ module Aws::DynamoDB
2949
3015
  # Set this value to get remaining results, if `NextToken` was returned
2950
3016
  # in the statement response.
2951
3017
  #
3018
+ # @option params [String] :return_consumed_capacity
3019
+ # Determines the level of detail about either provisioned or on-demand
3020
+ # throughput consumption that is returned in the response:
3021
+ #
3022
+ # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
3023
+ # for the operation, together with `ConsumedCapacity` for each table
3024
+ # and secondary index that was accessed.
3025
+ #
3026
+ # Note that some operations, such as `GetItem` and `BatchGetItem`, do
3027
+ # not access any indexes at all. In these cases, specifying `INDEXES`
3028
+ # will only return `ConsumedCapacity` information for table(s).
3029
+ #
3030
+ # * `TOTAL` - The response includes only the aggregate
3031
+ # `ConsumedCapacity` for the operation.
3032
+ #
3033
+ # * `NONE` - No `ConsumedCapacity` details are included in the response.
3034
+ #
2952
3035
  # @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2953
3036
  #
2954
3037
  # * {Types::ExecuteStatementOutput#items #items} => Array&lt;Hash&lt;String,Types::AttributeValue&gt;&gt;
2955
3038
  # * {Types::ExecuteStatementOutput#next_token #next_token} => String
3039
+ # * {Types::ExecuteStatementOutput#consumed_capacity #consumed_capacity} => Types::ConsumedCapacity
2956
3040
  #
2957
3041
  # @example Request syntax with placeholder values
2958
3042
  #
@@ -2961,6 +3045,7 @@ module Aws::DynamoDB
2961
3045
  # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
2962
3046
  # consistent_read: false,
2963
3047
  # next_token: "PartiQLNextToken",
3048
+ # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
2964
3049
  # })
2965
3050
  #
2966
3051
  # @example Response structure
@@ -2969,6 +3054,21 @@ module Aws::DynamoDB
2969
3054
  # resp.items[0] #=> Hash
2970
3055
  # resp.items[0]["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
2971
3056
  # resp.next_token #=> String
3057
+ # resp.consumed_capacity.table_name #=> String
3058
+ # resp.consumed_capacity.capacity_units #=> Float
3059
+ # resp.consumed_capacity.read_capacity_units #=> Float
3060
+ # resp.consumed_capacity.write_capacity_units #=> Float
3061
+ # resp.consumed_capacity.table.read_capacity_units #=> Float
3062
+ # resp.consumed_capacity.table.write_capacity_units #=> Float
3063
+ # resp.consumed_capacity.table.capacity_units #=> Float
3064
+ # resp.consumed_capacity.local_secondary_indexes #=> Hash
3065
+ # resp.consumed_capacity.local_secondary_indexes["IndexName"].read_capacity_units #=> Float
3066
+ # resp.consumed_capacity.local_secondary_indexes["IndexName"].write_capacity_units #=> Float
3067
+ # resp.consumed_capacity.local_secondary_indexes["IndexName"].capacity_units #=> Float
3068
+ # resp.consumed_capacity.global_secondary_indexes #=> Hash
3069
+ # resp.consumed_capacity.global_secondary_indexes["IndexName"].read_capacity_units #=> Float
3070
+ # resp.consumed_capacity.global_secondary_indexes["IndexName"].write_capacity_units #=> Float
3071
+ # resp.consumed_capacity.global_secondary_indexes["IndexName"].capacity_units #=> Float
2972
3072
  #
2973
3073
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatement AWS API Documentation
2974
3074
  #
@@ -2982,6 +3082,18 @@ module Aws::DynamoDB
2982
3082
  # This operation allows you to perform transactional reads or writes on
2983
3083
  # data stored in DynamoDB, using PartiQL.
2984
3084
  #
3085
+ # <note markdown="1"> The entire transaction must consist of either read statements or write
3086
+ # statements, you cannot mix both in one transaction. The EXISTS
3087
+ # function is an exception and can be used to check the condition of
3088
+ # specific attributes of the item in a similar manner to
3089
+ # `ConditionCheck` in the [TransactWriteItems][1] API.
3090
+ #
3091
+ # </note>
3092
+ #
3093
+ #
3094
+ #
3095
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis.html#transaction-apis-txwriteitems
3096
+ #
2985
3097
  # @option params [required, Array<Types::ParameterizedStatement>] :transact_statements
2986
3098
  # The list of PartiQL statements representing the transaction to run.
2987
3099
  #
@@ -2992,9 +3104,20 @@ module Aws::DynamoDB
2992
3104
  # **A suitable default value is auto-generated.** You should normally
2993
3105
  # not need to pass this option.**
2994
3106
  #
3107
+ # @option params [String] :return_consumed_capacity
3108
+ # Determines the level of detail about either provisioned or on-demand
3109
+ # throughput consumption that is returned in the response. For more
3110
+ # information, see [TransactGetItems][1] and [TransactWriteItems][2].
3111
+ #
3112
+ #
3113
+ #
3114
+ # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html
3115
+ # [2]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html
3116
+ #
2995
3117
  # @return [Types::ExecuteTransactionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2996
3118
  #
2997
3119
  # * {Types::ExecuteTransactionOutput#responses #responses} => Array&lt;Types::ItemResponse&gt;
3120
+ # * {Types::ExecuteTransactionOutput#consumed_capacity #consumed_capacity} => Array&lt;Types::ConsumedCapacity&gt;
2998
3121
  #
2999
3122
  # @example Request syntax with placeholder values
3000
3123
  #
@@ -3006,6 +3129,7 @@ module Aws::DynamoDB
3006
3129
  # },
3007
3130
  # ],
3008
3131
  # client_request_token: "ClientRequestToken",
3132
+ # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
3009
3133
  # })
3010
3134
  #
3011
3135
  # @example Response structure
@@ -3013,6 +3137,22 @@ module Aws::DynamoDB
3013
3137
  # resp.responses #=> Array
3014
3138
  # resp.responses[0].item #=> Hash
3015
3139
  # resp.responses[0].item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
3140
+ # resp.consumed_capacity #=> Array
3141
+ # resp.consumed_capacity[0].table_name #=> String
3142
+ # resp.consumed_capacity[0].capacity_units #=> Float
3143
+ # resp.consumed_capacity[0].read_capacity_units #=> Float
3144
+ # resp.consumed_capacity[0].write_capacity_units #=> Float
3145
+ # resp.consumed_capacity[0].table.read_capacity_units #=> Float
3146
+ # resp.consumed_capacity[0].table.write_capacity_units #=> Float
3147
+ # resp.consumed_capacity[0].table.capacity_units #=> Float
3148
+ # resp.consumed_capacity[0].local_secondary_indexes #=> Hash
3149
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].read_capacity_units #=> Float
3150
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].write_capacity_units #=> Float
3151
+ # resp.consumed_capacity[0].local_secondary_indexes["IndexName"].capacity_units #=> Float
3152
+ # resp.consumed_capacity[0].global_secondary_indexes #=> Hash
3153
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].read_capacity_units #=> Float
3154
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].write_capacity_units #=> Float
3155
+ # resp.consumed_capacity[0].global_secondary_indexes["IndexName"].capacity_units #=> Float
3016
3156
  #
3017
3157
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteTransaction AWS API Documentation
3018
3158
  #
@@ -3056,8 +3196,8 @@ module Aws::DynamoDB
3056
3196
  # The name of the Amazon S3 bucket to export the snapshot to.
3057
3197
  #
3058
3198
  # @option params [String] :s3_bucket_owner
3059
- # The ID of the AWS account that owns the bucket the export will be
3060
- # stored in.
3199
+ # The ID of the Amazon Web Services account that owns the bucket the
3200
+ # export will be stored in.
3061
3201
  #
3062
3202
  # @option params [String] :s3_prefix
3063
3203
  # The Amazon S3 bucket prefix to use as the file name and path of the
@@ -3069,10 +3209,10 @@ module Aws::DynamoDB
3069
3209
  #
3070
3210
  # * `AES256` - server-side encryption with Amazon S3 managed keys
3071
3211
  #
3072
- # * `KMS` - server-side encryption with AWS KMS managed keys
3212
+ # * `KMS` - server-side encryption with KMS managed keys
3073
3213
  #
3074
3214
  # @option params [String] :s3_sse_kms_key_id
3075
- # The ID of the AWS KMS managed key used to encrypt the S3 bucket where
3215
+ # The ID of the KMS managed key used to encrypt the S3 bucket where
3076
3216
  # export data will be stored (if applicable).
3077
3217
  #
3078
3218
  # @option params [String] :export_format
@@ -3166,8 +3306,8 @@ module Aws::DynamoDB
3166
3306
  # uses eventually consistent reads.
3167
3307
  #
3168
3308
  # @option params [String] :return_consumed_capacity
3169
- # Determines the level of detail about provisioned throughput
3170
- # consumption that is returned in the response:
3309
+ # Determines the level of detail about either provisioned or on-demand
3310
+ # throughput consumption that is returned in the response:
3171
3311
  #
3172
3312
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
3173
3313
  # for the operation, together with `ConsumedCapacity` for each table
@@ -3323,10 +3463,11 @@ module Aws::DynamoDB
3323
3463
  req.send_request(options)
3324
3464
  end
3325
3465
 
3326
- # List backups associated with an AWS account. To list backups for a
3327
- # given table, specify `TableName`. `ListBackups` returns a paginated
3328
- # list of results with at most 1 MB worth of items in a page. You can
3329
- # also specify a maximum number of entries to be returned in a page.
3466
+ # List backups associated with an Amazon Web Services account. To list
3467
+ # backups for a given table, specify `TableName`. `ListBackups` returns
3468
+ # a paginated list of results with at most 1 MB worth of items in a
3469
+ # page. You can also specify a maximum number of entries to be returned
3470
+ # in a page.
3330
3471
  #
3331
3472
  # In the request, start time is inclusive, but end time is exclusive.
3332
3473
  # Note that these boundaries are for the time at which the original
@@ -3669,26 +3810,26 @@ module Aws::DynamoDB
3669
3810
  #
3670
3811
  # This topic provides general information about the `PutItem` API.
3671
3812
  #
3672
- # For information on how to call the `PutItem` API using the AWS SDK in
3673
- # specific languages, see the following:
3813
+ # For information on how to call the `PutItem` API using the Amazon Web
3814
+ # Services SDK in specific languages, see the following:
3674
3815
  #
3675
- # * [ PutItem in the AWS Command Line Interface][1]
3816
+ # * [ PutItem in the Command Line Interface][1]
3676
3817
  #
3677
- # * [ PutItem in the AWS SDK for .NET][2]
3818
+ # * [ PutItem in the SDK for .NET][2]
3678
3819
  #
3679
- # * [ PutItem in the AWS SDK for C++][3]
3820
+ # * [ PutItem in the SDK for C++][3]
3680
3821
  #
3681
- # * [ PutItem in the AWS SDK for Go][4]
3822
+ # * [ PutItem in the SDK for Go][4]
3682
3823
  #
3683
- # * [ PutItem in the AWS SDK for Java][5]
3824
+ # * [ PutItem in the SDK for Java][5]
3684
3825
  #
3685
- # * [ PutItem in the AWS SDK for JavaScript][6]
3826
+ # * [ PutItem in the SDK for JavaScript][6]
3686
3827
  #
3687
- # * [ PutItem in the AWS SDK for PHP V3][7]
3828
+ # * [ PutItem in the SDK for PHP V3][7]
3688
3829
  #
3689
- # * [ PutItem in the AWS SDK for Python][8]
3830
+ # * [ PutItem in the SDK for Python (Boto)][8]
3690
3831
  #
3691
- # * [ PutItem in the AWS SDK for Ruby V2][9]
3832
+ # * [ PutItem in the SDK for Ruby V2][9]
3692
3833
  #
3693
3834
  # When you add an item, the primary key attributes are the only required
3694
3835
  # attributes. Attribute values cannot be null.
@@ -3777,6 +3918,8 @@ module Aws::DynamoDB
3777
3918
  # * `ALL_OLD` - If `PutItem` overwrote an attribute name-value pair,
3778
3919
  # then the content of the old item is returned.
3779
3920
  #
3921
+ # The values returned are strongly consistent.
3922
+ #
3780
3923
  # <note markdown="1"> The `ReturnValues` parameter is used by several DynamoDB operations;
3781
3924
  # however, `PutItem` does not recognize any values other than `NONE` or
3782
3925
  # `ALL_OLD`.
@@ -3784,8 +3927,8 @@ module Aws::DynamoDB
3784
3927
  # </note>
3785
3928
  #
3786
3929
  # @option params [String] :return_consumed_capacity
3787
- # Determines the level of detail about provisioned throughput
3788
- # consumption that is returned in the response:
3930
+ # Determines the level of detail about either provisioned or on-demand
3931
+ # throughput consumption that is returned in the response:
3789
3932
  #
3790
3933
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
3791
3934
  # for the operation, together with `ConsumedCapacity` for each table
@@ -4004,9 +4147,10 @@ module Aws::DynamoDB
4004
4147
  req.send_request(options)
4005
4148
  end
4006
4149
 
4007
- # The `Query` operation finds items based on primary key values. You can
4008
- # query any table or secondary index that has a composite primary key (a
4009
- # partition key and a sort key).
4150
+ # You must provide the name of the partition key attribute and a single
4151
+ # value for that attribute. `Query` returns all items with that
4152
+ # partition key value. Optionally, you can provide a sort key attribute
4153
+ # and use a comparison operator to refine the search results.
4010
4154
  #
4011
4155
  # Use the `KeyConditionExpression` parameter to provide a specific value
4012
4156
  # for the partition key. The `Query` operation will return all of the
@@ -4213,8 +4357,8 @@ module Aws::DynamoDB
4213
4357
  # Binary. No set data types are allowed.
4214
4358
  #
4215
4359
  # @option params [String] :return_consumed_capacity
4216
- # Determines the level of detail about provisioned throughput
4217
- # consumption that is returned in the response:
4360
+ # Determines the level of detail about either provisioned or on-demand
4361
+ # throughput consumption that is returned in the response:
4218
4362
  #
4219
4363
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
4220
4364
  # for the operation, together with `ConsumedCapacity` for each table
@@ -4706,6 +4850,8 @@ module Aws::DynamoDB
4706
4850
  # resp.table_description.replicas[0].global_secondary_indexes[0].index_name #=> String
4707
4851
  # resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
4708
4852
  # resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
4853
+ # resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
4854
+ # resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
4709
4855
  # resp.table_description.restore_summary.source_backup_arn #=> String
4710
4856
  # resp.table_description.restore_summary.source_table_arn #=> String
4711
4857
  # resp.table_description.restore_summary.restore_date_time #=> Time
@@ -4717,6 +4863,8 @@ module Aws::DynamoDB
4717
4863
  # resp.table_description.archival_summary.archival_date_time #=> Time
4718
4864
  # resp.table_description.archival_summary.archival_reason #=> String
4719
4865
  # resp.table_description.archival_summary.archival_backup_arn #=> String
4866
+ # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
4867
+ # resp.table_description.table_class_summary.last_update_date_time #=> Time
4720
4868
  #
4721
4869
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableFromBackup AWS API Documentation
4722
4870
  #
@@ -4929,6 +5077,8 @@ module Aws::DynamoDB
4929
5077
  # resp.table_description.replicas[0].global_secondary_indexes[0].index_name #=> String
4930
5078
  # resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
4931
5079
  # resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
5080
+ # resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
5081
+ # resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
4932
5082
  # resp.table_description.restore_summary.source_backup_arn #=> String
4933
5083
  # resp.table_description.restore_summary.source_table_arn #=> String
4934
5084
  # resp.table_description.restore_summary.restore_date_time #=> Time
@@ -4940,6 +5090,8 @@ module Aws::DynamoDB
4940
5090
  # resp.table_description.archival_summary.archival_date_time #=> Time
4941
5091
  # resp.table_description.archival_summary.archival_reason #=> String
4942
5092
  # resp.table_description.archival_summary.archival_backup_arn #=> String
5093
+ # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
5094
+ # resp.table_description.table_class_summary.last_update_date_time #=> Time
4943
5095
  #
4944
5096
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime AWS API Documentation
4945
5097
  #
@@ -5101,8 +5253,8 @@ module Aws::DynamoDB
5101
5253
  # corresponding value of `LastEvaluatedKey`.
5102
5254
  #
5103
5255
  # @option params [String] :return_consumed_capacity
5104
- # Determines the level of detail about provisioned throughput
5105
- # consumption that is returned in the response:
5256
+ # Determines the level of detail about either provisioned or on-demand
5257
+ # throughput consumption that is returned in the response:
5106
5258
  #
5107
5259
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
5108
5260
  # for the operation, together with `ConsumedCapacity` for each table
@@ -5440,8 +5592,8 @@ module Aws::DynamoDB
5440
5592
  # contain up to 25 `TransactGetItem` objects, each of which contains a
5441
5593
  # `Get` structure that specifies an item to retrieve from a table in the
5442
5594
  # account and Region. A call to `TransactGetItems` cannot retrieve items
5443
- # from tables in more than one AWS account or Region. The aggregate size
5444
- # of the items in the transaction cannot exceed 4 MB.
5595
+ # from tables in more than one Amazon Web Services account or Region.
5596
+ # The aggregate size of the items in the transaction cannot exceed 4 MB.
5445
5597
  #
5446
5598
  # DynamoDB rejects the entire `TransactGetItems` request if any of the
5447
5599
  # following is true:
@@ -5524,10 +5676,10 @@ module Aws::DynamoDB
5524
5676
 
5525
5677
  # `TransactWriteItems` is a synchronous write operation that groups up
5526
5678
  # to 25 action requests. These actions can target items in different
5527
- # tables, but not in different AWS accounts or Regions, and no two
5528
- # actions can target the same item. For example, you cannot both
5529
- # `ConditionCheck` and `Update` the same item. The aggregate size of the
5530
- # items in the transaction cannot exceed 4 MB.
5679
+ # tables, but not in different Amazon Web Services accounts or Regions,
5680
+ # and no two actions can target the same item. For example, you cannot
5681
+ # both `ConditionCheck` and `Update` the same item. The aggregate size
5682
+ # of the items in the transaction cannot exceed 4 MB.
5531
5683
  #
5532
5684
  # The actions are completed atomically so that either all of them
5533
5685
  # succeed, or all of them fail. They are defined by the following
@@ -5584,12 +5736,12 @@ module Aws::DynamoDB
5584
5736
  # An ordered array of up to 25 `TransactWriteItem` objects, each of
5585
5737
  # which contains a `ConditionCheck`, `Put`, `Update`, or `Delete`
5586
5738
  # object. These can operate on items in different tables, but the tables
5587
- # must reside in the same AWS account and Region, and no two of them can
5588
- # operate on the same item.
5739
+ # must reside in the same Amazon Web Services account and Region, and no
5740
+ # two of them can operate on the same item.
5589
5741
  #
5590
5742
  # @option params [String] :return_consumed_capacity
5591
- # Determines the level of detail about provisioned throughput
5592
- # consumption that is returned in the response:
5743
+ # Determines the level of detail about either provisioned or on-demand
5744
+ # throughput consumption that is returned in the response:
5593
5745
  #
5594
5746
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
5595
5747
  # for the operation, together with `ConsumedCapacity` for each table
@@ -5831,7 +5983,13 @@ module Aws::DynamoDB
5831
5983
  end
5832
5984
 
5833
5985
  # Updates the status for contributor insights for a specific table or
5834
- # index.
5986
+ # index. CloudWatch Contributor Insights for DynamoDB graphs display the
5987
+ # partition key and (if applicable) sort key of frequently accessed
5988
+ # items and frequently throttled items in plaintext. If you require the
5989
+ # use of AWS Key Management Service (KMS) to encrypt this table’s
5990
+ # partition key and sort key data with an AWS managed key or customer
5991
+ # managed key, you should not enable CloudWatch Contributor Insights for
5992
+ # DynamoDB for this table.
5835
5993
  #
5836
5994
  # @option params [required, String] :table_name
5837
5995
  # The name of the table.
@@ -5934,6 +6092,8 @@ module Aws::DynamoDB
5934
6092
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].index_name #=> String
5935
6093
  # resp.global_table_description.replication_group[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
5936
6094
  # resp.global_table_description.replication_group[0].replica_inaccessible_date_time #=> Time
6095
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
6096
+ # resp.global_table_description.replication_group[0].replica_table_class_summary.last_update_date_time #=> Time
5937
6097
  # resp.global_table_description.global_table_arn #=> String
5938
6098
  # resp.global_table_description.creation_date_time #=> Time
5939
6099
  # resp.global_table_description.global_table_status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING"
@@ -6074,6 +6234,7 @@ module Aws::DynamoDB
6074
6234
  # },
6075
6235
  # },
6076
6236
  # ],
6237
+ # replica_table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
6077
6238
  # },
6078
6239
  # ],
6079
6240
  # })
@@ -6133,6 +6294,8 @@ module Aws::DynamoDB
6133
6294
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
6134
6295
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
6135
6296
  # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_auto_scaling_settings.scaling_policies[0].target_tracking_scaling_policy_configuration.target_value #=> Float
6297
+ # resp.replica_settings[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
6298
+ # resp.replica_settings[0].replica_table_class_summary.last_update_date_time #=> Time
6136
6299
  #
6137
6300
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalTableSettings AWS API Documentation
6138
6301
  #
@@ -6220,8 +6383,8 @@ module Aws::DynamoDB
6220
6383
  # The values returned are strongly consistent.
6221
6384
  #
6222
6385
  # @option params [String] :return_consumed_capacity
6223
- # Determines the level of detail about provisioned throughput
6224
- # consumption that is returned in the response:
6386
+ # Determines the level of detail about either provisioned or on-demand
6387
+ # throughput consumption that is returned in the response:
6225
6388
  #
6226
6389
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
6227
6390
  # for the operation, together with `ConsumedCapacity` for each table
@@ -6638,6 +6801,10 @@ module Aws::DynamoDB
6638
6801
  #
6639
6802
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html
6640
6803
  #
6804
+ # @option params [String] :table_class
6805
+ # The table class of the table to be updated. Valid values are
6806
+ # `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
6807
+ #
6641
6808
  # @return [Types::UpdateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6642
6809
  #
6643
6810
  # * {Types::UpdateTableOutput#table_description #table_description} => Types::TableDescription
@@ -6763,6 +6930,7 @@ module Aws::DynamoDB
6763
6930
  # },
6764
6931
  # },
6765
6932
  # ],
6933
+ # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
6766
6934
  # },
6767
6935
  # update: {
6768
6936
  # region_name: "RegionName", # required
@@ -6778,12 +6946,14 @@ module Aws::DynamoDB
6778
6946
  # },
6779
6947
  # },
6780
6948
  # ],
6949
+ # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
6781
6950
  # },
6782
6951
  # delete: {
6783
6952
  # region_name: "RegionName", # required
6784
6953
  # },
6785
6954
  # },
6786
6955
  # ],
6956
+ # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
6787
6957
  # })
6788
6958
  #
6789
6959
  # @example Response structure
@@ -6853,6 +7023,8 @@ module Aws::DynamoDB
6853
7023
  # resp.table_description.replicas[0].global_secondary_indexes[0].index_name #=> String
6854
7024
  # resp.table_description.replicas[0].global_secondary_indexes[0].provisioned_throughput_override.read_capacity_units #=> Integer
6855
7025
  # resp.table_description.replicas[0].replica_inaccessible_date_time #=> Time
7026
+ # resp.table_description.replicas[0].replica_table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
7027
+ # resp.table_description.replicas[0].replica_table_class_summary.last_update_date_time #=> Time
6856
7028
  # resp.table_description.restore_summary.source_backup_arn #=> String
6857
7029
  # resp.table_description.restore_summary.source_table_arn #=> String
6858
7030
  # resp.table_description.restore_summary.restore_date_time #=> Time
@@ -6864,6 +7036,8 @@ module Aws::DynamoDB
6864
7036
  # resp.table_description.archival_summary.archival_date_time #=> Time
6865
7037
  # resp.table_description.archival_summary.archival_reason #=> String
6866
7038
  # resp.table_description.archival_summary.archival_backup_arn #=> String
7039
+ # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
7040
+ # resp.table_description.table_class_summary.last_update_date_time #=> Time
6867
7041
  #
6868
7042
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable AWS API Documentation
6869
7043
  #
@@ -7130,7 +7304,7 @@ module Aws::DynamoDB
7130
7304
  params: params,
7131
7305
  config: config)
7132
7306
  context[:gem_name] = 'aws-sdk-dynamodb'
7133
- context[:gem_version] = '1.65.0'
7307
+ context[:gem_version] = '1.69.0'
7134
7308
  Seahorse::Client::Request.new(handlers, context)
7135
7309
  end
7136
7310