aws-sdk-dynamodb 1.89.0 → 1.91.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dabe94ff08438a163a80687509bb1a7bbf54ce9a087250df0d43dc5b5f0060c8
4
- data.tar.gz: 1f83c51d84bbf0c35f44f3d0ad0b6f6d093308578451fb083a9ada9cb3c2d7a0
3
+ metadata.gz: 98e61dbf73f554913ae018ae25f7db16b5116d44c7a1f988e2d6bb919947be32
4
+ data.tar.gz: 5b009f1b925699bbcd259e07d73ef6ee7d4aabd382ed01518425b4ca8337d6d0
5
5
  SHA512:
6
- metadata.gz: e586af52fc625f9628ff081ddb88355cb2ce481f5a10ed03c2228b763de07c19a3600a369a9b1a01feeaf8d1176565b7061daa0b638ade5293aeb57236000b4e
7
- data.tar.gz: 8d14088b61279f5e24ac849ec3ef31518266d68ab3ba1dd65c358cc6a3ad920ea453131e256e8ae00ae5084faa2d31f17350b68a753042eaac3073ca0aff55b2
6
+ metadata.gz: d6dd172ed0a936b88d09579229a17676f42247fa9d5198d8b05e4ca0abef9420fd5714098d44266d19c8244706af27e4e982e4c4f8c9fd6f6bd913df940d1a72
7
+ data.tar.gz: c4f082ee7f5a66a533b3115331eee83cb950f33b66b512d2ff33be8184c67df7d3385be8757c4a7df0d8cf591e7608df66f75e97edc27bb01736ea5311881321
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.91.0 (2023-07-06)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.90.0 (2023-06-29)
10
+ ------------------
11
+
12
+ * Feature - This release adds ReturnValuesOnConditionCheckFailure parameter to PutItem, UpdateItem, DeleteItem, ExecuteStatement, BatchExecuteStatement and ExecuteTransaction APIs. When set to ALL_OLD, API returns a copy of the item as it was when a conditional write failed
13
+
4
14
  1.89.0 (2023-06-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.91.0
@@ -28,6 +28,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/request_compression.rb'
31
32
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
33
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
34
  require 'aws-sdk-core/plugins/sign.rb'
@@ -80,6 +81,7 @@ module Aws::DynamoDB
80
81
  add_plugin(Aws::Plugins::TransferEncoding)
81
82
  add_plugin(Aws::Plugins::HttpChecksum)
82
83
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
84
+ add_plugin(Aws::Plugins::RequestCompression)
83
85
  add_plugin(Aws::Plugins::DefaultsMode)
84
86
  add_plugin(Aws::Plugins::RecursionDetection)
85
87
  add_plugin(Aws::Plugins::Sign)
@@ -202,6 +204,10 @@ module Aws::DynamoDB
202
204
  # Set to true to disable SDK automatically adding host prefix
203
205
  # to default service endpoint when available.
204
206
  #
207
+ # @option options [Boolean] :disable_request_compression (false)
208
+ # When set to 'true' the request body will not be compressed
209
+ # for supported operations.
210
+ #
205
211
  # @option options [String] :endpoint
206
212
  # The client endpoint is normally constructed from the `:region`
207
213
  # option. You should only configure an `:endpoint` when connecting
@@ -242,6 +248,11 @@ module Aws::DynamoDB
242
248
  # Used when loading credentials from the shared credentials file
243
249
  # at HOME/.aws/credentials. When not specified, 'default' is used.
244
250
  #
251
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
252
+ # The minimum size in bytes that triggers compression for request
253
+ # bodies. The value must be non-negative integer value between 0
254
+ # and 10485780 bytes inclusive.
255
+ #
245
256
  # @option options [Proc] :retry_backoff
246
257
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
247
258
  # This option is only used in the `legacy` retry mode.
@@ -455,6 +466,7 @@ module Aws::DynamoDB
455
466
  # statement: "PartiQLStatement", # required
456
467
  # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
457
468
  # consistent_read: false,
469
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
458
470
  # },
459
471
  # ],
460
472
  # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
@@ -465,6 +477,8 @@ module Aws::DynamoDB
465
477
  # resp.responses #=> Array
466
478
  # resp.responses[0].error.code #=> String, one of "ConditionalCheckFailed", "ItemCollectionSizeLimitExceeded", "RequestLimitExceeded", "ValidationError", "ProvisionedThroughputExceeded", "TransactionConflict", "ThrottlingError", "InternalServerError", "ResourceNotFound", "AccessDenied", "DuplicateItem"
467
479
  # resp.responses[0].error.message #=> String
480
+ # resp.responses[0].error.item #=> Hash
481
+ # resp.responses[0].error.item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
468
482
  # resp.responses[0].table_name #=> String
469
483
  # resp.responses[0].item #=> Hash
470
484
  # resp.responses[0].item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
@@ -1943,6 +1957,14 @@ module Aws::DynamoDB
1943
1957
  #
1944
1958
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
1945
1959
  #
1960
+ # @option params [String] :return_values_on_condition_check_failure
1961
+ # An optional parameter that returns the item attributes for a
1962
+ # `DeleteItem` operation that failed a condition check.
1963
+ #
1964
+ # There is no additional cost associated with requesting a return value
1965
+ # aside from the small network and processing overhead of receiving a
1966
+ # larger response. No read capacity units are consumed.
1967
+ #
1946
1968
  # @return [Types::DeleteItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1947
1969
  #
1948
1970
  # * {Types::DeleteItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -1996,6 +2018,7 @@ module Aws::DynamoDB
1996
2018
  # expression_attribute_values: {
1997
2019
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1998
2020
  # },
2021
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
1999
2022
  # })
2000
2023
  #
2001
2024
  # @example Response structure
@@ -3232,6 +3255,14 @@ module Aws::DynamoDB
3232
3255
  # `LastEvaluatedKey` to apply in a subsequent operation to continue the
3233
3256
  # operation.
3234
3257
  #
3258
+ # @option params [String] :return_values_on_condition_check_failure
3259
+ # An optional parameter that returns the item attributes for an
3260
+ # `ExecuteStatement` operation that failed a condition check.
3261
+ #
3262
+ # There is no additional cost associated with requesting a return value
3263
+ # aside from the small network and processing overhead of receiving a
3264
+ # larger response. No read capacity units are consumed.
3265
+ #
3235
3266
  # @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3236
3267
  #
3237
3268
  # * {Types::ExecuteStatementOutput#items #items} => Array&lt;Hash&lt;String,Types::AttributeValue&gt;&gt;
@@ -3248,6 +3279,7 @@ module Aws::DynamoDB
3248
3279
  # next_token: "PartiQLNextToken",
3249
3280
  # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
3250
3281
  # limit: 1,
3282
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
3251
3283
  # })
3252
3284
  #
3253
3285
  # @example Response structure
@@ -3330,6 +3362,7 @@ module Aws::DynamoDB
3330
3362
  # {
3331
3363
  # statement: "PartiQLStatement", # required
3332
3364
  # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
3365
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
3333
3366
  # },
3334
3367
  # ],
3335
3368
  # client_request_token: "ClientRequestToken",
@@ -4454,6 +4487,14 @@ module Aws::DynamoDB
4454
4487
  #
4455
4488
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
4456
4489
  #
4490
+ # @option params [String] :return_values_on_condition_check_failure
4491
+ # An optional parameter that returns the item attributes for a `PutItem`
4492
+ # operation that failed a condition check.
4493
+ #
4494
+ # There is no additional cost associated with requesting a return value
4495
+ # aside from the small network and processing overhead of receiving a
4496
+ # larger response. No read capacity units are consumed.
4497
+ #
4457
4498
  # @return [Types::PutItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4458
4499
  #
4459
4500
  # * {Types::PutItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -4509,6 +4550,7 @@ module Aws::DynamoDB
4509
4550
  # expression_attribute_values: {
4510
4551
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
4511
4552
  # },
4553
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
4512
4554
  # })
4513
4555
  #
4514
4556
  # @example Response structure
@@ -7030,6 +7072,14 @@ module Aws::DynamoDB
7030
7072
  #
7031
7073
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
7032
7074
  #
7075
+ # @option params [String] :return_values_on_condition_check_failure
7076
+ # An optional parameter that returns the item attributes for an
7077
+ # `UpdateItem` operation that failed a condition check.
7078
+ #
7079
+ # There is no additional cost associated with requesting a return value
7080
+ # aside from the small network and processing overhead of receiving a
7081
+ # larger response. No read capacity units are consumed.
7082
+ #
7033
7083
  # @return [Types::UpdateItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7034
7084
  #
7035
7085
  # * {Types::UpdateItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -7103,6 +7153,7 @@ module Aws::DynamoDB
7103
7153
  # expression_attribute_values: {
7104
7154
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
7105
7155
  # },
7156
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
7106
7157
  # })
7107
7158
  #
7108
7159
  # @example Response structure
@@ -7751,7 +7802,7 @@ module Aws::DynamoDB
7751
7802
  params: params,
7752
7803
  config: config)
