interface MeshProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.MeshProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#MeshProps |
![]() | software.amazon.awscdk.services.appmesh.MeshProps |
![]() | aws_cdk.aws_appmesh.MeshProps |
![]() | 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
Name | Type | Description |
---|---|---|
egress | Mesh | Egress filter to be applied to the Mesh. |
mesh | string | The name of the Mesh being defined. |
service | Mesh | Defines how upstream clients will discover VirtualNodes in the Mesh. |
egressFilter?
Type:
Mesh
(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:
Mesh
(optional, default: No Service Discovery)
Defines how upstream clients will discover VirtualNodes in the Mesh.