asUser

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.