Skip to content

fix(cam): [120508682] Update doc #2987

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 2 commits into from
Dec 2, 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
7 changes: 7 additions & 0 deletions .changelog/2987.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:enhancement
datasource/tencentcloud_cam_sub_accounts: Update doc
```

```release-note:enhancement
datasource/tencentcloud_cam_role_detail: Update doc
```
2 changes: 2 additions & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ Cloud Access Management(CAM)
tencentcloud_cam_policy_granting_service_access
tencentcloud_cam_oidc_config
tencentcloud_cam_group_user_account
tencentcloud_cam_sub_accounts
tencentcloud_cam_role_detail

Resource
tencentcloud_cam_role
Expand Down
20 changes: 10 additions & 10 deletions tencentcloud/services/cam/data_source_tc_cam_role_detail.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions tencentcloud/services/cam/data_source_tc_cam_sub_accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions website/docs/d/cam_role_detail.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
subcategory: "Cloud Access Management(CAM)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_cam_role_detail"
sidebar_current: "docs-tencentcloud-datasource-cam_role_detail"
description: |-
Use this data source to query detailed information of cam role detail
---

# tencentcloud_cam_role_detail

Use this data source to query detailed information of cam role detail

## Example Usage

### Query cam role detail by role ID

```hcl
data "tencentcloud_cam_role_detail" "example" {
role_id = "4611686018441060141"
}
```

### Query cam role detail by role name

```hcl
data "tencentcloud_cam_role_detail" "example" {
role_name = "tf-example"
}
```

## Argument Reference

The following arguments are supported:

* `result_output_file` - (Optional, String) Used to save results.
* `role_id` - (Optional, String) Role ID, used to specify role. Input either `RoleId` or `RoleName`.
* `role_name` - (Optional, String) Role name, used to specify role. Input either `RoleId` or `RoleName`.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `role_info` - Role details.


35 changes: 35 additions & 0 deletions website/docs/d/cam_sub_accounts.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
subcategory: "Cloud Access Management(CAM)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_cam_sub_accounts"
sidebar_current: "docs-tencentcloud-datasource-cam_sub_accounts"
description: |-
Use this data source to query detailed information of cam sub accounts
---

# tencentcloud_cam_sub_accounts

Use this data source to query detailed information of cam sub accounts

## Example Usage

```hcl
data "tencentcloud_cam_sub_accounts" "example" {
filter_sub_account_uin = ["100037718139"]
}
```

## Argument Reference

The following arguments are supported:

* `filter_sub_account_uin` - (Required, Set: [`Int`]) List of sub-user UINs. Up to 50 UINs are supported.
* `result_output_file` - (Optional, String) Used to save results.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `sub_accounts` - Sub-user list.


6 changes: 6 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@
<li>
<a href="/docs/providers/tencentcloud/d/cam_policy_granting_service_access.html">tencentcloud_cam_policy_granting_service_access</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/d/cam_role_detail.html">tencentcloud_cam_role_detail</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/d/cam_role_policy_attachments.html">tencentcloud_cam_role_policy_attachments</a>
</li>
Expand All @@ -731,6 +734,9 @@
<li>
<a href="/docs/providers/tencentcloud/d/cam_secret_last_used_time.html">tencentcloud_cam_secret_last_used_time</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/d/cam_sub_accounts.html">tencentcloud_cam_sub_accounts</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/d/cam_user_policy_attachments.html">tencentcloud_cam_user_policy_attachments</a>
</li>
Expand Down
Loading