RouteProps

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

Bases: aws_cdk.aws_appmesh.RouteBaseProps

Properties to define new Routes.

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

  • route_spec (RouteSpec) – Protocol specific spec.

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

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

Example:

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

# mesh is of type Mesh
# route_spec is of type RouteSpec
# virtual_router is of type 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.

Return type

IMesh

route_name

The name of the route.

Default
  • An automatically generated name

Return type

Optional[str]

route_spec

Protocol specific spec.

Return type

RouteSpec

virtual_router

The VirtualRouter the Route belongs to.

Return type

IVirtualRouter