UNPKG

@aws-sdk/client-account

Version:

AWS SDK for JavaScript Account Client for Node.js, Browser and React Native

100 lines (99 loc) 4.03 kB
import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient"; import type { ListRegionsRequest, ListRegionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListRegionsCommand}. */ export interface ListRegionsCommandInput extends ListRegionsRequest { } /** * @public * * The output of {@link ListRegionsCommand}. */ export interface ListRegionsCommandOutput extends ListRegionsResponse, __MetadataBearer { } declare const ListRegionsCommand_base: { new (input: ListRegionsCommandInput): import("@smithy/core/client").CommandImpl<ListRegionsCommandInput, ListRegionsCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (...[input]: [] | [ListRegionsCommandInput]): import("@smithy/core/client").CommandImpl<ListRegionsCommandInput, ListRegionsCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * <p>Lists all the Regions for a given account and their respective opt-in statuses. Optionally, this list can be filtered by the <code>region-opt-status-contains</code> parameter. </p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AccountClient, ListRegionsCommand } from "@aws-sdk/client-account"; // ES Modules import * // const { AccountClient, ListRegionsCommand } = require("@aws-sdk/client-account"); // CommonJS import * // import type { AccountClientConfig } from "@aws-sdk/client-account"; * const config = {}; // type is AccountClientConfig * const client = new AccountClient(config); * const input = { // ListRegionsRequest * AccountId: "STRING_VALUE", * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * RegionOptStatusContains: [ // RegionOptStatusList * "STRING_VALUE", * ], * }; * const command = new ListRegionsCommand(input); * const response = await client.send(command); * // { // ListRegionsResponse * // NextToken: "STRING_VALUE", * // Regions: [ // RegionOptList * // { // Region * // RegionName: "STRING_VALUE", * // RegionOptStatus: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param ListRegionsCommandInput - {@link ListRegionsCommandInput} * @returns {@link ListRegionsCommandOutput} * @see {@link ListRegionsCommandInput} for command's `input` shape. * @see {@link ListRegionsCommandOutput} for command's `response` shape. * @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) * <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p> * * @throws {@link InternalServerException} (server fault) * <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p> * * @throws {@link TooManyRequestsException} (client fault) * <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p> * * @throws {@link ValidationException} (client fault) * <p>The operation failed because one of the input parameters was invalid.</p> * * @throws {@link AccountServiceException} * <p>Base exception class for all service exceptions from Account service.</p> * * * @public */ export declare class ListRegionsCommand extends ListRegionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListRegionsRequest; output: ListRegionsResponse; }; sdk: { input: ListRegionsCommandInput; output: ListRegionsCommandOutput; }; }; }