aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty

interface GrpcGatewayRouteMatchProperty

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

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

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 grpcGatewayRouteMatchProperty: appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty = {
  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
hostname?IResolvable | GatewayRouteHostnameMatchPropertyThe gateway route host name to be matched on.
metadata?IResolvable | IResolvable | GrpcGatewayRouteMetadataProperty[]The gateway route metadata to be matched on.
port?numberThe gateway route port to be matched on.
serviceName?stringThe fully qualified domain name for the service to match from the request.

hostname?

Type: IResolvable | GatewayRouteHostnameMatchProperty (optional)

The gateway route host name to be matched on.


metadata?

Type: IResolvable | IResolvable | GrpcGatewayRouteMetadataProperty[] (optional)

The gateway route metadata to be matched on.


port?

Type: number (optional)

The gateway route port to be matched on.


serviceName?

Type: string (optional)

The fully qualified domain name for the service to match from the request.