Interface IDynamoTableTransactWriteItemsPutItem<TRecord>
Interface to specify a PutItem operation for TransactWriteItems.
Namespace: LambdaSharp.DynamoDB.Native.Operations
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public interface IDynamoTableTransactWriteItemsPutItem<TRecord>
where TRecord : class
Type Parameters
| Name | Description |
|---|---|
| TRecord | The record type. |
Methods
End()
End specification of the PutItem operation for TransactWriteItems.
Declaration
IDynamoTableTransactWriteItems End()
Returns
| Type | Description |
|---|---|
| IDynamoTableTransactWriteItems |
Set(String, AttributeValue)
Set the value of a DynamoDB item attribute. Used for storing attributes used by local/global secondary indices.
Declaration
IDynamoTableTransactWriteItemsPutItem<TRecord> Set(string key, AttributeValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | Name of attribute. |
| Amazon.DynamoDBv2.Model.AttributeValue | value | Value of attribute. |
Returns
| Type | Description |
|---|---|
| IDynamoTableTransactWriteItemsPutItem<TRecord> |
WithCondition(Expression<Func<TRecord, Boolean>>)
Add condition for PutItem operation.
Declaration
IDynamoTableTransactWriteItemsPutItem<TRecord> WithCondition(Expression<Func<TRecord, bool>> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Linq.Expressions.Expression<System.Func<TRecord, System.Boolean>> | condition | A lambda predicate representing the DynamoDB condition expression. |
Returns
| Type | Description |
|---|---|
| IDynamoTableTransactWriteItemsPutItem<TRecord> |