import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * The `aws.account.getRegions` data source lets you query AWS region information for any account in your AWS Organization. It uses the AWS Account REST Service to show all regions, including those that are enabled, disabled, or in the process of being enabled or disabled. You can list regions for any organization account, see all possible region opt-in statuses (`ENABLED`, `ENABLING`, `DISABLING`, `DISABLED`, `ENABLED_BY_DEFAULT`), and check which regions are being enabled or disabled. * * This is more comprehensive than the aws.getRegions data source, which only uses the EC2 REST service and is limited to the current account and a subset of region statuses. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.account.getRegions({}); * ``` */ export declare function getRegions(args?: GetRegionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRegions. */ export interface GetRegionsArgs { /** * AWS account ID. Must be a member account in the same organization. */ accountId?: string; /** * A list of region opt-in statuses to filter the results. Valid values are `ENABLED`, `ENABLING`, `DISABLING`, `DISABLED`, and `ENABLED_BY_DEFAULT`. */ regionOptStatusContains?: string[]; } /** * A collection of values returned by getRegions. */ export interface GetRegionsResult { readonly accountId: string; readonly regionOptStatusContains: string[]; /** * The regions for a given account */ readonly regions: outputs.account.GetRegionsRegion[]; } /** * The `aws.account.getRegions` data source lets you query AWS region information for any account in your AWS Organization. It uses the AWS Account REST Service to show all regions, including those that are enabled, disabled, or in the process of being enabled or disabled. You can list regions for any organization account, see all possible region opt-in statuses (`ENABLED`, `ENABLING`, `DISABLING`, `DISABLED`, `ENABLED_BY_DEFAULT`), and check which regions are being enabled or disabled. * * This is more comprehensive than the aws.getRegions data source, which only uses the EC2 REST service and is limited to the current account and a subset of region statuses. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.account.getRegions({}); * ``` */ export declare function getRegionsOutput(args?: GetRegionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRegions. */ export interface GetRegionsOutputArgs { /** * AWS account ID. Must be a member account in the same organization. */ accountId?: pulumi.Input; /** * A list of region opt-in statuses to filter the results. Valid values are `ENABLED`, `ENABLING`, `DISABLING`, `DISABLED`, and `ENABLED_BY_DEFAULT`. */ regionOptStatusContains?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getRegions.d.ts.map