-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cam): [121287135] `tencentcloud_cam_role_permission_boundary_atta…
…chment` fix code panic (#3026) * add * add
- Loading branch information
1 parent
91b8f2e
commit 210fd85
Showing
4 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
resource/tencentcloud_cam_role_permission_boundary_attachment: fix code panic | ||
``` |
35 changes: 30 additions & 5 deletions
35
tencentcloud/services/cam/resource_tc_cam_role_permission_boundary_attachment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,43 @@ | ||
Provides a resource to create a cam role_permission_boundary_attachment | ||
Provides a resource to create a CAM role permission boundary attachment | ||
|
||
Example Usage | ||
|
||
Use role_name | ||
|
||
```hcl | ||
resource "tencentcloud_cam_role_permission_boundary_attachment" "example" { | ||
policy_id = 1 | ||
role_name = "tf-example" | ||
} | ||
``` | ||
|
||
Use role_id | ||
|
||
```hcl | ||
resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { | ||
resource "tencentcloud_cam_role_permission_boundary_attachment" "example" { | ||
policy_id = 1 | ||
role_name = "test-cam-tag" | ||
role_id = "4611686018441060141" | ||
} | ||
``` | ||
|
||
Use all | ||
|
||
```hcl | ||
resource "tencentcloud_cam_role_permission_boundary_attachment" "example" { | ||
policy_id = 1 | ||
role_name = "tf-example" | ||
role_id = "4611686018441060141" | ||
} | ||
``` | ||
|
||
Import | ||
|
||
cam role_permission_boundary_attachment can be imported using the id, e.g. | ||
CAM role permission boundary attachment can be imported using the id, e.g. | ||
|
||
``` | ||
terraform import tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment role_permission_boundary_attachment_id | ||
terraform import tencentcloud_cam_role_permission_boundary_attachment.example 1##tf-example | ||
terraform import tencentcloud_cam_role_permission_boundary_attachment.example 1#4611686018441060141# | ||
terraform import tencentcloud_cam_role_permission_boundary_attachment.example 1#4611686018441060141#tf-example | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters