aws-cdk-lib.aws_appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty

interface GrpcGatewayRouteActionProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnGatewayRoute_GrpcGatewayRouteActionProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty
Pythonaws_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

NameTypeDescription
targetIResolvable | GatewayRouteTargetPropertyAn object that represents the target that traffic is routed to when a request matches the gateway route.
rewrite?IResolvable | GrpcGatewayRouteRewritePropertyThe gateway route action to rewrite.

target

Type: IResolvable | GatewayRouteTargetProperty

An object that represents the target that traffic is routed to when a request matches the gateway route.


rewrite?

Type: IResolvable | GrpcGatewayRouteRewriteProperty (optional)

The gateway route action to rewrite.