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.94.0 (build b380f01)", date="2024-03-14T22:21:50.222Z") @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:
  • 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

      @Stability(Stable) @NotNull public String getRouteArn()
      The Amazon Resource Name (ARN) for the route.
      Specified by:
      getRouteArn in interface IRoute
    • getRouteName

      @Stability(Stable) @NotNull public String getRouteName()
      The name of the Route.
      Specified by:
      getRouteName in interface IRoute
    • getVirtualRouter

      @Stability(Stable) @NotNull public IVirtualRouter getVirtualRouter()
      The VirtualRouter the Route belongs to.
      Specified by:
      getVirtualRouter in interface IRoute