From fa648bb566e6bef7a9caa219ddb823816d84d6ea Mon Sep 17 00:00:00 2001 From: Wmxs <54929266+WeiMengXS@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:35:16 +0800 Subject: [PATCH] feat: add resource tencentcloud_organization_org_share_unit --- tencentcloud/provider.md | 1 + ...zation_org_share_unit_member.html.markdown | 58 +++++++++++++++++++ website/tencentcloud.erb | 3 + 3 files changed, 62 insertions(+) create mode 100644 website/docs/r/organization_org_share_unit_member.html.markdown diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index c0cb638884..1c04606d3a 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -1641,6 +1641,7 @@ Tencent Cloud Organization (TCO) tencentcloud_organization_policy_sub_account_attachment tencentcloud_organization_quit_organization_operation tencentcloud_organization_org_share_unit + tencentcloud_organization_org_share_unit_member TDSQL-C for PostgreSQL(TDCPG) Data Source diff --git a/website/docs/r/organization_org_share_unit_member.html.markdown b/website/docs/r/organization_org_share_unit_member.html.markdown new file mode 100644 index 0000000000..70a3a61693 --- /dev/null +++ b/website/docs/r/organization_org_share_unit_member.html.markdown @@ -0,0 +1,58 @@ +--- +subcategory: "Tencent Cloud Organization (TCO)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_organization_org_share_unit_member" +sidebar_current: "docs-tencentcloud-resource-organization_org_share_unit_member" +description: |- + Provides a resource to create a organization org_share_unit_member +--- + +# tencentcloud_organization_org_share_unit_member + +Provides a resource to create a organization org_share_unit_member + +## Example Usage + +```hcl +resource "tencentcloud_organization_org_share_unit" "org_share_unit" { + name = "iac-test" + area = "ap-guangzhou" + description = "iac-test" +} +resource "tencentcloud_organization_org_share_unit_member" "org_share_unit_member" { + unit_id = tencentcloud_organization_org_share_unit.org_share_unit.unit_id + area = tencentcloud_organization_org_share_unit.org_share_unit.area + members { + share_member_uin = 100035309479 + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `area` - (Required, String, ForceNew) Shared unit region. +* `members` - (Required, List, ForceNew) Shared member list. Up to 10 items. +* `unit_id` - (Required, String, ForceNew) Shared unit ID. + +The `members` object supports the following: + +* `share_member_uin` - (Required, Int) Member uin. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +organization org_share_unit_member can be imported using the id, e.g. + +``` +terraform import tencentcloud_organization_org_share_unit_member.org_share_unit_member org_share_unit_member_id +``` + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index cc5176b6d9..4441878196 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -4299,6 +4299,9 @@