IVirtualRouter

class aws_cdk.aws_appmesh.IVirtualRouter(*args, **kwargs)

Bases: aws_cdk.core.IResource, typing_extensions.Protocol

Interface which all VirtualRouter based classes MUST implement.

stability :stability: experimental

__init__(*args, **kwargs)

Methods

add_route(id, *, route_targets, prefix=None, route_name=None, route_type=None)

Add a single route to the router.

Parameters
  • id (str) –

  • route_targets (List[WeightedTargetProps]) – Array of weighted route targets.

  • prefix (Optional[str]) – The path prefix to match for the route. Default: “/” if http otherwise none

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

  • route_type (Optional[RouteType]) – Weather the route is HTTP based. Default: - HTTP if prefix is given, TCP otherwise

stability :stability: experimental

Return type

Route

Attributes

mesh

The service mesh that the virtual router resides in.

stability :stability: experimental

Return type

IMesh

node

The construct node in the tree.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

virtual_router_arn

The Amazon Resource Name (ARN) for the VirtualRouter.

stability :stability: experimental attribute: :attribute:: true

Return type

str

virtual_router_name

The name of the VirtualRouter.

stability :stability: experimental attribute: :attribute:: true

Return type

str