MeshProps

class aws_cdk.aws_appmesh.MeshProps(*, egress_filter=None, mesh_name=None, service_discovery=None)

Bases: object

The set of properties used when creating a Mesh.

Parameters:
  • egress_filter (Optional[MeshFilterType]) – Egress filter to be applied to the Mesh. Default: DROP_ALL

  • mesh_name (Optional[str]) – The name of the Mesh being defined. Default: - A name is automatically generated

  • service_discovery (Union[MeshServiceDiscovery, Dict[str, Any], None]) – Defines how upstream clients will discover VirtualNodes in the Mesh. Default: - No Service Discovery

ExampleMetadata:

infused

Example:

# infra_stack: cdk.Stack
# app_stack: cdk.Stack


mesh = appmesh.Mesh(infra_stack, "AppMesh",
    mesh_name="myAwsMesh",
    egress_filter=appmesh.MeshFilterType.ALLOW_ALL
)

# the VirtualRouter will belong to 'appStack',
# even though the Mesh belongs to 'infraStack'
router = appmesh.VirtualRouter(app_stack, "router",
    mesh=mesh,  # notice that mesh is a required property when creating a router with the 'new' statement
    listeners=[appmesh.VirtualRouterListener.http(8081)]
)

Attributes

egress_filter

Egress filter to be applied to the Mesh.

Default:

DROP_ALL

mesh_name

The name of the Mesh being defined.

Default:
  • A name is automatically generated

service_discovery

Defines how upstream clients will discover VirtualNodes in the Mesh.

Default:
  • No Service Discovery