get_home_region

get_home_region()

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.

See also: AWS API Documentation

Request Syntax

response = client.get_home_region()
Return type
dict
Returns
Response Syntax
{
    'HomeRegion': 'string'
}

Response Structure

  • (dict) --
    • HomeRegion (string) --

      The name of the home region of the calling account.

Exceptions

  • MigrationHubConfig.Client.exceptions.InternalServerError
  • MigrationHubConfig.Client.exceptions.ServiceUnavailableException
  • MigrationHubConfig.Client.exceptions.AccessDeniedException
  • MigrationHubConfig.Client.exceptions.ThrottlingException
  • MigrationHubConfig.Client.exceptions.InvalidInputException