• Create a map for the ConditionCheck operation to use transactWrite.

    Returns

    A map in the format { ConditionCheck: { ... } }

    Parameters

    • tableName: string

      The name of the table that should contain the item

    • key: Record<string, any>

      The primary key of the item to be checked

    • condition: Filter

      An object describing the comparisons to generate ConditionExpression, ExpressionAttributeNames, and ExpressionAttributeValues

    • Optional options: Partial<ConditionCheck>

      The same parameters accepted by the original TransactWriteCommand condition check items

    Returns Pick<TransactWriteItem, "ConditionCheck">

Generated using TypeDoc