<reponame>Dwonczykj/gember_deploy// *** 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;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cvm
{
    public static class GetDisasterRecoverGroupQuota
    {
        /// <summary>
        /// Use this data source to query detailed information of cvm disaster_recover_group_quota
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var disasterRecoverGroupQuota = Output.Create(Tencentcloud.Cvm.GetDisasterRecoverGroupQuota.InvokeAsync());
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetDisasterRecoverGroupQuotaResult> InvokeAsync(GetDisasterRecoverGroupQuotaArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetDisasterRecoverGroupQuotaResult>("tencentcloud:Cvm/getDisasterRecoverGroupQuota:getDisasterRecoverGroupQuota", args ?? new GetDisasterRecoverGroupQuotaArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of cvm disaster_recover_group_quota
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var disasterRecoverGroupQuota = Output.Create(Tencentcloud.Cvm.GetDisasterRecoverGroupQuota.InvokeAsync());
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetDisasterRecoverGroupQuotaResult> Invoke(GetDisasterRecoverGroupQuotaInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetDisasterRecoverGroupQuotaResult>("tencentcloud:Cvm/getDisasterRecoverGroupQuota:getDisasterRecoverGroupQuota", args ?? new GetDisasterRecoverGroupQuotaInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetDisasterRecoverGroupQuotaArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetDisasterRecoverGroupQuotaArgs()
        {
        }
    }

    public sealed class GetDisasterRecoverGroupQuotaInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetDisasterRecoverGroupQuotaInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetDisasterRecoverGroupQuotaResult
    {
        /// <summary>
        /// The number of placement groups that have been created by the current user.
        /// </summary>
        public readonly int CurrentNum;
        /// <summary>
        /// Quota on instances in a physical-machine-type disaster recovery group.
        /// </summary>
        public readonly int CvmInHostGroupQuota;
        /// <summary>
        /// Quota on instances in a rack-type disaster recovery group.
        /// </summary>
        public readonly int CvmInRackGroupQuota;
        /// <summary>
        /// Quota on instances in a switch-type disaster recovery group.
        /// </summary>
        public readonly int CvmInSwGroupQuota;
        /// <summary>
        /// The maximum number of placement groups that can be created.
        /// </summary>
        public readonly int GroupQuota;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetDisasterRecoverGroupQuotaResult(
            int currentNum,

            int cvmInHostGroupQuota,

            int cvmInRackGroupQuota,

            int cvmInSwGroupQuota,

            int groupQuota,

            string id,

            string? resultOutputFile)
        {
            CurrentNum = currentNum;
            CvmInHostGroupQuota = cvmInHostGroupQuota;
            CvmInRackGroupQuota = cvmInRackGroupQuota;
            CvmInSwGroupQuota = cvmInSwGroupQuota;
            GroupQuota = groupQuota;
            Id = id;
            ResultOutputFile = resultOutputFile;
        }
    }
}
