interface GrpcRouteActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AppMesh.CfnRoutePropsMixin.GrpcRouteActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsappmesh#CfnRoutePropsMixin_GrpcRouteActionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.GrpcRouteActionProperty |
Python | aws_cdk.cfn_property_mixins.aws_appmesh.CfnRoutePropsMixin.GrpcRouteActionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_appmesh » 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 { aws_appmesh as appmesh } from '@aws-cdk/cfn-property-mixins';
const grpcRouteActionProperty: appmesh.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