Awskit.TimeoutSourceRuntime timeout policy.
Runtime-neutral timeout policy.
Named timeout phases a runtime may enforce. `Operation is scoped to one runtime transport operation. For service calls that retry, the operation timer is applied independently to each attempt and does not include retry sleeps.
Timeout policy for runtime adapters. None means no timeout for that phase.
val create :
?connect:Ptime.Span.t ->
?attempt:Ptime.Span.t ->
?operation:Ptime.Span.t ->
?request_body:Ptime.Span.t ->
?response_body:Ptime.Span.t ->
?drain:Ptime.Span.t ->
unit ->
(policy, Error.t) resultBuild a timeout policy. Present spans must be positive.
val create_exn :
?connect:Ptime.Span.t ->
?attempt:Ptime.Span.t ->
?operation:Ptime.Span.t ->
?request_body:Ptime.Span.t ->
?response_body:Ptime.Span.t ->
?drain:Ptime.Span.t ->
unit ->
policyLike create, but raises Error.Awskit_error carrying the structured validation error on validation failure.
Conservative default policy. Currently enables connect and drain timeouts and leaves the other phases disabled.
Return the configured span for a phase.