Class Route
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appmesh.Route
- All Implemented Interfaces:
- IResource,- IRoute,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:32.370Z")
@Stability(Stable)
public class Route
extends Resource
implements IRoute
Route represents a new or existing route attached to a VirtualRouter and Mesh.
 
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();
 - See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResourceIResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appmesh.IRouteIRoute.Jsii$Default, IRoute.Jsii$Proxy
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRoute(software.amazon.jsii.JsiiObjectRef objRef) Route(software.constructs.Construct scope, String id, RouteProps props) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic IRoutefromRouteArn(software.constructs.Construct scope, String id, String routeArn) Import an existing Route given an ARN.static IRoutefromRouteAttributes(software.constructs.Construct scope, String id, RouteAttributes attrs) Import an existing Route given attributes.The Amazon Resource Name (ARN) for the route.The name of the Route.The VirtualRouter the Route belongs to.Methods inherited from class software.amazon.awscdk.ResourceapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.ConstructgetNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.awscdk.IResourceapplyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
PROPERTY_INJECTION_IDUniquely identifies this class.
 
- 
- 
Constructor Details- 
Routeprotected Route(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Routeprotected Route(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
Route@Stability(Stable) public Route(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RouteProps props) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- props- This parameter is required.
 
 
- 
- 
Method Details- 
fromRouteArn@Stability(Stable) @NotNull public static IRoute fromRouteArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String routeArn) Import an existing Route given an ARN.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- routeArn- This parameter is required.
 
- 
fromRouteAttributes@Stability(Stable) @NotNull public static IRoute fromRouteAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RouteAttributes attrs) Import an existing Route given attributes.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- attrs- This parameter is required.
 
- 
getRouteArnThe Amazon Resource Name (ARN) for the route.- Specified by:
- getRouteArnin interface- IRoute
 
- 
getRouteNameThe name of the Route.- Specified by:
- getRouteNamein interface- IRoute
 
- 
getVirtualRouterThe VirtualRouter the Route belongs to.- Specified by:
- getVirtualRouterin interface- IRoute
 
 
-