# RouteProps

Properties to define new Routes.

Extends: RouteProps
Extends: RouteBaseProps
Used as props by: Route

- Source: [`aws-appmesh/lib/route.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appmesh/lib/route.ts#L58)

## Example

```ts
// 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

- `mesh`: [IMesh](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.IMesh.html) (required) — The service mesh to define the route in.

- `routeName`: string — The name of the route.

  **Default:** An automatically generated name

- `routeSpec`: [RouteSpec](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.RouteSpec.html) (required) — Protocol specific spec.

- `virtualRouter`: [IVirtualRouter](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.IVirtualRouter.html) (required) — The VirtualRouter the Route belongs to.
