<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.Cynosdb
{
    public static class GetClusterParams
    {
        /// <summary>
        /// Use this data source to query detailed information of cynosdb cluster_params
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var clusterParams = Output.Create(Tencentcloud.Cynosdb.GetClusterParams.InvokeAsync(new Tencentcloud.Cynosdb.GetClusterParamsArgs
        ///         {
        ///             ClusterId = "cynosdbmysql-bws8h88b",
        ///             ParamName = "innodb_checksum_algorithm",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetClusterParamsResult> InvokeAsync(GetClusterParamsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetClusterParamsResult>("tencentcloud:Cynosdb/getClusterParams:getClusterParams", args ?? new GetClusterParamsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of cynosdb cluster_params
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var clusterParams = Output.Create(Tencentcloud.Cynosdb.GetClusterParams.InvokeAsync(new Tencentcloud.Cynosdb.GetClusterParamsArgs
        ///         {
        ///             ClusterId = "cynosdbmysql-bws8h88b",
        ///             ParamName = "innodb_checksum_algorithm",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetClusterParamsResult> Invoke(GetClusterParamsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetClusterParamsResult>("tencentcloud:Cynosdb/getClusterParams:getClusterParams", args ?? new GetClusterParamsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetClusterParamsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of cluster.
        /// </summary>
        [Input("clusterId", required: true)]
        public string ClusterId { get; set; } = null!;

        /// <summary>
        /// Parameter name.
        /// </summary>
        [Input("paramName")]
        public string? ParamName { get; set; }

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

        public GetClusterParamsArgs()
        {
        }
    }

    public sealed class GetClusterParamsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of cluster.
        /// </summary>
        [Input("clusterId", required: true)]
        public Input<string> ClusterId { get; set; } = null!;

        /// <summary>
        /// Parameter name.
        /// </summary>
        [Input("paramName")]
        public Input<string>? ParamName { get; set; }

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

        public GetClusterParamsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetClusterParamsResult
    {
        public readonly string ClusterId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Instance parameter list. Note: This field may return null, indicating that no valid value can be obtained.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetClusterParamsItemResult> Items;
        /// <summary>
        /// The name of parameter.
        /// </summary>
        public readonly string? ParamName;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetClusterParamsResult(
            string clusterId,

            string id,

            ImmutableArray<Outputs.GetClusterParamsItemResult> items,

            string? paramName,

            string? resultOutputFile)
        {
            ClusterId = clusterId;
            Id = id;
            Items = items;
            ParamName = paramName;
            ResultOutputFile = resultOutputFile;
        }
    }
}
