"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.VirtualRouterListener=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var shared_interfaces_1=()=>{var tmp=require("./shared-interfaces");return shared_interfaces_1=()=>tmp,tmp};class VirtualRouterListener{static http(port){return new VirtualRouterListenerImpl(shared_interfaces_1().Protocol.HTTP,port)}static http2(port){return new VirtualRouterListenerImpl(shared_interfaces_1().Protocol.HTTP2,port)}static grpc(port){return new VirtualRouterListenerImpl(shared_interfaces_1().Protocol.GRPC,port)}static tcp(port){return new VirtualRouterListenerImpl(shared_interfaces_1().Protocol.TCP,port)}}exports.VirtualRouterListener=VirtualRouterListener,_a=JSII_RTTI_SYMBOL_1,VirtualRouterListener[_a]={fqn:"aws-cdk-lib.aws_appmesh.VirtualRouterListener",version:"2.159.0"};class VirtualRouterListenerImpl extends VirtualRouterListener{constructor(protocol,port){super(),this.protocol=protocol,this.port=port??8080}bind(_scope){return{listener:{portMapping:{port:this.port,protocol:this.protocol}}}}}
