<filename>sdk/dotnet/Tencentcloud/Ccn/GetBandwidthLimits.cs// *** 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.Ccn
{
    public static class GetBandwidthLimits
    {
        /// <summary>
        /// Use this data source to query detailed information of CCN bandwidth limits.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var config = new Config();
        ///         var otherRegion1 = config.Get("otherRegion1") ?? "ap-shanghai";
        ///         var main = new Tencentcloud.Ccn.Instance("main", new Tencentcloud.Ccn.InstanceArgs
        ///         {
        ///             Description = "ci-temp-test-ccn-des",
        ///             Qos = "AG",
        ///         });
        ///         var limit = Tencentcloud.Ccn.GetBandwidthLimits.Invoke(new Tencentcloud.Ccn.GetBandwidthLimitsInvokeArgs
        ///         {
        ///             CcnId = main.Id,
        ///         });
        ///         var limit1 = new Tencentcloud.Ccn.BandwidthLimit("limit1", new Tencentcloud.Ccn.BandwidthLimitArgs
        ///         {
        ///             CcnId = main.Id,
        ///             Region = otherRegion1,
        ///             BandwidthLimit = 500,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetBandwidthLimitsResult> InvokeAsync(GetBandwidthLimitsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetBandwidthLimitsResult>("tencentcloud:Ccn/getBandwidthLimits:getBandwidthLimits", args ?? new GetBandwidthLimitsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of CCN bandwidth limits.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var config = new Config();
        ///         var otherRegion1 = config.Get("otherRegion1") ?? "ap-shanghai";
        ///         var main = new Tencentcloud.Ccn.Instance("main", new Tencentcloud.Ccn.InstanceArgs
        ///         {
        ///             Description = "ci-temp-test-ccn-des",
        ///             Qos = "AG",
        ///         });
        ///         var limit = Tencentcloud.Ccn.GetBandwidthLimits.Invoke(new Tencentcloud.Ccn.GetBandwidthLimitsInvokeArgs
        ///         {
        ///             CcnId = main.Id,
        ///         });
        ///         var limit1 = new Tencentcloud.Ccn.BandwidthLimit("limit1", new Tencentcloud.Ccn.BandwidthLimitArgs
        ///         {
        ///             CcnId = main.Id,
        ///             Region = otherRegion1,
        ///             BandwidthLimit = 500,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetBandwidthLimitsResult> Invoke(GetBandwidthLimitsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetBandwidthLimitsResult>("tencentcloud:Ccn/getBandwidthLimits:getBandwidthLimits", args ?? new GetBandwidthLimitsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetBandwidthLimitsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CCN to be queried.
        /// </summary>
        [Input("ccnId", required: true)]
        public string CcnId { get; set; } = null!;

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

        public GetBandwidthLimitsArgs()
        {
        }
    }

    public sealed class GetBandwidthLimitsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CCN to be queried.
        /// </summary>
        [Input("ccnId", required: true)]
        public Input<string> CcnId { get; set; } = null!;

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

        public GetBandwidthLimitsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetBandwidthLimitsResult
    {
        public readonly string CcnId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// The bandwidth limits of regions:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetBandwidthLimitsLimitResult> Limits;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetBandwidthLimitsResult(
            string ccnId,

            string id,

            ImmutableArray<Outputs.GetBandwidthLimitsLimitResult> limits,

            string? resultOutputFile)
        {
            CcnId = ccnId;
            Id = id;
            Limits = limits;
            ResultOutputFile = resultOutputFile;
        }
    }
}
