1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationOrgShareUnitResource
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.OrganizationOrgShareUnitResource

Explore with Pulumi AI

Provides a resource to create a organization organization_org_share_unit_resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const organizationOrgShareUnitResource = new tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", {
    area: "ap-guangzhou",
    productResourceId: "xxxxxx",
    type: "secret",
    unitId: "xxxxxx",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

organization_org_share_unit_resource = tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource",
    area="ap-guangzhou",
    product_resource_id="xxxxxx",
    type="secret",
    unit_id="xxxxxx")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewOrganizationOrgShareUnitResource(ctx, "organizationOrgShareUnitResource", &tencentcloud.OrganizationOrgShareUnitResourceArgs{
			Area:              pulumi.String("ap-guangzhou"),
			ProductResourceId: pulumi.String("xxxxxx"),
			Type:              pulumi.String("secret"),
			UnitId:            pulumi.String("xxxxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var organizationOrgShareUnitResource = new Tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", new()
    {
        Area = "ap-guangzhou",
        ProductResourceId = "xxxxxx",
        Type = "secret",
        UnitId = "xxxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgShareUnitResource;
import com.pulumi.tencentcloud.OrganizationOrgShareUnitResourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var organizationOrgShareUnitResource = new OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", OrganizationOrgShareUnitResourceArgs.builder()
            .area("ap-guangzhou")
            .productResourceId("xxxxxx")
            .type("secret")
            .unitId("xxxxxx")
            .build());

    }
}
Copy
resources:
  organizationOrgShareUnitResource:
    type: tencentcloud:OrganizationOrgShareUnitResource
    properties:
      area: ap-guangzhou
      productResourceId: xxxxxx
      type: secret
      unitId: xxxxxx
Copy

Create OrganizationOrgShareUnitResource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OrganizationOrgShareUnitResource(name: string, args: OrganizationOrgShareUnitResourceArgs, opts?: CustomResourceOptions);
@overload
def OrganizationOrgShareUnitResource(resource_name: str,
                                     args: OrganizationOrgShareUnitResourceArgs,
                                     opts: Optional[ResourceOptions] = None)

@overload
def OrganizationOrgShareUnitResource(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     area: Optional[str] = None,
                                     product_resource_id: Optional[str] = None,
                                     type: Optional[str] = None,
                                     unit_id: Optional[str] = None,
                                     organization_org_share_unit_resource_id: Optional[str] = None)
func NewOrganizationOrgShareUnitResource(ctx *Context, name string, args OrganizationOrgShareUnitResourceArgs, opts ...ResourceOption) (*OrganizationOrgShareUnitResource, error)
public OrganizationOrgShareUnitResource(string name, OrganizationOrgShareUnitResourceArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgShareUnitResource(String name, OrganizationOrgShareUnitResourceArgs args)
public OrganizationOrgShareUnitResource(String name, OrganizationOrgShareUnitResourceArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgShareUnitResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgShareUnitResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationOrgShareUnitResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgShareUnitResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationOrgShareUnitResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationOrgShareUnitResourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

OrganizationOrgShareUnitResource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The OrganizationOrgShareUnitResource resource accepts the following input properties:

Area This property is required. string
Shared unit area.
ProductResourceId This property is required. string
Product Resource ID.
Type This property is required. string
Shared resource type.
UnitId This property is required. string
Shared unit ID.
OrganizationOrgShareUnitResourceId string
ID of the resource.
Area This property is required. string
Shared unit area.
ProductResourceId This property is required. string
Product Resource ID.
Type This property is required. string
Shared resource type.
UnitId This property is required. string
Shared unit ID.
OrganizationOrgShareUnitResourceId string
ID of the resource.
area This property is required. String
Shared unit area.
productResourceId This property is required. String
Product Resource ID.
type This property is required. String
Shared resource type.
unitId This property is required. String
Shared unit ID.
organizationOrgShareUnitResourceId String
ID of the resource.
area This property is required. string
Shared unit area.
productResourceId This property is required. string
Product Resource ID.
type This property is required. string
Shared resource type.
unitId This property is required. string
Shared unit ID.
organizationOrgShareUnitResourceId string
ID of the resource.
area This property is required. str
Shared unit area.
product_resource_id This property is required. str
Product Resource ID.
type This property is required. str
Shared resource type.
unit_id This property is required. str
Shared unit ID.
organization_org_share_unit_resource_id str
ID of the resource.
area This property is required. String
Shared unit area.
productResourceId This property is required. String
Product Resource ID.
type This property is required. String
Shared resource type.
unitId This property is required. String
Shared unit ID.
organizationOrgShareUnitResourceId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the OrganizationOrgShareUnitResource resource produces the following output properties:

CreateTime string
Create time.
Id string
The provider-assigned unique ID for this managed resource.
ResourceId string
Shared resource ID.
ShareManagerUin double
Sharing administrator OwnerUin.
SharedMemberNum double
Number of shared unit members.
SharedMemberUseNum double
Number of shared unit members in use.
CreateTime string
Create time.
Id string
The provider-assigned unique ID for this managed resource.
ResourceId string
Shared resource ID.
ShareManagerUin float64
Sharing administrator OwnerUin.
SharedMemberNum float64
Number of shared unit members.
SharedMemberUseNum float64
Number of shared unit members in use.
createTime String
Create time.
id String
The provider-assigned unique ID for this managed resource.
resourceId String
Shared resource ID.
shareManagerUin Double
Sharing administrator OwnerUin.
sharedMemberNum Double
Number of shared unit members.
sharedMemberUseNum Double
Number of shared unit members in use.
createTime string
Create time.
id string
The provider-assigned unique ID for this managed resource.
resourceId string
Shared resource ID.
shareManagerUin number
Sharing administrator OwnerUin.
sharedMemberNum number
Number of shared unit members.
sharedMemberUseNum number
Number of shared unit members in use.
create_time str
Create time.
id str
The provider-assigned unique ID for this managed resource.
resource_id str
Shared resource ID.
share_manager_uin float
Sharing administrator OwnerUin.
shared_member_num float
Number of shared unit members.
shared_member_use_num float
Number of shared unit members in use.
createTime String
Create time.
id String
The provider-assigned unique ID for this managed resource.
resourceId String
Shared resource ID.
shareManagerUin Number
Sharing administrator OwnerUin.
sharedMemberNum Number
Number of shared unit members.
sharedMemberUseNum Number
Number of shared unit members in use.

Look up Existing OrganizationOrgShareUnitResource Resource

Get an existing OrganizationOrgShareUnitResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OrganizationOrgShareUnitResourceState, opts?: CustomResourceOptions): OrganizationOrgShareUnitResource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        area: Optional[str] = None,
        create_time: Optional[str] = None,
        organization_org_share_unit_resource_id: Optional[str] = None,
        product_resource_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        share_manager_uin: Optional[float] = None,
        shared_member_num: Optional[float] = None,
        shared_member_use_num: Optional[float] = None,
        type: Optional[str] = None,
        unit_id: Optional[str] = None) -> OrganizationOrgShareUnitResource
func GetOrganizationOrgShareUnitResource(ctx *Context, name string, id IDInput, state *OrganizationOrgShareUnitResourceState, opts ...ResourceOption) (*OrganizationOrgShareUnitResource, error)
public static OrganizationOrgShareUnitResource Get(string name, Input<string> id, OrganizationOrgShareUnitResourceState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgShareUnitResource get(String name, Output<String> id, OrganizationOrgShareUnitResourceState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:OrganizationOrgShareUnitResource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Area string
Shared unit area.
CreateTime string
Create time.
OrganizationOrgShareUnitResourceId string
ID of the resource.
ProductResourceId string
Product Resource ID.
ResourceId string
Shared resource ID.
ShareManagerUin double
Sharing administrator OwnerUin.
SharedMemberNum double
Number of shared unit members.
SharedMemberUseNum double
Number of shared unit members in use.
Type string
Shared resource type.
UnitId string
Shared unit ID.
Area string
Shared unit area.
CreateTime string
Create time.
OrganizationOrgShareUnitResourceId string
ID of the resource.
ProductResourceId string
Product Resource ID.
ResourceId string
Shared resource ID.
ShareManagerUin float64
Sharing administrator OwnerUin.
SharedMemberNum float64
Number of shared unit members.
SharedMemberUseNum float64
Number of shared unit members in use.
Type string
Shared resource type.
UnitId string
Shared unit ID.
area String
Shared unit area.
createTime String
Create time.
organizationOrgShareUnitResourceId String
ID of the resource.
productResourceId String
Product Resource ID.
resourceId String
Shared resource ID.
shareManagerUin Double
Sharing administrator OwnerUin.
sharedMemberNum Double
Number of shared unit members.
sharedMemberUseNum Double
Number of shared unit members in use.
type String
Shared resource type.
unitId String
Shared unit ID.
area string
Shared unit area.
createTime string
Create time.
organizationOrgShareUnitResourceId string
ID of the resource.
productResourceId string
Product Resource ID.
resourceId string
Shared resource ID.
shareManagerUin number
Sharing administrator OwnerUin.
sharedMemberNum number
Number of shared unit members.
sharedMemberUseNum number
Number of shared unit members in use.
type string
Shared resource type.
unitId string
Shared unit ID.
area str
Shared unit area.
create_time str
Create time.
organization_org_share_unit_resource_id str
ID of the resource.
product_resource_id str
Product Resource ID.
resource_id str
Shared resource ID.
share_manager_uin float
Sharing administrator OwnerUin.
shared_member_num float
Number of shared unit members.
shared_member_use_num float
Number of shared unit members in use.
type str
Shared resource type.
unit_id str
Shared unit ID.
area String
Shared unit area.
createTime String
Create time.
organizationOrgShareUnitResourceId String
ID of the resource.
productResourceId String
Product Resource ID.
resourceId String
Shared resource ID.
shareManagerUin Number
Sharing administrator OwnerUin.
sharedMemberNum Number
Number of shared unit members.
sharedMemberUseNum Number
Number of shared unit members in use.
type String
Shared resource type.
unitId String
Shared unit ID.

Import

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

$ pulumi import tencentcloud:index/organizationOrgShareUnitResource:OrganizationOrgShareUnitResource organization_org_share_unit_resource ${unit_id}#${area}#${share_resource_type}#${product_resource_id}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.