Principal

sealed class Principal

Provides user and group information used for filtering documents to use for generating Amazon Q conversation responses.

Inheritors

Types

Link copied to clipboard
data class Group(val value: PrincipalGroup) : Principal

The group associated with the principal.

Link copied to clipboard
Link copied to clipboard
data class User(val value: PrincipalUser) : Principal

The user associated with the principal.

Functions

Link copied to clipboard

Casts this Principal as a Group and retrieves its aws.sdk.kotlin.services.qbusiness.model.PrincipalGroup value. Throws an exception if the Principal is not a Group.

Link copied to clipboard

Casts this Principal as a Group and retrieves its aws.sdk.kotlin.services.qbusiness.model.PrincipalGroup value. Returns null if the Principal is not a Group.

Link copied to clipboard

Casts this Principal as a User and retrieves its aws.sdk.kotlin.services.qbusiness.model.PrincipalUser value. Throws an exception if the Principal is not a User.

Link copied to clipboard

Casts this Principal as a User and retrieves its aws.sdk.kotlin.services.qbusiness.model.PrincipalUser value. Returns null if the Principal is not a User.