Container for the parameters to the PutItem operation.
Namespace: Amazon.DynamoDB.ModelCreates a new item, or replaces an old item with a new item (including all the attributes).
If an item already exists in the specified table with the same primary key, the new item completely replaces the existing item. You can perform a conditional put (insert a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class PutItemRequest : AmazonWebServiceRequest
Public Class PutItemRequest _ Inherits AmazonWebServiceRequest
public ref class PutItemRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| PutItemRequest()()()() | Initializes a new instance of the PutItemRequest class | |
| Equals(Object) | (Inherited from Object.) | |
| Expected |
Designates an attribute for a conditional modification. The Expected parameter allows you to provide an attribute name, and whether
or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.
| |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Item |
A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be
provided for the item.
| |
| ReturnValues |
Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For PUT operations, the
possible parameter values are NONE (default) or ALL_OLD. For update operations, the possible parameter values are NONE
(default) or ALL_OLD, UPDATED_OLD, ALL_NEW or UPDATED_NEW.
Constraints: | |
| TableName |
The name of the table in which you want to put an item. Allowed characters are a-z, A-Z, 0-9, _ (underscore),
- (hyphen) and . (period).
Constraints: | |
| ToString()()()() | (Inherited from Object.) | |
| WithExpected(array<KeyValuePair<(Of <<'(String, ExpectedAttributeValue>)>>)>[]()[][]) |
Adds the KeyValuePairs to the Expected dictionary.
| |
| WithItem(array<KeyValuePair<(Of <<'(String, AttributeValue>)>>)>[]()[][]) |
Adds the KeyValuePairs to the Item dictionary.
| |
| WithReturnValues(String) |
Sets the ReturnValues property
| |
| WithTableName(String) |
Sets the TableName property
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.DynamoDB.Model..::..PutItemRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.DynamoDB.Model..::..PutItemRequest