1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OrganizationOrgShareUnit
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.OrganizationOrgShareUnit

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a organization org_share_unit

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orgShareUnit = new tencentcloud.OrganizationOrgShareUnit("orgShareUnit", {
        area: "ap-guangzhou",
        description: "iac-test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    org_share_unit = tencentcloud.OrganizationOrgShareUnit("orgShareUnit",
        area="ap-guangzhou",
        description="iac-test")
    
    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.NewOrganizationOrgShareUnit(ctx, "orgShareUnit", &tencentcloud.OrganizationOrgShareUnitArgs{
    			Area:        pulumi.String("ap-guangzhou"),
    			Description: pulumi.String("iac-test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var orgShareUnit = new Tencentcloud.OrganizationOrgShareUnit("orgShareUnit", new()
        {
            Area = "ap-guangzhou",
            Description = "iac-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OrganizationOrgShareUnit;
    import com.pulumi.tencentcloud.OrganizationOrgShareUnitArgs;
    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 orgShareUnit = new OrganizationOrgShareUnit("orgShareUnit", OrganizationOrgShareUnitArgs.builder()
                .area("ap-guangzhou")
                .description("iac-test")
                .build());
    
        }
    }
    
    resources:
      orgShareUnit:
        type: tencentcloud:OrganizationOrgShareUnit
        properties:
          area: ap-guangzhou
          description: iac-test
    

    Create OrganizationOrgShareUnit Resource

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

    Constructor syntax

    new OrganizationOrgShareUnit(name: string, args: OrganizationOrgShareUnitArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationOrgShareUnit(resource_name: str,
                                 args: OrganizationOrgShareUnitArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationOrgShareUnit(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 area: Optional[str] = None,
                                 description: Optional[str] = None,
                                 name: Optional[str] = None,
                                 organization_org_share_unit_id: Optional[str] = None)
    func NewOrganizationOrgShareUnit(ctx *Context, name string, args OrganizationOrgShareUnitArgs, opts ...ResourceOption) (*OrganizationOrgShareUnit, error)
    public OrganizationOrgShareUnit(string name, OrganizationOrgShareUnitArgs args, CustomResourceOptions? opts = null)
    public OrganizationOrgShareUnit(String name, OrganizationOrgShareUnitArgs args)
    public OrganizationOrgShareUnit(String name, OrganizationOrgShareUnitArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OrganizationOrgShareUnit
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    OrganizationOrgShareUnit 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 OrganizationOrgShareUnit resource accepts the following input properties:

    Area string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Description string
    Shared unit description. Up to 128 characters.
    Name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    OrganizationOrgShareUnitId string
    ID of the resource.
    Area string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Description string
    Shared unit description. Up to 128 characters.
    Name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    OrganizationOrgShareUnitId string
    ID of the resource.
    area String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description String
    Shared unit description. Up to 128 characters.
    name String
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId String
    ID of the resource.
    area string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description string
    Shared unit description. Up to 128 characters.
    name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId string
    ID of the resource.
    area str
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description str
    Shared unit description. Up to 128 characters.
    name str
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organization_org_share_unit_id str
    ID of the resource.
    area String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description String
    Shared unit description. Up to 128 characters.
    name String
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    UnitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Id string
    The provider-assigned unique ID for this managed resource.
    UnitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    id String
    The provider-assigned unique ID for this managed resource.
    unitId String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    id string
    The provider-assigned unique ID for this managed resource.
    unitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    id str
    The provider-assigned unique ID for this managed resource.
    unit_id str
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    id String
    The provider-assigned unique ID for this managed resource.
    unitId String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.

    Look up Existing OrganizationOrgShareUnit Resource

    Get an existing OrganizationOrgShareUnit 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?: OrganizationOrgShareUnitState, opts?: CustomResourceOptions): OrganizationOrgShareUnit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            organization_org_share_unit_id: Optional[str] = None,
            unit_id: Optional[str] = None) -> OrganizationOrgShareUnit
    func GetOrganizationOrgShareUnit(ctx *Context, name string, id IDInput, state *OrganizationOrgShareUnitState, opts ...ResourceOption) (*OrganizationOrgShareUnit, error)
    public static OrganizationOrgShareUnit Get(string name, Input<string> id, OrganizationOrgShareUnitState? state, CustomResourceOptions? opts = null)
    public static OrganizationOrgShareUnit get(String name, Output<String> id, OrganizationOrgShareUnitState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OrganizationOrgShareUnit    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Description string
    Shared unit description. Up to 128 characters.
    Name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    OrganizationOrgShareUnitId string
    ID of the resource.
    UnitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Area string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    Description string
    Shared unit description. Up to 128 characters.
    Name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    OrganizationOrgShareUnitId string
    ID of the resource.
    UnitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    area String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description String
    Shared unit description. Up to 128 characters.
    name String
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId String
    ID of the resource.
    unitId String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    area string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description string
    Shared unit description. Up to 128 characters.
    name string
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId string
    ID of the resource.
    unitId string
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    area str
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description str
    Shared unit description. Up to 128 characters.
    name str
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organization_org_share_unit_id str
    ID of the resource.
    unit_id str
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    area String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.
    description String
    Shared unit description. Up to 128 characters.
    name String
    Shared unit name. It only supports a combination of uppercase and lowercase letters, numbers, -, and _, with a length of 3-128 characters.
    organizationOrgShareUnitId String
    ID of the resource.
    unitId String
    Shared unit region. The regions that support sharing can be obtained through the DescribeShareAreas interface.

    Import

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

    $ pulumi import tencentcloud:index/organizationOrgShareUnit:OrganizationOrgShareUnit org_share_unit area#unit_id
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack