aws-cdk-lib.aws_appmesh.MeshProps

interface MeshProps

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.MeshProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#MeshProps
Javasoftware.amazon.awscdk.services.appmesh.MeshProps
Pythonaws_cdk.aws_appmesh.MeshProps
TypeScript (source)aws-cdk-lib » aws_appmesh » MeshProps

The set of properties used when creating a Mesh.

Example

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

NameTypeDescription
egressFilter?MeshFilterTypeEgress filter to be applied to the Mesh.
meshName?stringThe name of the Mesh being defined.
serviceDiscovery?MeshServiceDiscoveryDefines how upstream clients will discover VirtualNodes in the Mesh.

egressFilter?

Type: MeshFilterType (optional, default: DROP_ALL)

Egress filter to be applied to the Mesh.


meshName?

Type: string (optional, default: A name is automatically generated)

The name of the Mesh being defined.


serviceDiscovery?

Type: MeshServiceDiscovery (optional, default: No Service Discovery)

Defines how upstream clients will discover VirtualNodes in the Mesh.