interface GrpcGatewayRouteActionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnGatewayRoute_GrpcGatewayRouteActionProperty |
Java | software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty |
Python | aws_cdk.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty |
TypeScript | aws-cdk-lib » aws_appmesh » CfnGatewayRoute » GrpcGatewayRouteActionProperty |
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 grpcGatewayRouteActionProperty: appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty = {
target: {
virtualService: {
virtualServiceName: 'virtualServiceName',
},
// the properties below are optional
port: 123,
},
// the properties below are optional
rewrite: {
hostname: {
defaultTargetHostname: 'defaultTargetHostname',
},
},
};
Properties
Name | Type | Description |
---|---|---|
target | IResolvable | Gateway | An object that represents the target that traffic is routed to when a request matches the gateway route. |
rewrite? | IResolvable | Grpc | The gateway route action to rewrite. |
target
Type:
IResolvable
|
Gateway
An object that represents the target that traffic is routed to when a request matches the gateway route.
rewrite?
Type:
IResolvable
|
Grpc
(optional)
The gateway route action to rewrite.