Skip to content

fix some errors when generate crossplane provider #2650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/services/ccn/resource_tc_ccn_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/ccn_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading