@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:04.489Z") public class Route extends Resource implements IRoute
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appmesh.*; Mesh mesh; RouteSpec routeSpec; VirtualRouter virtualRouter; Route route = Route.Builder.create(this, "MyRoute") .mesh(mesh) .routeSpec(routeSpec) .virtualRouter(virtualRouter) // the properties below are optional .routeName("routeName") .build();
https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html
Modifier and Type | Class and Description |
---|---|
static class |
Route.Builder
A fluent builder for
Route . |
IRoute.Jsii$Default, IRoute.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Route(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Route(software.amazon.jsii.JsiiObjectRef objRef) |
|
Route(software.constructs.Construct scope,
java.lang.String id,
RouteProps props) |
Modifier and Type | Method and Description |
---|---|
static IRoute |
fromRouteArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String routeArn)
Import an existing Route given an ARN.
|
static IRoute |
fromRouteAttributes(software.constructs.Construct scope,
java.lang.String id,
RouteAttributes attrs)
Import an existing Route given attributes.
|
java.lang.String |
getRouteArn()
The Amazon Resource Name (ARN) for the route.
|
java.lang.String |
getRouteName()
The name of the Route.
|
IVirtualRouter |
getVirtualRouter()
The VirtualRouter the Route belongs to.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected Route(software.amazon.jsii.JsiiObjectRef objRef)
protected Route(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Route(software.constructs.Construct scope, java.lang.String id, RouteProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IRoute fromRouteArn(software.constructs.Construct scope, java.lang.String id, java.lang.String routeArn)
scope
- This parameter is required.id
- This parameter is required.routeArn
- This parameter is required.public static IRoute fromRouteAttributes(software.constructs.Construct scope, java.lang.String id, RouteAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public java.lang.String getRouteArn()
getRouteArn
in interface IRoute
public java.lang.String getRouteName()
getRouteName
in interface IRoute
public IVirtualRouter getVirtualRouter()
getVirtualRouter
in interface IRoute