Struct aws_sdk_cloudfront::model::SessionStickinessConfig
source · #[non_exhaustive]pub struct SessionStickinessConfig { /* private fields */ }
Expand description
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
Implementations§
source§impl SessionStickinessConfig
impl SessionStickinessConfig
sourcepub fn idle_ttl(&self) -> Option<i32>
pub fn idle_ttl(&self) -> Option<i32>
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
sourcepub fn maximum_ttl(&self) -> Option<i32>
pub fn maximum_ttl(&self) -> Option<i32>
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to IdleTTL
.
source§impl SessionStickinessConfig
impl SessionStickinessConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SessionStickinessConfig
.
Trait Implementations§
source§impl Clone for SessionStickinessConfig
impl Clone for SessionStickinessConfig
source§fn clone(&self) -> SessionStickinessConfig
fn clone(&self) -> SessionStickinessConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionStickinessConfig
impl Debug for SessionStickinessConfig
source§impl PartialEq<SessionStickinessConfig> for SessionStickinessConfig
impl PartialEq<SessionStickinessConfig> for SessionStickinessConfig
source§fn eq(&self, other: &SessionStickinessConfig) -> bool
fn eq(&self, other: &SessionStickinessConfig) -> bool
self
and other
values to be equal, and is used
by ==
.