Show / Hide Table of Contents

Class VirtualRouterProps

The properties used when creating a new VirtualRouter.

Inheritance
object
VirtualRouterProps
Implements
IVirtualRouterProps
IVirtualRouterBaseProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualRouterProps : IVirtualRouterProps, IVirtualRouterBaseProps
Syntax (vb)
Public Class VirtualRouterProps 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()

The properties used when creating a new VirtualRouter.

Properties

Listeners

Listener specification for the VirtualRouter.

Mesh

The Mesh which the VirtualRouter belongs to.

VirtualRouterName

The name of the VirtualRouter.

Constructors

VirtualRouterProps()

The properties used when creating a new VirtualRouter.

public VirtualRouterProps()
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) }
            });

Properties

Listeners

Listener specification for the VirtualRouter.

public VirtualRouterListener[]? Listeners { get; set; }
Property Value

VirtualRouterListener[]

Remarks

Default: - A listener on HTTP port 8080

Mesh

The Mesh which the VirtualRouter belongs to.

public IMesh Mesh { get; set; }
Property Value

IMesh

Remarks

ExampleMetadata: infused

VirtualRouterName

The name of the VirtualRouter.

public string? VirtualRouterName { get; set; }
Property Value

string

Remarks

Default: - A name is automatically determined

Implements

IVirtualRouterProps
IVirtualRouterBaseProps
Back to top Generated by DocFX