Struct aws_sdk_ecs::types::TimeoutConfiguration
source · #[non_exhaustive]pub struct TimeoutConfiguration {
pub idle_timeout_seconds: Option<i32>,
pub per_request_timeout_seconds: Option<i32>,
}
Expand description
An object that represents the timeout configurations for Service Connect.
If idleTimeout
is set to a time that is less than perRequestTimeout
, the connection will close when the idleTimeout
is reached and not the perRequestTimeout
.
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.idle_timeout_seconds: Option<i32>
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
per_request_timeout_seconds: Option<i32>
The amount of time waiting for the upstream to respond with a complete response per request. A value of 0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed for TCP
appProtocol
.
Implementations§
source§impl TimeoutConfiguration
impl TimeoutConfiguration
sourcepub fn idle_timeout_seconds(&self) -> Option<i32>
pub fn idle_timeout_seconds(&self) -> Option<i32>
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
sourcepub fn per_request_timeout_seconds(&self) -> Option<i32>
pub fn per_request_timeout_seconds(&self) -> Option<i32>
The amount of time waiting for the upstream to respond with a complete response per request. A value of 0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed for TCP
appProtocol
.
source§impl TimeoutConfiguration
impl TimeoutConfiguration
sourcepub fn builder() -> TimeoutConfigurationBuilder
pub fn builder() -> TimeoutConfigurationBuilder
Creates a new builder-style object to manufacture TimeoutConfiguration
.
Trait Implementations§
source§impl Clone for TimeoutConfiguration
impl Clone for TimeoutConfiguration
source§fn clone(&self) -> TimeoutConfiguration
fn clone(&self) -> TimeoutConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimeoutConfiguration
impl Debug for TimeoutConfiguration
source§impl PartialEq for TimeoutConfiguration
impl PartialEq for TimeoutConfiguration
source§fn eq(&self, other: &TimeoutConfiguration) -> bool
fn eq(&self, other: &TimeoutConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.