Struct aws_sdk_appmesh::model::HttpRetryPolicy
source · [−]#[non_exhaustive]pub struct HttpRetryPolicy {
pub per_retry_timeout: Option<Duration>,
pub max_retries: Option<i64>,
pub http_retry_events: Option<Vec<String>>,
pub tcp_retry_events: Option<Vec<TcpRetryPolicyEvent>>,
}
Expand description
An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents
, a value for maxRetries
, and a value for perRetryTimeout
. Both server-error
and gateway-error
under httpRetryEvents
include the Envoy reset
policy. For more information on the reset
policy, see the Envoy documentation.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.per_retry_timeout: Option<Duration>
The timeout for each retry attempt.
max_retries: Option<i64>
The maximum number of retry attempts.
http_retry_events: Option<Vec<String>>
Specify at least one of the following values.
-
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
-
gateway-error – HTTP status codes 502, 503, and 504
-
client-error – HTTP status code 409
-
stream-error – Retry on refused stream
tcp_retry_events: Option<Vec<TcpRetryPolicyEvent>>
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
Implementations
The timeout for each retry attempt.
The maximum number of retry attempts.
Specify at least one of the following values.
-
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
-
gateway-error – HTTP status codes 502, 503, and 504
-
client-error – HTTP status code 409
-
stream-error – Retry on refused stream
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
Creates a new builder-style object to manufacture HttpRetryPolicy
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for HttpRetryPolicy
impl Send for HttpRetryPolicy
impl Sync for HttpRetryPolicy
impl Unpin for HttpRetryPolicy
impl UnwindSafe for HttpRetryPolicy
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more