import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Provides a Ehpc Queue resource.
 *
 * E-HPC the compute queue of the cluster.
 *
 * For information about Ehpc Queue and how to use it, see [What is Queue](https://next.api.alibabacloud.com/document/EHPC/2024-07-30/CreateQueue).
 *
 * > **NOTE:** Available since v1.266.0.
 *
 * ## Example Usage
 *
 * Basic Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as alicloud from "@pulumi/alicloud";
 *
 * const config = new pulumi.Config();
 * const name = config.get("name") || "terraform-example";
 * const queueMinimalExampleVpc = new alicloud.vpc.Network("queue_minimal_example_vpc", {
 *     isDefault: false,
 *     cidrBlock: "10.0.0.0/8",
 *     vpcName: "example-cluster-vpc",
 * });
 * const queueMinimalExampleVswitch = new alicloud.vpc.Switch("queue_minimal_example_vswitch", {
 *     isDefault: false,
 *     vpcId: queueMinimalExampleVpc.id,
 *     zoneId: "cn-hangzhou-k",
 *     cidrBlock: "10.0.0.0/24",
 *     vswitchName: "example-cluster-vsw",
 * });
 * const queueMinimalExampleNas = new alicloud.nas.FileSystem("queue_minimal_example_nas", {
 *     description: "example-cluster-nas",
 *     storageType: "Capacity",
 *     nfsAcl: {
 *         enabled: false,
 *     },
 *     zoneId: "cn-hangzhou-k",
 *     encryptType: 0,
 *     protocolType: "NFS",
 *     fileSystemType: "standard",
 * });
 * const queueMinimalExampleAccessGroup = new alicloud.nas.AccessGroup("queue_minimal_example_access_group", {
 *     accessGroupType: "Vpc",
 *     description: name,
 *     accessGroupName: "StandardMountTarget",
 *     fileSystemType: "standard",
 * });
 * const queueMinimalExampleSecurityGroup = new alicloud.ecs.SecurityGroup("queue_minimal_example_security_group", {
 *     vpcId: queueMinimalExampleVpc.id,
 *     securityGroupType: "normal",
 * });
 * const queueMinimalExampleMountDomain = new alicloud.nas.MountTarget("queue_minimal_example_mount_domain", {
 *     vpcId: queueMinimalExampleVpc.id,
 *     networkType: "Vpc",
 *     accessGroupName: queueMinimalExampleAccessGroup.accessGroupName,
 *     vswitchId: queueMinimalExampleVswitch.id,
 *     fileSystemId: queueMinimalExampleNas.id,
 * });
 * const queueMinimalExampleAccessRule = new alicloud.nas.AccessRule("queue_minimal_example_access_rule", {
 *     priority: 1,
 *     accessGroupName: queueMinimalExampleAccessGroup.accessGroupName,
 *     fileSystemType: queueMinimalExampleNas.fileSystemType,
 *     sourceCidrIp: "10.0.0.0/8",
 * });
 * const queueMinimalClusterExample = new alicloud.ehpc.ClusterV2("queue_minimal_cluster_example", {
 *     clusterCredentials: {
 *         password: "aliHPC123",
 *     },
 *     clusterVpcId: queueMinimalExampleVpc.id,
 *     clusterCategory: "Standard",
 *     clusterMode: "Integrated",
 *     securityGroupId: queueMinimalExampleSecurityGroup.id,
 *     addons: [{
 *         version: "1.0",
 *         servicesSpec: `[
 *         {
 *           \\"ServiceName\\": \\"SSH\\",
 *           \\"NetworkACL\\": [
 *             {
 *               \\"Port\\": 22,
 *               \\"SourceCidrIp\\": \\"0.0.0.0/0\\",
 *               \\"IpProtocol\\": \\"TCP\\"
 *             }
 *           ]
 *         },
 *         {
 *           \\"ServiceName\\": \\"VNC\\",
 *           \\"NetworkACL\\": [
 *             {
 *               \\"Port\\": 12016,
 *               \\"SourceCidrIp\\": \\"0.0.0.0/0\\",
 *               \\"IpProtocol\\": \\"TCP\\"
 *             }
 *           ]
 *         },
 *         {
 *           \\"ServiceName\\": \\"CLIENT\\",
 *           \\"ServiceAccessType\\": \\"URL\\",
 *           \\"ServiceAccessUrl\\": \\"https://ehpc-app.oss-cn-hangzhou.aliyuncs.com/ClientRelease/E-HPC-Client-Mac-zh-cn.zip\\",
 *           \\"NetworkACL\\": [
 *             {
 *               \\"Port\\": 12011,
 *               \\"SourceCidrIp\\": \\"0.0.0.0/0\\",
 *               \\"IpProtocol\\": \\"TCP\\"
 *             }
 *           ]
 *         }
 *       ]
 * `,
 *         resourcesSpec: `{
 *         \\"EipResource\\": {
 *           \\"AutoCreate\\": true
 *         },
 *         \\"EcsResources\\": [
 *           {
 *             \\"ImageId\\": \\"centos_7_6_x64_20G_alibase_20211130.vhd\\",
 *             \\"EnableHT\\": true,
 *             \\"InstanceChargeType\\": \\"PostPaid\\",
 *             \\"InstanceType\\": \\"ecs.c7.xlarge\\",
 *             \\"SpotStrategy\\": \\"NoSpot\\",
 *             \\"SystemDisk\\": {
 *               \\"Category\\": \\"cloud_essd\\",
 *               \\"Size\\": 40,
 *               \\"Level\\": \\"PL0\\"
 *             },
 *             \\"DataDisks\\": [
 *               {
 *                 \\"Category\\": \\"cloud_essd\\",
 *                 \\"Size\\": 40,
 *                 \\"Level\\": \\"PL0\\"
 *               }
 *             ]
 *           }
 *         ]
 *       }
 * `,
 *         name: "Login",
 *     }],
 *     clusterName: "minimal-example-cluster",
 *     deletionProtection: false,
 *     sharedStorages: [
 *         {
 *             mountDirectory: "/home",
 *             nasDirectory: "/",
 *             mountTargetDomain: queueMinimalExampleMountDomain.mountTargetDomain,
 *             protocolType: "NFS",
 *             fileSystemId: queueMinimalExampleNas.id,
 *             mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
 *         },
 *         {
 *             mountDirectory: "/opt",
 *             nasDirectory: "/",
 *             mountTargetDomain: queueMinimalExampleMountDomain.mountTargetDomain,
 *             protocolType: "NFS",
 *             fileSystemId: queueMinimalExampleNas.id,
 *             mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
 *         },
 *         {
 *             mountDirectory: "/ehpcdata",
 *             nasDirectory: "/",
 *             mountTargetDomain: queueMinimalExampleMountDomain.mountTargetDomain,
 *             protocolType: "NFS",
 *             fileSystemId: queueMinimalExampleNas.id,
 *             mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
 *         },
 *     ],
 *     clusterVswitchId: queueMinimalExampleVswitch.id,
 *     manager: {
 *         managerNode: {
 *             systemDisk: {
 *                 category: "cloud_essd",
 *                 size: 40,
 *                 level: "PL0",
 *             },
 *             enableHt: true,
 *             instanceChargeType: "PostPaid",
 *             imageId: "centos_7_6_x64_20G_alibase_20211130.vhd",
 *             instanceType: "ecs.c6.xlarge",
 *             spotStrategy: "NoSpot",
 *         },
 *         scheduler: {
 *             type: "SLURM",
 *             version: "22.05.8",
 *         },
 *         dns: {
 *             type: "nis",
 *             version: "1.0",
 *         },
 *         directoryService: {
 *             type: "nis",
 *             version: "1.0",
 *         },
 *     },
 * }, {
 *     dependsOn: [queueMinimalExampleAccessRule],
 * });
 * const _default = new alicloud.ehpc.Queue("default", {
 *     clusterId: queueMinimalClusterExample.id,
 *     queueName: "autoque1",
 * });
 * ```
 *
 * 📚 Need more examples? VIEW MORE EXAMPLES
 *
 * ## Import
 *
 * Ehpc Queue can be imported using the id, e.g.
 *
 * ```sh
 * $ pulumi import alicloud:ehpc/queue:Queue example <cluster_id>:<queue_name>
 * ```
 */
export declare class Queue extends pulumi.CustomResource {
    /**
     * Get an existing Queue resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QueueState, opts?: pulumi.CustomResourceOptions): Queue;
    /**
     * Returns true if the given object is an instance of Queue.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj: any): obj is Queue;
    /**
     * The cluster ID.
     * You can call the ListClusters operation to query the cluster ID.
     */
    readonly clusterId: pulumi.Output<string>;
    /**
     * The hardware configurations of the compute nodes in the queue. Valid values of N: 1 to 10. See `computeNodes` below.
     */
    readonly computeNodes: pulumi.Output<outputs.ehpc.QueueComputeNode[]>;
    /**
     * The creation time of the resource
     */
    readonly createTime: pulumi.Output<string>;
    /**
     * Specifies whether to enable auto scale-in for the queue. Valid values:
     *
     * - true
     * - false
     */
    readonly enableScaleIn: pulumi.Output<boolean>;
    /**
     * Specifies whether to enable auto scale-out for the queue. Valid values:
     *
     * - true
     * - false
     */
    readonly enableScaleOut: pulumi.Output<boolean>;
    /**
     * The hostname prefix of the added compute nodes.
     */
    readonly hostnamePrefix: pulumi.Output<string>;
    /**
     * The hostname suffix of the compute nodes in the queue.
     */
    readonly hostnameSuffix: pulumi.Output<string>;
    /**
     * The initial number of compute nodes in the queue.
     */
    readonly initialCount: pulumi.Output<number>;
    /**
     * The type of the network for interconnecting compute nodes in the queue.
     */
    readonly interConnect: pulumi.Output<string>;
    /**
     * The maximum number of compute nodes that the queue can contain.
     */
    readonly maxCount: pulumi.Output<number>;
    /**
     * The minimum number of compute nodes that the queue must contain.
     */
    readonly minCount: pulumi.Output<number>;
    /**
     * The queue name.
     */
    readonly queueName: pulumi.Output<string>;
    /**
     * The vSwitches available for use by compute nodes in the queue.
     */
    readonly vswitchIds: pulumi.Output<string[] | undefined>;
    /**
     * Create a Queue resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name: string, args?: QueueArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Queue resources.
 */
export interface QueueState {
    /**
     * The cluster ID.
     * You can call the ListClusters operation to query the cluster ID.
     */
    clusterId?: pulumi.Input<string | undefined>;
    /**
     * The hardware configurations of the compute nodes in the queue. Valid values of N: 1 to 10. See `computeNodes` below.
     */
    computeNodes?: pulumi.Input<pulumi.Input<inputs.ehpc.QueueComputeNode>[] | undefined>;
    /**
     * The creation time of the resource
     */
    createTime?: pulumi.Input<string | undefined>;
    /**
     * Specifies whether to enable auto scale-in for the queue. Valid values:
     *
     * - true
     * - false
     */
    enableScaleIn?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies whether to enable auto scale-out for the queue. Valid values:
     *
     * - true
     * - false
     */
    enableScaleOut?: pulumi.Input<boolean | undefined>;
    /**
     * The hostname prefix of the added compute nodes.
     */
    hostnamePrefix?: pulumi.Input<string | undefined>;
    /**
     * The hostname suffix of the compute nodes in the queue.
     */
    hostnameSuffix?: pulumi.Input<string | undefined>;
    /**
     * The initial number of compute nodes in the queue.
     */
    initialCount?: pulumi.Input<number | undefined>;
    /**
     * The type of the network for interconnecting compute nodes in the queue.
     */
    interConnect?: pulumi.Input<string | undefined>;
    /**
     * The maximum number of compute nodes that the queue can contain.
     */
    maxCount?: pulumi.Input<number | undefined>;
    /**
     * The minimum number of compute nodes that the queue must contain.
     */
    minCount?: pulumi.Input<number | undefined>;
    /**
     * The queue name.
     */
    queueName?: pulumi.Input<string | undefined>;
    /**
     * The vSwitches available for use by compute nodes in the queue.
     */
    vswitchIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
/**
 * The set of arguments for constructing a Queue resource.
 */
export interface QueueArgs {
    /**
     * The cluster ID.
     * You can call the ListClusters operation to query the cluster ID.
     */
    clusterId?: pulumi.Input<string | undefined>;
    /**
     * The hardware configurations of the compute nodes in the queue. Valid values of N: 1 to 10. See `computeNodes` below.
     */
    computeNodes?: pulumi.Input<pulumi.Input<inputs.ehpc.QueueComputeNode>[] | undefined>;
    /**
     * Specifies whether to enable auto scale-in for the queue. Valid values:
     *
     * - true
     * - false
     */
    enableScaleIn?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies whether to enable auto scale-out for the queue. Valid values:
     *
     * - true
     * - false
     */
    enableScaleOut?: pulumi.Input<boolean | undefined>;
    /**
     * The hostname prefix of the added compute nodes.
     */
    hostnamePrefix?: pulumi.Input<string | undefined>;
    /**
     * The hostname suffix of the compute nodes in the queue.
     */
    hostnameSuffix?: pulumi.Input<string | undefined>;
    /**
     * The initial number of compute nodes in the queue.
     */
    initialCount?: pulumi.Input<number | undefined>;
    /**
     * The type of the network for interconnecting compute nodes in the queue.
     */
    interConnect?: pulumi.Input<string | undefined>;
    /**
     * The maximum number of compute nodes that the queue can contain.
     */
    maxCount?: pulumi.Input<number | undefined>;
    /**
     * The minimum number of compute nodes that the queue must contain.
     */
    minCount?: pulumi.Input<number | undefined>;
    /**
     * The queue name.
     */
    queueName?: pulumi.Input<string | undefined>;
    /**
     * The vSwitches available for use by compute nodes in the queue.
     */
    vswitchIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
}
//# sourceMappingURL=queue.d.ts.map