diff --git a/tencentcloud/services/cam/resource_tc_cam_policy_by_name.go b/tencentcloud/services/cam/resource_tc_cam_policy_by_name.go index 3a36edcb1a..e3895692cb 100644 --- a/tencentcloud/services/cam/resource_tc_cam_policy_by_name.go +++ b/tencentcloud/services/cam/resource_tc_cam_policy_by_name.go @@ -182,6 +182,7 @@ func resourceTencentCloudCamPolicyByNameRead(d *schema.ResourceData, meta interf return err } if len(policies) == 0 { + d.SetId("") return nil } var instance *cam.GetPolicyResponse diff --git a/tencentcloud/services/ccn/resource_tc_ccn_attachment.go b/tencentcloud/services/ccn/resource_tc_ccn_attachment.go index cf4bf8a83e..e22078a089 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_attachment.go +++ b/tencentcloud/services/ccn/resource_tc_ccn_attachment.go @@ -60,7 +60,7 @@ func ResourceTencentCloudCcnAttachment() *schema.Resource { Optional: true, ForceNew: true, Computed: true, - Description: "Uin of the ccn attached. Default is ``, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.", + Description: "Uin of the ccn attached. If not set, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.", }, // Computed values "state": { diff --git a/website/docs/r/ccn_attachment.html.markdown b/website/docs/r/ccn_attachment.html.markdown index 4807a9bf6a..b961143d7d 100644 --- a/website/docs/r/ccn_attachment.html.markdown +++ b/website/docs/r/ccn_attachment.html.markdown @@ -63,7 +63,7 @@ The following arguments are supported: * `instance_id` - (Required, String, ForceNew) ID of instance is attached. * `instance_region` - (Required, String, ForceNew) The region that the instance locates at. * `instance_type` - (Required, String, ForceNew) Type of attached instance network, and available values include `VPC`, `DIRECTCONNECT`, `BMVPC` and `VPNGW`. Note: `VPNGW` type is only for whitelist customer now. -* `ccn_uin` - (Optional, String, ForceNew) Uin of the ccn attached. Default is ``, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`. +* `ccn_uin` - (Optional, String, ForceNew) Uin of the ccn attached. If not set, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`. * `description` - (Optional, String) Remark of attachment. ## Attributes Reference