in which all of the variables are as defined in the specification, pharmaceutical compositions thereof, combinations thereof, and their use as medicaments, particularly for the treatment of Alzheimer's Disease or diabetes via inhibition of BACE-1 or BACE-2.본 발명은 하기 화학식 I의 신규 헤테로시클릭 화합물, 그의 제약 조성물, 그의 조합물, 및 특히 BACE-1 또는 BACE-2의 억제를 통한 알츠하이머병 또는 당뇨병의 치료를 위한 의약으로서의 그의 용도에 관한 것이다.<;화학식 I>;상기 식에서, 모든 가변기는 본 명세서에 정의된 바와 같다.