Skip to content

Bedrock AgentCore Control  >  Structures  >  StickinessConfiguration

StickinessConfiguration

Structure Class

StickinessConfiguration dataclass

The configuration for session-sticky routing to a target. Session stickiness routes requests that share a session identifier to the same target.

Attributes

composite_identifier class-attribute instance-attribute
composite_identifier: list[str] | None = None

Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.

identifier instance-attribute
identifier: str

The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).

timeout class-attribute instance-attribute
timeout: int | None = None

The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.