Interface IGrpcVirtualNodeListenerOptions
Represent the GRPC Node Listener property.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGrpcVirtualNodeListenerOptions
Syntax (vb)
Public Interface IGrpcVirtualNodeListenerOptions
Remarks
ExampleMetadata: infused
Examples
// A Virtual Node with listener TLS from an ACM provided certificate
Certificate cert;
Mesh mesh;
var node = new VirtualNode(this, "node", new VirtualNodeProps {
Mesh = mesh,
ServiceDiscovery = ServiceDiscovery.Dns("node"),
Listeners = new [] { VirtualNodeListener.Grpc(new GrpcVirtualNodeListenerOptions {
Port = 80,
Tls = new ListenerTlsOptions {
Mode = TlsMode.STRICT,
Certificate = TlsCertificate.Acm(cert)
}
}) }
});
// A Virtual Gateway with listener TLS from a customer provided file certificate
var gateway = new VirtualGateway(this, "gateway", new VirtualGatewayProps {
Mesh = mesh,
Listeners = new [] { VirtualGatewayListener.Grpc(new GrpcGatewayListenerOptions {
Port = 8080,
Tls = new ListenerTlsOptions {
Mode = TlsMode.STRICT,
Certificate = TlsCertificate.File("path/to/certChain", "path/to/privateKey")
}
}) },
VirtualGatewayName = "gateway"
});
// A Virtual Gateway with listener TLS from a SDS provided certificate
var gateway2 = new VirtualGateway(this, "gateway2", new VirtualGatewayProps {
Mesh = mesh,
Listeners = new [] { VirtualGatewayListener.Http2(new Http2GatewayListenerOptions {
Port = 8080,
Tls = new ListenerTlsOptions {
Mode = TlsMode.STRICT,
Certificate = TlsCertificate.Sds("secrete_certificate")
}
}) },
VirtualGatewayName = "gateway2"
});
Synopsis
Properties
| ConnectionPool | Connection pool for http listeners. |
| HealthCheck | The health check information for the listener. |
| OutlierDetection | Represents the configuration for enabling outlier detection. |
| Port | Port to listen for connections on. |
| Timeout | Timeout for GRPC protocol. |
| Tls | Represents the configuration for enabling TLS on a listener. |
Properties
ConnectionPool
Connection pool for http listeners.
IGrpcConnectionPool? ConnectionPool { get; }
Property Value
Remarks
Default: - None
HealthCheck
The health check information for the listener.
HealthCheck? HealthCheck { get; }
Property Value
Remarks
Default: - no healthcheck
OutlierDetection
Represents the configuration for enabling outlier detection.
IOutlierDetection? OutlierDetection { get; }
Property Value
Remarks
Default: - none
Port
Port to listen for connections on.
double? Port { get; }
Property Value
Remarks
Default: - 8080
Timeout
Timeout for GRPC protocol.
IGrpcTimeout? Timeout { get; }
Property Value
Remarks
Default: - None
Tls
Represents the configuration for enabling TLS on a listener.
IListenerTlsOptions? Tls { get; }
Property Value
Remarks
Default: - none