<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks// *** 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.Ram
{
    public static class GetAccountAliases
    {
        /// <summary>
        /// This data source provides an alias for the Alibaba Cloud account.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var aliasDs = AliCloud.Ram.GetAccountAliases.Invoke(new()
        ///     {
        ///         OutputFile = "alias.txt",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["accountAlias"] = aliasDs.Apply(getAccountAliasesResult =&gt; getAccountAliasesResult.AccountAlias),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetAccountAliasesResult> InvokeAsync(GetAccountAliasesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetAccountAliasesResult>("alicloud:ram/getAccountAliases:getAccountAliases", args ?? new GetAccountAliasesArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides an alias for the Alibaba Cloud account.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var aliasDs = AliCloud.Ram.GetAccountAliases.Invoke(new()
        ///     {
        ///         OutputFile = "alias.txt",
        ///     });
        /// 
        ///     return new Dictionary&lt;string, object?&gt;
        ///     {
        ///         ["accountAlias"] = aliasDs.Apply(getAccountAliasesResult =&gt; getAccountAliasesResult.AccountAlias),
        ///     };
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetAccountAliasesResult> Invoke(GetAccountAliasesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetAccountAliasesResult>("alicloud:ram/getAccountAliases:getAccountAliases", args ?? new GetAccountAliasesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetAccountAliasesArgs : global::Pulumi.InvokeArgs
    {
        [Input("outputFile")]
        public string? OutputFile { get; set; }

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

    public sealed class GetAccountAliasesInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("outputFile")]
        public Input<string>? OutputFile { get; set; }

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


    [OutputType]
    public sealed class GetAccountAliasesResult
    {
        /// <summary>
        /// Alias of the account.
        /// </summary>
        public readonly string AccountAlias;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? OutputFile;

        [OutputConstructor]
        private GetAccountAliasesResult(
            string accountAlias,

            string id,

            string? outputFile)
        {
            AccountAlias = accountAlias;
            Id = id;
            OutputFile = outputFile;
        }
    }
}
