@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.591Z") @Stability(value=Stable) public class VirtualService extends Resource implements IVirtualService
It routes traffic either to a Virtual Node or to a Virtual Router.
Example:
// Example automatically generated from non-compiling source. May contain errors.
Mesh mesh;
VirtualNode node = VirtualNode.Builder.create(this, "node")
.mesh(mesh)
.serviceDiscovery(ServiceDiscovery.dns("node"))
.build();
VirtualService virtualService = VirtualService.Builder.create(this, "service-1")
.virtualServiceProvider(VirtualServiceProvider.virtualNode(node))
.virtualServiceName("service1.domain.local")
.build();
node.addBackend(Backend.virtualService(virtualService));
| Modifier and Type | Class and Description |
|---|---|
static class |
VirtualService.Builder
A fluent builder for
VirtualService. |
software.amazon.jsii.JsiiObject.InitializationModeIVirtualService.Jsii$Default, IVirtualService.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
VirtualService(software.constructs.Construct scope,
String id,
VirtualServiceProps props) |
protected |
VirtualService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VirtualService(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IVirtualService |
fromVirtualServiceArn(software.constructs.Construct scope,
String id,
String virtualServiceArn)
Import an existing VirtualService given an ARN.
|
static IVirtualService |
fromVirtualServiceAttributes(software.constructs.Construct scope,
String id,
VirtualServiceAttributes attrs)
Import an existing VirtualService given its attributes.
|
IMesh |
getMesh()
The Mesh which the VirtualService belongs to.
|
String |
getVirtualServiceArn()
The Amazon Resource Name (ARN) for the virtual service.
|
String |
getVirtualServiceName()
The name of the VirtualService, it is recommended this follows the fully-qualified domain name format.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected VirtualService(software.amazon.jsii.JsiiObjectRef objRef)
protected VirtualService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public VirtualService(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
VirtualServiceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IVirtualService fromVirtualServiceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String virtualServiceArn)
scope - This parameter is required.id - This parameter is required.virtualServiceArn - This parameter is required.@Stability(value=Stable) @NotNull public static IVirtualService fromVirtualServiceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualServiceAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Stable) @NotNull public IMesh getMesh()
getMesh in interface IVirtualService@Stability(value=Stable) @NotNull public String getVirtualServiceArn()
getVirtualServiceArn in interface IVirtualService@Stability(value=Stable) @NotNull public String getVirtualServiceName()
getVirtualServiceName in interface IVirtualServiceCopyright © 2022. All rights reserved.