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

Class: Aws::DynamoDB::Types::WriteRequest

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

Overview

Note:

When passing WriteRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  put_request: {
    item: { # required
      "AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
    },
  },
  delete_request: {
    key: { # required
      "AttributeName" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
    },
  },
}

Represents an operation to perform - either DeleteItem or PutItem. You can only request one of these operations, not both, in a single WriteRequest. If you do need to perform both of these operations, you will need to provide two separate WriteRequest objects.

Instance Attribute Summary collapse

Instance Attribute Details

#delete_requestTypes::DeleteRequest

A request to perform a DeleteItem operation.

Returns:

#put_requestTypes::PutRequest

A request to perform a PutItem operation.

Returns: