Class TransactPut
Creates an item or replaces an existing item as part of a TransactWriteItemsRequest, with the effect of
PutItem. Named Put in the DynamoDB service model.
public sealed record TransactPut : IEquatable<TransactPut>
- Inheritance
-
TransactPut
- Implements
- Inherited Members
Constructors
TransactPut()
public TransactPut()
Properties
ConditionExpression
Gets a condition on the existing item that must hold, for example "attribute_not_exists(pk)". When it does not hold,
the whole transaction is cancelled and the reason for this action is ConditionalCheckFailed.
Attribute names that are DynamoDB reserved words, such as name, status, size, order or total,
must be aliased with a #placeholder defined in ExpressionAttributeNames; written directly, DynamoDB rejects the
request with a ValidationException. See the list of reserved words.
public string? ConditionExpression { get; init; }
Property Value
ExpressionAttributeNames
Gets the substitutions for #name placeholders in ConditionExpression.
Use it to alias attribute names that are DynamoDB reserved words, such as name, status, size, order or
total, which DynamoDB rejects with a ValidationException when an expression uses them directly (the check is
case-insensitive), and names with a dot or other special characters. See the list of reserved words.
public IReadOnlyDictionary<string, string>? ExpressionAttributeNames { get; init; }
Property Value
ExpressionAttributeValues
Gets the substitutions for :value placeholders in ConditionExpression.
public IReadOnlyDictionary<string, AttributeValue>? ExpressionAttributeValues { get; init; }
Property Value
Item
Gets the item, including all key attributes. At most 400 KB.
public required IReadOnlyDictionary<string, AttributeValue> Item { get; init; }
Property Value
ReturnValuesOnConditionCheckFailure
Gets whether a failed condition returns the existing item in Item.
public ReturnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure { get; init; }
Property Value
TableName
Gets the table name (or table ARN).
public required string TableName { get; init; }
Property Value
Methods
Equals(TransactPut?)
public bool Equals(TransactPut? other)
Parameters
otherTransactPut
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TransactPut?, TransactPut?)
public static bool operator ==(TransactPut? left, TransactPut? right)
Parameters
leftTransactPutrightTransactPut
Returns
operator !=(TransactPut?, TransactPut?)
public static bool operator !=(TransactPut? left, TransactPut? right)
Parameters
leftTransactPutrightTransactPut