<filename>sdk/dotnet/Oos/GetParameters.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;

namespace Pulumi.AliCloud.Oos
{
    public static class GetParameters
    {
        /// <summary>
        /// This data source provides the Oos Parameters of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.147.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var ids = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///     });
        /// 
        ///     var nameRegex = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         NameRegex = "^my-Parameter",
        ///     });
        /// 
        ///     var resourceGroupId = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///         ResourceGroupId = "example_value",
        ///     });
        /// 
        ///     var tags = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///         Tags = 
        ///         {
        ///             { "Created", "TF" },
        ///             { "For", "OosParameter" },
        ///         },
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["oosParameterId1"] = ids.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId2"] = nameRegex.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId3"] = resourceGroupId.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId4"] = tags.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetParametersResult> InvokeAsync(GetParametersArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetParametersResult>("alicloud:oos/getParameters:getParameters", args ?? new GetParametersArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Oos Parameters of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.147.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var ids = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///     });
        /// 
        ///     var nameRegex = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         NameRegex = "^my-Parameter",
        ///     });
        /// 
        ///     var resourceGroupId = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///         ResourceGroupId = "example_value",
        ///     });
        /// 
        ///     var tags = AliCloud.Oos.GetParameters.Invoke(new()
        ///     {
        ///         Ids = new[]
        ///         {
        ///             "my-Parameter",
        ///         },
        ///         Tags = 
        ///         {
        ///             { "Created", "TF" },
        ///             { "For", "OosParameter" },
        ///         },
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["oosParameterId1"] = ids.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId2"] = nameRegex.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId3"] = resourceGroupId.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///         ["oosParameterId4"] = tags.Apply(getParametersResult =&gt; getParametersResult.Parameters[0]?.Id),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetParametersResult> Invoke(GetParametersInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetParametersResult>("alicloud:oos/getParameters:getParameters", args ?? new GetParametersInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetParametersArgs : global::Pulumi.InvokeArgs
    {
        /// <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 Parameter IDs. Its element value is same as Parameter Name.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Parameter name.
        /// </summary>
        [Input("nameRegex")]
        public string? NameRegex { get; set; }

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

        /// <summary>
        /// The name of the common parameter.
        /// </summary>
        [Input("parameterName")]
        public string? ParameterName { get; set; }

        /// <summary>
        /// The ID of the Resource Group.
        /// </summary>
        [Input("resourceGroupId")]
        public string? ResourceGroupId { get; set; }

        [Input("sortField")]
        public string? SortField { get; set; }

        [Input("sortOrder")]
        public string? SortOrder { get; set; }

        [Input("tags")]
        private Dictionary<string, object>? _tags;

        /// <summary>
        /// The tag of the resource.
        /// </summary>
        public Dictionary<string, object> Tags
        {
            get => _tags ?? (_tags = new Dictionary<string, object>());
            set => _tags = value;
        }

        /// <summary>
        /// The data type of the common parameter.
        /// </summary>
        [Input("type")]
        public string? Type { get; set; }

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

    public sealed class GetParametersInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <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 Parameter IDs. Its element value is same as Parameter Name.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

        /// <summary>
        /// A regex string to filter results by Parameter name.
        /// </summary>
        [Input("nameRegex")]
        public Input<string>? NameRegex { get; set; }

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

        /// <summary>
        /// The name of the common parameter.
        /// </summary>
        [Input("parameterName")]
        public Input<string>? ParameterName { get; set; }

        /// <summary>
        /// The ID of the Resource Group.
        /// </summary>
        [Input("resourceGroupId")]
        public Input<string>? ResourceGroupId { get; set; }

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

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

        [Input("tags")]
        private InputMap<object>? _tags;

        /// <summary>
        /// The tag of the resource.
        /// </summary>
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

        /// <summary>
        /// The data type of the common parameter.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

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


    [OutputType]
    public sealed class GetParametersResult
    {
        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? NameRegex;
        public readonly ImmutableArray<string> Names;
        public readonly string? OutputFile;
        public readonly string? ParameterName;
        public readonly ImmutableArray<Outputs.GetParametersParameterResult> Parameters;
        public readonly string? ResourceGroupId;
        public readonly string? SortField;
        public readonly string? SortOrder;
        public readonly ImmutableDictionary<string, object>? Tags;
        public readonly string? Type;

        [OutputConstructor]
        private GetParametersResult(
            bool? enableDetails,

            string id,

            ImmutableArray<string> ids,

            string? nameRegex,

            ImmutableArray<string> names,

            string? outputFile,

            string? parameterName,

            ImmutableArray<Outputs.GetParametersParameterResult> parameters,

            string? resourceGroupId,

            string? sortField,

            string? sortOrder,

            ImmutableDictionary<string, object>? tags,

            string? type)
        {
            EnableDetails = enableDetails;
            Id = id;
            Ids = ids;
            NameRegex = nameRegex;
            Names = names;
            OutputFile = outputFile;
            ParameterName = parameterName;
            Parameters = parameters;
            ResourceGroupId = resourceGroupId;
            SortField = sortField;
            SortOrder = sortOrder;
            Tags = tags;
            Type = type;
        }
    }
}
