# GrpcGatewayRouteProperty

An object that represents a gRPC gateway route.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```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 grpcGatewayRouteProperty: appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty = {
  action: {
    target: {
      virtualService: {
        virtualServiceName: 'virtualServiceName',
      },

      // the properties below are optional
      port: 123,
    },

    // the properties below are optional
    rewrite: {
      hostname: {
        defaultTargetHostname: 'defaultTargetHostname',
      },
    },
  },
  match: {
    hostname: {
      exact: 'exact',
      suffix: 'suffix',
    },
    metadata: [{
      name: 'name',

      // the properties below are optional
      invert: false,
      match: {
        exact: 'exact',
        prefix: 'prefix',
        range: {
          end: 123,
          start: 123,
        },
        regex: 'regex',
        suffix: 'suffix',
      },
    }],
    port: 123,
    serviceName: 'serviceName',
  },
};
```

## Properties

- `action`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayRoute.GrpcGatewayRouteActionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty.html) (required) — An object that represents the action to take if a match is determined.

- `match`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayRoute.GrpcGatewayRouteMatchProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty.html) (required) — An object that represents the criteria for determining a request match.
