import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class PortRange { FromPort ! : Value < number > ; ToPort ! : Value < number > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface ListenerProperties { AcceleratorArn : Value < string > ; PortRanges : List < PortRange > ; Protocol : Value < string > ; ClientAffinity ? : Value < string > ; } export default class Listener extends ResourceBase < ListenerProperties > { static PortRange = PortRange ; constructor ( properties ) { super ( 'AWS::GlobalAccelerator::Listener' , properties ) ; } }