Skip to content

docs(tco): [117662850]fix doc #2656

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
May 27, 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
11 changes: 11 additions & 0 deletions .changelog/2656.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:enhancement
resource/tencentcloud_organization_org_manage_policy: Supplementary documentation
```

```release-note:enhancement
resource/tencentcloud_organization_org_manage_policy_config: Supplementary documentation
```

```release-note:enhancement
resource/tencentcloud_organization_org_manage_policy_target: Supplementary documentation
```
3 changes: 3 additions & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,9 @@ Tencent Cloud Organization (TCO)
tencentcloud_organization_org_member_email
tencentcloud_organization_org_member_auth_identity_attachment
tencentcloud_organization_org_member_policy_attachment
tencentcloud_organization_org_manage_policy
tencentcloud_organization_org_manage_policy_config
tencentcloud_organization_org_manage_policy_target
tencentcloud_organization_policy_sub_account_attachment
tencentcloud_organization_quit_organization_operation
tencentcloud_organization_org_share_unit
Expand Down
53 changes: 53 additions & 0 deletions website/docs/r/organization_org_manage_policy.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
subcategory: "Tencent Cloud Organization (TCO)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_organization_org_manage_policy"
sidebar_current: "docs-tencentcloud-resource-organization_org_manage_policy"
description: |-
Provides a resource to create a organization org_manage_policy
---

# tencentcloud_organization_org_manage_policy

Provides a resource to create a organization org_manage_policy

## Example Usage

```hcl
resource "tencentcloud_organization_org_manage_policy" "org_manage_policy" {
name = "FullAccessPolicy"
content = "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}"
type = "SERVICE_CONTROL_POLICY"
description = "Full access policy"
}
```

## Argument Reference

The following arguments are supported:

* `content` - (Required, String) Policy content. Refer to the CAM policy syntax.
* `name` - (Required, String) Policy name.
The length is 1~128 characters, which can include Chinese characters, English letters, numbers, and underscores.
* `description` - (Optional, String) Policy description.
* `type` - (Optional, String) Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
- `SERVICE_CONTROL_POLICY`: Service control policy.
- `TAG_POLICY`: Tag policy.

## Attributes Reference

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

* `id` - ID of the resource.
* `policy_id` - Policy Id.


## Import

organization org_manage_policy can be imported using the id, e.g.

```
terraform import tencentcloud_organization_org_manage_policy.org_manage_policy policy_id#type
```

48 changes: 48 additions & 0 deletions website/docs/r/organization_org_manage_policy_config.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
subcategory: "Tencent Cloud Organization (TCO)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_organization_org_manage_policy_config"
sidebar_current: "docs-tencentcloud-resource-organization_org_manage_policy_config"
description: |-
Provides a resource to create a organization org_manage_policy_config
---

# tencentcloud_organization_org_manage_policy_config

Provides a resource to create a organization org_manage_policy_config

## Example Usage

```hcl
resource "tencentcloud_organization_org_manage_policy_config" "org_manage_policy_config" {
organization_id = 80001
policy_type = "SERVICE_CONTROL_POLICY"
}
```

## Argument Reference

The following arguments are supported:

* `organization_id` - (Required, Int, ForceNew) Organization ID.
* `policy_type` - (Optional, String, ForceNew) Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
- `SERVICE_CONTROL_POLICY`: Service control policy.
- `TAG_POLICY`: Tag policy.

## Attributes Reference

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

* `id` - ID of the resource.



## Import

organization org_manage_policy_config can be imported using the id, e.g.

```
terraform import tencentcloud_organization_org_manage_policy_config.org_manage_policy_config organization_id#policy_type
```

55 changes: 55 additions & 0 deletions website/docs/r/organization_org_manage_policy_target.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
subcategory: "Tencent Cloud Organization (TCO)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_organization_org_manage_policy_target"
sidebar_current: "docs-tencentcloud-resource-organization_org_manage_policy_target"
description: |-
Provides a resource to create a organization org_manage_policy_target
---

# tencentcloud_organization_org_manage_policy_target

Provides a resource to create a organization org_manage_policy_target

## Example Usage

```hcl
resource "tencentcloud_organization_org_manage_policy_target" "org_manage_policy_target" {
target_id = 10001
target_type = "NODE"
policy_id = 100001
policy_type = "SERVICE_CONTROL_POLICY"
}
```

## Argument Reference

The following arguments are supported:

* `policy_id` - (Required, Int, ForceNew) Policy Id.
* `target_id` - (Required, Int, ForceNew) Binding target ID of the policy. Member Uin or Department ID.
* `target_type` - (Required, String, ForceNew) Target type.
Valid values:
- `NODE`: Department.
- `MEMBER`: Check Member.
* `policy_type` - (Optional, String, ForceNew) Policy type. Default value is SERVICE_CONTROL_POLICY.
Valid values:
- `SERVICE_CONTROL_POLICY`: Service control policy.
- `TAG_POLICY`: Tag policy.

## Attributes Reference

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

* `id` - ID of the resource.



## Import

organization org_manage_policy_target can be imported using the id, e.g.

```
terraform import tencentcloud_organization_org_manage_policy_target.org_manage_policy_target policy_type#policy_id#target_type#target_id
```

9 changes: 9 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4307,6 +4307,15 @@
<li>
<a href="/docs/providers/tencentcloud/r/organization_org_identity.html">tencentcloud_organization_org_identity</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/organization_org_manage_policy.html">tencentcloud_organization_org_manage_policy</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/organization_org_manage_policy_config.html">tencentcloud_organization_org_manage_policy_config</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/organization_org_manage_policy_target.html">tencentcloud_organization_org_manage_policy_target</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/organization_org_member.html">tencentcloud_organization_org_member</a>
</li>
Expand Down
Loading