@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
110 lines (109 loc) • 2.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about an account in an organization.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.organizations.getAccount({
* accountId: "AWS ACCOUNT ID",
* });
* ```
*/
export declare function getAccount(args: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
/**
* A collection of arguments for invoking getAccount.
*/
export interface GetAccountArgs {
/**
* Account ID number of a delegated administrator account in the organization.
*/
accountId: string;
/**
* Map of tags for the resource.
*/
tags?: {
[key: string]: string;
};
}
/**
* A collection of values returned by getAccount.
*/
export interface GetAccountResult {
readonly accountId: string;
/**
* ARN of the organization.
*/
readonly arn: string;
/**
* Email address of the owner assigned to the new member account.
*/
readonly email: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Method by which the account joined the organization.
*/
readonly joinedMethod: string;
/**
* Date the account became a part of the organization.
*/
readonly joinedTimestamp: string;
/**
* Friendly name for the member account.
*/
readonly name: string;
/**
* Parent Organizational Unit ID or Root ID for the account.
*/
readonly parentId: string;
/**
* State of the account in the organization.
*/
readonly state: string;
/**
* Map of tags for the resource.
*/
readonly tags: {
[key: string]: string;
};
}
/**
* Get information about an account in an organization.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.organizations.getAccount({
* accountId: "AWS ACCOUNT ID",
* });
* ```
*/
export declare function getAccountOutput(args: GetAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountResult>;
/**
* A collection of arguments for invoking getAccount.
*/
export interface GetAccountOutputArgs {
/**
* Account ID number of a delegated administrator account in the organization.
*/
accountId: pulumi.Input<string>;
/**
* Map of tags for the resource.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}