Class VirtualRouter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.appmesh.VirtualRouter
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IVirtualRouter,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.193Z")
@Stability(Stable)
public class VirtualRouter
extends Resource
implements IVirtualRouter
Example:
Mesh mesh;
VirtualRouter router = mesh.addVirtualRouter("router", VirtualRouterBaseProps.builder()
.listeners(List.of(VirtualRouterListener.http(8080)))
.build());
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appmesh.IVirtualRouter
IVirtualRouter.Jsii$Default, IVirtualRouter.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVirtualRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedVirtualRouter(software.amazon.jsii.JsiiObjectRef objRef) VirtualRouter(software.constructs.Construct scope, String id, VirtualRouterProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddRoute(String id, RouteBaseProps props) Add a single route to the router.static IVirtualRouterfromVirtualRouterArn(software.constructs.Construct scope, String id, String virtualRouterArn) Import an existing VirtualRouter given an ARN.static IVirtualRouterfromVirtualRouterAttributes(software.constructs.Construct scope, String id, VirtualRouterAttributes attrs) Import an existing VirtualRouter given attributes.getMesh()The Mesh which the VirtualRouter belongs to.The Amazon Resource Name (ARN) for the VirtualRouter.The name of the VirtualRouter.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
VirtualRouter
protected VirtualRouter(software.amazon.jsii.JsiiObjectRef objRef) -
VirtualRouter
protected VirtualRouter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
VirtualRouter
@Stability(Stable) public VirtualRouter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualRouterProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromVirtualRouterArn
@Stability(Stable) @NotNull public static IVirtualRouter fromVirtualRouterArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String virtualRouterArn) Import an existing VirtualRouter given an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.virtualRouterArn- This parameter is required.
-
fromVirtualRouterAttributes
@Stability(Stable) @NotNull public static IVirtualRouter fromVirtualRouterAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualRouterAttributes attrs) Import an existing VirtualRouter given attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addRoute
@Stability(Stable) @NotNull public Route addRoute(@NotNull String id, @NotNull RouteBaseProps props) Add a single route to the router.- Specified by:
addRoutein interfaceIVirtualRouter- Parameters:
id- This parameter is required.props- This parameter is required.
-
getMesh
The Mesh which the VirtualRouter belongs to.- Specified by:
getMeshin interfaceIVirtualRouter
-
getVirtualRouterArn
The Amazon Resource Name (ARN) for the VirtualRouter.- Specified by:
getVirtualRouterArnin interfaceIVirtualRouter
-
getVirtualRouterName
The name of the VirtualRouter.- Specified by:
getVirtualRouterNamein interfaceIVirtualRouter
-