import decimal


def create_update_item_input(item):
    """Return input for DynamoDB `update_item()` operation on `item` setting
    `isRecent` to `1`.

    Parameters
    ----------
    item : dict
        DynamoDB `Deal` item to update

    Returns
    -------
    dict
        Input for DynamoDB `update_item` operation
    """
    return {
        'Key': {'id': item['id']},
        'UpdateExpression': 'SET isRecent=:r',
        'ExpressionAttributeValues': {
            ':r': decimal.Decimal(1)
        },
        'ReturnValues': 'UPDATED_NEW'
    }