aws-cdk-lib.aws_appmesh.CfnRoute.HttpRouteActionProperty

interface HttpRouteActionProperty

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

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 httpRouteActionProperty: appmesh.CfnRoute.HttpRouteActionProperty = {
  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.