# RouteAttributes

Interface with properties ncecessary to import a reusable Route.

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

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

## 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 virtualRouter: appmesh.VirtualRouter;
const routeAttributes: appmesh.RouteAttributes = {
  routeName: 'routeName',
  virtualRouter: virtualRouter,
};
```

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: appmesh.VirtualRouter

route_attributes = appmesh.RouteAttributes(
    route_name="routeName",
    virtual_router=virtual_router
)
```

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

VirtualRouter virtualRouter;

RouteAttributes routeAttributes = RouteAttributes.builder()
        .routeName("routeName")
        .virtualRouter(virtualRouter)
        .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;

VirtualRouter virtualRouter;

var routeAttributes = new RouteAttributes {
    RouteName = "routeName",
    VirtualRouter = virtualRouter
};
```

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 virtualRouter VirtualRouter

routeAttributes := &RouteAttributes{
	RouteName: jsii.String("routeName"),
	VirtualRouter: virtualRouter,
}
```

## Properties

- `routeName`: string (required) — The name of the Route.

- `virtualRouter`: [IVirtualRouter](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.IVirtualRouter.html) (required) — The VirtualRouter the Route belongs to.
