GrpcRetryEvent
- class aws_cdk.aws_appmesh.GrpcRetryEvent(value)
Bases:
Enum
gRPC events.
- ExampleMetadata:
infused
Example:
# router: appmesh.VirtualRouter # node: appmesh.VirtualNode router.add_route("route-grpc-retry", route_spec=appmesh.RouteSpec.grpc( weighted_targets=[appmesh.WeightedTarget(virtual_node=node)], match=appmesh.GrpcRouteMatch(service_name="servicename"), retry_policy=appmesh.GrpcRetryPolicy( tcp_retry_events=[appmesh.TcpRetryEvent.CONNECTION_ERROR], http_retry_events=[appmesh.HttpRetryEvent.GATEWAY_ERROR], # Retry if gRPC responds that the request was cancelled, a resource # was exhausted, or if the service is unavailable grpc_retry_events=[appmesh.GrpcRetryEvent.CANCELLED, appmesh.GrpcRetryEvent.RESOURCE_EXHAUSTED, appmesh.GrpcRetryEvent.UNAVAILABLE ], retry_attempts=5, retry_timeout=cdk.Duration.seconds(1) ) ) )
Attributes
- CANCELLED
Request was cancelled.
- DEADLINE_EXCEEDED
The deadline was exceeded.
- INTERNAL_ERROR
Internal error.
- RESOURCE_EXHAUSTED
A resource was exhausted.
- UNAVAILABLE
The service is unavailable.