VirtualRouterProps Struct
The properties used when creating a new VirtualRouter.
Example
ts
declare const infraStack: cdk.Stack;
declare const appStack: cdk.Stack;
const mesh = new appmesh.Mesh(infraStack, 'AppMesh', {
meshName: 'myAwsMesh',
egressFilter: appmesh.MeshFilterType.ALLOW_ALL,
});
// the VirtualRouter will belong to 'appStack',
// even though the Mesh belongs to 'infraStack'
const router = new appmesh.VirtualRouter(appStack, 'router', {
mesh, // notice that mesh is a required property when creating a router with the 'new' statement
listeners: [appmesh.VirtualRouterListener.http(8081)],
});
Properties
listenersoptionalVirtualRouterListener[]listenersoptionaltyping.List[VirtualRouterListener]listenersoptionalList<VirtualRouterListener>ListenersoptionalVirtualRouterListener[]Listenersoptional*[]VirtualRouterListener#Listener specification for the VirtualRouter.
Default: A listener on HTTP port 8080
virtualRouterNameoptionalstringvirtual_router_nameoptionalstrvirtualRouterNameoptionalStringVirtualRouterNameoptionalstringVirtualRouterNameoptional*string#The name of the VirtualRouter.
Default: A name is automatically determined