@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
66 lines (65 loc) • 2.3 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* You can use AWS::Organizations::Account to manage accounts in organization.
*/
export declare function getAccount(args: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
export interface GetAccountArgs {
/**
* If the account was created successfully, the unique identifier (ID) of the new account.
*/
accountId: string;
}
export interface GetAccountResult {
/**
* If the account was created successfully, the unique identifier (ID) of the new account.
*/
readonly accountId?: string;
/**
* The friendly name of the member account.
*/
readonly accountName?: string;
/**
* The Amazon Resource Name (ARN) of the account.
*/
readonly arn?: string;
/**
* The email address of the owner to assign to the new member account.
*/
readonly email?: string;
/**
* The method by which the account joined the organization.
*/
readonly joinedMethod?: enums.organizations.AccountJoinedMethod;
/**
* The date the account became a part of the organization.
*/
readonly joinedTimestamp?: string;
/**
* List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
*/
readonly parentIds?: string[];
/**
* The state of the account in the organization.
*/
readonly state?: enums.organizations.AccountState;
/**
* The status of the account in the organization.
*/
readonly status?: enums.organizations.AccountStatus;
/**
* 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.
*/
readonly tags?: outputs.Tag[];
}
/**
* You can use AWS::Organizations::Account to manage accounts in organization.
*/
export declare function getAccountOutput(args: GetAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountResult>;
export interface GetAccountOutputArgs {
/**
* If the account was created successfully, the unique identifier (ID) of the new account.
*/
accountId: pulumi.Input<string>;
}