Show / Hide Table of Contents

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.

Duration? Idle { get; }
Property Value

Duration

Remarks

The amount of time that a connection may be idle.

Default: - none

PerRequest

Represents per request timeout.

Duration? PerRequest { get; }
Property Value

Duration

Remarks

Default: - 15 s

Back to top Generated by DocFX