Interface VirtualRouterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,VirtualRouterBaseProps
- All Known Implementing Classes:
VirtualRouterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:05.659Z")
@Stability(Stable)
public interface VirtualRouterProps
extends software.amazon.jsii.JsiiSerializable, VirtualRouterBaseProps
The properties used when creating a new VirtualRouter.
Example:
Stack infraStack;
Stack appStack;
Mesh mesh = Mesh.Builder.create(infraStack, "AppMesh")
.meshName("myAwsMesh")
.egressFilter(MeshFilterType.ALLOW_ALL)
.build();
// the VirtualRouter will belong to 'appStack',
// even though the Mesh belongs to 'infraStack'
VirtualRouter router = VirtualRouter.Builder.create(appStack, "router")
.mesh(mesh) // notice that mesh is a required property when creating a router with the 'new' statement
.listeners(List.of(VirtualRouterListener.http(8081)))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVirtualRouterPropsstatic final classAn implementation forVirtualRouterProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualRouterProps.Builderbuilder()getMesh()The Mesh which the VirtualRouter belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.appmesh.VirtualRouterBaseProps
getListeners, getVirtualRouterName
-
Method Details
-
getMesh
The Mesh which the VirtualRouter belongs to. -
builder
- Returns:
- a
VirtualRouterProps.BuilderofVirtualRouterProps
-