aws-cdk-lib.aws_appmesh.RouteProps

interface RouteProps

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

Properties to define new Routes.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';

declare const mesh: appmesh.Mesh;
declare const routeSpec: appmesh.RouteSpec;
declare const virtualRouter: appmesh.VirtualRouter;
const routeProps: appmesh.RouteProps = {
  mesh: mesh,
  routeSpec: routeSpec,
  virtualRouter: virtualRouter,

  // the properties below are optional
  routeName: 'routeName',
};

Properties

NameTypeDescription
meshIMeshThe service mesh to define the route in.
routeSpecRouteSpecProtocol specific spec.
virtualRouterIVirtualRouterThe VirtualRouter the Route belongs to.
routeName?stringThe name of the route.

mesh

Type: IMesh

The service mesh to define the route in.


routeSpec

Type: RouteSpec

Protocol specific spec.


virtualRouter

Type: IVirtualRouter

The VirtualRouter the Route belongs to.


routeName?

Type: string (optional, default: An automatically generated name)

The name of the route.