// *** 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.MaxCompute
{
    /// <summary>
    /// Provides a Max Compute Project resource.
    /// 
    /// For information about Max Compute Project and how to use it, see [What is Project](https://help.aliyun.com/document_detail/473237.html).
    /// 
    /// &gt; **NOTE:** Available in v1.77.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var @default = new AliCloud.MaxCompute.Project("default", new()
    ///     {
    ///         Comment = "test_for_terraform",
    ///         DefaultQuota = "默认后付费Quota",
    ///         ProductType = "PAYASYOUGO",
    ///         ProjectName = "test_create_spec_one",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:maxcompute/project:Project")]
    public partial class Project : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Comments of project
        /// </summary>
        [Output("comment")]
        public Output<string?> Comment { get; private set; } = null!;

        /// <summary>
        /// Default Computing Resource Group
        /// </summary>
        [Output("defaultQuota")]
        public Output<string?> DefaultQuota { get; private set; } = null!;

        /// <summary>
        /// IP whitelistSee the following `Block IpWhiteList`.
        /// </summary>
        [Output("ipWhiteList")]
        public Output<Outputs.ProjectIpWhiteList?> IpWhiteList { get; private set; } = null!;

        /// <summary>
        /// Project owner
        /// </summary>
        [Output("owner")]
        public Output<string> Owner { get; private set; } = null!;

        /// <summary>
        /// Quota payment type, support `PayAsYouGo`, `Subscription`, `Dev`.
        /// </summary>
        [Output("productType")]
        public Output<string?> ProductType { get; private set; } = null!;

        /// <summary>
        /// The name of the project
        /// </summary>
        [Output("projectName")]
        public Output<string> ProjectName { get; private set; } = null!;

        /// <summary>
        /// Project base attributesSee the following `Block Properties`.
        /// </summary>
        [Output("properties")]
        public Output<Outputs.ProjectProperties> Properties { get; private set; } = null!;

        /// <summary>
        /// Security-related attributesSee the following `Block SecurityProperties`.
        /// </summary>
        [Output("securityProperties")]
        public Output<Outputs.ProjectSecurityProperties> SecurityProperties { get; private set; } = null!;

        /// <summary>
        /// The status of the resource
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;

        /// <summary>
        /// Life cycle type.
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;


        /// <summary>
        /// Create a Project 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 Project(string name, ProjectArgs args, CustomResourceOptions? options = null)
            : base("alicloud:maxcompute/project:Project", name, args ?? new ProjectArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Project(string name, Input<string> id, ProjectState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:maxcompute/project:Project", 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 Project 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 Project Get(string name, Input<string> id, ProjectState? state = null, CustomResourceOptions? options = null)
        {
            return new Project(name, id, state, options);
        }
    }

    public sealed class ProjectArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Comments of project
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Default Computing Resource Group
        /// </summary>
        [Input("defaultQuota")]
        public Input<string>? DefaultQuota { get; set; }

        /// <summary>
        /// IP whitelistSee the following `Block IpWhiteList`.
        /// </summary>
        [Input("ipWhiteList")]
        public Input<Inputs.ProjectIpWhiteListArgs>? IpWhiteList { get; set; }

        /// <summary>
        /// Quota payment type, support `PayAsYouGo`, `Subscription`, `Dev`.
        /// </summary>
        [Input("productType")]
        public Input<string>? ProductType { get; set; }

        /// <summary>
        /// The name of the project
        /// </summary>
        [Input("projectName", required: true)]
        public Input<string> ProjectName { get; set; } = null!;

        /// <summary>
        /// Project base attributesSee the following `Block Properties`.
        /// </summary>
        [Input("properties")]
        public Input<Inputs.ProjectPropertiesArgs>? Properties { get; set; }

        /// <summary>
        /// Security-related attributesSee the following `Block SecurityProperties`.
        /// </summary>
        [Input("securityProperties")]
        public Input<Inputs.ProjectSecurityPropertiesArgs>? SecurityProperties { get; set; }

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

    public sealed class ProjectState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Comments of project
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Default Computing Resource Group
        /// </summary>
        [Input("defaultQuota")]
        public Input<string>? DefaultQuota { get; set; }

        /// <summary>
        /// IP whitelistSee the following `Block IpWhiteList`.
        /// </summary>
        [Input("ipWhiteList")]
        public Input<Inputs.ProjectIpWhiteListGetArgs>? IpWhiteList { get; set; }

        /// <summary>
        /// Project owner
        /// </summary>
        [Input("owner")]
        public Input<string>? Owner { get; set; }

        /// <summary>
        /// Quota payment type, support `PayAsYouGo`, `Subscription`, `Dev`.
        /// </summary>
        [Input("productType")]
        public Input<string>? ProductType { get; set; }

        /// <summary>
        /// The name of the project
        /// </summary>
        [Input("projectName")]
        public Input<string>? ProjectName { get; set; }

        /// <summary>
        /// Project base attributesSee the following `Block Properties`.
        /// </summary>
        [Input("properties")]
        public Input<Inputs.ProjectPropertiesGetArgs>? Properties { get; set; }

        /// <summary>
        /// Security-related attributesSee the following `Block SecurityProperties`.
        /// </summary>
        [Input("securityProperties")]
        public Input<Inputs.ProjectSecurityPropertiesGetArgs>? SecurityProperties { get; set; }

        /// <summary>
        /// The status of the resource
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// Life cycle type.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

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