aws-sdk-dynamodb 1.89.0 → 1.90.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: ee8488fb5d02324ab1ceb984aee15c8761b7da81a8c5f612848ed4aeb64bffd2
4
+ data.tar.gz: 53bc07234600badaa8d0930dd8d2bb37a7d53583f45d2d88c493f10a4c566c5b
5
5
  SHA512:
6
- metadata.gz: e586af52fc625f9628ff081ddb88355cb2ce481f5a10ed03c2228b763de07c19a3600a369a9b1a01feeaf8d1176565b7061daa0b638ade5293aeb57236000b4e
7
- data.tar.gz: 8d14088b61279f5e24ac849ec3ef31518266d68ab3ba1dd65c358cc6a3ad920ea453131e256e8ae00ae5084faa2d31f17350b68a753042eaac3073ca0aff55b2
6
+ metadata.gz: f0fc63858ba05aa5cc282a0e3db0b116c626d1739e2406f3ab6e917857c7e4b6de3e78b60670ff442407b0746a6286f07d8ca7fa7f31083b57909affe0602448
7
+ data.tar.gz: b71153a68b9616628ce40f36fba569862505828e5aa270b6f674f4eab36118254ea2b6ec8b51ca5c50bdf2ad41c217f47b0e923e79444a3cc898196f5559f51d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.0 (2023-06-29)
5
+ ------------------
6
+
7
+ * 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
8
+
4
9
  1.89.0 (2023-06-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.90.0
@@ -455,6 +455,7 @@ module Aws::DynamoDB
455
455
  # statement: "PartiQLStatement", # required
456
456
  # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
457
457
  # consistent_read: false,
458
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
458
459
  # },
459
460
  # ],
460
461
  # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
@@ -465,6 +466,8 @@ module Aws::DynamoDB
465
466
  # resp.responses #=> Array
466
467
  # resp.responses[0].error.code #=> String, one of "ConditionalCheckFailed", "ItemCollectionSizeLimitExceeded", "RequestLimitExceeded", "ValidationError", "ProvisionedThroughputExceeded", "TransactionConflict", "ThrottlingError", "InternalServerError", "ResourceNotFound", "AccessDenied", "DuplicateItem"
467
468
  # resp.responses[0].error.message #=> String
469
+ # resp.responses[0].error.item #=> Hash
470
+ # resp.responses[0].error.item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
468
471
  # resp.responses[0].table_name #=> String
469
472
  # resp.responses[0].item #=> Hash
470
473
  # resp.responses[0].item["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
@@ -1943,6 +1946,14 @@ module Aws::DynamoDB
1943
1946
  #
1944
1947
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
1945
1948
  #
1949
+ # @option params [String] :return_values_on_condition_check_failure
1950
+ # An optional parameter that returns the item attributes for a
1951
+ # `DeleteItem` operation that failed a condition check.
1952
+ #
1953
+ # There is no additional cost associated with requesting a return value
1954
+ # aside from the small network and processing overhead of receiving a
1955
+ # larger response. No read capacity units are consumed.
1956
+ #
1946
1957
  # @return [Types::DeleteItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1947
1958
  #
1948
1959
  # * {Types::DeleteItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -1996,6 +2007,7 @@ module Aws::DynamoDB
1996
2007
  # expression_attribute_values: {
1997
2008
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1998
2009
  # },
2010
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
1999
2011
  # })
2000
2012
  #
2001
2013
  # @example Response structure
@@ -3232,6 +3244,14 @@ module Aws::DynamoDB
3232
3244
  # `LastEvaluatedKey` to apply in a subsequent operation to continue the
3233
3245
  # operation.
3234
3246
  #
3247
+ # @option params [String] :return_values_on_condition_check_failure
3248
+ # An optional parameter that returns the item attributes for an
3249
+ # `ExecuteStatement` operation that failed a condition check.
3250
+ #
3251
+ # There is no additional cost associated with requesting a return value
3252
+ # aside from the small network and processing overhead of receiving a
3253
+ # larger response. No read capacity units are consumed.
3254
+ #
3235
3255
  # @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3236
3256
  #
3237
3257
  # * {Types::ExecuteStatementOutput#items #items} => Array&lt;Hash&lt;String,Types::AttributeValue&gt;&gt;
@@ -3248,6 +3268,7 @@ module Aws::DynamoDB
3248
3268
  # next_token: "PartiQLNextToken",
3249
3269
  # return_consumed_capacity: "INDEXES", # accepts INDEXES, TOTAL, NONE
3250
3270
  # limit: 1,
3271
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
3251
3272
  # })
3252
3273
  #
3253
3274
  # @example Response structure
@@ -3330,6 +3351,7 @@ module Aws::DynamoDB
3330
3351
  # {
3331
3352
  # statement: "PartiQLStatement", # required
3332
3353
  # parameters: ["value"], # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
3354
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
3333
3355
  # },
3334
3356
  # ],
3335
3357
  # client_request_token: "ClientRequestToken",
@@ -4454,6 +4476,14 @@ module Aws::DynamoDB
4454
4476
  #
4455
4477
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
4456
4478
  #
4479
+ # @option params [String] :return_values_on_condition_check_failure
4480
+ # An optional parameter that returns the item attributes for a `PutItem`
4481
+ # operation that failed a condition check.
4482
+ #
4483
+ # There is no additional cost associated with requesting a return value
4484
+ # aside from the small network and processing overhead of receiving a
4485
+ # larger response. No read capacity units are consumed.
4486
+ #
4457
4487
  # @return [Types::PutItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4458
4488
  #
4459
4489
  # * {Types::PutItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -4509,6 +4539,7 @@ module Aws::DynamoDB
4509
4539
  # expression_attribute_values: {
4510
4540
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
4511
4541
  # },
4542
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
4512
4543
  # })
4513
4544
  #
4514
4545
  # @example Response structure
@@ -7030,6 +7061,14 @@ module Aws::DynamoDB
7030
7061
  #
7031
7062
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
7032
7063
  #
7064
+ # @option params [String] :return_values_on_condition_check_failure
7065
+ # An optional parameter that returns the item attributes for an
7066
+ # `UpdateItem` operation that failed a condition check.
7067
+ #
7068
+ # There is no additional cost associated with requesting a return value
7069
+ # aside from the small network and processing overhead of receiving a
7070
+ # larger response. No read capacity units are consumed.
7071
+ #
7033
7072
  # @return [Types::UpdateItemOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7034
7073
  #
7035
7074
  # * {Types::UpdateItemOutput#attributes #attributes} => Hash&lt;String,Types::AttributeValue&gt;
@@ -7103,6 +7142,7 @@ module Aws::DynamoDB
7103
7142
  # expression_attribute_values: {
7104
7143
  # "ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
7105
7144
  # },
7145
+ # return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
7106
7146
  # })
7107
7147
  #
7108
7148
  # @example Response structure
@@ -7751,7 +7791,7 @@ module Aws::DynamoDB
7751
7791
  params: params,
7752
7792
  config: config)
7753
7793
  context[:gem_name] = 'aws-sdk-dynamodb'
7754
- context[:gem_version] = '1.89.0'
7794
+ context[:gem_version] = '1.90.0'
7755
7795
  Seahorse::Client::Request.new(handlers, context)
7756
7796
  end
7757
7797
 
@@ -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.90.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.90.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-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core