Route

class aws_cdk.aws_appmesh.Route(scope, id, *, mesh, virtual_router, route_spec, route_name=None)

Bases: aws_cdk.core.Resource

(experimental) Route represents a new or existing route attached to a VirtualRouter and Mesh.

See

https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html

Stability

experimental

Parameters
  • scope (Construct) –

  • id (str) –

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

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

  • route_spec (RouteSpec) – (experimental) Protocol specific spec.

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

Stability

experimental

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

Return type

ResourceEnvironment

node

The construct tree node associated with this construct.

Return type

ConstructNode

route_arn

(experimental) The Amazon Resource Name (ARN) for the route.

Stability

experimental

Return type

str

route_name

(experimental) The name of the Route.

Stability

experimental

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack

virtual_router

(experimental) The VirtualRouter the Route belongs to.

Stability

experimental

Return type

IVirtualRouter

Static Methods

classmethod from_route_arn(scope, id, route_arn)

(experimental) Import an existing Route given an ARN.

Parameters
  • scope (Construct) –

  • id (str) –

  • route_arn (str) –

Stability

experimental

Return type

IRoute

classmethod from_route_attributes(scope, id, *, route_name, virtual_router)

(experimental) Import an existing Route given attributes.

Parameters
  • scope (Construct) –

  • id (str) –

  • route_name (str) – (experimental) The name of the Route.

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

Stability

experimental

Return type

IRoute

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool