// *** 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.Address
{
    public static class GetTemplates
    {
        /// <summary>
        /// Use this data source to query detailed information of address templates.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var name = Output.Create(Tencentcloud.Address.GetTemplates.InvokeAsync(new Tencentcloud.Address.GetTemplatesArgs
        ///         {
        ///             Name = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetTemplatesResult> InvokeAsync(GetTemplatesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetTemplatesResult>("tencentcloud:Address/getTemplates:getTemplates", args ?? new GetTemplatesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of address templates.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var name = Output.Create(Tencentcloud.Address.GetTemplates.InvokeAsync(new Tencentcloud.Address.GetTemplatesArgs
        ///         {
        ///             Name = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetTemplatesResult> Invoke(GetTemplatesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetTemplatesResult>("tencentcloud:Address/getTemplates:getTemplates", args ?? new GetTemplatesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetTemplatesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the address template to query.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// Name of the address template to query.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

        public GetTemplatesArgs()
        {
        }
    }

    public sealed class GetTemplatesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the address template to query.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// Name of the address template to query.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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

        public GetTemplatesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetTemplatesResult
    {
        /// <summary>
        /// ID of the address template.
        /// </summary>
        public readonly string? Id;
        /// <summary>
        /// Name of address template.
        /// </summary>
        public readonly string? Name;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Information list of the dedicated address templates.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetTemplatesTemplateListResult> TemplateLists;

        [OutputConstructor]
        private GetTemplatesResult(
            string? id,

            string? name,

            string? resultOutputFile,

            ImmutableArray<Outputs.GetTemplatesTemplateListResult> templateLists)
        {
            Id = id;
            Name = name;
            ResultOutputFile = resultOutputFile;
            TemplateLists = templateLists;
        }
    }
}
