asCreateEnvironmentProfile
Casts this PolicyGrantDetail as a CreateEnvironmentProfile and retrieves its aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail value. Throws an exception if the PolicyGrantDetail is not a CreateEnvironmentProfile.