aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty

interface GrpcGatewayRouteProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnGatewayRoute.GrpcGatewayRouteProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnGatewayRoute_GrpcGatewayRouteProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty
Pythonaws_cdk.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty
TypeScript aws-cdk-lib » aws_appmesh » CfnGatewayRoute » GrpcGatewayRouteProperty

An object that represents a gRPC gateway route.

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

NameTypeDescription
actionIResolvable | GrpcGatewayRouteActionPropertyAn object that represents the action to take if a match is determined.
matchIResolvable | GrpcGatewayRouteMatchPropertyAn object that represents the criteria for determining a request match.

action

Type: IResolvable | GrpcGatewayRouteActionProperty

An object that represents the action to take if a match is determined.


match

Type: IResolvable | GrpcGatewayRouteMatchProperty

An object that represents the criteria for determining a request match.