• Edits an existing item's attributes, or adds a new item to the table if it does not already exist by delegating to UpdateCommand.

    Returns

    The same response returned by send()ing this command

    Parameters

    • tableName: string

      The name of the table containing the item to update

    • key: Record<string, any>

      The primary key of the item to be updated

    • updatedValues: Record<string, any>

      A map of attribute name/value pairs with the attributes that must be modified

    • Optional options: Partial<FacadeUpdateItemInput>

      The options accepted by the original UpdateCommand class, plus an optional condition field that generates ConditionExpression

    Returns Promise<UpdateCommandOutput>

Generated using TypeDoc