While the original question was for checking whether a specific VMware Cloud on AWS (VMC-A) cluster has the vSAN TRIIM/UNMAP feature enabled, the solutions below is applicable to any recent vSAN 7.x or 8.x deployment. There are two ways you check, either using the vSphere UI by selecting the cluster and navigating to Configure->vSAN->Services and expanding the Advanced Options tile or simply leveraging PowerCLI and the vSAN API to retrieve the exact same information.
vSphere UI
vSAN API using PowerCLI
$clusterName = "Cluster-1" $vsanConfigSystem = Get-VsanView -Id VsanVcClusterConfigSystem-vsan-cluster-config-system $clusterMoRef = (Get-Cluster $clusterName).ExtensionData.MoRef $vsanConfigSystem.VsanClusterGetConfig($clusterMoRef).unmapConfig
The feature doesn't seem to be available to change in VMC on AWS. The advanced options are greyed out even when logged on as *protected email* and UNMAP isn't even an option.
TRIM/UNMAP can be enabled in VMC-A, you just need to request it with your account team or file an SR (see https://docs.vmware.com/en/VMware-Cloud-on-AWS/services/com.vmware.vsphere.vmc-aws-manage-data-center-vms.doc/GUID-20ACA91A-CE51-4D39-9599-8B6229DF8BE5.html for more details)