RouteSpecHttpRouteRetryPolicy constructor

const RouteSpecHttpRouteRetryPolicy({
  1. Input<List<String>?>? httpRetryEvents,
  2. required Input<int> maxRetries,
  3. required Input<RouteSpecHttpRouteRetryPolicyPerRetryTimeout> perRetryTimeout,
  4. Input<List<String>?>? tcpRetryEvents,
})

Creates a new RouteSpecHttpRouteRetryPolicy. httpRetryEvents List of HTTP retry events. Valid values: client-error (HTTP status code 409), gateway-error (HTTP status codes 502, 503, and 504), server-error (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), stream-error (retry on refused stream). maxRetries Maximum number of retries. perRetryTimeout Per-retry timeout. See spec.http_route.retry_policy.per_retry_timeout Block for details. tcpRetryEvents List of TCP retry events. The only valid value is connection-error. You must specify at least one value for httpRetryEvents, or at least one value for tcpRetryEvents.

Implementation

const RouteSpecHttpRouteRetryPolicy({
  this.httpRetryEvents,
  required this.maxRetries,
  required this.perRetryTimeout,
  this.tcpRetryEvents,
});