interface GatewayRouteSpecProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.AppMesh.CfnGatewayRoute.GatewayRouteSpecProperty | 
|  Java | software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteSpecProperty | 
|  Python | aws_cdk.aws_appmesh.CfnGatewayRoute.GatewayRouteSpecProperty | 
|  TypeScript | @aws-cdk/aws-appmesh»CfnGatewayRoute»GatewayRouteSpecProperty | 
An object that represents a gateway route specification.
Specify one gateway route type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appmesh from '@aws-cdk/aws-appmesh';
const gatewayRouteSpecProperty: appmesh.CfnGatewayRoute.GatewayRouteSpecProperty = {
  grpcRoute: {
    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',
    },
  },
  http2Route: {
    action: {
      target: {
        virtualService: {
          virtualServiceName: 'virtualServiceName',
        },
        // the properties below are optional
        port: 123,
      },
      // the properties below are optional
      rewrite: {
        hostname: {
          defaultTargetHostname: 'defaultTargetHostname',
        },
        path: {
          exact: 'exact',
        },
        prefix: {
          defaultPrefix: 'defaultPrefix',
          value: 'value',
        },
      },
    },
    match: {
      headers: [{
        name: 'name',
        // the properties below are optional
        invert: false,
        match: {
          exact: 'exact',
          prefix: 'prefix',
          range: {
            end: 123,
            start: 123,
          },
          regex: 'regex',
          suffix: 'suffix',
        },
      }],
      hostname: {
        exact: 'exact',
        suffix: 'suffix',
      },
      method: 'method',
      path: {
        exact: 'exact',
        regex: 'regex',
      },
      port: 123,
      prefix: 'prefix',
      queryParameters: [{
        name: 'name',
        // the properties below are optional
        match: {
          exact: 'exact',
        },
      }],
    },
  },
  httpRoute: {
    action: {
      target: {
        virtualService: {
          virtualServiceName: 'virtualServiceName',
        },
        // the properties below are optional
        port: 123,
      },
      // the properties below are optional
      rewrite: {
        hostname: {
          defaultTargetHostname: 'defaultTargetHostname',
        },
        path: {
          exact: 'exact',
        },
        prefix: {
          defaultPrefix: 'defaultPrefix',
          value: 'value',
        },
      },
    },
    match: {
      headers: [{
        name: 'name',
        // the properties below are optional
        invert: false,
        match: {
          exact: 'exact',
          prefix: 'prefix',
          range: {
            end: 123,
            start: 123,
          },
          regex: 'regex',
          suffix: 'suffix',
        },
      }],
      hostname: {
        exact: 'exact',
        suffix: 'suffix',
      },
      method: 'method',
      path: {
        exact: 'exact',
        regex: 'regex',
      },
      port: 123,
      prefix: 'prefix',
      queryParameters: [{
        name: 'name',
        // the properties below are optional
        match: {
          exact: 'exact',
        },
      }],
    },
  },
  priority: 123,
};
Properties
| Name | Type | Description | 
|---|---|---|
| grpc | IResolvable | Grpc | An object that represents the specification of a gRPC gateway route. | 
| http2 | IResolvable | Http | An object that represents the specification of an HTTP/2 gateway route. | 
| http | IResolvable | Http | An object that represents the specification of an HTTP gateway route. | 
| priority? | number | The ordering of the gateway routes spec. | 
grpcRoute?
Type:
IResolvable | Grpc
(optional)
An object that represents the specification of a gRPC gateway route.
http2Route?
Type:
IResolvable | Http
(optional)
An object that represents the specification of an HTTP/2 gateway route.
httpRoute?
Type:
IResolvable | Http
(optional)
An object that represents the specification of an HTTP gateway route.
priority?
Type:
number
(optional)
The ordering of the gateway routes spec.
