Enum UserContextModeForRetrieval

java.lang.Object
java.lang.Enum<UserContextModeForRetrieval>
software.amazon.awssdk.services.bedrockagent.model.UserContextModeForRetrieval
All Implemented Interfaces:
Serializable, Comparable<UserContextModeForRetrieval>

@Generated("software.amazon.awssdk:codegen") public enum UserContextModeForRetrieval extends Enum<UserContextModeForRetrieval>

Specifies the end-user identity that a knowledge base uses to filter retrieval results by document access controls. Valid values:

  • API_INPUT_ONLY – The knowledge base uses only the user context in the request. This is the default.

  • IDENTITY_ENHANCED_SESSION_ELSE_API_INPUT – The knowledge base uses the user identity from a trusted identity-enhanced session. If you also include a user context in the request, it must match the session identity. Otherwise, the request fails with a validation error. If you don't make the request with an identity-enhanced session, the knowledge base uses the user context in the request.

  • IDENTITY_ENHANCED_SESSION – The knowledge base uses only the user identity from a trusted identity-enhanced session and ignores any user context in the request.