7753
7804
  context[:gem_name] = 'aws-sdk-dynamodb'
7754
- context[:gem_version] = '1.89.0'
7805
+ context[:gem_version] = '1.91.0'
7755
7806
  Seahorse::Client::Request.new(handlers, context)
7756
7807
  end
7757
7808
 
@@ -592,11 +592,13 @@ module Aws::DynamoDB
592
592
 
593
593
  BatchStatementError.add_member(:code, Shapes::ShapeRef.new(shape: BatchStatementErrorCodeEnum, location_name: "Code"))
594
594
  BatchStatementError.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
595
+ BatchStatementError.add_member(:item, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Item"))
595
596
  BatchStatementError.struct_class = Types::BatchStatementError
596
597
 
597
598
  BatchStatementRequest.add_member(:statement, Shapes::ShapeRef.new(shape: PartiQLStatement, required: true, location_name: "Statement"))
598
599
  BatchStatementRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: PreparedStatementParameters, location_name: "Parameters"))
599
600
  BatchStatementRequest.add_member(:consistent_read, Shapes::ShapeRef.new(shape: ConsistentRead, location_name: "ConsistentRead"))
601
+ BatchStatementRequest.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
600
602
  BatchStatementRequest.struct_class = Types::BatchStatementRequest
601
603
 
