def build_tr_create_module_page_link(region, module_type_id):
    """
    Build the direct link to the corresponding Threat Response page in the
    given region for creating a module of the given type.
    """

    if module_type_id is None:
        return 'N/A'

    return (
        f'https://securex.{region}.security.cisco.com/settings/modules/'
        f'available/{module_type_id}/new'
    )