Class VirtualGatewayProps
Properties used when creating a new VirtualGateway.
Inheritance
System.Object
VirtualGatewayProps
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualGatewayProps : Object, IVirtualGatewayProps, IVirtualGatewayBaseProps
Syntax (vb)
Public Class VirtualGatewayProps
Inherits Object
Implements IVirtualGatewayProps, IVirtualGatewayBaseProps
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
VirtualGatewayProps() |
Properties
AccessLog | Access Logging Configuration for the VirtualGateway. |
BackendDefaults | Default Configuration Virtual Node uses to communicate with Virtual Service. |
Listeners | Listeners for the VirtualGateway. |
Mesh | The Mesh which the VirtualGateway belongs to. |
VirtualGatewayName | Name of the VirtualGateway. |
Constructors
VirtualGatewayProps()
public VirtualGatewayProps()
Properties
AccessLog
Access Logging Configuration for the VirtualGateway.
public AccessLog AccessLog { get; set; }
Property Value
Remarks
Default: - no access logging
BackendDefaults
Default Configuration Virtual Node uses to communicate with Virtual Service.
public IBackendDefaults BackendDefaults { get; set; }
Property Value
Remarks
Default: - No Config
Listeners
Listeners for the VirtualGateway.
public VirtualGatewayListener[] Listeners { get; set; }
Property Value
Remarks
Only one is supported.
Default: - Single HTTP listener on port 8080
Mesh
VirtualGatewayName
Name of the VirtualGateway.
public string VirtualGatewayName { get; set; }
Property Value
System.String
Remarks
Default: - A name is automatically determined