602
604
  BatchStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: BatchStatementError, location_name: "Error"))
@@ -648,6 +650,7 @@ module Aws::DynamoDB
648
650
  ConditionCheck.struct_class = Types::ConditionCheck
649
651
 
650
652
  ConditionalCheckFailedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
653
+ ConditionalCheckFailedException.add_member(:item, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Item"))
651
654
  ConditionalCheckFailedException.struct_class = Types::ConditionalCheckFailedException
652
655
 
653
656
  ConsumedCapacity.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
@@ -757,6 +760,7 @@ module Aws::DynamoDB
757
760
  DeleteItemInput.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
758
761
  DeleteItemInput.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
759
762
  DeleteItemInput.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
763
+ DeleteItemInput.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
760
764
  DeleteItemInput.struct_class = Types::DeleteItemInput
761
765
 
762
766
  DeleteItemOutput.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
@@ -881,6 +885,7 @@ module Aws::DynamoDB
881
885
  ExecuteStatementInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PartiQLNextToken, location_name: "NextToken"))
882
886
  ExecuteStatementInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
883
887
  ExecuteStatementInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
888
+ ExecuteStatementInput.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
884
889
  ExecuteStatementInput.struct_class = Types::ExecuteStatementInput
885
890
 
886
891
  ExecuteStatementOutput.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
@@ -1285,6 +1290,7 @@ module Aws::DynamoDB
1285
1290
 
1286
1291
  ParameterizedStatement.add_member(:statement, Shapes::ShapeRef.new(shape: PartiQLStatement, required: true, location_name: "Statement"))
1287
1292
  ParameterizedStatement.add_member(:parameters, Shapes::ShapeRef.new(shape: PreparedStatementParameters, location_name: "Parameters"))
1293
+ ParameterizedStatement.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1288
1294
  ParameterizedStatement.struct_class = Types::ParameterizedStatement
1289
1295
 
1290
1296
  ParameterizedStatements.member = Shapes::ShapeRef.new(shape: ParameterizedStatement)
@@ -1345,6 +1351,7 @@ module Aws::DynamoDB
1345
1351
  PutItemInput.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
