<filename>sdk/dotnet/Sddp/GetConfigs.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.Sddp
{
    public static class GetConfigs
    {
        /// <summary>
        /// This data source provides the Sddp Configs of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.133.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var defaultConfig = new AliCloud.Sddp.Config("defaultConfig", new()
        ///     {
        ///         Code = "access_failed_cnt",
        ///         Value = "10",
        ///     });
        /// 
        ///     var defaultConfigs = AliCloud.Sddp.GetConfigs.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             defaultConfig.Id,
        ///         },
        ///         OutputFile = "./t.json",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["sddpConfigId"] = defaultConfigs.Apply(getConfigsResult =&gt; getConfigsResult.Ids),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetConfigsResult> InvokeAsync(GetConfigsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetConfigsResult>("alicloud:sddp/getConfigs:getConfigs", args ?? new GetConfigsArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Sddp Configs of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.133.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var defaultConfig = new AliCloud.Sddp.Config("defaultConfig", new()
        ///     {
        ///         Code = "access_failed_cnt",
        ///         Value = "10",
        ///     });
        /// 
        ///     var defaultConfigs = AliCloud.Sddp.GetConfigs.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             defaultConfig.Id,
        ///         },
        ///         OutputFile = "./t.json",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["sddpConfigId"] = defaultConfigs.Apply(getConfigsResult =&gt; getConfigsResult.Ids),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetConfigsResult> Invoke(GetConfigsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetConfigsResult>("alicloud:sddp/getConfigs:getConfigs", args ?? new GetConfigsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetConfigsArgs : global::Pulumi.InvokeArgs
    {
        [Input("ids")]
        private List<string>? _ids;

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

        [Input("lang")]
        public string? Lang { get; set; }

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

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

    public sealed class GetConfigsInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("ids")]
        private InputList<string>? _ids;

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

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

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

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


    [OutputType]
    public sealed class GetConfigsResult
    {
        public readonly ImmutableArray<Outputs.GetConfigsConfigResult> Configs;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> Ids;
        public readonly string? Lang;
        public readonly string? OutputFile;

        [OutputConstructor]
        private GetConfigsResult(
            ImmutableArray<Outputs.GetConfigsConfigResult> configs,

            string id,

            ImmutableArray<string> ids,

            string? lang,

            string? outputFile)
        {
            Configs = configs;
            Id = id;
            Ids = ids;
            Lang = lang;
            OutputFile = outputFile;
        }
    }
}
