Class MeshProps
The set of properties used when creating a Mesh.
Inheritance
System.Object
MeshProps
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MeshProps : Object, IMeshProps
Syntax (vb)
Public Class MeshProps
Inherits Object
Implements IMeshProps
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
MeshProps() |
Properties
EgressFilter | Egress filter to be applied to the Mesh. |
MeshName | The name of the Mesh being defined. |
ServiceDiscovery | Defines how upstream clients will discover VirtualNodes in the Mesh. |
Constructors
MeshProps()
public MeshProps()
Properties
EgressFilter
Egress filter to be applied to the Mesh.
public Nullable<MeshFilterType> EgressFilter { get; set; }
Property Value
System.Nullable<MeshFilterType>
Remarks
Default: DROP_ALL
MeshName
The name of the Mesh being defined.
public string MeshName { get; set; }
Property Value
System.String
Remarks
Default: - A name is automatically generated
ServiceDiscovery
Defines how upstream clients will discover VirtualNodes in the Mesh.
public IMeshServiceDiscovery ServiceDiscovery { get; set; }
Property Value
Remarks
Default: - No Service Discovery