1346
1352
  PutItemInput.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
1347
1353
  PutItemInput.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
1354
+ PutItemInput.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1348
1355
  PutItemInput.struct_class = Types::PutItemInput
1349
1356
 
1350
1357
  PutItemInputAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
@@ -1792,6 +1799,7 @@ module Aws::DynamoDB
1792
1799
  UpdateItemInput.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
1793
1800
  UpdateItemInput.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
1794
1801
  UpdateItemInput.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
1802
+ UpdateItemInput.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1795
1803
  UpdateItemInput.struct_class = Types::UpdateItemInput
1796
1804
 
1797
1805
  UpdateItemOutput.add_member(:attributes, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Attributes"))
@@ -108,6 +108,11 @@ module Aws::DynamoDB
108
108
  def message
109
109
  @message || @data[:message]
110
110
  end
111
+
112
+ # @return [String]
113
+ def item
114
+ @data[:item]
115
+ end
111
116
  end
112
117
 
113
118
  class ContinuousBackupsUnavailableException < ServiceError
@@ -546,6 +546,7 @@ module Aws::DynamoDB
546
546
  # expression_attribute_values: {
547
547
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
548
548
  # },
549
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
549
550
  # })
550
551
  # @param [Hash] options ({})
551
552
  # @option options [required, Hash<String,Types::AttributeValue>] :key
@@ -708,6 +709,13 @@ module Aws::DynamoDB
708
709
  #
709
710
  #
710
711
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
712
+ # @option options [String] :return_values_on_condition_check_failure
713
+ # An optional parameter that returns the item attributes for a
714
+ # `DeleteItem` operation that failed a condition check.
715
+ #
716
+ # There is no additional cost associated with requesting a return value
717
+ # aside from the small network and processing overhead of receiving a
718
+ # larger response. No read capacity units are consumed.
711
719
  # @return [Types::DeleteItemOutput]
712
720
  def delete_item(options = {})
713
721
  options = options.merge(table_name: @name)
@@ -867,6 +875,7 @@ module Aws::DynamoDB
867
875
  # expression_attribute_values: {
868
876
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
869
877
  # },
878
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
870
879
  # })
871
880
  # @param [Hash] options ({})
872
881
  # @option options [required, Hash<String,Types::AttributeValue>] :item
@@ -1050,6 +1059,13 @@ module Aws::DynamoDB
1050
1059
  #
1051
1060
  #
1052
1061
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
1062
+ # @option options [String] :return_values_on_condition_check_failure
1063
+ # An optional parameter that returns the item attributes for a `PutItem`
1064
+ # operation that failed a condition check.
1065
+ #
1066
+ # There is no additional cost associated with requesting a return value
1067
+ # aside from the small network and processing overhead of receiving a
1068
+ # larger response. No read capacity units are consumed.
1053
1069
  # @return [Types::PutItemOutput]
1054
1070
  def put_item(options = {})
1055
1071
  options = options.merge(table_name: @name)
@@ -1984,6 +2000,7 @@ module Aws::DynamoDB
1984
2000
  # expression_attribute_values: {
1985
2001
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1986
2002
  # },
2003
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
1987
2004
  # })
1988
2005
  # @param [Hash] options ({})
1989
2006
  # @option options [required, Hash<String,Types::AttributeValue>] :key
@@ -2247,6 +2264,13 @@ module Aws::DynamoDB
2247
2264
  #
2248
2265
  #
2249
2266
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
2267
+ # @option options [String] :return_values_on_condition_check_failure
2268
+ # An optional parameter that returns the item attributes for an
2269
+ # `UpdateItem` operation that failed a condition check.
2270
+ #
2271
+ # There is no additional cost associated with requesting a return value
2272
+ # aside from the small network and processing overhead of receiving a
2273
+ # larger response. No read capacity units are consumed.
2250
2274
  # @return [Types::UpdateItemOutput]
2251
2275
  def update_item(options = {})
2252
2276
  options = options.merge(table_name: @name)
@@ -916,11 +916,17 @@ module Aws::DynamoDB
916
916
  # The error message associated with the PartiQL batch response.
917
917
  # @return [String]
918
918
  #
919
+ # @!attribute [rw] item
920
+ # The item which caused the condition check to fail. This will be set
921
+ # if ReturnValuesOnConditionCheckFailure is specified as `ALL_OLD`.
922
+ # @return [Hash<String,Types::AttributeValue>]
923
+ #
919
924
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchStatementError AWS API Documentation
920
925
  #
921
926
  class BatchStatementError < Struct.new(
922
927
  :code,
923
- :message)
928
+ :message,
929
+ :item)
924
930
  SENSITIVE = []
