1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. rdc
  5. Organization
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.rdc.Organization

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Provides a RDC Organization resource.

    For information about RDC Organization and how to use it, see What is Organization.

    NOTE: Available in v1.137.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.rdc.Organization("example", {
        organizationName: "example_value",
        source: "example_value",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.rdc.Organization("example",
        organization_name="example_value",
        source="example_value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rdc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rdc.NewOrganization(ctx, "example", &rdc.OrganizationArgs{
    			OrganizationName: pulumi.String("example_value"),
    			Source:           pulumi.String("example_value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.Rdc.Organization("example", new()
        {
            OrganizationName = "example_value",
            Source = "example_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.rdc.Organization;
    import com.pulumi.alicloud.rdc.OrganizationArgs;
    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 example = new Organization("example", OrganizationArgs.builder()        
                .organizationName("example_value")
                .source("example_value")
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:rdc:Organization
        properties:
          organizationName: example_value
          source: example_value
    

    Create Organization Resource

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

    Constructor syntax

    new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def Organization(resource_name: str,
                     args: OrganizationArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Organization(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     organization_name: Optional[str] = None,
                     source: Optional[str] = None,
                     desired_member_count: Optional[int] = None,
                     real_pk: Optional[str] = None)
    func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)
    public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
    public Organization(String name, OrganizationArgs args)
    public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
    
    type: alicloud:rdc:Organization
    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 OrganizationArgs
    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 OrganizationArgs
    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 OrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var organizationResource = new AliCloud.Rdc.Organization("organizationResource", new()
    {
        OrganizationName = "string",
        Source = "string",
        DesiredMemberCount = 0,
        RealPk = "string",
    });
    
    example, err := rdc.NewOrganization(ctx, "organizationResource", &rdc.OrganizationArgs{
    	OrganizationName:   pulumi.String("string"),
    	Source:             pulumi.String("string"),
    	DesiredMemberCount: pulumi.Int(0),
    	RealPk:             pulumi.String("string"),
    })
    
    var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()        
        .organizationName("string")
        .source("string")
        .desiredMemberCount(0)
        .realPk("string")
        .build());
    
    organization_resource = alicloud.rdc.Organization("organizationResource",
        organization_name="string",
        source="string",
        desired_member_count=0,
        real_pk="string")
    
    const organizationResource = new alicloud.rdc.Organization("organizationResource", {
        organizationName: "string",
        source: "string",
        desiredMemberCount: 0,
        realPk: "string",
    });
    
    type: alicloud:rdc:Organization
    properties:
        desiredMemberCount: 0
        organizationName: string
        realPk: string
        source: string
    

    Organization Resource Properties

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

    Inputs

    The Organization resource accepts the following input properties:

    OrganizationName string
    Company name.
    Source string
    This is organization source information
    DesiredMemberCount int
    The desired member count.
    RealPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    OrganizationName string
    Company name.
    Source string
    This is organization source information
    DesiredMemberCount int
    The desired member count.
    RealPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    organizationName String
    Company name.
    source String
    This is organization source information
    desiredMemberCount Integer
    The desired member count.
    realPk String
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    organizationName string
    Company name.
    source string
    This is organization source information
    desiredMemberCount number
    The desired member count.
    realPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    organization_name str
    Company name.
    source str
    This is organization source information
    desired_member_count int
    The desired member count.
    real_pk str
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    organizationName String
    Company name.
    source String
    This is organization source information
    desiredMemberCount Number
    The desired member count.
    realPk String
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Organization Resource

    Get an existing Organization 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?: OrganizationState, opts?: CustomResourceOptions): Organization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            desired_member_count: Optional[int] = None,
            organization_name: Optional[str] = None,
            real_pk: Optional[str] = None,
            source: Optional[str] = None) -> Organization
    func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
    public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
    public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DesiredMemberCount int
    The desired member count.
    OrganizationName string
    Company name.
    RealPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    Source string
    This is organization source information
    DesiredMemberCount int
    The desired member count.
    OrganizationName string
    Company name.
    RealPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    Source string
    This is organization source information
    desiredMemberCount Integer
    The desired member count.
    organizationName String
    Company name.
    realPk String
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    source String
    This is organization source information
    desiredMemberCount number
    The desired member count.
    organizationName string
    Company name.
    realPk string
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    source string
    This is organization source information
    desired_member_count int
    The desired member count.
    organization_name str
    Company name.
    real_pk str
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    source str
    This is organization source information
    desiredMemberCount Number
    The desired member count.
    organizationName String
    Company name.
    realPk String
    User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
    source String
    This is organization source information

    Import

    RDC Organization can be imported using the id, e.g.

    $ pulumi import alicloud:rdc/organization:Organization example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi