1. Packages
  2. AWS Native
  3. API Docs
  4. getAccountId

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi

aws-native.getAccountId

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi

    Using getAccountId

    function getAccountId(opts?: InvokeOptions): Promise<GetAccountIdResult>
    def get_account_id(opts: Optional[InvokeOptions] = None) -> GetAccountIdResult
    func GetAccountId(ctx *Context, opts ...InvokeOption) (*GetAccountIdResult, error)

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

    public static class GetAccountId 
    {
        public static Task<GetAccountIdResult> InvokeAsync(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountIdResult> getAccountId(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:getAccountId
      arguments:
        # arguments dictionary

    getAccountId Result

    The following output properties are available:

    AccountId string
    AccountId string
    accountId String
    accountId string
    accountId String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi