<gh_stars>0// *** 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.Edas
{
    /// <summary>
    /// Provides an EDAS cluster resource.
    /// 
    /// &gt; **NOTE:** Available in 1.82.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.Edas.Cluster("default", new()
    ///     {
    ///         ClusterName = @var.Cluster_name,
    ///         ClusterType = @var.Cluster_type,
    ///         NetworkMode = @var.Network_mode,
    ///         LogicalRegionId = @var.Logical_region_id,
    ///         VpcId = @var.Vpc_id,
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// EDAS cluster can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:edas/cluster:Cluster cluster cluster_id
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:edas/cluster:Cluster")]
    public partial class Cluster : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The name of the cluster that you want to create.
        /// </summary>
        [Output("clusterName")]
        public Output<string> ClusterName { get; private set; } = null!;

        /// <summary>
        /// The type of the cluster that you want to create. Valid values only: 2: ECS cluster.
        /// </summary>
        [Output("clusterType")]
        public Output<int> ClusterType { get; private set; } = null!;

        /// <summary>
        /// The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
        /// </summary>
        [Output("logicalRegionId")]
        public Output<string?> LogicalRegionId { get; private set; } = null!;

        /// <summary>
        /// The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
        /// </summary>
        [Output("networkMode")]
        public Output<int> NetworkMode { get; private set; } = null!;

        /// <summary>
        /// The ID of the Virtual Private Cloud (VPC) for the cluster.
        /// </summary>
        [Output("vpcId")]
        public Output<string?> VpcId { get; private set; } = null!;


        /// <summary>
        /// Create a Cluster 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 Cluster(string name, ClusterArgs args, CustomResourceOptions? options = null)
            : base("alicloud:edas/cluster:Cluster", name, args ?? new ClusterArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class ClusterArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The name of the cluster that you want to create.
        /// </summary>
        [Input("clusterName", required: true)]
        public Input<string> ClusterName { get; set; } = null!;

        /// <summary>
        /// The type of the cluster that you want to create. Valid values only: 2: ECS cluster.
        /// </summary>
        [Input("clusterType", required: true)]
        public Input<int> ClusterType { get; set; } = null!;

        /// <summary>
        /// The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
        /// </summary>
        [Input("logicalRegionId")]
        public Input<string>? LogicalRegionId { get; set; }

        /// <summary>
        /// The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
        /// </summary>
        [Input("networkMode", required: true)]
        public Input<int> NetworkMode { get; set; } = null!;

        /// <summary>
        /// The ID of the Virtual Private Cloud (VPC) for the cluster.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

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

    public sealed class ClusterState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The name of the cluster that you want to create.
        /// </summary>
        [Input("clusterName")]
        public Input<string>? ClusterName { get; set; }

        /// <summary>
        /// The type of the cluster that you want to create. Valid values only: 2: ECS cluster.
        /// </summary>
        [Input("clusterType")]
        public Input<int>? ClusterType { get; set; }

        /// <summary>
        /// The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.
        /// </summary>
        [Input("logicalRegionId")]
        public Input<string>? LogicalRegionId { get; set; }

        /// <summary>
        /// The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.
        /// </summary>
        [Input("networkMode")]
        public Input<int>? NetworkMode { get; set; }

        /// <summary>
        /// The ID of the Virtual Private Cloud (VPC) for the cluster.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

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