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
- Struct
- Aws::DynamoDB::Types::WriteRequest
- 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 need to provide two separate WriteRequest
objects.
Instance Attribute Summary collapse
-
#delete_request ⇒ Types::DeleteRequest
A request to perform a
DeleteItem
operation. -
#put_request ⇒ Types::PutRequest
A request to perform a
PutItem
operation.
Instance Attribute Details
#delete_request ⇒ Types::DeleteRequest
A request to perform a DeleteItem
operation.
#put_request ⇒ Types::PutRequest
A request to perform a PutItem
operation.