class VirtualRouterListener
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.VirtualRouterListener |
Java | software.amazon.awscdk.services.appmesh.VirtualRouterListener |
Python | aws_cdk.aws_appmesh.VirtualRouterListener |
TypeScript (source) | @aws-cdk/aws-appmesh » VirtualRouterListener |
Represents the properties needed to define listeners for a VirtualRouter.
Example
declare const mesh: appmesh.Mesh;
const router = mesh.addVirtualRouter('router', {
listeners: [appmesh.VirtualRouterListener.http(8080)],
});
Initializer
new VirtualRouterListener()
Methods
Name | Description |
---|---|
bind(scope) | Called when the VirtualRouterListener type is initialized. |
static grpc(port?) | Returns a GRPC Listener for a VirtualRouter. |
static http(port?) | Returns an HTTP Listener for a VirtualRouter. |
static http2(port?) | Returns an HTTP2 Listener for a VirtualRouter. |
static tcp(port?) | Returns a TCP Listener for a VirtualRouter. |
bind(scope)
public bind(scope: Construct): VirtualRouterListenerConfig
Parameters
- scope
Construct
Returns
Called when the VirtualRouterListener type is initialized.
Can be used to enforce mutual exclusivity
static grpc(port?)
public static grpc(port?: number): VirtualRouterListener
Parameters
- port
number
— the optional port of the listener, 8080 by default.
Returns
Returns a GRPC Listener for a VirtualRouter.
static http(port?)
public static http(port?: number): VirtualRouterListener
Parameters
- port
number
— the optional port of the listener, 8080 by default.
Returns
Returns an HTTP Listener for a VirtualRouter.
static http2(port?)
public static http2(port?: number): VirtualRouterListener
Parameters
- port
number
— the optional port of the listener, 8080 by default.
Returns
Returns an HTTP2 Listener for a VirtualRouter.
static tcp(port?)
public static tcp(port?: number): VirtualRouterListener
Parameters
- port
number
— the optional port of the listener, 8080 by default.
Returns
Returns a TCP Listener for a VirtualRouter.