Struct aws_sdk_cloudfront::types::SessionStickinessConfig
source · #[non_exhaustive]pub struct SessionStickinessConfig {
pub idle_ttl: i32,
pub maximum_ttl: i32,
}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.
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_ttl: i32The 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.
maximum_ttl: i32The 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 greater than or equal to IdleTTL.
Implementations§
source§impl SessionStickinessConfig
impl SessionStickinessConfig
sourcepub fn idle_ttl(&self) -> i32
pub fn idle_ttl(&self) -> 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) -> i32
pub fn maximum_ttl(&self) -> 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 greater than or equal to IdleTTL.
source§impl SessionStickinessConfig
impl SessionStickinessConfig
sourcepub fn builder() -> SessionStickinessConfigBuilder
pub fn builder() -> SessionStickinessConfigBuilder
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 for SessionStickinessConfig
impl PartialEq for SessionStickinessConfig
impl StructuralPartialEq for SessionStickinessConfig
Auto Trait Implementations§
impl Freeze for SessionStickinessConfig
impl RefUnwindSafe for SessionStickinessConfig
impl Send for SessionStickinessConfig
impl Sync for SessionStickinessConfig
impl Unpin for SessionStickinessConfig
impl UnwindSafe for SessionStickinessConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more