Class GetCanonicalUserId
Inheritance
System.Object
GetCanonicalUserId
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
Assembly: Pulumi.Aws.dll
Syntax
public static class GetCanonicalUserId
Methods
View SourceInvokeAsync(InvokeOptions)
The Canonical User ID data source allows access to the canonical user ID 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.GetCanonicalUserId.InvokeAsync());
this.CanonicalUserId = current.Apply(current => current.Id);
}
[Output("canonicalUserId")]
public Output<string> CanonicalUserId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetCanonicalUserIdResult> InvokeAsync(InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetCanonicalUserIdResult> |