Class: Aws::DynamoDB::Types::TransactWriteItem

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#condition_checkTypes::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

#deleteTypes::Delete

A request to perform a ‘DeleteItem` operation.

Returns:



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

#putTypes::Put

A request to perform a ‘PutItem` operation.

Returns:



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

#updateTypes::Update

A request to perform an ‘UpdateItem` operation.

Returns:



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