diff --git a/.changelog/2555.txt b/.changelog/2555.txt new file mode 100644 index 0000000000..5f26a7e56f --- /dev/null +++ b/.changelog/2555.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_private_dns_zone: Add ForceNew attribute to domain parameter. +``` \ No newline at end of file diff --git a/tencentcloud/services/privatedns/resource_tc_private_dns_zone.go b/tencentcloud/services/privatedns/resource_tc_private_dns_zone.go index 53f0b66baf..3c19b63176 100644 --- a/tencentcloud/services/privatedns/resource_tc_private_dns_zone.go +++ b/tencentcloud/services/privatedns/resource_tc_private_dns_zone.go @@ -29,6 +29,7 @@ func ResourceTencentCloudPrivateDnsZone() *schema.Resource { "domain": { Type: schema.TypeString, Required: true, + ForceNew: true, Description: "Domain name, which must be in the format of standard TLD.", }, "tag_set": { diff --git a/website/docs/r/private_dns_zone.html.markdown b/website/docs/r/private_dns_zone.html.markdown index 94f06bad4a..7c9b89f7bf 100644 --- a/website/docs/r/private_dns_zone.html.markdown +++ b/website/docs/r/private_dns_zone.html.markdown @@ -71,7 +71,7 @@ resource "tencentcloud_private_dns_zone" "example" { The following arguments are supported: -* `domain` - (Required, String) Domain name, which must be in the format of standard TLD. +* `domain` - (Required, String, ForceNew) Domain name, which must be in the format of standard TLD. * `account_vpc_set` - (Optional, List) List of authorized accounts' VPCs to associate with the private domain. * `cname_speedup_status` - (Optional, String) CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED. * `dns_forward_status` - (Optional, String) Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.