interface GrpcTimeout
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.GrpcTimeout |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#GrpcTimeout |
Java | software.amazon.awscdk.services.appmesh.GrpcTimeout |
Python | aws_cdk.aws_appmesh.GrpcTimeout |
TypeScript (source) | aws-cdk-lib » aws_appmesh » GrpcTimeout |
Represents timeouts for GRPC protocols.
Example
declare const router: appmesh.VirtualRouter;
declare const node: appmesh.VirtualNode;
router.addRoute('route-http', {
routeSpec: appmesh.RouteSpec.grpc({
weightedTargets: [
{
virtualNode: node,
},
],
match: {
serviceName: 'my-service.default.svc.cluster.local',
},
timeout: {
idle : Duration.seconds(2),
perRequest: Duration.seconds(1),
},
}),
});
Properties
Name | Type | Description |
---|---|---|
idle? | Duration | Represents an idle timeout. |
per | Duration | Represents per request timeout. |
idle?
Type:
Duration
(optional, default: none)
Represents an idle timeout.
The amount of time that a connection may be idle.
perRequest?
Type:
Duration
(optional, default: 15 s)
Represents per request timeout.