<filename>sdk/dotnet/Cddc/GetHostEcsLevelInfos.cs<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.Cddc
{
    public static class GetHostEcsLevelInfos
    {
        /// <summary>
        /// This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.147.0+.
        /// </summary>
        public static Task<GetHostEcsLevelInfosResult> InvokeAsync(GetHostEcsLevelInfosArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetHostEcsLevelInfosResult>("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args ?? new GetHostEcsLevelInfosArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.147.0+.
        /// </summary>
        public static Output<GetHostEcsLevelInfosResult> Invoke(GetHostEcsLevelInfosInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetHostEcsLevelInfosResult>("alicloud:cddc/getHostEcsLevelInfos:getHostEcsLevelInfos", args ?? new GetHostEcsLevelInfosInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetHostEcsLevelInfosArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The database engine of the host. Valid values: `mysql`, `mssql`, `pgsql`, `redis`.
        /// </summary>
        [Input("dbType", required: true)]
        public string DbType { get; set; } = null!;

        /// <summary>
        /// Host image. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
        /// </summary>
        [Input("imageCategory")]
        public string? ImageCategory { get; set; }

        [Input("outputFile")]
        public string? OutputFile { get; set; }

        /// <summary>
        /// The storage type of the host ecs level info. Valid values: `local_ssd`, `cloud_essd`, `cloud_essd2`, `cloud_essd3`. 
        /// * `local_ssd`: specifies that the host uses local SSDs.
        /// * `cloud_essd`: specifies that the host uses enhanced SSDs (ESSDs) of performance level (PL) 1.
        /// * `cloud_essd2`: specifies that the host uses ESSDs of PL2.
        /// * `cloud_essd3`: specifies that the host uses ESSDs of PL3.
        /// </summary>
        [Input("storageType", required: true)]
        public string StorageType { get; set; } = null!;

        /// <summary>
        /// The ID of the zone in the region.
        /// </summary>
        [Input("zoneId", required: true)]
        public string ZoneId { get; set; } = null!;

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

    public sealed class GetHostEcsLevelInfosInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The database engine of the host. Valid values: `mysql`, `mssql`, `pgsql`, `redis`.
        /// </summary>
        [Input("dbType", required: true)]
        public Input<string> DbType { get; set; } = null!;

        /// <summary>
        /// Host image. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
        /// </summary>
        [Input("imageCategory")]
        public Input<string>? ImageCategory { get; set; }

        [Input("outputFile")]
        public Input<string>? OutputFile { get; set; }

        /// <summary>
        /// The storage type of the host ecs level info. Valid values: `local_ssd`, `cloud_essd`, `cloud_essd2`, `cloud_essd3`. 
        /// * `local_ssd`: specifies that the host uses local SSDs.
        /// * `cloud_essd`: specifies that the host uses enhanced SSDs (ESSDs) of performance level (PL) 1.
        /// * `cloud_essd2`: specifies that the host uses ESSDs of PL2.
        /// * `cloud_essd3`: specifies that the host uses ESSDs of PL3.
        /// </summary>
        [Input("storageType", required: true)]
        public Input<string> StorageType { get; set; } = null!;

        /// <summary>
        /// The ID of the zone in the region.
        /// </summary>
        [Input("zoneId", required: true)]
        public Input<string> ZoneId { get; set; } = null!;

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


    [OutputType]
    public sealed class GetHostEcsLevelInfosResult
    {
        public readonly string DbType;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ImageCategory;
        public readonly ImmutableArray<Outputs.GetHostEcsLevelInfosInfoResult> Infos;
        public readonly string? OutputFile;
        public readonly string StorageType;
        public readonly string ZoneId;

        [OutputConstructor]
        private GetHostEcsLevelInfosResult(
            string dbType,

            string id,

            string? imageCategory,

            ImmutableArray<Outputs.GetHostEcsLevelInfosInfoResult> infos,

            string? outputFile,

            string storageType,

            string zoneId)
        {
            DbType = dbType;
            Id = id;
            ImageCategory = imageCategory;
            Infos = infos;
            OutputFile = outputFile;
            StorageType = storageType;
            ZoneId = zoneId;
        }
    }
}
