For the UpdateItem operation, represents the attributes to be modified, the action to perform on each, and the new value for each.
NOTE: You cannot use UpdateItem to update any primary key attributes. Instead, you will need to delete the item, and then use PutItem to create a new item with new attributes.
Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a ValidationException .
Declaration Syntax
C# |
public class AttributeValueUpdate
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description | ||
---|---|---|---|---|
AttributeValueUpdate()()()() | Initializes a new instance of the AttributeValueUpdate class | |||
Action |
Specifies how to perform the update. Valid values are PUT, DELETE, and ADD. The behavior depends on whether the
specified primary key already exists in the table. If an item with the specified Key is found in the table:
Constraints: | |||
Equals(Object) | (Inherited from Object.) | |||
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |||
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |||
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |||
Value |
Represents the data for an attribute. You can set one, and only one, of the elements.
| |||
WithAction(String) | Obsolete.
Sets the Action property
| |||
WithValue(AttributeValue) | Obsolete.
Sets the Value property
|
Inheritance Hierarchy
Object | |
AttributeValueUpdate |