aws-cdk-lib.aws_appmesh.CfnRoute.GrpcRouteActionProperty

interface GrpcRouteActionProperty

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

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

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 grpcRouteActionProperty: appmesh.CfnRoute.GrpcRouteActionProperty = {
  weightedTargets: [{
    virtualNode: 'virtualNode',
    weight: 123,

    // the properties below are optional
    port: 123,
  }],
};

Properties

NameTypeDescription
weightedTargetsIResolvable | IResolvable | WeightedTargetProperty[]An object that represents the targets that traffic is routed to when a request matches the route.

weightedTargets

Type: IResolvable | IResolvable | WeightedTargetProperty[]

An object that represents the targets that traffic is routed to when a request matches the route.