<filename>sdk/dotnet/Rdc/Organization.cs// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AliCloud.Rdc
{
    /// <summary>
    /// Provides a RDC Organization resource.
    /// 
    /// For information about RDC Organization and how to use it, see [What is Organization](https://help.aliyun.com/product/51588.html).
    /// 
    /// &gt; **NOTE:** Available in v1.137.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var example = new AliCloud.Rdc.Organization("example", new()
    ///     {
    ///         OrganizationName = "example_value",
    ///         Source = "example_value",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// RDC Organization can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:rdc/organization:Organization example &lt;id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:rdc/organization:Organization")]
    public partial class Organization : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The desired member count.
        /// </summary>
        [Output("desiredMemberCount")]
        public Output<int?> DesiredMemberCount { get; private set; } = null!;

        /// <summary>
        /// Company name.
        /// </summary>
        [Output("organizationName")]
        public Output<string> OrganizationName { get; private set; } = null!;

        /// <summary>
        /// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
        /// </summary>
        [Output("realPk")]
        public Output<string?> RealPk { get; private set; } = null!;

        /// <summary>
        /// This is organization source information
        /// </summary>
        [Output("source")]
        public Output<string> Source { get; private set; } = null!;


        /// <summary>
        /// Create a Organization resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public Organization(string name, OrganizationArgs args, CustomResourceOptions? options = null)
            : base("alicloud:rdc/organization:Organization", name, args ?? new OrganizationArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Organization(string name, Input<string> id, OrganizationState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:rdc/organization:Organization", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/rhysmdnz/pulumi-alicloud",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing Organization resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static Organization Get(string name, Input<string> id, OrganizationState? state = null, CustomResourceOptions? options = null)
        {
            return new Organization(name, id, state, options);
        }
    }

    public sealed class OrganizationArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The desired member count.
        /// </summary>
        [Input("desiredMemberCount")]
        public Input<int>? DesiredMemberCount { get; set; }

        /// <summary>
        /// Company name.
        /// </summary>
        [Input("organizationName", required: true)]
        public Input<string> OrganizationName { get; set; } = null!;

        /// <summary>
        /// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
        /// </summary>
        [Input("realPk")]
        public Input<string>? RealPk { get; set; }

        /// <summary>
        /// This is organization source information
        /// </summary>
        [Input("source", required: true)]
        public Input<string> Source { get; set; } = null!;

        public OrganizationArgs()
        {
        }
        public static new OrganizationArgs Empty => new OrganizationArgs();
    }

    public sealed class OrganizationState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The desired member count.
        /// </summary>
        [Input("desiredMemberCount")]
        public Input<int>? DesiredMemberCount { get; set; }

        /// <summary>
        /// Company name.
        /// </summary>
        [Input("organizationName")]
        public Input<string>? OrganizationName { get; set; }

        /// <summary>
        /// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
        /// </summary>
        [Input("realPk")]
        public Input<string>? RealPk { get; set; }

        /// <summary>
        /// This is organization source information
        /// </summary>
        [Input("source")]
        public Input<string>? Source { get; set; }

        public OrganizationState()
        {
        }
        public static new OrganizationState Empty => new OrganizationState();
    }
}
