<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks<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.Tag
{
    public static class GetMetaTags
    {
        /// <summary>
        /// This data source provides the Tag Meta Tags of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.169.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.Tag.GetMetaTags.Invoke(new()
        ///     {
        ///         KeyName = "example_value",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["tagMetaTagDefault1"] = @default.Apply(getMetaTagsResult =&gt; getMetaTagsResult).Apply(@default =&gt; @default.Apply(getMetaTagsResult =&gt; getMetaTagsResult.Tags?.ValueName)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetMetaTagsResult> InvokeAsync(GetMetaTagsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetMetaTagsResult>("alicloud:tag/getMetaTags:getMetaTags", args ?? new GetMetaTagsArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides the Tag Meta Tags of the current Alibaba Cloud user.
        /// 
        /// &gt; **NOTE:** Available in v1.169.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @default = AliCloud.Tag.GetMetaTags.Invoke(new()
        ///     {
        ///         KeyName = "example_value",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["tagMetaTagDefault1"] = @default.Apply(getMetaTagsResult =&gt; getMetaTagsResult).Apply(@default =&gt; @default.Apply(getMetaTagsResult =&gt; getMetaTagsResult.Tags?.ValueName)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetMetaTagsResult> Invoke(GetMetaTagsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetMetaTagsResult>("alicloud:tag/getMetaTags:getMetaTags", args ?? new GetMetaTagsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetMetaTagsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The name of the key.
        /// </summary>
        [Input("keyName")]
        public string? KeyName { get; set; }

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

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

    public sealed class GetMetaTagsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The name of the key.
        /// </summary>
        [Input("keyName")]
        public Input<string>? KeyName { get; set; }

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

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


    [OutputType]
    public sealed class GetMetaTagsResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? KeyName;
        public readonly string? OutputFile;
        public readonly ImmutableArray<Outputs.GetMetaTagsTagResult> Tags;

        [OutputConstructor]
        private GetMetaTagsResult(
            string id,

            string? keyName,

            string? outputFile,

            ImmutableArray<Outputs.GetMetaTagsTagResult> tags)
        {
            Id = id;
            KeyName = keyName;
            OutputFile = outputFile;
            Tags = tags;
        }
    }
}
