diff --git a/docs/resources/identity_agency.md b/docs/resources/identity_agency.md index e622cd9578..4cb1be5fc3 100644 --- a/docs/resources/identity_agency.md +++ b/docs/resources/identity_agency.md @@ -34,8 +34,8 @@ resource "huaweicloud_identity_agency" "agency" { The following arguments are supported: -* `name` - (Required, String, String) The name of agency. The name is a string of 1 to 64 - characters. +* `name` - (Required, String, ForceNew) The name of agency. The name is a string of 1 to 64 + characters. Changing this will create a new agency. * `description` - (Optional, String) Provides supplementary information about the agency. The value is a string of 0 to 255 characters. diff --git a/huaweicloud/resource_huaweicloud_identity_agency.go b/huaweicloud/resource_huaweicloud_identity_agency.go index b4051f665a..271e5a0edb 100644 --- a/huaweicloud/resource_huaweicloud_identity_agency.go +++ b/huaweicloud/resource_huaweicloud_identity_agency.go @@ -43,6 +43,7 @@ func resourceIAMAgencyV3() *schema.Resource { "name": { Type: schema.TypeString, Required: true, + ForceNew: true, }, "delegated_domain_name": { Type: schema.TypeString,