# VirtualRouterAttributes

Interface with properties ncecessary to import a reusable VirtualRouter.

Used as argument in: [VirtualRouter.fromVirtualRouterAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.VirtualRouter.html#fromvirtualrouterattributes)

- Source: [`aws-appmesh/lib/virtual-router.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appmesh/lib/virtual-router.ts#L209)

## 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';

declare const mesh: appmesh.Mesh;
const virtualRouterAttributes: appmesh.VirtualRouterAttributes = {
  mesh: mesh,
  virtualRouterName: 'virtualRouterName',
};
```

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

# mesh: appmesh.Mesh

virtual_router_attributes = appmesh.VirtualRouterAttributes(
    mesh=mesh,
    virtual_router_name="virtualRouterName"
)
```

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.*;

Mesh mesh;

VirtualRouterAttributes virtualRouterAttributes = VirtualRouterAttributes.builder()
        .mesh(mesh)
        .virtualRouterName("virtualRouterName")
        .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;

Mesh mesh;

var virtualRouterAttributes = new VirtualRouterAttributes {
    Mesh = mesh,
    VirtualRouterName = "virtualRouterName"
};
```

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"

var mesh Mesh

virtualRouterAttributes := &VirtualRouterAttributes{
	Mesh: mesh,
	VirtualRouterName: jsii.String("virtualRouterName"),
}
```

## Properties

- `mesh`: [IMesh](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.IMesh.html) (required) — The Mesh which the VirtualRouter belongs to.

- `virtualRouterName`: string (required) — The name of the VirtualRouter.
