Class GetAccountAlias
Inheritance
System.Object
GetAccountAlias
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Iam
Assembly: Pulumi.Aws.dll
Syntax
public static class GetAccountAlias
Methods
View SourceInvokeAsync(InvokeOptions)
The IAM Account Alias data source allows access to the account alias for the effective account in which this provider is working.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Aws.Iam.GetAccountAlias.InvokeAsync());
this.AccountId = current.Apply(current => current.AccountAlias);
}
[Output("accountId")]
public Output<string> AccountId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetAccountAliasResult> InvokeAsync(InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetAccountAliasResult> |