<reponame>Dwonczykj/gember_deploy// *** 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.Audit
{
    public static class GetKeyAlias
    {
        /// <summary>
        /// Use this data source to query the key alias list specified with region supported by the audit.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var all = Output.Create(Tencentcloud.Audit.GetKeyAlias.InvokeAsync(new Tencentcloud.Audit.GetKeyAliasArgs
        ///         {
        ///             Region = "ap-hongkong",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetKeyAliasResult> InvokeAsync(GetKeyAliasArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetKeyAliasResult>("tencentcloud:Audit/getKeyAlias:getKeyAlias", args ?? new GetKeyAliasArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query the key alias list specified with region supported by the audit.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var all = Output.Create(Tencentcloud.Audit.GetKeyAlias.InvokeAsync(new Tencentcloud.Audit.GetKeyAliasArgs
        ///         {
        ///             Region = "ap-hongkong",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetKeyAliasResult> Invoke(GetKeyAliasInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetKeyAliasResult>("tencentcloud:Audit/getKeyAlias:getKeyAlias", args ?? new GetKeyAliasInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetKeyAliasArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Region.
        /// </summary>
        [Input("region", required: true)]
        public string Region { get; set; } = null!;

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

        public GetKeyAliasArgs()
        {
        }
    }

    public sealed class GetKeyAliasInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Region.
        /// </summary>
        [Input("region", required: true)]
        public Input<string> Region { get; set; } = null!;

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

        public GetKeyAliasInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetKeyAliasResult
    {
        /// <summary>
        /// List of available key alias supported by audit.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetKeyAliasAuditKeyAliasListResult> AuditKeyAliasLists;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Region;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetKeyAliasResult(
            ImmutableArray<Outputs.GetKeyAliasAuditKeyAliasListResult> auditKeyAliasLists,

            string id,

            string region,

            string? resultOutputFile)
        {
            AuditKeyAliasLists = auditKeyAliasLists;
            Id = id;
            Region = region;
            ResultOutputFile = resultOutputFile;
        }
    }
}
