Interface IHttpGatewayListenerOptions
Represents the properties needed to define HTTP Listeners for a VirtualGateway.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpGatewayListenerOptions
Syntax (vb)
Public Interface IHttpGatewayListenerOptions
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
var certificateAuthorityArn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012";
var gateway = new VirtualGateway(this, "gateway", new VirtualGatewayProps {
Mesh = mesh,
Listeners = new [] { VirtualGatewayListener.Http(new HttpGatewayListenerOptions {
Port = 443,
HealthCheck = HealthCheck.Http(new HttpHealthCheckOptions {
Interval = Duration.Seconds(10)
})
}) },
BackendDefaults = new BackendDefaults {
TlsClientPolicy = new TlsClientPolicy {
Ports = new [] { 8080, 8081 },
Validation = new TlsValidation {
Trust = TlsValidationTrust.Acm(new [] { CertificateAuthority.FromCertificateAuthorityArn(this, "certificate", certificateAuthorityArn) })
}
}
},
AccessLog = AccessLog.FromFilePath("/dev/stdout"),
VirtualGatewayName = "virtualGateway"
});
Synopsis
Properties
ConnectionPool | Connection pool for http listeners. |
HealthCheck | The health check information for the listener. |
Port | Port to listen for connections on. |
Tls | Represents the configuration for enabling TLS on a listener. |
Properties
ConnectionPool
Connection pool for http listeners.
virtual IHttpConnectionPool ConnectionPool { get; }
Property Value
Remarks
Default: - None
HealthCheck
The health check information for the listener.
virtual HealthCheck HealthCheck { get; }
Property Value
Remarks
Default: - no healthcheck
Port
Port to listen for connections on.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - 8080
Tls
Represents the configuration for enabling TLS on a listener.
virtual IListenerTlsOptions Tls { get; }
Property Value
Remarks
Default: - none