925
931
  include Aws::Structure
926
932
  end
@@ -940,12 +946,22 @@ module Aws::DynamoDB
940
946
  # The read consistency of the PartiQL batch request.
941
947
  # @return [Boolean]
942
948
  #
949
+ # @!attribute [rw] return_values_on_condition_check_failure
950
+ # An optional parameter that returns the item attributes for a PartiQL
951
+ # batch request operation that failed a condition check.
952
+ #
953
+ # There is no additional cost associated with requesting a return
954
+ # value aside from the small network and processing overhead of
955
+ # receiving a larger response. No read capacity units are consumed.
956
+ # @return [String]
957
+ #
943
958
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchStatementRequest AWS API Documentation
944
959
  #
945
960
  class BatchStatementRequest < Struct.new(
946
961
  :statement,
947
962
  :parameters,
948
- :consistent_read)
963
+ :consistent_read,
964
+ :return_values_on_condition_check_failure)
949
965
  SENSITIVE = []
950
966
  include Aws::Structure
951
967
  end
@@ -1515,10 +1531,15 @@ module Aws::DynamoDB
1515
1531
  # The conditional request failed.
1516
1532
  # @return [String]
1517
1533
  #
1534
+ # @!attribute [rw] item
1535
+ # Item which caused the `ConditionalCheckFailedException`.
1536
+ # @return [Hash<String,Types::AttributeValue>]
1537
+ #
1518
1538
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ConditionalCheckFailedException AWS API Documentation
1519
1539
  #
1520
1540
  class ConditionalCheckFailedException < Struct.new(
1521
- :message)
1541
+ :message,
1542
+ :item)
1522
1543
  SENSITIVE = []
1523
1544
  include Aws::Structure
1524
1545
  end
@@ -2348,6 +2369,15 @@ module Aws::DynamoDB
2348
2369
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
2349
2370
  # @return [Hash<String,Types::AttributeValue>]
2350
2371
  #
2372
+ # @!attribute [rw] return_values_on_condition_check_failure
2373
+ # An optional parameter that returns the item attributes for a
2374
+ # `DeleteItem` operation that failed a condition check.
2375
+ #
2376
+ # There is no additional cost associated with requesting a return
2377
+ # value aside from the small network and processing overhead of
2378
+ # receiving a larger response. No read capacity units are consumed.
2379
+ # @return [String]
2380
+ #
2351
2381
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItemInput AWS API Documentation
2352
2382
  #
2353
2383
  class DeleteItemInput < Struct.new(
@@ -2360,7 +2390,8 @@ module Aws::DynamoDB
2360
2390
  :return_item_collection_metrics,
2361
2391
  :condition_expression,
2362
2392
  :expression_attribute_names,
2363
- :expression_attribute_values)
2393
+ :expression_attribute_values,
2394
+ :return_values_on_condition_check_failure)
2364
2395
  SENSITIVE = []
2365
2396
  include Aws::Structure
2366
2397
  end
@@ -2973,6 +3004,15 @@ module Aws::DynamoDB
2973
3004
  # the operation.
2974
3005
  # @return [Integer]
2975
3006
  #
3007
+ # @!attribute [rw] return_values_on_condition_check_failure
3008
+ # An optional parameter that returns the item attributes for an
3009
+ # `ExecuteStatement` operation that failed a condition check.
3010
+ #
3011
+ # There is no additional cost associated with requesting a return
3012
+ # value aside from the small network and processing overhead of
3013
+ # receiving a larger response. No read capacity units are consumed.
3014
+ # @return [String]
3015
+ #
2976
3016
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ExecuteStatementInput AWS API Documentation
2977
3017
  #
