diff --git a/.changelog/2656.txt b/.changelog/2656.txt new file mode 100644 index 0000000000..83878f23a2 --- /dev/null +++ b/.changelog/2656.txt @@ -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 +``` diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index 29917bcc17..b2c449a082 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -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 diff --git a/website/docs/r/organization_org_manage_policy.html.markdown b/website/docs/r/organization_org_manage_policy.html.markdown new file mode 100644 index 0000000000..deec36fad3 --- /dev/null +++ b/website/docs/r/organization_org_manage_policy.html.markdown @@ -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 +``` + diff --git a/website/docs/r/organization_org_manage_policy_config.html.markdown b/website/docs/r/organization_org_manage_policy_config.html.markdown new file mode 100644 index 0000000000..236a47e89a --- /dev/null +++ b/website/docs/r/organization_org_manage_policy_config.html.markdown @@ -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 +``` + diff --git a/website/docs/r/organization_org_manage_policy_target.html.markdown b/website/docs/r/organization_org_manage_policy_target.html.markdown new file mode 100644 index 0000000000..5514c552f2 --- /dev/null +++ b/website/docs/r/organization_org_manage_policy_target.html.markdown @@ -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 +``` + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index ea1c13db37..421890cdba 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -4307,6 +4307,15 @@