Class VirtualGatewayListener
Represents the properties needed to define listeners for a VirtualGateway.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class VirtualGatewayListener : DeputyBase
Syntax (vb)
Public MustInherit Class VirtualGatewayListener
Inherits DeputyBase
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
Constructors
Virtual |
|
Virtual |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Virtual |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Called when the GatewayListener type is initialized. |
Grpc(IGrpc |
Returns a GRPC Listener for a VirtualGateway. |
Http(IHttp |
Returns an HTTP Listener for a VirtualGateway. |
Http2(IHttp2Gateway |
Returns an HTTP2 Listener for a VirtualGateway. |
Constructors
VirtualGatewayListener()
protected VirtualGatewayListener()
VirtualGatewayListener(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VirtualGatewayListener(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
VirtualGatewayListener(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VirtualGatewayListener(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
Bind(Construct)
Called when the GatewayListener type is initialized.
public abstract IVirtualGatewayListenerConfig Bind(Construct scope)
Parameters
- scope Constructs.
Construct
Returns
Remarks
Can be used to enforce mutual exclusivity
Grpc(IGrpcGatewayListenerOptions)
Returns a GRPC Listener for a VirtualGateway.
public static VirtualGatewayListener Grpc(IGrpcGatewayListenerOptions options = null)
Parameters
- options IGrpc
Gateway Listener Options
Returns
Http(IHttpGatewayListenerOptions)
Returns an HTTP Listener for a VirtualGateway.
public static VirtualGatewayListener Http(IHttpGatewayListenerOptions options = null)
Parameters
- options IHttp
Gateway Listener Options
Returns
Http2(IHttp2GatewayListenerOptions)
Returns an HTTP2 Listener for a VirtualGateway.
public static VirtualGatewayListener Http2(IHttp2GatewayListenerOptions options = null)
Parameters
- options IHttp2Gateway
Listener Options
Returns