AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The Amazon.DynamoDBv2.DocumentModel.UpdateExpressionBuilder class is used to construct update expressions for DynamoDB operations. An update expression consists of one or more clauses. Each clause begins with a SET, REMOVE, ADD, or DELETE keyword. You can include any of these clauses in an update expression, in any order.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.ExpressionBuilder
    Amazon.DynamoDBv2.DocumentModel.UpdateExpressionBuilder

Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class UpdateExpressionBuilder : ExpressionBuilder
         IExpressionBuilder

The UpdateExpressionBuilder type exposes the following members

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method Add(NameBuilder, ValueBuilder)

Adds an "ADD" operation to the update expression, which adds a new attribute or modifies an existing one. If the attribute is a number, the value is added or subtracted. If the attribute is a set, the value is appended.

Public Method Build() Inherited from Amazon.DynamoDBv2.DocumentModel.ExpressionBuilder.
Public Method Delete(NameBuilder, ValueBuilder)

Adds a "DELETE" operation to the update expression, which removes one or more elements from a set attribute.

Public Method Static Method New()

Creates a new instance of the Amazon.DynamoDBv2.DocumentModel.UpdateExpressionBuilder class.

Public Method Remove(NameBuilder)

Adds a "REMOVE" operation to the update expression, which removes one or more attributes from an item.

Public Method Set(NameBuilder, OperandBuilder)

Adds a "SET" operation to the update expression, which sets the value of an attribute.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer