import * as cdk from '@aws-cdk/core' ; import { Zone } from './zone' ; import { Users } from './users' ; import { Problems } from './problems' ; import { Judge } from './judge' ; import { Contest } from './contests' ; export class MojacoderBackendStack extends cdk . Stack { constructor ( scope , id , props ? ) { super ( scope , id , props ) ; const zone = new Zone ( this , 'zone' ) ; const users = new Users ( this , 'users' , { certificate : zone . certificate , zone : zone . zone } ) ; const problems = new Problems ( this , 'problems' , { api : users . api , } ) ; const judge = new Judge ( this , 'judge' , { api : users . api , testcases : problems . testcases , } ) ; new Contest ( this , 'contest' , { api : users . api , submissionTable : judge . submissionTable , } ) ; } }