# GatewayRouteAttributes

Interface with properties necessary to import a reusable GatewayRoute.

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

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

## 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 virtualGateway: appmesh.VirtualGateway;
const gatewayRouteAttributes: appmesh.GatewayRouteAttributes = {
  gatewayRouteName: 'gatewayRouteName',
  virtualGateway: virtualGateway,
};
```

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_gateway: appmesh.VirtualGateway

gateway_route_attributes = appmesh.GatewayRouteAttributes(
    gateway_route_name="gatewayRouteName",
    virtual_gateway=virtual_gateway
)
```

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

VirtualGateway virtualGateway;

GatewayRouteAttributes gatewayRouteAttributes = GatewayRouteAttributes.builder()
        .gatewayRouteName("gatewayRouteName")
        .virtualGateway(virtualGateway)
        .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;

VirtualGateway virtualGateway;

var gatewayRouteAttributes = new GatewayRouteAttributes {
    GatewayRouteName = "gatewayRouteName",
    VirtualGateway = virtualGateway
};
```

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 virtualGateway VirtualGateway

gatewayRouteAttributes := &GatewayRouteAttributes{
	GatewayRouteName: jsii.String("gatewayRouteName"),
	VirtualGateway: virtualGateway,
}
```

## Properties

- `gatewayRouteName`: string (required) — The name of the GatewayRoute.

- `virtualGateway`: [IVirtualGateway](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.IVirtualGateway.html) (required) — The VirtualGateway this GatewayRoute is associated with.
