Table of Contents

Class TransactPut

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

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

string

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

IReadOnlyDictionary<string, string>

ExpressionAttributeValues

Gets the substitutions for :value placeholders in ConditionExpression.

public IReadOnlyDictionary<string, AttributeValue>? ExpressionAttributeValues { get; init; }

Property Value

IReadOnlyDictionary<string, AttributeValue>

Item

Gets the item, including all key attributes. At most 400 KB.

public required IReadOnlyDictionary<string, AttributeValue> Item { get; init; }

Property Value

IReadOnlyDictionary<string, AttributeValue>

ReturnValuesOnConditionCheckFailure

Gets whether a failed condition returns the existing item in Item.

public ReturnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure { get; init; }

Property Value

ReturnValuesOnConditionCheckFailure

TableName

Gets the table name (or table ARN).

public required string TableName { get; init; }

Property Value

string

Methods

Equals(TransactPut?)

public bool Equals(TransactPut? other)

Parameters

other TransactPut

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TransactPut?, TransactPut?)

public static bool operator ==(TransactPut? left, TransactPut? right)

Parameters

left TransactPut
right TransactPut

Returns

bool

operator !=(TransactPut?, TransactPut?)

public static bool operator !=(TransactPut? left, TransactPut? right)

Parameters

left TransactPut
right TransactPut

Returns

bool