# VirtualRouterListenerProperty

An object that represents a virtual router listener.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const virtualRouterListenerProperty: appmesh.CfnVirtualRouter.VirtualRouterListenerProperty = {
  portMapping: {
    port: 123,
    protocol: 'protocol',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

virtual_router_listener_property = appmesh.CfnVirtualRouter.VirtualRouterListenerProperty(
    port_mapping=appmesh.CfnVirtualRouter.PortMappingProperty(
        port=123,
        protocol="protocol"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

VirtualRouterListenerProperty virtualRouterListenerProperty = VirtualRouterListenerProperty.builder()
        .portMapping(PortMappingProperty.builder()
                .port(123)
                .protocol("protocol")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var virtualRouterListenerProperty = new VirtualRouterListenerProperty {
    PortMapping = new PortMappingProperty {
        Port = 123,
        Protocol = "protocol"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

virtualRouterListenerProperty := &VirtualRouterListenerProperty{
	PortMapping: &PortMappingProperty{
		Port: jsii.Number(123),
		Protocol: jsii.String("protocol"),
	},
}
```

## Properties

- `portMapping`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualRouter.PortMappingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualRouter.PortMappingProperty.html) (required) — The port mapping information for the listener.
