asCreateEnvironmentProfileOrNull
Casts this PolicyGrantDetail as a CreateEnvironmentProfile and retrieves its aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail value. Returns null if the PolicyGrantDetail is not a CreateEnvironmentProfile.