AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TransactWriteItem as input to an Aws::Client method, you can use a vanilla 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.

Instance Attribute Summary collapse

Instance Attribute Details

#condition_checkTypes::ConditionCheck

A request to perform a check item operation.

Returns:

#deleteTypes::Delete

A request to perform a DeleteItem operation.

Returns:

  • (Types::Delete)

    A request to perform a DeleteItem operation.

#putTypes::Put

A request to perform a PutItem operation.

Returns:

  • (Types::Put)

    A request to perform a PutItem operation.

#updateTypes::Update

A request to perform an UpdateItem operation.

Returns:

  • (Types::Update)

    A request to perform an UpdateItem operation.