Class VirtualRouterProps
The properties used when creating a new VirtualRouter.
Inheritance
System.Object
VirtualRouterProps
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualRouterProps : Object, IVirtualRouterProps, IVirtualRouterBaseProps
Syntax (vb)
Public Class VirtualRouterProps
Inherits Object
Implements IVirtualRouterProps, 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
Constructors
VirtualRouterProps() |
Properties
Listeners | Listener specification for the VirtualRouter. |
Mesh | The Mesh which the VirtualRouter belongs to. |
VirtualRouterName | The name of the VirtualRouter. |
Constructors
VirtualRouterProps()
public VirtualRouterProps()
Properties
Listeners
Listener specification for the VirtualRouter.
public VirtualRouterListener[] Listeners { get; set; }
Property Value
Remarks
Default: - A listener on HTTP port 8080
Mesh
VirtualRouterName
The name of the VirtualRouter.
public string VirtualRouterName { get; set; }
Property Value
System.String
Remarks
Default: - A name is automatically determined