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 Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appmesh.IRoute
IRoute.Jsii$Default, IRoute.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRoute(software.amazon.jsii.JsiiObjectRef objRef) Route(software.constructs.Construct scope, String id, RouteProps props) -
Method Summary
Modifier 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.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
Route
protected Route(software.amazon.jsii.JsiiObjectRef objRef) -
Route
protected 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.
-
getRouteArn
The Amazon Resource Name (ARN) for the route.- Specified by:
getRouteArnin interfaceIRoute
-
getRouteName
The name of the Route.- Specified by:
getRouteNamein interfaceIRoute
-
getVirtualRouter
The VirtualRouter the Route belongs to.- Specified by:
getVirtualRouterin interfaceIRoute
-