<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks// *** 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.CS
{
    public static class GetKubernetesAddonMetadata
    {
        /// <summary>
        /// This data source provides metadata of kubernetes cluster addons.
        /// 
        /// &gt; **NOTE:** Available in 1.166.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.CS.GetKubernetesAddonMetadata.Invoke(new()
        ///     {
        ///         ClusterId = @var.Cluster_id,
        ///         Name = "nginx-ingress-controller",
        ///         Version = "v1.1.2-aliyun.2",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["addonConfigSchema"] = data.Alicloud_cs_kubernetes_addons.Default.Config_schema,
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetKubernetesAddonMetadataResult> InvokeAsync(GetKubernetesAddonMetadataArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetKubernetesAddonMetadataResult>("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args ?? new GetKubernetesAddonMetadataArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides metadata of kubernetes cluster addons.
        /// 
        /// &gt; **NOTE:** Available in 1.166.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.CS.GetKubernetesAddonMetadata.Invoke(new()
        ///     {
        ///         ClusterId = @var.Cluster_id,
        ///         Name = "nginx-ingress-controller",
        ///         Version = "v1.1.2-aliyun.2",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["addonConfigSchema"] = data.Alicloud_cs_kubernetes_addons.Default.Config_schema,
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetKubernetesAddonMetadataResult> Invoke(GetKubernetesAddonMetadataInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetKubernetesAddonMetadataResult>("alicloud:cs/getKubernetesAddonMetadata:getKubernetesAddonMetadata", args ?? new GetKubernetesAddonMetadataInvokeArgs(), options.WithDefaults());
    }


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

        /// <summary>
        /// The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source `alicloud.cs.getKubernetesAddons`.
        /// </summary>
        [Input("name", required: true)]
        public string Name { get; set; } = null!;

        /// <summary>
        /// The version of the cluster addon.
        /// </summary>
        [Input("version", required: true)]
        public string Version { get; set; } = null!;

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

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

        /// <summary>
        /// The name of the cluster addon. You can get a list of available addons that the cluster can install by using data source `alicloud.cs.getKubernetesAddons`.
        /// </summary>
        [Input("name", required: true)]
        public Input<string> Name { get; set; } = null!;

        /// <summary>
        /// The version of the cluster addon.
        /// </summary>
        [Input("version", required: true)]
        public Input<string> Version { get; set; } = null!;

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


    [OutputType]
    public sealed class GetKubernetesAddonMetadataResult
    {
        public readonly string ClusterId;
        /// <summary>
        /// The addon configuration that can be customized. The returned format is the standard json schema. If return empty, it means that the addon does not support custom configuration yet.
        /// </summary>
        public readonly string ConfigSchema;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Name;
        public readonly string Version;

        [OutputConstructor]
        private GetKubernetesAddonMetadataResult(
            string clusterId,

            string configSchema,

            string id,

            string name,

            string version)
        {
            ClusterId = clusterId;
            ConfigSchema = configSchema;
            Id = id;
            Name = name;
            Version = version;
        }
    }
}
