Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getAccountAliases

This data source provides an alias for the Alibaba Cloud account.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var aliasDs = Output.Create(AliCloud.Ram.GetAccountAliases.InvokeAsync(new AliCloud.Ram.GetAccountAliasesArgs
        {
            OutputFile = "alias.txt",
        }));
        this.AccountAlias = aliasDs.Apply(aliasDs => aliasDs.AccountAlias);
    }

    [Output("accountAlias")]
    public Output<string> AccountAlias { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		aliasDs, err := ram.GetAccountAliases(ctx, &ram.GetAccountAliasesArgs{
			OutputFile: pulumi.StringRef("alias.txt"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("accountAlias", aliasDs.AccountAlias)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

alias_ds = alicloud.ram.get_account_aliases(output_file="alias.txt")
pulumi.export("accountAlias", alias_ds.account_alias)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const aliasDs = pulumi.output(alicloud.ram.getAccountAliases({
    outputFile: "alias.txt",
}));

export const accountAlias = aliasDs.accountAlias;

Coming soon!

Using getAccountAliases

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAccountAliases(args: GetAccountAliasesArgs, opts?: InvokeOptions): Promise<GetAccountAliasesResult>
function getAccountAliasesOutput(args: GetAccountAliasesOutputArgs, opts?: InvokeOptions): Output<GetAccountAliasesResult>
def get_account_aliases(output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAccountAliasesResult
def get_account_aliases_output(output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAccountAliasesResult]
func GetAccountAliases(ctx *Context, args *GetAccountAliasesArgs, opts ...InvokeOption) (*GetAccountAliasesResult, error)
func GetAccountAliasesOutput(ctx *Context, args *GetAccountAliasesOutputArgs, opts ...InvokeOption) GetAccountAliasesResultOutput

> Note: This function is named GetAccountAliases in the Go SDK.

public static class GetAccountAliases 
{
    public static Task<GetAccountAliasesResult> InvokeAsync(GetAccountAliasesArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountAliasesResult> Invoke(GetAccountAliasesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountAliasesResult> getAccountAliases(GetAccountAliasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ram/getAccountAliases:getAccountAliases
  Arguments:
    # Arguments dictionary

The following arguments are supported:

OutputFile string
OutputFile string
outputFile String
outputFile string
outputFile String

getAccountAliases Result

The following output properties are available:

AccountAlias string

Alias of the account.

Id string

The provider-assigned unique ID for this managed resource.

OutputFile string
AccountAlias string

Alias of the account.

Id string

The provider-assigned unique ID for this managed resource.

OutputFile string
accountAlias String

Alias of the account.

id String

The provider-assigned unique ID for this managed resource.

outputFile String
accountAlias string

Alias of the account.

id string

The provider-assigned unique ID for this managed resource.

outputFile string
account_alias str

Alias of the account.

id str

The provider-assigned unique ID for this managed resource.

output_file str
accountAlias String

Alias of the account.

id String

The provider-assigned unique ID for this managed resource.

outputFile String

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.