interface HttpRouteActionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnRoute.HttpRouteActionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnRoute_HttpRouteActionProperty |
Java | software.amazon.awscdk.services.appmesh.CfnRoute.HttpRouteActionProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
weighted | IResolvable | IResolvable | Weighted [] | An object that represents the targets that traffic is routed to when a request matches the route. |
weightedTargets
Type:
IResolvable
|
IResolvable
|
Weighted
[]
An object that represents the targets that traffic is routed to when a request matches the route.