AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::AppMesh::Route

CfnRoute

Creates a route that is associated with a virtual router. You can route several different protocols and define a retry policy for a route. Traffic can be routed to one or more virtual nodes. For more information about routes, see [Routes](https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html) .

Import

import { CfnRoute } from 'aws-cdk-lib/aws-appmesh';

Or use the module namespace:

import * as appmesh from 'aws-cdk-lib/aws-appmesh';
// appmesh.CfnRoute

Properties

Configuration passed to the constructor as CfnRouteProps.

meshNameRequired
string

The name of the service mesh to create the route in.

specRequired
IResolvable | RouteSpecProperty

The route specification to apply.

virtualRouterNameRequired
string

The name of the virtual router in which to create the route. If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.

meshOwnerOptional
string

The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see [Working with shared meshes](https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html) .

routeNameOptional
string

The name to use for the route.

tagsOptional
CfnTag[]

Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-appmesh
CFN TypeAWS::AppMesh::Route
Properties6

External Links