Class RouteBaseProps
Base interface properties for all Routes.
Inheritance
System.Object
RouteBaseProps
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RouteBaseProps : Object, IRouteBaseProps
Syntax (vb)
Public Class RouteBaseProps
Inherits Object
Implements IRouteBaseProps
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-http2-retry", new RouteBaseProps {
RouteSpec = RouteSpec.Http2(new HttpRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget { VirtualNode = node } },
RetryPolicy = new HttpRetryPolicy {
// Retry if the connection failed
TcpRetryEvents = new [] { TcpRetryEvent.CONNECTION_ERROR },
// Retry if HTTP responds with a gateway error (502, 503, 504)
HttpRetryEvents = new [] { HttpRetryEvent.GATEWAY_ERROR },
// Retry five times
RetryAttempts = 5,
// Use a 1 second timeout per retry
RetryTimeout = Duration.Seconds(1)
}
})
});
Synopsis
Constructors
RouteBaseProps() |
Properties
RouteName | The name of the route. |
RouteSpec | Protocol specific spec. |
Constructors
RouteBaseProps()
public RouteBaseProps()
Properties
RouteName
The name of the route.
public string RouteName { get; set; }
Property Value
System.String
Remarks
Default: - An automatically generated name