We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.organizations.getAccount
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
You can use AWS::Organizations::Account to manage accounts in organization.
Using getAccount
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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>def get_account(account_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(account_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput> Note: This function is named LookupAccount in the Go SDK.
public static class GetAccount 
{
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:organizations:getAccount
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- AccountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountId String
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- account_id str
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountId String
- If the account was created successfully, the unique identifier (ID) of the new account.
getAccount Result
The following output properties are available:
- AccountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- AccountName string
- The friendly name of the member account.
- Arn string
- The Amazon Resource Name (ARN) of the account.
- Email string
- The email address of the owner to assign to the new member account.
- JoinedMethod Pulumi.Aws Native. Organizations. Account Joined Method 
- The method by which the account joined the organization.
- JoinedTimestamp string
- The date the account became a part of the organization.
- ParentIds List<string>
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- Status
Pulumi.Aws Native. Organizations. Account Status 
- The status of the account in the organization.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
- AccountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- AccountName string
- The friendly name of the member account.
- Arn string
- The Amazon Resource Name (ARN) of the account.
- Email string
- The email address of the owner to assign to the new member account.
- JoinedMethod AccountJoined Method 
- The method by which the account joined the organization.
- JoinedTimestamp string
- The date the account became a part of the organization.
- ParentIds []string
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- Status
AccountStatus 
- The status of the account in the organization.
- Tag
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
- accountId String
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountName String
- The friendly name of the member account.
- arn String
- The Amazon Resource Name (ARN) of the account.
- email String
- The email address of the owner to assign to the new member account.
- joinedMethod AccountJoined Method 
- The method by which the account joined the organization.
- joinedTimestamp String
- The date the account became a part of the organization.
- parentIds List<String>
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status
AccountStatus 
- The status of the account in the organization.
- List<Tag>
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
- accountId string
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountName string
- The friendly name of the member account.
- arn string
- The Amazon Resource Name (ARN) of the account.
- email string
- The email address of the owner to assign to the new member account.
- joinedMethod AccountJoined Method 
- The method by which the account joined the organization.
- joinedTimestamp string
- The date the account became a part of the organization.
- parentIds string[]
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status
AccountStatus 
- The status of the account in the organization.
- Tag[]
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
- account_id str
- If the account was created successfully, the unique identifier (ID) of the new account.
- account_name str
- The friendly name of the member account.
- arn str
- The Amazon Resource Name (ARN) of the account.
- email str
- The email address of the owner to assign to the new member account.
- joined_method AccountJoined Method 
- The method by which the account joined the organization.
- joined_timestamp str
- The date the account became a part of the organization.
- parent_ids Sequence[str]
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status
AccountStatus 
- The status of the account in the organization.
- Sequence[root_Tag]
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
- accountId String
- If the account was created successfully, the unique identifier (ID) of the new account.
- accountName String
- The friendly name of the member account.
- arn String
- The Amazon Resource Name (ARN) of the account.
- email String
- The email address of the owner to assign to the new member account.
- joinedMethod "INVITED" | "CREATED"
- The method by which the account joined the organization.
- joinedTimestamp String
- The date the account became a part of the organization.
- parentIds List<String>
- List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status "ACTIVE" | "SUSPENDED" | "PENDING_CLOSURE"
- The status of the account in the organization.
- List<Property Map>
- A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
Supporting Types
AccountJoinedMethod  
AccountStatus 
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi