Interface IVirtualRouterProps
The properties used when creating a new VirtualRouter.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IVirtualRouterProps : IVirtualRouterBaseProps
Syntax (vb)
Public Interface IVirtualRouterProps
Inherits IVirtualRouterBaseProps
Remarks
ExampleMetadata: infused
Examples
Stack infraStack;
Stack appStack;
var mesh = new Mesh(infraStack, "AppMesh", new MeshProps {
MeshName = "myAwsMesh",
EgressFilter = MeshFilterType.ALLOW_ALL
});
// the VirtualRouter will belong to 'appStack',
// even though the Mesh belongs to 'infraStack'
var router = new VirtualRouter(appStack, "router", new VirtualRouterProps {
Mesh = mesh, // notice that mesh is a required property when creating a router with the 'new' statement
Listeners = new [] { VirtualRouterListener.Http(8081) }
});
Synopsis
Properties
Mesh | The Mesh which the VirtualRouter belongs to. |