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.

Represents a request to update an item in a DynamoDB table using the Document Model. This class introduces a modern expression-based API that replaces legacy parameter-based approaches. Legacy parameters such as AttributeUpdates, Expected are not supported. Use UpdateExpression and ConditionalExpression instead.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.DocumentOperationRequest
    Amazon.DynamoDBv2.DocumentModel.UpdateItemDocumentOperationRequest

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

Syntax

C#
public class UpdateItemDocumentOperationRequest : DocumentOperationRequest

The UpdateItemDocumentOperationRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ConditionalExpression Amazon.DynamoDBv2.DocumentModel.Expression

Gets or sets the conditional expression evaluated before the update is performed. If false, a ConditionalCheckFailedException is thrown.

Public Property Document Amazon.DynamoDBv2.DocumentModel.Document

Gets or sets the attributes to be updated in the item.

Public Property Key System.Collections.Generic.IDictionary<System.String, Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry>

Gets or sets the key identifying the item in the table.

Public Property ReturnValues Amazon.DynamoDBv2.DocumentModel.ReturnValues

Flag specifying what values should be returned.

Public Property UpdateExpression Amazon.DynamoDBv2.DocumentModel.Expression

Gets or sets the update expression specifying how attributes should be updated.

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