Skip to content

Commit dc39eef

Browse files
authored
feat/private_dns (#2310)
* feat/private_dns * feat/private_dns
1 parent c11aac7 commit dc39eef

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.changelog/2310.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_private_dns_zone_vpc_attachment: Update Field Properties
3+
```
4+
5+
```release-note:enhancement
6+
resource/tencentcloud_private_dns_zone: Update Field Properties
7+
```

tencentcloud/resource_tc_private_dns_zone.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ func resourceTencentCloudPrivateDnsZone() *schema.Resource {
126126
"vpc_set": {
127127
Type: schema.TypeList,
128128
Optional: true,
129+
Computed: true,
129130
Description: "Associates the private domain to a VPC when it is created.",
130131
Elem: &schema.Resource{
131132
Schema: map[string]*schema.Schema{

tencentcloud/resource_tc_private_dns_zone_vpc_attachment.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ func resourceTencentCloudPrivateDnsZoneVpcAttachment() *schema.Resource {
9898
"uniq_vpc_id": {
9999
Type: schema.TypeString,
100100
Required: true,
101+
ForceNew: true,
101102
Description: "Uniq Vpc Id.",
102103
},
103104
"region": {
104105
Type: schema.TypeString,
105106
Required: true,
107+
ForceNew: true,
106108
Description: "Vpc region.",
107109
},
108110
},
@@ -120,16 +122,19 @@ func resourceTencentCloudPrivateDnsZoneVpcAttachment() *schema.Resource {
120122
"uniq_vpc_id": {
121123
Type: schema.TypeString,
122124
Required: true,
125+
ForceNew: true,
123126
Description: "Uniq Vpc Id.",
124127
},
125128
"region": {
126129
Type: schema.TypeString,
127130
Required: true,
131+
ForceNew: true,
128132
Description: "Vpc region.",
129133
},
130134
"uin": {
131135
Type: schema.TypeString,
132136
Required: true,
137+
ForceNew: true,
133138
Description: "Vpc owner uin. To grant role authorization to this account.",
134139
},
135140
},

website/docs/r/private_dns_zone_vpc_attachment.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ The following arguments are supported:
6969

7070
The `account_vpc_set` object supports the following:
7171

72-
* `region` - (Required, String) Vpc region.
73-
* `uin` - (Required, String) Vpc owner uin. To grant role authorization to this account.
74-
* `uniq_vpc_id` - (Required, String) Uniq Vpc Id.
72+
* `region` - (Required, String, ForceNew) Vpc region.
73+
* `uin` - (Required, String, ForceNew) Vpc owner uin. To grant role authorization to this account.
74+
* `uniq_vpc_id` - (Required, String, ForceNew) Uniq Vpc Id.
7575

7676
The `vpc_set` object supports the following:
7777

78-
* `region` - (Required, String) Vpc region.
79-
* `uniq_vpc_id` - (Required, String) Uniq Vpc Id.
78+
* `region` - (Required, String, ForceNew) Vpc region.
79+
* `uniq_vpc_id` - (Required, String, ForceNew) Uniq Vpc Id.
8080

8181
## Attributes Reference
8282

0 commit comments

Comments
 (0)