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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.appmesh.IVirtualRouter
IVirtualRouter.Jsii$Default, IVirtualRouter.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VirtualRouter
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
VirtualRouter
(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 IVirtualRouter
fromVirtualRouterArn
(software.constructs.Construct scope, String id, String virtualRouterArn) Import an existing VirtualRouter given an ARN.static IVirtualRouter
fromVirtualRouterAttributes
(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, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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:
addRoute
in interfaceIVirtualRouter
- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
getMesh
The Mesh which the VirtualRouter belongs to.- Specified by:
getMesh
in interfaceIVirtualRouter
-
getVirtualRouterArn
The Amazon Resource Name (ARN) for the VirtualRouter.- Specified by:
getVirtualRouterArn
in interfaceIVirtualRouter
-
getVirtualRouterName
The name of the VirtualRouter.- Specified by:
getVirtualRouterName
in interfaceIVirtualRouter
-