Unable to create cloud private nat on gcp using google_compute_router_nat

Description: type parameter is not working in the resource google_compute_router_nat

Reference : Terraform Registry

error : Error: Unsupported argument

│ on .terraform/modules/cloud-nat-test/cloud_nat.tf line 20, in resource “google_compute_router_nat” “cloud_nat”:
│ 20: type = “PRIVATE”

│ An argument named “type” is not expected here.

Terraform version : “6.4.0”
Can anyone help???