// *** 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.Quotas
{
    public static class GetQuotaApplications
    {
        /// <summary>
        /// This data source provides the Quotas Quota Applications of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.117.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.Quotas.GetQuotaApplications.Invoke(new()
        ///     {
        ///         ProductCode = "ess",
        ///         Ids = new[]
        ///         {
        ///             "4621F886-81E9-xxxx-xxxx",
        ///         },
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstQuotasQuotaApplicationId"] = example.Apply(getQuotaApplicationsResult =&gt; getQuotaApplicationsResult.Applications[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetQuotaApplicationsResult> InvokeAsync(GetQuotaApplicationsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetQuotaApplicationsResult>("alicloud:quotas/getQuotaApplications:getQuotaApplications", args ?? new GetQuotaApplicationsArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Quotas Quota Applications of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.117.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = AliCloud.Quotas.GetQuotaApplications.Invoke(new()
        ///     {
        ///         ProductCode = "ess",
        ///         Ids = new[]
        ///         {
        ///             "4621F886-81E9-xxxx-xxxx",
        ///         },
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["firstQuotasQuotaApplicationId"] = example.Apply(getQuotaApplicationsResult =&gt; getQuotaApplicationsResult.Applications[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetQuotaApplicationsResult> Invoke(GetQuotaApplicationsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetQuotaApplicationsResult>("alicloud:quotas/getQuotaApplications:getQuotaApplications", args ?? new GetQuotaApplicationsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetQuotaApplicationsArgs : global::Pulumi.InvokeArgs
    {
        [Input("dimensions")]
        private List<Inputs.GetQuotaApplicationsDimensionArgs>? _dimensions;

        /// <summary>
        /// The quota dimensions.
        /// </summary>
        public List<Inputs.GetQuotaApplicationsDimensionArgs> Dimensions
        {
            get => _dimensions ?? (_dimensions = new List<Inputs.GetQuotaApplicationsDimensionArgs>());
            set => _dimensions = value;
        }

        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public bool? EnableDetails { get; set; }

        [Input("ids")]
        private List<string>? _ids;

        /// <summary>
        /// A list of Application Info IDs.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        [Input("keyWord")]
        public string? KeyWord { get; set; }

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

        /// <summary>
        /// The product code.
        /// </summary>
        [Input("productCode", required: true)]
        public string ProductCode { get; set; } = null!;

        /// <summary>
        /// The ID of quota action..
        /// </summary>
        [Input("quotaActionCode")]
        public string? QuotaActionCode { get; set; }

        /// <summary>
        /// The quota category. Valid values: `CommonQuota`, `FlowControl`.
        /// </summary>
        [Input("quotaCategory")]
        public string? QuotaCategory { get; set; }

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

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

    public sealed class GetQuotaApplicationsInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("dimensions")]
        private InputList<Inputs.GetQuotaApplicationsDimensionInputArgs>? _dimensions;

        /// <summary>
        /// The quota dimensions.
        /// </summary>
        public InputList<Inputs.GetQuotaApplicationsDimensionInputArgs> Dimensions
        {
            get => _dimensions ?? (_dimensions = new InputList<Inputs.GetQuotaApplicationsDimensionInputArgs>());
            set => _dimensions = value;
        }

        /// <summary>
        /// Default to `false`. Set it to `true` can output more details about resource attributes.
        /// </summary>
        [Input("enableDetails")]
        public Input<bool>? EnableDetails { get; set; }

        [Input("ids")]
        private InputList<string>? _ids;

        /// <summary>
        /// A list of Application Info IDs.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

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

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

        /// <summary>
        /// The product code.
        /// </summary>
        [Input("productCode", required: true)]
        public Input<string> ProductCode { get; set; } = null!;

        /// <summary>
        /// The ID of quota action..
        /// </summary>
        [Input("quotaActionCode")]
        public Input<string>? QuotaActionCode { get; set; }

        /// <summary>
        /// The quota category. Valid values: `CommonQuota`, `FlowControl`.
        /// </summary>
        [Input("quotaCategory")]
        public Input<string>? QuotaCategory { get; set; }

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

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


    [OutputType]
    public sealed class GetQuotaApplicationsResult
    {
        public readonly ImmutableArray<Outputs.GetQuotaApplicationsApplicationResult> Applications;
        public readonly ImmutableArray<Outputs.GetQuotaApplicationsDimensionResult> Dimensions;
        public readonly bool? EnableDetails;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> Ids;
        public readonly string? KeyWord;
        public readonly string? OutputFile;
        public readonly string ProductCode;
        public readonly string? QuotaActionCode;
        public readonly string? QuotaCategory;
        public readonly string? Status;

        [OutputConstructor]
        private GetQuotaApplicationsResult(
            ImmutableArray<Outputs.GetQuotaApplicationsApplicationResult> applications,

            ImmutableArray<Outputs.GetQuotaApplicationsDimensionResult> dimensions,

            bool? enableDetails,

            string id,

            ImmutableArray<string> ids,

            string? keyWord,

            string? outputFile,

            string productCode,

            string? quotaActionCode,

            string? quotaCategory,

            string? status)
        {
            Applications = applications;
            Dimensions = dimensions;
            EnableDetails = enableDetails;
            Id = id;
            Ids = ids;
            KeyWord = keyWord;
            OutputFile = outputFile;
            ProductCode = productCode;
            QuotaActionCode = quotaActionCode;
            QuotaCategory = quotaCategory;
            Status = status;
        }
    }
}
