Class CfnGatewayRoute.HttpGatewayRouteActionProperty
An object that represents the action to take if a match is determined.
Inheritance
System.Object
CfnGatewayRoute.HttpGatewayRouteActionProperty
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpGatewayRouteActionProperty : Object, CfnGatewayRoute.IHttpGatewayRouteActionProperty
Syntax (vb)
Public Class HttpGatewayRouteActionProperty
Inherits Object
Implements CfnGatewayRoute.IHttpGatewayRouteActionProperty
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 httpGatewayRouteActionProperty = new HttpGatewayRouteActionProperty {
Target = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 123
},
// the properties below are optional
Rewrite = new HttpGatewayRouteRewriteProperty {
Hostname = new GatewayRouteHostnameRewriteProperty {
DefaultTargetHostname = "defaultTargetHostname"
},
Path = new HttpGatewayRoutePathRewriteProperty {
Exact = "exact"
},
Prefix = new HttpGatewayRoutePrefixRewriteProperty {
DefaultPrefix = "defaultPrefix",
Value = "value"
}
}
};
Synopsis
Constructors
HttpGatewayRouteActionProperty() |
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
HttpGatewayRouteActionProperty()
public HttpGatewayRouteActionProperty()
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