Genesyscloud_security_data_masking_rule apply fails with 400

How should I properly to define masking_type in HCL for PII fields? Terraform v1.5.0 throws Error: 400 Bad Request: Invalid masking configuration during plan apply. Using genesyscloud provider v1.38.0 in ap-southeast-2. HCL snippet attached.

If you check the docs, they mention the masking type must align with the field’s data classification.

  1. Verify the masking_type matches the supported enum values in the provider schema.
  2. Ensure the target field is explicitly marked as PII in the configuration.

A scope mismatch often triggers this 400 error.