aws-cdk-lib.aws_appmesh.VirtualRouterBaseProps

interface VirtualRouterBaseProps

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

Interface with base properties all routers willl inherit.

Example

declare const mesh: appmesh.Mesh;
const router = mesh.addVirtualRouter('router', {
  listeners: [appmesh.VirtualRouterListener.http(8080)],
});

Properties

NameTypeDescription
listeners?VirtualRouterListener[]Listener specification for the VirtualRouter.
virtualRouterName?stringThe name of the VirtualRouter.

listeners?

Type: VirtualRouterListener[] (optional, default: A listener on HTTP port 8080)

Listener specification for the VirtualRouter.


virtualRouterName?

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

The name of the VirtualRouter.