asGroupOrNull

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.