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.

Specifies the update behavior for a property when performing DynamoDB update operations. This attribute can be used to control whether a property is always updated or only set when the item is created (if the attribute does not exist).

Inheritance Hierarchy

System.Object
  System.Attribute
    Amazon.DynamoDBv2.DataModel.DynamoDBAttribute
      Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute
        Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute
          Amazon.DynamoDBv2.DataModel.DynamoDbUpdateBehaviorAttribute

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

Syntax

C#
public sealed class DynamoDbUpdateBehaviorAttribute : DynamoDBPropertyAttribute

The DynamoDbUpdateBehaviorAttribute type exposes the following members

Constructors

NameDescription
Public Method DynamoDbUpdateBehaviorAttribute()

Default constructor. Sets behavior to Always.

Public Method DynamoDbUpdateBehaviorAttribute(UpdateBehavior)

Constructor that specifies the update behavior.

Public Method DynamoDbUpdateBehaviorAttribute(string, UpdateBehavior)

Constructor that specifies an alternate attribute name and update behavior.

Properties

NameTypeDescription
Public Property AttributeName System.String Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute.
Public Property Behavior Amazon.DynamoDBv2.DataModel.UpdateBehavior

Gets the update behavior for the property.

Public Property Converter System.Type Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property StoreAsEpoch System.Boolean Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property StoreAsEpochLong System.Boolean Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute.
Public Property TypeId System.Object Inherited from System.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