import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class SubDomainSetting { Prefix ! : Value < string > ; BranchName ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface DomainProperties { SubDomainSettings : List < SubDomainSetting > ; AppId : Value < string > ; AutoSubDomainIAMRole ? : Value < string > ; DomainName : Value < string > ; EnableAutoSubDomain ? : Value < boolean > ; AutoSubDomainCreationPatterns ? : List < Value < string > > ; } export default class Domain extends ResourceBase < DomainProperties > { static SubDomainSetting = SubDomainSetting ; constructor ( properties ) { super ( 'AWS::Amplify::Domain' , properties ) ; } }