interface GrpcRouteActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnRoutePropsMixin.GrpcRouteActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnRoutePropsMixin_GrpcRouteActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnRoutePropsMixin.GrpcRouteActionProperty |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnRoutePropsMixin.GrpcRouteActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnRoutePropsMixin » 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 { mixins as appmesh_mixins } from '@aws-cdk/mixins-preview/aws-appmesh';
const grpcRouteActionProperty: appmesh_mixins.CfnRoutePropsMixin.GrpcRouteActionProperty = {
weightedTargets: [{
port: 123,
virtualNode: 'virtualNode',
weight: 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)[]
(optional)
An object that represents the targets that traffic is routed to when a request matches the route.

.NET
Go
Java
Python
TypeScript