SubscriptionPrincipal

A user or group in the IAM Identity Center instance connected to the Amazon Q Business application.

Inheritors

Types

Link copied to clipboard
data class Group(val value: String) : SubscriptionPrincipal

The identifier of a group in the IAM Identity Center instance connected to the Amazon Q Business application.

Link copied to clipboard
Link copied to clipboard
data class User(val value: String) : SubscriptionPrincipal

The identifier of a user in the IAM Identity Center instance connected to the Amazon Q Business application.

Functions

Link copied to clipboard

Casts this SubscriptionPrincipal as a Group and retrieves its kotlin.String value. Throws an exception if the SubscriptionPrincipal is not a Group.

Link copied to clipboard

Casts this SubscriptionPrincipal as a Group and retrieves its kotlin.String value. Returns null if the SubscriptionPrincipal is not a Group.

Link copied to clipboard
fun asUser(): String

Casts this SubscriptionPrincipal as a User and retrieves its kotlin.String value. Throws an exception if the SubscriptionPrincipal is not a User.

Link copied to clipboard

Casts this SubscriptionPrincipal as a User and retrieves its kotlin.String value. Returns null if the SubscriptionPrincipal is not a User.