Interface IGrpcTimeout
Represents timeouts for GRPC protocols.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGrpcTimeout
Syntax (vb)
Public Interface IGrpcTimeout
Remarks
ExampleMetadata: infused
Examples
VirtualRouter router;
VirtualNode node;
router.AddRoute("route-http", new RouteBaseProps {
RouteSpec = RouteSpec.Grpc(new GrpcRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget {
VirtualNode = node
} },
Match = new GrpcRouteMatch {
ServiceName = "my-service.default.svc.cluster.local"
},
Timeout = new GrpcTimeout {
Idle = Duration.Seconds(2),
PerRequest = Duration.Seconds(1)
}
})
});
Synopsis
Properties
Idle | Represents an idle timeout. |
PerRequest | Represents per request timeout. |
Properties
Idle
Represents an idle timeout.
virtual Duration Idle { get; }
Property Value
Remarks
The amount of time that a connection may be idle.
Default: - none
PerRequest
Represents per request timeout.
virtual Duration PerRequest { get; }
Property Value
Remarks
Default: - 15 s