aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GatewayRouteSpecProperty

interface GatewayRouteSpecProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnGatewayRoute.GatewayRouteSpecProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnGatewayRoute_GatewayRouteSpecProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnGatewayRoute.GatewayRouteSpecProperty
Pythonaws_cdk.aws_appmesh.CfnGatewayRoute.GatewayRouteSpecProperty
TypeScript aws-cdk-lib » 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 { aws_appmesh as appmesh } from 'aws-cdk-lib';
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

NameTypeDescription
grpcRoute?IResolvable | GrpcGatewayRoutePropertyAn object that represents the specification of a gRPC gateway route.
http2Route?IResolvable | HttpGatewayRoutePropertyAn object that represents the specification of an HTTP/2 gateway route.
httpRoute?IResolvable | HttpGatewayRoutePropertyAn object that represents the specification of an HTTP gateway route.
priority?numberThe ordering of the gateway routes spec.

grpcRoute?

Type: IResolvable | GrpcGatewayRouteProperty (optional)

An object that represents the specification of a gRPC gateway route.


http2Route?

Type: IResolvable | HttpGatewayRouteProperty (optional)

An object that represents the specification of an HTTP/2 gateway route.


httpRoute?

Type: IResolvable | HttpGatewayRouteProperty (optional)

An object that represents the specification of an HTTP gateway route.


priority?

Type: number (optional)

The ordering of the gateway routes spec.