Class: Aws::DynamoDB::Types::TransactWriteItem
- Inherits:
-
Struct
- Object
- Struct
- Aws::DynamoDB::Types::TransactWriteItem
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-dynamodb/types.rb
Overview
Note:
When making an API call, you may pass TransactWriteItem data as a hash:
{
condition_check: {
key: { # required
"AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
table_name: "TableName", # required
condition_expression: "ConditionExpression", # required
expression_attribute_names: {
"ExpressionAttributeNameVariable" => "AttributeName",
},
expression_attribute_values: {
"ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
},
put: {
item: { # required
"AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
table_name: "TableName", # required
condition_expression: "ConditionExpression",
expression_attribute_names: {
"ExpressionAttributeNameVariable" => "AttributeName",
},
expression_attribute_values: {
"ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
},
delete: {
key: { # required
"AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
table_name: "TableName", # required
condition_expression: "ConditionExpression",
expression_attribute_names: {
"ExpressionAttributeNameVariable" => "AttributeName",
},
expression_attribute_values: {
"ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
},
update: {
key: { # required
"AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
update_expression: "UpdateExpression", # required
table_name: "TableName", # required
condition_expression: "ConditionExpression",
expression_attribute_names: {
"ExpressionAttributeNameVariable" => "AttributeName",
},
expression_attribute_values: {
"ExpressionAttributeValueVariable" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
},
return_values_on_condition_check_failure: "ALL_OLD", # accepts ALL_OLD, NONE
},
}
A list of requests that can perform update, put, delete, or check operations on multiple items in one or more tables atomically.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#condition_check ⇒ Types::ConditionCheck
A request to perform a check item operation.
-
#delete ⇒ Types::Delete
A request to perform a ‘DeleteItem` operation.
-
#put ⇒ Types::Put
A request to perform a ‘PutItem` operation.
-
#update ⇒ Types::Update
A request to perform an ‘UpdateItem` operation.
Instance Attribute Details
#condition_check ⇒ Types::ConditionCheck
A request to perform a check item operation.
9434 9435 9436 9437 9438 9439 9440 9441 |
# File 'lib/aws-sdk-dynamodb/types.rb', line 9434 class TransactWriteItem < Struct.new( :condition_check, :put, :delete, :update) SENSITIVE = [] include Aws::Structure end |
#delete ⇒ Types::Delete
A request to perform a ‘DeleteItem` operation.
9434 9435 9436 9437 9438 9439 9440 9441 |
# File 'lib/aws-sdk-dynamodb/types.rb', line 9434 class TransactWriteItem < Struct.new( :condition_check, :put, :delete, :update) SENSITIVE = [] include Aws::Structure end |
#put ⇒ Types::Put
A request to perform a ‘PutItem` operation.
9434 9435 9436 9437 9438 9439 9440 9441 |
# File 'lib/aws-sdk-dynamodb/types.rb', line 9434 class TransactWriteItem < Struct.new( :condition_check, :put, :delete, :update) SENSITIVE = [] include Aws::Structure end |
#update ⇒ Types::Update
A request to perform an ‘UpdateItem` operation.
9434 9435 9436 9437 9438 9439 9440 9441 |
# File 'lib/aws-sdk-dynamodb/types.rb', line 9434 class TransactWriteItem < Struct.new( :condition_check, :put, :delete, :update) SENSITIVE = [] include Aws::Structure end |