<filename>sdk/dotnet/GetCategoryKey.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;
using Pulumi;

namespace PiersKarsenbarg.Nutanix
{
    public static class GetCategoryKey
    {
        /// <summary>
        /// Describe a Nutanix Category Key and its values (if it has them).
        /// </summary>
        public static Task<GetCategoryKeyResult> InvokeAsync(GetCategoryKeyArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetCategoryKeyResult>("nutanix:index/getCategoryKey:getCategoryKey", args ?? new GetCategoryKeyArgs(), options.WithDefaults());

        /// <summary>
        /// Describe a Nutanix Category Key and its values (if it has them).
        /// </summary>
        public static Output<GetCategoryKeyResult> Invoke(GetCategoryKeyInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetCategoryKeyResult>("nutanix:index/getCategoryKey:getCategoryKey", args ?? new GetCategoryKeyInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetCategoryKeyArgs : Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public string Name { get; set; } = null!;

        public GetCategoryKeyArgs()
        {
        }
    }

    public sealed class GetCategoryKeyInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public Input<string> Name { get; set; } = null!;

        public GetCategoryKeyInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetCategoryKeyResult
    {
        /// <summary>
        /// The version of the API.
        /// * `values`: - A list of the values from this category key (if it has them).
        /// </summary>
        public readonly string ApiVersion;
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Name;
        public readonly bool SystemDefined;
        public readonly ImmutableArray<string> Values;

        [OutputConstructor]
        private GetCategoryKeyResult(
            string apiVersion,

            string description,

            string id,

            string name,

            bool systemDefined,

            ImmutableArray<string> values)
        {
            ApiVersion = apiVersion;
            Description = description;
            Id = id;
            Name = name;
            SystemDefined = systemDefined;
            Values = values;
        }
    }
}
