Class VirtualRouterListener
Represents the properties needed to define listeners for a VirtualRouter.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class VirtualRouterListener : DeputyBase
Syntax (vb)
Public MustInherit Class VirtualRouterListener
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
var router = mesh.AddVirtualRouter("router", new VirtualRouterBaseProps {
Listeners = new [] { VirtualRouterListener.Http(8080) }
});
Synopsis
Constructors
VirtualRouterListener() | |
VirtualRouterListener(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VirtualRouterListener(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Called when the VirtualRouterListener type is initialized. |
Grpc(Nullable<Double>) | Returns a GRPC Listener for a VirtualRouter. |
Http(Nullable<Double>) | Returns an HTTP Listener for a VirtualRouter. |
Http2(Nullable<Double>) | Returns an HTTP2 Listener for a VirtualRouter. |
Tcp(Nullable<Double>) | Returns a TCP Listener for a VirtualRouter. |
Constructors
VirtualRouterListener()
protected VirtualRouterListener()
VirtualRouterListener(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VirtualRouterListener(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VirtualRouterListener(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VirtualRouterListener(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
Called when the VirtualRouterListener type is initialized.
public abstract IVirtualRouterListenerConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns
Remarks
Can be used to enforce mutual exclusivity
Grpc(Nullable<Double>)
Returns a GRPC Listener for a VirtualRouter.
public static VirtualRouterListener Grpc(Nullable<double> port = null)
Parameters
- port System.Nullable<System.Double>
the optional port of the listener, 8080 by default.
Returns
Http(Nullable<Double>)
Returns an HTTP Listener for a VirtualRouter.
public static VirtualRouterListener Http(Nullable<double> port = null)
Parameters
- port System.Nullable<System.Double>
the optional port of the listener, 8080 by default.
Returns
Http2(Nullable<Double>)
Returns an HTTP2 Listener for a VirtualRouter.
public static VirtualRouterListener Http2(Nullable<double> port = null)
Parameters
- port System.Nullable<System.Double>
the optional port of the listener, 8080 by default.
Returns
Tcp(Nullable<Double>)
Returns a TCP Listener for a VirtualRouter.
public static VirtualRouterListener Tcp(Nullable<double> port = null)
Parameters
- port System.Nullable<System.Double>
the optional port of the listener, 8080 by default.
Returns