2978
3018
  class ExecuteStatementInput < Struct.new(
@@ -2981,7 +3021,8 @@ module Aws::DynamoDB
2981
3021
  :consistent_read,
2982
3022
  :next_token,
2983
3023
  :return_consumed_capacity,
2984
- :limit)
3024
+ :limit,
3025
+ :return_values_on_condition_check_failure)
2985
3026
  SENSITIVE = []
2986
3027
  include Aws::Structure
2987
3028
  end
@@ -5412,11 +5453,21 @@ module Aws::DynamoDB
5412
5453
  # The parameter values.
5413
5454
  # @return [Array<Types::AttributeValue>]
5414
5455
  #
5456
+ # @!attribute [rw] return_values_on_condition_check_failure
5457
+ # An optional parameter that returns the item attributes for a PartiQL
5458
+ # `ParameterizedStatement` operation that failed a condition check.
5459
+ #
5460
+ # There is no additional cost associated with requesting a return
5461
+ # value aside from the small network and processing overhead of
5462
+ # receiving a larger response. No read capacity units are consumed.
5463
+ # @return [String]
5464
+ #
5415
5465
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ParameterizedStatement AWS API Documentation
5416
5466
  #
5417
5467
  class ParameterizedStatement < Struct.new(
5418
5468
  :statement,
5419
- :parameters)
5469
+ :parameters,
5470
+ :return_values_on_condition_check_failure)
5420
5471
  SENSITIVE = []
5421
5472
  include Aws::Structure
5422
5473
  end
@@ -5915,6 +5966,15 @@ module Aws::DynamoDB
5915
5966
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
5916
5967
  # @return [Hash<String,Types::AttributeValue>]
5917
5968
  #
5969
+ # @!attribute [rw] return_values_on_condition_check_failure
5970
+ # An optional parameter that returns the item attributes for a
5971
+ # `PutItem` operation that failed a condition check.
5972
+ #
5973
+ # There is no additional cost associated with requesting a return
5974
+ # value aside from the small network and processing overhead of
5975
+ # receiving a larger response. No read capacity units are consumed.
5976
+ # @return [String]
5977
+ #
5918
5978
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItemInput AWS API Documentation
5919
5979
  #
5920
5980
  class PutItemInput < Struct.new(
@@ -5927,7 +5987,8 @@ module Aws::DynamoDB
5927
5987
  :conditional_operator,
5928
5988
  :condition_expression,
5929
5989
  :expression_attribute_names,
5930
- :expression_attribute_values)
5990
+ :expression_attribute_values,
5991
+ :return_values_on_condition_check_failure)
5931
5992
  SENSITIVE = []
5932
5993
  include Aws::Structure
5933
5994
  end
@@ -9539,6 +9600,15 @@ module Aws::DynamoDB
9539
9600
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
9540
9601
  # @return [Hash<String,Types::AttributeValue>]
9541
9602
  #
9603
+ # @!attribute [rw] return_values_on_condition_check_failure
9604
+ # An optional parameter that returns the item attributes for an
9605
+ # `UpdateItem` operation that failed a condition check.
9606
+ #
9607
+ # There is no additional cost associated with requesting a return
9608
+ # value aside from the small network and processing overhead of
9609
+ # receiving a larger response. No read capacity units are consumed.
9610
+ # @return [String]
9611
+ #
9542
9612
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItemInput AWS API Documentation
9543
9613
  #
9544
9614
  class UpdateItemInput < Struct.new(
@@ -9553,7 +9623,8 @@ module Aws::DynamoDB
9553
9623
  :update_expression,
9554
9624
  :condition_expression,
9555
9625
  :expression_attribute_names,
9556
- :expression_attribute_values)
9626
+ :expression_attribute_values,
9627
+ :return_values_on_condition_check_failure)
9557
9628
  SENSITIVE = []
9558
9629
  include Aws::Structure
9559
9630
  end
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
54
54
  # @!group service
55
55
  module Aws::DynamoDB
56
56
 
57
- GEM_VERSION = '1.89.0'
57
+ GEM_VERSION = '1.91.0'
58
58
 
59
59
  end
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.89.0
4
+ version: 1.91.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: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-06 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.176.0
22
+ version: 3.177.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.176.0
32
+ version: 3.177.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement