import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class ParameterConstraints { Required ! : Value < boolean > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface RouteProperties { Target ? : Value < string > ; RouteResponseSelectionExpression ? : Value < string > ; AuthorizerId ? : Value < string > ; RequestModels ? : { [ key ] : any ; } ; OperationName ? : Value < string > ; AuthorizationScopes ? : List < Value < string > > ; ApiKeyRequired ? : Value < boolean > ; RouteKey : Value < string > ; AuthorizationType ? : Value < string > ; ModelSelectionExpression ? : Value < string > ; ApiId : Value < string > ; RequestParameters ? : { [ key ] : any ; } ; } export default class Route extends ResourceBase < RouteProperties > { static ParameterConstraints = ParameterConstraints ; constructor ( properties ) { super ( 'AWS::ApiGatewayV2::Route' , properties ) ; } }