aws-cdk-lib.aws_appmesh.CfnRoute.GrpcRouteMatchProperty

interface GrpcRouteMatchProperty

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

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 grpcRouteMatchProperty: appmesh.CfnRoute.GrpcRouteMatchProperty = {
  metadata: [{
    name: 'name',

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

Properties

NameTypeDescription
metadata?IResolvable | IResolvable | GrpcRouteMetadataProperty[]An object that represents the data to match from the request.
methodName?stringThe method name to match from the request.
port?numberThe port number to match on.
serviceName?stringThe fully qualified domain name for the service to match from the request.

metadata?

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

An object that represents the data to match from the request.


methodName?

Type: string (optional)

The method name to match from the request.

If you specify a name, you must also specify a serviceName .


port?

Type: number (optional)

The port number to match on.


serviceName?

Type: string (optional)

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