// *** 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.Dns
{
    public static class GetDomainTxtGuid
    {
        /// <summary>
        /// Provides the generation of txt records to realize the retrieval and verification of domain names.
        /// 
        /// &gt; **NOTE:** Available in v1.80.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = AliCloud.Dns.GetDomainTxtGuid.Invoke(new()
        ///     {
        ///         DomainName = "test111.abc",
        ///         Type = "ADD_SUB_DOMAIN",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["rr"] = @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult).Apply(@this =&gt; @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult.Rr)),
        ///         ["value"] = @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult).Apply(@this =&gt; @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult.Value)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetDomainTxtGuidResult> InvokeAsync(GetDomainTxtGuidArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetDomainTxtGuidResult>("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args ?? new GetDomainTxtGuidArgs(), options.WithDefaults());

        /// <summary>
        /// Provides the generation of txt records to realize the retrieval and verification of domain names.
        /// 
        /// &gt; **NOTE:** Available in v1.80.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = AliCloud.Dns.GetDomainTxtGuid.Invoke(new()
        ///     {
        ///         DomainName = "test111.abc",
        ///         Type = "ADD_SUB_DOMAIN",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["rr"] = @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult).Apply(@this =&gt; @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult.Rr)),
        ///         ["value"] = @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult).Apply(@this =&gt; @this.Apply(getDomainTxtGuidResult =&gt; getDomainTxtGuidResult.Value)),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetDomainTxtGuidResult> Invoke(GetDomainTxtGuidInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetDomainTxtGuidResult>("alicloud:dns/getDomainTxtGuid:getDomainTxtGuid", args ?? new GetDomainTxtGuidInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetDomainTxtGuidArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Verified domain name.
        /// </summary>
        [Input("domainName", required: true)]
        public string DomainName { get; set; } = null!;

        /// <summary>
        /// User language.
        /// </summary>
        [Input("lang")]
        public string? Lang { get; set; }

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

        /// <summary>
        /// Txt verification function. Value:`ADD_SUB_DOMAIN`, `RETRIEVAL`.
        /// </summary>
        [Input("type", required: true)]
        public string Type { get; set; } = null!;

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

    public sealed class GetDomainTxtGuidInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Verified domain name.
        /// </summary>
        [Input("domainName", required: true)]
        public Input<string> DomainName { get; set; } = null!;

        /// <summary>
        /// User language.
        /// </summary>
        [Input("lang")]
        public Input<string>? Lang { get; set; }

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

        /// <summary>
        /// Txt verification function. Value:`ADD_SUB_DOMAIN`, `RETRIEVAL`.
        /// </summary>
        [Input("type", required: true)]
        public Input<string> Type { get; set; } = null!;

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


    [OutputType]
    public sealed class GetDomainTxtGuidResult
    {
        public readonly string DomainName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? Lang;
        public readonly string? OutputFile;
        /// <summary>
        /// Host record.
        /// </summary>
        public readonly string Rr;
        public readonly string Type;
        /// <summary>
        /// Record the value.
        /// </summary>
        public readonly string Value;

        [OutputConstructor]
        private GetDomainTxtGuidResult(
            string domainName,

            string id,

            string? lang,

            string? outputFile,

            string rr,

            string type,

            string value)
        {
            DomainName = domainName;
            Id = id;
            Lang = lang;
            OutputFile = outputFile;
            Rr = rr;
            Type = type;
            Value = value;
        }
    }
}
