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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-dynamodb/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.



8551
8552
8553
8554
8555
8556
8557
8558
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 8551

class TransactWriteItem < Struct.new(
  :condition_check,
  :put,
  :delete,
  :update)
  SENSITIVE = []
  include Aws::Structure
end

#deleteTypes::Delete

A request to perform a DeleteItem operation.

Returns:



8551
8552
8553
8554
8555
8556
8557
8558
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 8551

class TransactWriteItem < Struct.new(
  :condition_check,
  :put,
  :delete,
  :update)
  SENSITIVE = []
  include Aws::Structure
end

#putTypes::Put

A request to perform a PutItem operation.

Returns:



8551
8552
8553
8554
8555
8556
8557
8558
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 8551

class TransactWriteItem < Struct.new(
  :condition_check,
  :put,
  :delete,
  :update)
  SENSITIVE = []
  include Aws::Structure
end

#updateTypes::Update

A request to perform an UpdateItem operation.

Returns:



8551
8552
8553
8554
8555
8556
8557
8558
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 8551

class TransactWriteItem < Struct.new(
  :condition_check,
  :put,
  :delete,
  :update)
  SENSITIVE = []
  include Aws::Structure
end