import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetHomeRegionRequest, GetHomeRegionResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetHomeRegionCommand}. */ export interface GetHomeRegionCommandInput extends GetHomeRegionRequest { } /** * @public * * The output of {@link GetHomeRegionCommand}. */ export interface GetHomeRegionCommandOutput extends GetHomeRegionResult, __MetadataBearer { } declare const GetHomeRegionCommand_base: { new (input: GetHomeRegionCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetHomeRegionCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns the calling account’s home region, if configured. This API is used by other AWS * services to determine the regional endpoint for calling AWS Application Discovery Service and * Migration Hub. You must call GetHomeRegion at least once before you call any * other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's * Migration Hub home region.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MigrationHubConfigClient, GetHomeRegionCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import * // const { MigrationHubConfigClient, GetHomeRegionCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import * // import type { MigrationHubConfigClientConfig } from "@aws-sdk/client-migrationhub-config"; * const config = {}; // type is MigrationHubConfigClientConfig * const client = new MigrationHubConfigClient(config); * const input = {}; * const command = new GetHomeRegionCommand(input); * const response = await client.send(command); * // { // GetHomeRegionResult * // HomeRegion: "STRING_VALUE", * // }; * * ``` * * @param GetHomeRegionCommandInput - {@link GetHomeRegionCommandInput} * @returns {@link GetHomeRegionCommandOutput} * @see {@link GetHomeRegionCommandInput} for command's `input` shape. * @see {@link GetHomeRegionCommandOutput} for command's `response` shape. * @see {@link MigrationHubConfigClientResolvedConfig | config} for MigrationHubConfigClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link InternalServerError} (server fault) *

Exception raised when an internal, configuration, or dependency error is * encountered.

* * @throws {@link InvalidInputException} (client fault) *

Exception raised when the provided input violates a policy constraint or is entered in the * wrong format or data type.

* * @throws {@link ServiceUnavailableException} (server fault) *

Exception raised when a request fails due to temporary unavailability of the * service.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied due to request throttling.

* * @throws {@link MigrationHubConfigServiceException} *

Base exception class for all service exceptions from MigrationHubConfig service.

* * * @public */ export declare class GetHomeRegionCommand extends GetHomeRegionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: GetHomeRegionResult; }; sdk: { input: GetHomeRegionCommandInput; output: GetHomeRegionCommandOutput; }; }; }