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

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

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 WriteRequest data as a 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.



5428
5429
5430
5431
5432
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5428

class WriteRequest < Struct.new(
  :put_request,
  :delete_request)
  include Aws::Structure
end

#put_requestTypes::PutRequest

A request to perform a PutItem operation.

Returns:



5428
5429
5430
5431
5432
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 5428

class WriteRequest < Struct.new(
  :put_request,
  :delete_request)
  include Aws::Structure
end