RouteProps

class aws_cdk.aws_appmesh.RouteProps(*, route_spec, route_name=None, mesh, virtual_router)

Bases: RouteBaseProps

Properties to define new Routes.

Parameters:
  • route_spec (RouteSpec) – Protocol specific spec.

  • route_name (Optional[str]) – The name of the route. Default: - An automatically generated name

  • mesh (IMesh) – The service mesh to define the route in.

  • virtual_router (IVirtualRouter) – The VirtualRouter the Route belongs to.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

# mesh: appmesh.Mesh
# route_spec: appmesh.RouteSpec
# virtual_router: appmesh.VirtualRouter

route_props = appmesh.RouteProps(
    mesh=mesh,
    route_spec=route_spec,
    virtual_router=virtual_router,

    # the properties below are optional
    route_name="routeName"
)

Attributes

mesh

The service mesh to define the route in.

route_name

The name of the route.

Default:
  • An automatically generated name

route_spec

Protocol specific spec.

virtual_router

The VirtualRouter the Route belongs to.