A scenario by VMware in terraform

I read the following document of VMware:
add host
Now I want to implement it in terraform.
How can I do it?

Does the example of the distributed_virtual_switch resource lack steps from the VMWare guide?

https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/distributed_virtual_switch