create_home_region_control
¶
create_home_region_control(
home_region: HomeRegion,
target: Target,
*,
config_overrides: Optional[MigrationHubConfigClientConfig] = None,
dry_run: Optional[DryRun] = None,
) -> CreateHomeRegionControlResult
This API sets up the home region for the calling account only.
Parameters:
-
home_region(HomeRegion) –The name of the home region of the calling account.
-
target(Target) –The account for which this command sets up a home region control. The
Targetis always of typeACCOUNT. -
dry_run(Optional[DryRun], default:None) –Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
DryRunOperation–Exception raised to indicate that authorization of an action was successful, when the
DryRunflag is set to true. -
InternalServerError–Exception raised when an internal, configuration, or dependency error is encountered.
-
InvalidInputException–Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.
-
ServiceUnavailableException–Exception raised when a request fails due to temporary unavailability of the service.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.