Skip to content

DynamoDBStorage.PutEntryAsync(string, Dictionary<string, AttributeValue>, string, Dictionary<string, AttributeValue>)

PutEntryAsync(string, Dictionary<string, AttributeValue>, string, Dictionary<string, AttributeValue>)

View source
public Task PutEntryAsync(string tableName, Dictionary<string, AttributeValue> fields, string conditionExpression = "", Dictionary<string, AttributeValue>? conditionValues = null)
Create or Replace an entry in a DynamoDB Table

Parameters

tableNamestring
The name of the table to put an entry
fieldsDictionary<string, AttributeValue>
The fields/attributes to add or replace in the table
conditionExpressionstring
Optional conditional expression
conditionValuesDictionary<string, AttributeValue>
Optional field/attribute values used in the conditional expression