@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.579Z") @Stability(value=Stable) public class VirtualGateway extends Resource implements IVirtualGateway
A virtual gateway allows resources that are outside of your mesh to communicate to resources that are inside of your mesh.
Example:
// Example automatically generated from non-compiling source. May contain errors.
// A Virtual Node with a gRPC listener with a connection pool set
Mesh mesh;
VirtualNode node = VirtualNode.Builder.create(this, "node")
.mesh(mesh)
// DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS.
// LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints,
// whereas ENDPOINTS means that the DNS resolver is returning all the endpoints.
// By default, the response type is assumed to be LOAD_BALANCER
.serviceDiscovery(ServiceDiscovery.dns("node", DnsResponseType.ENDPOINTS))
.listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder()
.port(80)
.connectionPool(HttpConnectionPool.builder()
.maxConnections(100)
.maxPendingRequests(10)
.build())
.build())))
.build();
// A Virtual Gateway with a gRPC listener with a connection pool set
VirtualGateway gateway = VirtualGateway.Builder.create(this, "gateway")
.mesh(mesh)
.listeners(List.of(VirtualGatewayListener.grpc(GrpcGatewayListenerOptions.builder()
.port(8080)
.connectionPool(GrpcConnectionPool.builder()
.maxRequests(10)
.build())
.build())))
.virtualGatewayName("gateway")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
VirtualGateway.Builder
A fluent builder for
VirtualGateway. |
software.amazon.jsii.JsiiObject.InitializationModeIVirtualGateway.Jsii$Default, IVirtualGateway.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
VirtualGateway(software.constructs.Construct scope,
String id,
VirtualGatewayProps props) |
protected |
VirtualGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
VirtualGateway(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
GatewayRoute |
addGatewayRoute(String id,
GatewayRouteBaseProps props)
Utility method to add a new GatewayRoute to the VirtualGateway.
|
static IVirtualGateway |
fromVirtualGatewayArn(software.constructs.Construct scope,
String id,
String virtualGatewayArn)
Import an existing VirtualGateway given an ARN.
|
static IVirtualGateway |
fromVirtualGatewayAttributes(software.constructs.Construct scope,
String id,
VirtualGatewayAttributes attrs)
Import an existing VirtualGateway given its attributes.
|
protected List<VirtualGatewayListenerConfig> |
getListeners() |
IMesh |
getMesh()
The Mesh that the VirtualGateway belongs to.
|
String |
getVirtualGatewayArn()
The Amazon Resource Name (ARN) for the VirtualGateway.
|
String |
getVirtualGatewayName()
The name of the VirtualGateway.
|
Grant |
grantStreamAggregatedResources(IGrantable identity)
Grants the given entity `appmesh:StreamAggregatedResources`.
|
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 VirtualGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected VirtualGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public VirtualGateway(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
VirtualGatewayProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IVirtualGateway fromVirtualGatewayArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String virtualGatewayArn)
scope - This parameter is required.id - This parameter is required.virtualGatewayArn - This parameter is required.@Stability(value=Stable) @NotNull public static IVirtualGateway fromVirtualGatewayAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VirtualGatewayAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Stable) @NotNull public GatewayRoute addGatewayRoute(@NotNull String id, @NotNull GatewayRouteBaseProps props)
addGatewayRoute in interface IVirtualGatewayid - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public Grant grantStreamAggregatedResources(@NotNull IGrantable identity)
grantStreamAggregatedResources in interface IVirtualGatewayidentity - This parameter is required.@Stability(value=Stable) @NotNull protected List<VirtualGatewayListenerConfig> getListeners()
@Stability(value=Stable) @NotNull public IMesh getMesh()
getMesh in interface IVirtualGateway@Stability(value=Stable) @NotNull public String getVirtualGatewayArn()
getVirtualGatewayArn in interface IVirtualGateway@Stability(value=Stable) @NotNull public String getVirtualGatewayName()
getVirtualGatewayName in interface IVirtualGatewayCopyright © 2022. All rights reserved.