Class CfnGatewayRoute.GrpcGatewayRouteActionProperty
An object that represents the action to take if a match is determined.
Inheritance
System.Object
CfnGatewayRoute.GrpcGatewayRouteActionProperty
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GrpcGatewayRouteActionProperty : Object, CfnGatewayRoute.IGrpcGatewayRouteActionProperty
Syntax (vb)
Public Class GrpcGatewayRouteActionProperty
Inherits Object
Implements CfnGatewayRoute.IGrpcGatewayRouteActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var grpcGatewayRouteActionProperty = new GrpcGatewayRouteActionProperty {
Target = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 123
},
// the properties below are optional
Rewrite = new GrpcGatewayRouteRewriteProperty {
Hostname = new GatewayRouteHostnameRewriteProperty {
DefaultTargetHostname = "defaultTargetHostname"
}
}
};
Synopsis
Constructors
GrpcGatewayRouteActionProperty() |
Properties
Rewrite | The gateway route action to rewrite. |
Target | An object that represents the target that traffic is routed to when a request matches the gateway route. |
Constructors
GrpcGatewayRouteActionProperty()
public GrpcGatewayRouteActionProperty()
Properties
Rewrite
The gateway route action to rewrite.
public object Rewrite { get; set; }
Property Value
System.Object
Remarks
Target
An object that represents the target that traffic is routed to when a request matches the gateway route.
public object Target { get; set; }
Property Value
System.Object