AWS Native is in preview. AWS Classic is fully supported.
aws-native.organizations.getAccount
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:organizations:getAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string If the account was created successfully, the unique identifier (ID) of the new account.
- Account
Id string If the account was created successfully, the unique identifier (ID) of the new account.
- account
Id String If the account was created successfully, the unique identifier (ID) of the new account.
- account
Id 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.
- account
Id String If the account was created successfully, the unique identifier (ID) of the new account.
getAccount Result
The following output properties are available:
- Account
Id string If the account was created successfully, the unique identifier (ID) of the new account.
- Account
Name 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.
- Joined
Method Pulumi.Aws Native. Organizations. Account Joined Method The method by which the account joined the organization.
- Joined
Timestamp string The date the account became a part of the organization.
- Parent
Ids 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. Organizations. Outputs. Account 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 string If the account was created successfully, the unique identifier (ID) of the new account.
- Account
Name 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.
- Joined
Method AccountJoined Method The method by which the account joined the organization.
- Joined
Timestamp string The date the account became a part of the organization.
- Parent
Ids []string List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- Status
Account
Status The status of the account in the organization.
- []Account
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 String If the account was created successfully, the unique identifier (ID) of the new account.
- account
Name 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.
- joined
Method AccountJoined Method The method by which the account joined the organization.
- joined
Timestamp String The date the account became a part of the organization.
- parent
Ids List<String> List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status
Account
Status The status of the account in the organization.
- List<Account
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 string If the account was created successfully, the unique identifier (ID) of the new account.
- account
Name 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.
- joined
Method AccountJoined Method The method by which the account joined the organization.
- joined
Timestamp string The date the account became a part of the organization.
- parent
Ids string[] List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
- status
Account
Status The status of the account in the organization.
- Account
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
Account
Status The status of the account in the organization.
- Sequence[Account
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 String If the account was created successfully, the unique identifier (ID) of the new account.
- account
Name 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.
- joined
Method "INVITED" | "CREATED" The method by which the account joined the organization.
- joined
Timestamp String The date the account became a part of the organization.
- parent
Ids 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
AccountTag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.